resources

package
v0.0.0-...-ca0a03f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package resources provides all resources implementation of FHIR v4.0.0

Reference: https://www.hl7.org/fhir/resourcelist.html

Identification Individuals:

Patient
Practitioner
RelatedPerson

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	ResourceType  string  `json:"resourceType"`
	ID            *d.ID   `json:"id,omitempty"`
	Meta          *d.Meta `json:"meta,omitempty"`
	ImplicitRules *d.URI  `json:"implicitRules,omitempty"`
	Language      *d.Code `json:"language,omitempty"`
}

Base Resource

type Bundle

type Bundle struct {
	Base
	Identifier *d.Identifier   `json:"identifier,omitempty"`
	Type       *d.Code         `json:"type,omitempty"`
	Timestamp  *d.Instant      `json:"timestamp,omitempty"`
	Total      *d.UnsignedInt  `json:"total,omitempty"`
	Link       []d.BundleLink  `json:"link,omitempty"`
	Entry      []d.BundleEntry `json:"entry,omitempty"`
	Signature  *d.Signature    `json:"signature,omitempty"`
}

Bundle resource

func (*Bundle) Transform

func (b *Bundle) Transform(resultSet ...string) (Bundle, error)

Transform Bundle

func (*Bundle) Validate

func (b *Bundle) Validate() (bool, []error)

Validate returns a check against schema

type Domain

type Domain struct {
	Base
	Text      *d.Narrative `json:"text,omitempty"`
	Contained []Base       `json:"contained,omitempty"`
}

Domain resource

type Encounter

type Encounter struct {
	Domain
	Identifier      []d.Identifier              `json:"identifier,omitempty"`
	Status          *d.Code                     `json:"status,omitempty"`
	StatusHistory   []d.EncounterStatusHistory  `json:"statusHistory,omitempty"`
	Class           *d.Coding                   `json:"class,omitempty"`
	ClassHistory    []d.EncounterClassHistory   `json:"classHistory,omitempty"`
	Type            []d.CodeableConcept         `json:"type,omitempty"`
	ServiceType     *d.CodeableConcept          `json:"serviceType,omitempty"`
	Priority        *d.CodeableConcept          `json:"priority,omitempty"`
	Subject         *d.Reference                `json:"subject,omitempty"`
	EpisodeOfCare   []d.Reference               `json:"episodeOfCare,omitempty"`
	BasedOn         []d.Reference               `json:"basedOn,omitempty"`
	Participant     []d.EncounterParticipant    `json:"participant,omitempty"`
	Appointment     []d.Reference               `json:"appointment,omitempty"`
	Period          *d.Period                   `json:"period,omitempty"`
	Length          *d.Duration                 `json:"length,omitempty"`
	ReasonCode      []d.CodeableConcept         `json:"reasonCode,omitempty"`
	ReasonReference []d.Reference               `json:"reasonReference,omitempty"`
	Diagnosis       []d.EncounterDiagnosis      `json:"diagnosis,omitempty"`
	Account         []d.Reference               `json:"account,omitempty"`
	Hospitalization *d.EncounterHospitalization `json:"hospitalization,omitempty"`
	Location        []d.EncounterLocation       `json:"location,omitempty"`
	ServiceProvider *d.Reference                `json:"serviceProvider,omitempty"`
	PartOf          *d.Reference                `json:"partOf,omitempty"`
}

Encounter resource

func (*Encounter) Validate

func (e *Encounter) Validate() (bool, []error)

Validate returns a check against schema

type Observation

type Observation struct {
	Domain
	Identifier           []d.Identifier                `json:"identifier,omitempty"`
	BasedOn              *d.Reference                  `json:"basedOn,omitempty"`
	PartOf               *d.Reference                  `json:"partOf,omitempty"`
	Status               *d.Code                       `json:"status,omitempty"`
	Category             *d.CodeableConcept            `json:"category,omitempty"`
	Code                 *d.CodeableConcept            `json:"code,omitempty"`
	Subject              *d.Reference                  `json:"subject,omitempty"`
	Focus                *d.Reference                  `json:"focus,omitempty"`
	Encounter            *d.Reference                  `json:"encounter,omitempty"`
	Context              *d.Reference                  `json:"context,omitempty"`
	EffectiveDateTime    *d.DateTime                   `json:"effectiveDateTime"`
	EffectivePeriod      *d.Period                     `json:"effectivePeriod,omitempty"`
	EffectiveTiming      *d.Timing                     `json:"effectiveTiming,omitempty"`
	EffectiveInstant     *d.Instant                    `json:"effectiveInstant,omitempty"`
	Issued               *d.Instant                    `json:"issued,omitempty"`
	Performer            *d.Reference                  `json:"performer,omitempty"`
	ValueQuantity        *d.Quantity                   `json:"valueQuantity,omitempty"`
	ValueCodeableConcept *d.CodeableConcept            `json:"valueCodeableConcept,omitempty"`
	ValueString          *d.String                     `json:"valueString,omitempty"`
	ValueBoolean         *d.Boolean                    `json:"valueBoolean,omitempty"`
	ValueInteger         *d.Integer                    `json:"valueInteger,omitempty"`
	ValueRange           *d.Range                      `json:"valueRange,omitempty"`
	ValueRatio           *d.Ratio                      `json:"valueRatio,omitempty"`
	ValueSampledData     *d.SampledData                `json:"valueSampledData,omitempty"`
	ValueTime            *d.Time                       `json:"valueTime,omitempty"`
	ValueDateTime        *d.DateTime                   `json:"valueDateTime,omitempty"`
	ValuePeriod          *d.Period                     `json:"valuePeriod,omitempty"`
	DataAbsentReason     *d.CodeableConcept            `json:"dataAbsentReason,omitempty"`
	Interpretation       []d.CodeableConcept           `json:"interpretation,omitempty"`
	Note                 []d.Annotation                `json:"note,omitempty"`
	BodySite             *d.CodeableConcept            `json:"bodySite,omitempty"`
	Method               *d.CodeableConcept            `json:"method,omitempty"`
	Specimen             *d.Reference                  `json:"specimen,omitempty"`
	Device               *d.Reference                  `json:"device,omitempty"`
	ReferenceRange       []d.ObservationReferenceRange `json:"referenceRange,omitempty"`
	HasMember            []d.Reference                 `json:"hasMember,omitempty"`
	DerivedFrom          []d.Reference                 `json:"derivedFrom,omitempty"`
	Component            []d.ObservationComponent      `json:"component,omitempty"`
}

Observation resource

func (*Observation) Validate

func (o *Observation) Validate() (bool, []error)

Validate returns a check against schema

type Patient

type Patient struct {
	Domain
	Identifier           []d.Identifier           `json:"identifier,omitempty"`
	Active               *d.Boolean               `json:"active,omitempty"`
	Name                 []d.HumanName            `json:"name,omitempty"`
	Telecom              []d.ContactPoint         `json:"telecom,omitempty"`
	Gender               *d.Code                  `json:"gender,omitempty"`
	BirthDate            *d.Date                  `json:"birthDate,omitempty"`
	DeceasedBoolean      *d.Boolean               `json:"deceasedBoolean,omitempty"`
	DeceasedDateTime     *d.DateTime              `json:"deceasedDateTime,omitempty"`
	Address              []d.Address              `json:"address,omitempty"`
	MaritalStatus        *d.CodeableConcept       `json:"maritalStatus,omitempty"`
	MultipleBirthBoolean *d.Boolean               `json:"multipleBirthBoolean,omitempty"`
	MultipleBirthInteger *d.Integer               `json:"multipleBirthInteger,omitempty"`
	Photo                []d.Attachment           `json:"photo,omitempty"`
	Contact              []d.PatientContact       `json:"contact,omitempty"`
	Communication        []d.PatientCommunication `json:"communication,omitempty"`
	GeneralPractitioner  []d.Reference            `json:"generalPractitioner,omitempty"`
	ManagingOrganization *d.Reference             `json:"managingOrganization,omitempty"`
	Link                 []d.PatientLink          `json:"link,omitempty"`
}

Patient resource

func (*Patient) Validate

func (p *Patient) Validate() (bool, []error)

Validate returns a check against schema

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL