Documentation
¶
Index ¶
- Constants
- func CheckResponse(r *http.Response) error
- func ParseError(raw interface{}) string
- type BackboneElement
- type Bundle
- type BundleEntry
- type Code
- type CodeableConcept
- type Coding
- type DomainResource
- type Element
- type ErrorResponse
- type FHIRDateTime
- type Issue
- type IssueResponse
- type Meta
- type Narrative
- type OperationOutcome
- type OperationOutcomeIssueComponent
- type Precision
- type Resource
Constants ¶
View Source
const ( Date = "date" Timestamp = "timestamp" )
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
CheckResponse checks the API response for errors, and returns them if present.
func ParseError ¶
func ParseError(raw interface{}) string
ParseError returns a string representation of an error struct
Types ¶
type BackboneElement ¶
type BackboneElement struct {
Element
}
type Bundle ¶
type Bundle struct { Type string `json:"type,omitempty"` Total int64 `json:"total,omitempty"` Entry []BundleEntry `json:"entry,omitempty"` }
Bundle represents a FHIR bundle response
type BundleEntry ¶
type BundleEntry struct { FullURL string `json:"fullUrl,omitempty"` Resource json.RawMessage `json:"resource,omitempty"` }
BundleEntry represents a entry item in a bundle
type CodeableConcept ¶
type DomainResource ¶
type ErrorResponse ¶
type ErrorResponse struct { Response *http.Response `json:"-"` Code string `json:"responseCode"` Message string `json:"responseMessage"` }
ErrorResponse represents an IAM errors response containing a code and a human readable message
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type FHIRDateTime ¶
func (FHIRDateTime) MarshalJSON ¶
func (f FHIRDateTime) MarshalJSON() ([]byte, error)
func (FHIRDateTime) UnmarshalJSON ¶
func (f FHIRDateTime) UnmarshalJSON(data []byte) (err error)
type Issue ¶
type Issue struct { Severity string `json:"Severity"` Details string `json:"Details"` Code Code `json:"Code"` }
Issue descrbies an issue
type IssueResponse ¶
type IssueResponse struct {
Issues []Issue `json:"issue"`
}
IssueResponse enscapsaltes one or more issues
type OperationOutcome ¶
type OperationOutcome struct { DomainResource Issue []OperationOutcomeIssueComponent `json:"issue,omitempty"` }
type OperationOutcomeIssueComponent ¶
type OperationOutcomeIssueComponent struct { BackboneElement Severity string `json:"severity,omitempty"` Code string `json:"code,omitempty"` Details *CodeableConcept `json:"details,omitempty"` Diagnostics string `json:"diagnostics,omitempty"` Location []string `json:"location,omitempty"` }
Click to show internal directories.
Click to hide internal directories.