models

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBool

func NewBool(v bool) *bool

func NewInt

func NewInt(v int) *int

func NewString

func NewString(v string) *string

func ToBool

func ToBool(v *bool) bool

func ToFloat64

func ToFloat64(v *Decimal) float64

func ToInt

func ToInt(v *int) int

func ToString

func ToString(v *string) string

Types

type AggregationMode

type AggregationMode int

AggregationMode is documented here http://hl7.org/fhir/ValueSet/resource-aggregation-mode

const (
	AggregationModeContained AggregationMode = iota
	AggregationModeReferenced
	AggregationModeBundled
)

func (AggregationMode) Code

func (code AggregationMode) Code() string

func (AggregationMode) Definition

func (code AggregationMode) Definition() string

func (AggregationMode) Display

func (code AggregationMode) Display() string

func (AggregationMode) MarshalJSON

func (code AggregationMode) MarshalJSON() ([]byte, error)

func (AggregationMode) String

func (code AggregationMode) String() string

func (*AggregationMode) UnmarshalJSON

func (code *AggregationMode) UnmarshalJSON(json []byte) error

type BindingStrength

type BindingStrength int

BindingStrength is documented here http://hl7.org/fhir/ValueSet/binding-strength

const (
	BindingStrengthRequired BindingStrength = iota
	BindingStrengthExtensible
	BindingStrengthPreferred
	BindingStrengthExample
)

func (BindingStrength) Code

func (code BindingStrength) Code() string

func (BindingStrength) Definition

func (code BindingStrength) Definition() string

func (BindingStrength) Display

func (code BindingStrength) Display() string

func (BindingStrength) MarshalJSON

func (code BindingStrength) MarshalJSON() ([]byte, error)

func (BindingStrength) String

func (code BindingStrength) String() string

func (*BindingStrength) UnmarshalJSON

func (code *BindingStrength) UnmarshalJSON(json []byte) error

type Bundle

type Bundle struct {
	ID            *string       `bson:"id,omitempty" json:"id,omitempty"`
	Meta          *Meta         `bson:"meta,omitempty" json:"meta,omitempty"`
	ImplicitRules *string       `bson:"implicitRules,omitempty" json:"implicitRules,omitempty"`
	Language      *string       `bson:"language,omitempty" json:"language,omitempty"`
	Identifier    *Identifier   `bson:"identifier,omitempty" json:"identifier,omitempty"`
	Type          BundleType    `bson:"type" json:"type"`
	Timestamp     *string       `bson:"timestamp,omitempty" json:"timestamp,omitempty"`
	Total         *int          `bson:"total,omitempty" json:"total,omitempty"`
	Link          []BundleLink  `bson:"link,omitempty" json:"link,omitempty"`
	Entry         []BundleEntry `bson:"entry,omitempty" json:"entry,omitempty"`
	Signature     *Signature    `bson:"signature,omitempty" json:"signature,omitempty"`
}

Bundle is documented here http://hl7.org/fhir/StructureDefinition/Bundle

func UnmarshalBundle

func UnmarshalBundle(b []byte) (Bundle, error)

UnmarshalBundle unmarshals a Bundle.

func (Bundle) MarshalJSON

func (r Bundle) MarshalJSON() ([]byte, error)

MarshalJSON marshals the given Bundle as JSON into a byte slice

type BundleEntry

type BundleEntry struct {
	ID                *string              `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension          `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension          `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Link              []BundleLink         `bson:"link,omitempty" json:"link,omitempty"`
	FullUrl           *string              `bson:"fullUrl,omitempty" json:"fullUrl,omitempty"`
	Resource          json.RawMessage      `bson:"resource,omitempty" json:"resource,omitempty"`
	Search            *BundleEntrySearch   `bson:"search,omitempty" json:"search,omitempty"`
	Request           *BundleEntryRequest  `bson:"request,omitempty" json:"request,omitempty"`
	Response          *BundleEntryResponse `bson:"response,omitempty" json:"response,omitempty"`
}

type BundleEntryRequest

type BundleEntryRequest struct {
	ID                *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Method            HTTPVerb    `bson:"method" json:"method"`
	URL               string      `bson:"url" json:"url"`
	IfNoneMatch       *string     `bson:"ifNoneMatch,omitempty" json:"ifNoneMatch,omitempty"`
	IfModifiedSince   *string     `bson:"ifModifiedSince,omitempty" json:"ifModifiedSince,omitempty"`
	IfMatch           *string     `bson:"ifMatch,omitempty" json:"ifMatch,omitempty"`
	IfNoneExist       *string     `bson:"ifNoneExist,omitempty" json:"ifNoneExist,omitempty"`
}

type BundleEntryResponse

type BundleEntryResponse struct {
	ID                *string         `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension     `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension     `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Status            string          `bson:"status" json:"status"`
	Location          *string         `bson:"location,omitempty" json:"location,omitempty"`
	Etag              *string         `bson:"etag,omitempty" json:"etag,omitempty"`
	LastModified      *string         `bson:"lastModified,omitempty" json:"lastModified,omitempty"`
	Outcome           json.RawMessage `bson:"outcome,omitempty" json:"outcome,omitempty"`
}

type BundleEntrySearch

type BundleEntrySearch struct {
	ID                *string          `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension      `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension      `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Mode              *SearchEntryMode `bson:"mode,omitempty" json:"mode,omitempty"`
	Score             *Decimal         `bson:"score,omitempty" json:"score,omitempty"`
}
type BundleLink struct {
	ID                *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Relation          string      `bson:"relation" json:"relation"`
	URL               string      `bson:"url" json:"url"`
}

type BundleType

type BundleType int

BundleType is documented here http://hl7.org/fhir/ValueSet/bundle-type

const (
	BundleTypeDocument BundleType = iota
	BundleTypeMessage
	BundleTypeTransaction
	BundleTypeTransactionResponse
	BundleTypeBatch
	BundleTypeBatchResponse
	BundleTypeHistory
	BundleTypeSearchset
	BundleTypeCollection
)

func (BundleType) Code

func (code BundleType) Code() string

func (BundleType) Definition

func (code BundleType) Definition() string

func (BundleType) Display

func (code BundleType) Display() string

func (BundleType) MarshalJSON

func (code BundleType) MarshalJSON() ([]byte, error)

func (BundleType) String

func (code BundleType) String() string

func (*BundleType) UnmarshalJSON

func (code *BundleType) UnmarshalJSON(json []byte) error

type CodeSystem

type CodeSystem struct {
	ID                *string                     `bson:"id,omitempty" json:"id,omitempty"`
	Meta              *Meta                       `bson:"meta,omitempty" json:"meta,omitempty"`
	ImplicitRules     *string                     `bson:"implicitRules,omitempty" json:"implicitRules,omitempty"`
	Language          *string                     `bson:"language,omitempty" json:"language,omitempty"`
	Text              *Narrative                  `bson:"text,omitempty" json:"text,omitempty"`
	Extension         []Extension                 `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension                 `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	URL               *string                     `bson:"url,omitempty" json:"url,omitempty"`
	Identifier        []Identifier                `bson:"identifier,omitempty" json:"identifier,omitempty"`
	Version           *string                     `bson:"version,omitempty" json:"version,omitempty"`
	Name              *string                     `bson:"name,omitempty" json:"name,omitempty"`
	Title             *string                     `bson:"title,omitempty" json:"title,omitempty"`
	Status            PublicationStatus           `bson:"status" json:"status"`
	Experimental      *bool                       `bson:"experimental,omitempty" json:"experimental,omitempty"`
	Date              *DateTime                   `bson:"date,omitempty" json:"date,omitempty"`
	Publisher         *string                     `bson:"publisher,omitempty" json:"publisher,omitempty"`
	Contact           []ContactDetail             `bson:"contact,omitempty" json:"contact,omitempty"`
	Description       *string                     `bson:"description,omitempty" json:"description,omitempty"`
	UseContext        []UsageContext              `bson:"useContext,omitempty" json:"useContext,omitempty"`
	Jurisdiction      []CodeableConcept           `bson:"jurisdiction,omitempty" json:"jurisdiction,omitempty"`
	Purpose           *string                     `bson:"purpose,omitempty" json:"purpose,omitempty"`
	Copyright         *string                     `bson:"copyright,omitempty" json:"copyright,omitempty"`
	CaseSensitive     *bool                       `bson:"caseSensitive,omitempty" json:"caseSensitive,omitempty"`
	ValueSet          *string                     `bson:"valueSet,omitempty" json:"valueSet,omitempty"`
	HierarchyMeaning  *CodeSystemHierarchyMeaning `bson:"hierarchyMeaning,omitempty" json:"hierarchyMeaning,omitempty"`
	Compositional     *bool                       `bson:"compositional,omitempty" json:"compositional,omitempty"`
	VersionNeeded     *bool                       `bson:"versionNeeded,omitempty" json:"versionNeeded,omitempty"`
	Content           CodeSystemContentMode       `bson:"content" json:"content"`
	Supplements       *string                     `bson:"supplements,omitempty" json:"supplements,omitempty"`
	Count             *int                        `bson:"count,omitempty" json:"count,omitempty"`
	Filter            []CodeSystemFilter          `bson:"filter,omitempty" json:"filter,omitempty"`
	Property          []CodeSystemProperty        `bson:"property,omitempty" json:"property,omitempty"`
	Concept           []CodeSystemConcept         `bson:"concept,omitempty" json:"concept,omitempty"`
}

CodeSystem is documented here http://hl7.org/fhir/StructureDefinition/CodeSystem

func UnmarshalCodeSystem

func UnmarshalCodeSystem(b []byte) (CodeSystem, error)

UnmarshalCodeSystem unmarshals a CodeSystem.

func (CodeSystem) MarshalJSON

func (r CodeSystem) MarshalJSON() ([]byte, error)

MarshalJSON marshals the given CodeSystem as JSON into a byte slice

type CodeSystemConcept

type CodeSystemConcept struct {
	ID                *string                        `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension                    `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension                    `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Code              string                         `bson:"code" json:"code"`
	Display           *string                        `bson:"display,omitempty" json:"display,omitempty"`
	Definition        *string                        `bson:"definition,omitempty" json:"definition,omitempty"`
	Designation       []CodeSystemConceptDesignation `bson:"designation,omitempty" json:"designation,omitempty"`
	Property          []CodeSystemConceptProperty    `bson:"property,omitempty" json:"property,omitempty"`
	Concept           []CodeSystemConcept            `bson:"concept,omitempty" json:"concept,omitempty"`
}

type CodeSystemConceptDesignation

type CodeSystemConceptDesignation struct {
	ID                *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Language          *string     `bson:"language,omitempty" json:"language,omitempty"`
	Use               *Coding     `bson:"use,omitempty" json:"use,omitempty"`
	Value             string      `bson:"value" json:"value"`
}

type CodeSystemConceptProperty

type CodeSystemConceptProperty struct {
	ID                *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Code              string      `bson:"code" json:"code"`
}

type CodeSystemContentMode

type CodeSystemContentMode int

CodeSystemContentMode is documented here http://hl7.org/fhir/ValueSet/codesystem-content-mode

const (
	CodeSystemContentModeNotPresent CodeSystemContentMode = iota
	CodeSystemContentModeExample
	CodeSystemContentModeFragment
	CodeSystemContentModeComplete
	CodeSystemContentModeSupplement
)

func (CodeSystemContentMode) Code

func (code CodeSystemContentMode) Code() string

func (CodeSystemContentMode) Definition

func (code CodeSystemContentMode) Definition() string

func (CodeSystemContentMode) Display

func (code CodeSystemContentMode) Display() string

func (CodeSystemContentMode) MarshalJSON

func (code CodeSystemContentMode) MarshalJSON() ([]byte, error)

func (CodeSystemContentMode) String

func (code CodeSystemContentMode) String() string

func (*CodeSystemContentMode) UnmarshalJSON

func (code *CodeSystemContentMode) UnmarshalJSON(json []byte) error

type CodeSystemFilter

type CodeSystemFilter struct {
	ID                *string          `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension      `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension      `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Code              string           `bson:"code" json:"code"`
	Description       *string          `bson:"description,omitempty" json:"description,omitempty"`
	Operator          []FilterOperator `bson:"operator" json:"operator"`
	Value             string           `bson:"value" json:"value"`
}

type CodeSystemHierarchyMeaning

type CodeSystemHierarchyMeaning int

CodeSystemHierarchyMeaning is documented here http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning

const (
	CodeSystemHierarchyMeaningGroupedBy CodeSystemHierarchyMeaning = iota
	CodeSystemHierarchyMeaningIsA
	CodeSystemHierarchyMeaningPartOf
	CodeSystemHierarchyMeaningClassifiedWith
)

func (CodeSystemHierarchyMeaning) Code

func (code CodeSystemHierarchyMeaning) Code() string

func (CodeSystemHierarchyMeaning) Definition

func (code CodeSystemHierarchyMeaning) Definition() string

func (CodeSystemHierarchyMeaning) Display

func (code CodeSystemHierarchyMeaning) Display() string

func (CodeSystemHierarchyMeaning) MarshalJSON

func (code CodeSystemHierarchyMeaning) MarshalJSON() ([]byte, error)

func (CodeSystemHierarchyMeaning) String

func (code CodeSystemHierarchyMeaning) String() string

func (*CodeSystemHierarchyMeaning) UnmarshalJSON

func (code *CodeSystemHierarchyMeaning) UnmarshalJSON(json []byte) error

type CodeSystemProperty

type CodeSystemProperty struct {
	ID                *string      `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension  `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension  `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Code              string       `bson:"code" json:"code"`
	URI               *string      `bson:"uri,omitempty" json:"uri,omitempty"`
	Description       *string      `bson:"description,omitempty" json:"description,omitempty"`
	Type              PropertyType `bson:"type" json:"type"`
}

type CodeableConcept

type CodeableConcept struct {
	ID        *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	Coding    []Coding    `bson:"coding,omitempty" json:"coding,omitempty"`
	Text      *string     `bson:"text,omitempty" json:"text,omitempty"`
}

CodeableConcept is documented here http://hl7.org/fhir/StructureDefinition/CodeableConcept

type Coding

type Coding struct {
	ID           *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension    []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	System       *string     `bson:"system,omitempty" json:"system,omitempty"`
	Version      *string     `bson:"version,omitempty" json:"version,omitempty"`
	Code         *string     `bson:"code,omitempty" json:"code,omitempty"`
	Display      *string     `bson:"display,omitempty" json:"display,omitempty"`
	UserSelected *bool       `bson:"userSelected,omitempty" json:"userSelected,omitempty"`
}

Coding is documented here http://hl7.org/fhir/StructureDefinition/Coding

type ConstraintSeverity

type ConstraintSeverity int

ConstraintSeverity is documented here http://hl7.org/fhir/ValueSet/constraint-severity

const (
	ConstraintSeverityError ConstraintSeverity = iota
	ConstraintSeverityWarning
)

func (ConstraintSeverity) Code

func (code ConstraintSeverity) Code() string

func (ConstraintSeverity) Definition

func (code ConstraintSeverity) Definition() string

func (ConstraintSeverity) Display

func (code ConstraintSeverity) Display() string

func (ConstraintSeverity) MarshalJSON

func (code ConstraintSeverity) MarshalJSON() ([]byte, error)

func (ConstraintSeverity) String

func (code ConstraintSeverity) String() string

func (*ConstraintSeverity) UnmarshalJSON

func (code *ConstraintSeverity) UnmarshalJSON(json []byte) error

type ContactDetail

type ContactDetail struct {
	ID        *string        `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension    `bson:"extension,omitempty" json:"extension,omitempty"`
	Name      *string        `bson:"name,omitempty" json:"name,omitempty"`
	Telecom   []ContactPoint `bson:"telecom,omitempty" json:"telecom,omitempty"`
}

ContactDetail is documented here http://hl7.org/fhir/StructureDefinition/ContactDetail

type ContactPoint

type ContactPoint struct {
	ID        *string             `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension         `bson:"extension,omitempty" json:"extension,omitempty"`
	System    *ContactPointSystem `bson:"system,omitempty" json:"system,omitempty"`
	Value     *string             `bson:"value,omitempty" json:"value,omitempty"`
	Use       *ContactPointUse    `bson:"use,omitempty" json:"use,omitempty"`
	Rank      *int                `bson:"rank,omitempty" json:"rank,omitempty"`
	Period    *Period             `bson:"period,omitempty" json:"period,omitempty"`
}

ContactPoint is documented here http://hl7.org/fhir/StructureDefinition/ContactPoint

type ContactPointSystem

type ContactPointSystem int

ContactPointSystem is documented here http://hl7.org/fhir/ValueSet/contact-point-system

const (
	ContactPointSystemPhone ContactPointSystem = iota
	ContactPointSystemFax
	ContactPointSystemEmail
	ContactPointSystemPager
	ContactPointSystemUrl
	ContactPointSystemSms
	ContactPointSystemOther
)

func (ContactPointSystem) Code

func (code ContactPointSystem) Code() string

func (ContactPointSystem) Definition

func (code ContactPointSystem) Definition() string

func (ContactPointSystem) Display

func (code ContactPointSystem) Display() string

func (ContactPointSystem) MarshalJSON

func (code ContactPointSystem) MarshalJSON() ([]byte, error)

func (ContactPointSystem) String

func (code ContactPointSystem) String() string

func (*ContactPointSystem) UnmarshalJSON

func (code *ContactPointSystem) UnmarshalJSON(json []byte) error

type ContactPointUse

type ContactPointUse int

ContactPointUse is documented here http://hl7.org/fhir/ValueSet/contact-point-use

const (
	ContactPointUseHome ContactPointUse = iota
	ContactPointUseWork
	ContactPointUseTemp
	ContactPointUseOld
	ContactPointUseMobile
)

func (ContactPointUse) Code

func (code ContactPointUse) Code() string

func (ContactPointUse) Definition

func (code ContactPointUse) Definition() string

func (ContactPointUse) Display

func (code ContactPointUse) Display() string

func (ContactPointUse) MarshalJSON

func (code ContactPointUse) MarshalJSON() ([]byte, error)

func (ContactPointUse) String

func (code ContactPointUse) String() string

func (*ContactPointUse) UnmarshalJSON

func (code *ContactPointUse) UnmarshalJSON(json []byte) error

type DateTime

type DateTime struct {
	Time      time.Time
	Precision Precision
}

func Date

func Date(year, month, day int) DateTime

func NewDate

func NewDate(year, month, day int) *DateTime

func NewDateTime

func NewDateTime(time time.Time, precision Precision) *DateTime

func NewYear

func NewYear(year int) *DateTime

func NewYearMonth

func NewYearMonth(year, month int) *DateTime

func ParseDateTime

func ParseDateTime(s string) (d DateTime, err error)

func Year

func Year(year int) DateTime

func YearMonth

func YearMonth(year, month int) DateTime

func (DateTime) MarshalJSON

func (d DateTime) MarshalJSON() ([]byte, error)

func (DateTime) String

func (d DateTime) String() string

func (*DateTime) UnmarshalJSON

func (d *DateTime) UnmarshalJSON(data []byte) (err error)

type Decimal

type Decimal = float64

func NewDecimal

func NewDecimal(v float64) *Decimal

func ToDecimal

func ToDecimal(v *Decimal) Decimal

type DiscriminatorType

type DiscriminatorType int

DiscriminatorType is documented here http://hl7.org/fhir/ValueSet/discriminator-type

const (
	DiscriminatorTypeValue DiscriminatorType = iota
	DiscriminatorTypeExists
	DiscriminatorTypePattern
	DiscriminatorTypeType
	DiscriminatorTypeProfile
)

func (DiscriminatorType) Code

func (code DiscriminatorType) Code() string

func (DiscriminatorType) Definition

func (code DiscriminatorType) Definition() string

func (DiscriminatorType) Display

func (code DiscriminatorType) Display() string

func (DiscriminatorType) MarshalJSON

func (code DiscriminatorType) MarshalJSON() ([]byte, error)

func (DiscriminatorType) String

func (code DiscriminatorType) String() string

func (*DiscriminatorType) UnmarshalJSON

func (code *DiscriminatorType) UnmarshalJSON(json []byte) error

type ElementDefinition

type ElementDefinition struct {
	ID                  *string                       `bson:"id,omitempty" json:"id,omitempty"`
	Extension           []Extension                   `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension   []Extension                   `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Path                string                        `bson:"path" json:"path"`
	Representation      []PropertyRepresentation      `bson:"representation,omitempty" json:"representation,omitempty"`
	SliceName           *string                       `bson:"sliceName,omitempty" json:"sliceName,omitempty"`
	SliceIsConstraining *bool                         `bson:"sliceIsConstraining,omitempty" json:"sliceIsConstraining,omitempty"`
	Label               *string                       `bson:"label,omitempty" json:"label,omitempty"`
	Code                []Coding                      `bson:"code,omitempty" json:"code,omitempty"`
	Slicing             *ElementDefinitionSlicing     `bson:"slicing,omitempty" json:"slicing,omitempty"`
	Short               *string                       `bson:"short,omitempty" json:"short,omitempty"`
	Definition          *string                       `bson:"definition,omitempty" json:"definition,omitempty"`
	Comment             *string                       `bson:"comment,omitempty" json:"comment,omitempty"`
	Requirements        *string                       `bson:"requirements,omitempty" json:"requirements,omitempty"`
	Alias               []string                      `bson:"alias,omitempty" json:"alias,omitempty"`
	Min                 *int                          `bson:"min,omitempty" json:"min,omitempty"`
	Max                 *string                       `bson:"max,omitempty" json:"max,omitempty"`
	Base                *ElementDefinitionBase        `bson:"base,omitempty" json:"base,omitempty"`
	ContentReference    *string                       `bson:"contentReference,omitempty" json:"contentReference,omitempty"`
	Type                []ElementDefinitionType       `bson:"type,omitempty" json:"type,omitempty"`
	MeaningWhenMissing  *string                       `bson:"meaningWhenMissing,omitempty" json:"meaningWhenMissing,omitempty"`
	OrderMeaning        *string                       `bson:"orderMeaning,omitempty" json:"orderMeaning,omitempty"`
	Example             []ElementDefinitionExample    `bson:"example,omitempty" json:"example,omitempty"`
	MaxLength           *int                          `bson:"maxLength,omitempty" json:"maxLength,omitempty"`
	Condition           []string                      `bson:"condition,omitempty" json:"condition,omitempty"`
	Constraint          []ElementDefinitionConstraint `bson:"constraint,omitempty" json:"constraint,omitempty"`
	MustSupport         *bool                         `bson:"mustSupport,omitempty" json:"mustSupport,omitempty"`
	IsModifier          *bool                         `bson:"isModifier,omitempty" json:"isModifier,omitempty"`
	IsModifierReason    *string                       `bson:"isModifierReason,omitempty" json:"isModifierReason,omitempty"`
	IsSummary           *bool                         `bson:"isSummary,omitempty" json:"isSummary,omitempty"`
	Binding             *ElementDefinitionBinding     `bson:"binding,omitempty" json:"binding,omitempty"`
	Mapping             []ElementDefinitionMapping    `bson:"mapping,omitempty" json:"mapping,omitempty"`
}

ElementDefinition is documented here http://hl7.org/fhir/StructureDefinition/ElementDefinition

type ElementDefinitionBase

type ElementDefinitionBase struct {
	ID        *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	Path      string      `bson:"path" json:"path"`
	Min       int         `bson:"min" json:"min"`
	Max       string      `bson:"max" json:"max"`
}

type ElementDefinitionBinding

type ElementDefinitionBinding struct {
	ID          *string         `bson:"id,omitempty" json:"id,omitempty"`
	Extension   []Extension     `bson:"extension,omitempty" json:"extension,omitempty"`
	Strength    BindingStrength `bson:"strength" json:"strength"`
	Description *string         `bson:"description,omitempty" json:"description,omitempty"`
	ValueSet    *string         `bson:"valueSet,omitempty" json:"valueSet,omitempty"`
}

type ElementDefinitionConstraint

type ElementDefinitionConstraint struct {
	ID           *string            `bson:"id,omitempty" json:"id,omitempty"`
	Extension    []Extension        `bson:"extension,omitempty" json:"extension,omitempty"`
	Key          string             `bson:"key" json:"key"`
	Requirements *string            `bson:"requirements,omitempty" json:"requirements,omitempty"`
	Severity     ConstraintSeverity `bson:"severity" json:"severity"`
	Human        string             `bson:"human" json:"human"`
	Expression   *string            `bson:"expression,omitempty" json:"expression,omitempty"`
	Xpath        *string            `bson:"xpath,omitempty" json:"xpath,omitempty"`
	Source       *string            `bson:"source,omitempty" json:"source,omitempty"`
}

type ElementDefinitionExample

type ElementDefinitionExample struct {
	ID        *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	Label     string      `bson:"label" json:"label"`
}

type ElementDefinitionMapping

type ElementDefinitionMapping struct {
	ID        *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	Identity  string      `bson:"identity" json:"identity"`
	Language  *string     `bson:"language,omitempty" json:"language,omitempty"`
	Map       string      `bson:"map" json:"map"`
	Comment   *string     `bson:"comment,omitempty" json:"comment,omitempty"`
}

type ElementDefinitionSlicing

type ElementDefinitionSlicing struct {
	ID            *string                                 `bson:"id,omitempty" json:"id,omitempty"`
	Extension     []Extension                             `bson:"extension,omitempty" json:"extension,omitempty"`
	Discriminator []ElementDefinitionSlicingDiscriminator `bson:"discriminator,omitempty" json:"discriminator,omitempty"`
	Description   *string                                 `bson:"description,omitempty" json:"description,omitempty"`
	Ordered       *bool                                   `bson:"ordered,omitempty" json:"ordered,omitempty"`
	Rules         SlicingRules                            `bson:"rules" json:"rules"`
}

type ElementDefinitionSlicingDiscriminator

type ElementDefinitionSlicingDiscriminator struct {
	ID        *string           `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension       `bson:"extension,omitempty" json:"extension,omitempty"`
	Type      DiscriminatorType `bson:"type" json:"type"`
	Path      string            `bson:"path" json:"path"`
}

type ElementDefinitionType

type ElementDefinitionType struct {
	ID            *string                `bson:"id,omitempty" json:"id,omitempty"`
	Extension     []Extension            `bson:"extension,omitempty" json:"extension,omitempty"`
	Code          string                 `bson:"code" json:"code"`
	Profile       []string               `bson:"profile,omitempty" json:"profile,omitempty"`
	TargetProfile []string               `bson:"targetProfile,omitempty" json:"targetProfile,omitempty"`
	Aggregation   []AggregationMode      `bson:"aggregation,omitempty" json:"aggregation,omitempty"`
	Versioning    *ReferenceVersionRules `bson:"versioning,omitempty" json:"versioning,omitempty"`
}

type Extension

type Extension struct {
	ID        *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	URL       string      `bson:"url" json:"url"`
}

Extension is documented here http://hl7.org/fhir/StructureDefinition/Extension

type ExtensionContextType

type ExtensionContextType int

ExtensionContextType is documented here http://hl7.org/fhir/ValueSet/extension-context-type

const (
	ExtensionContextTypeFhirpath ExtensionContextType = iota
	ExtensionContextTypeElement
	ExtensionContextTypeExtension
)

func (ExtensionContextType) Code

func (code ExtensionContextType) Code() string

func (ExtensionContextType) Definition

func (code ExtensionContextType) Definition() string

func (ExtensionContextType) Display

func (code ExtensionContextType) Display() string

func (ExtensionContextType) MarshalJSON

func (code ExtensionContextType) MarshalJSON() ([]byte, error)

func (ExtensionContextType) String

func (code ExtensionContextType) String() string

func (*ExtensionContextType) UnmarshalJSON

func (code *ExtensionContextType) UnmarshalJSON(json []byte) error

type FHIRVersion

type FHIRVersion int

FHIRVersion is documented here http://hl7.org/fhir/ValueSet/FHIR-version

const (
	FHIRVersion0_01 FHIRVersion = iota
	FHIRVersion0_05
	FHIRVersion0_06
	FHIRVersion0_11
	FHIRVersion0_0_80
	FHIRVersion0_0_81
	FHIRVersion0_0_82
	FHIRVersion0_4_0
	FHIRVersion0_5_0
	FHIRVersion1_0_0
	FHIRVersion1_0_1
	FHIRVersion1_0_2
	FHIRVersion1_1_0
	FHIRVersion1_4_0
	FHIRVersion1_6_0
	FHIRVersion1_8_0
	FHIRVersion3_0_0
	FHIRVersion3_0_1
	FHIRVersion3_3_0
	FHIRVersion3_5_0
	FHIRVersion4_0_0
	FHIRVersion4_0_1
)

func (FHIRVersion) Code

func (code FHIRVersion) Code() string

func (FHIRVersion) Definition

func (code FHIRVersion) Definition() string

func (FHIRVersion) Display

func (code FHIRVersion) Display() string

func (FHIRVersion) MarshalJSON

func (code FHIRVersion) MarshalJSON() ([]byte, error)

func (FHIRVersion) String

func (code FHIRVersion) String() string

func (*FHIRVersion) UnmarshalJSON

func (code *FHIRVersion) UnmarshalJSON(json []byte) error

type FilterOperator

type FilterOperator int

FilterOperator is documented here http://hl7.org/fhir/ValueSet/filter-operator

const (
	FilterOperatorEquals FilterOperator = iota
	FilterOperatorIsA
	FilterOperatorDescendentOf
	FilterOperatorIsNotA
	FilterOperatorRegex
	FilterOperatorIn
	FilterOperatorNotIn
	FilterOperatorGeneralizes
	FilterOperatorExists
)

func (FilterOperator) Code

func (code FilterOperator) Code() string

func (FilterOperator) Definition

func (code FilterOperator) Definition() string

func (FilterOperator) Display

func (code FilterOperator) Display() string

func (FilterOperator) MarshalJSON

func (code FilterOperator) MarshalJSON() ([]byte, error)

func (FilterOperator) String

func (code FilterOperator) String() string

func (*FilterOperator) UnmarshalJSON

func (code *FilterOperator) UnmarshalJSON(json []byte) error

type HTTPVerb

type HTTPVerb int

HTTPVerb is documented here http://hl7.org/fhir/ValueSet/http-verb

const (
	HTTPVerbGET HTTPVerb = iota
	HTTPVerbHEAD
	HTTPVerbPOST
	HTTPVerbPUT
	HTTPVerbDELETE
	HTTPVerbPATCH
)

func (HTTPVerb) Code

func (code HTTPVerb) Code() string

func (HTTPVerb) Definition

func (code HTTPVerb) Definition() string

func (HTTPVerb) Display

func (code HTTPVerb) Display() string

func (HTTPVerb) MarshalJSON

func (code HTTPVerb) MarshalJSON() ([]byte, error)

func (HTTPVerb) String

func (code HTTPVerb) String() string

func (*HTTPVerb) UnmarshalJSON

func (code *HTTPVerb) UnmarshalJSON(json []byte) error

type Identifier

type Identifier struct {
	ID        *string          `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension      `bson:"extension,omitempty" json:"extension,omitempty"`
	Use       *IdentifierUse   `bson:"use,omitempty" json:"use,omitempty"`
	Type      *CodeableConcept `bson:"type,omitempty" json:"type,omitempty"`
	System    *string          `bson:"system,omitempty" json:"system,omitempty"`
	Value     *string          `bson:"value,omitempty" json:"value,omitempty"`
	Period    *Period          `bson:"period,omitempty" json:"period,omitempty"`
	Assigner  *Reference       `bson:"assigner,omitempty" json:"assigner,omitempty"`
}

Identifier is documented here http://hl7.org/fhir/StructureDefinition/Identifier

type IdentifierUse

type IdentifierUse int

IdentifierUse is documented here http://hl7.org/fhir/ValueSet/identifier-use

const (
	IdentifierUseUsual IdentifierUse = iota
	IdentifierUseOfficial
	IdentifierUseTemp
	IdentifierUseSecondary
	IdentifierUseOld
)

func (IdentifierUse) Code

func (code IdentifierUse) Code() string

func (IdentifierUse) Definition

func (code IdentifierUse) Definition() string

func (IdentifierUse) Display

func (code IdentifierUse) Display() string

func (IdentifierUse) MarshalJSON

func (code IdentifierUse) MarshalJSON() ([]byte, error)

func (IdentifierUse) String

func (code IdentifierUse) String() string

func (*IdentifierUse) UnmarshalJSON

func (code *IdentifierUse) UnmarshalJSON(json []byte) error

type Meta

type Meta struct {
	ID          *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension   []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	VersionId   *string     `bson:"versionId,omitempty" json:"versionId,omitempty"`
	LastUpdated *string     `bson:"lastUpdated,omitempty" json:"lastUpdated,omitempty"`
	Source      *string     `bson:"source,omitempty" json:"source,omitempty"`
	Profile     []string    `bson:"profile,omitempty" json:"profile,omitempty"`
	Security    []Coding    `bson:"security,omitempty" json:"security,omitempty"`
	Tag         []Coding    `bson:"tag,omitempty" json:"tag,omitempty"`
}

Meta is documented here http://hl7.org/fhir/StructureDefinition/Meta

type Narrative

type Narrative struct {
	ID        *string         `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension     `bson:"extension,omitempty" json:"extension,omitempty"`
	Status    NarrativeStatus `bson:"status" json:"status"`
	Div       string          `bson:"div" json:"div"`
}

Narrative is documented here http://hl7.org/fhir/StructureDefinition/Narrative

type NarrativeStatus

type NarrativeStatus int

NarrativeStatus is documented here http://hl7.org/fhir/ValueSet/narrative-status

const (
	NarrativeStatusGenerated NarrativeStatus = iota
	NarrativeStatusExtensions
	NarrativeStatusAdditional
	NarrativeStatusEmpty
)

func (NarrativeStatus) Code

func (code NarrativeStatus) Code() string

func (NarrativeStatus) Definition

func (code NarrativeStatus) Definition() string

func (NarrativeStatus) Display

func (code NarrativeStatus) Display() string

func (NarrativeStatus) MarshalJSON

func (code NarrativeStatus) MarshalJSON() ([]byte, error)

func (NarrativeStatus) String

func (code NarrativeStatus) String() string

func (*NarrativeStatus) UnmarshalJSON

func (code *NarrativeStatus) UnmarshalJSON(json []byte) error

type OtherBundle

type OtherBundle Bundle

type OtherCodeSystem

type OtherCodeSystem CodeSystem

type OtherStructureDefinition

type OtherStructureDefinition StructureDefinition

type OtherValueSet

type OtherValueSet ValueSet

type Period

type Period struct {
	ID        *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	Start     *DateTime   `bson:"start,omitempty" json:"start,omitempty"`
	End       *DateTime   `bson:"end,omitempty" json:"end,omitempty"`
}

Period is documented here http://hl7.org/fhir/StructureDefinition/Period

type Precision

type Precision int
const (
	TimestampPrecision Precision = iota
	DatePrecision
	YearMonthPrecision
	YearPrecision
)

func (Precision) String

func (p Precision) String() string

type PropertyRepresentation

type PropertyRepresentation int

PropertyRepresentation is documented here http://hl7.org/fhir/ValueSet/property-representation

const (
	PropertyRepresentationXmlAttr PropertyRepresentation = iota
	PropertyRepresentationXmlText
	PropertyRepresentationTypeAttr
	PropertyRepresentationCdaText
	PropertyRepresentationXhtml
)

func (PropertyRepresentation) Code

func (code PropertyRepresentation) Code() string

func (PropertyRepresentation) Definition

func (code PropertyRepresentation) Definition() string

func (PropertyRepresentation) Display

func (code PropertyRepresentation) Display() string

func (PropertyRepresentation) MarshalJSON

func (code PropertyRepresentation) MarshalJSON() ([]byte, error)

func (PropertyRepresentation) String

func (code PropertyRepresentation) String() string

func (*PropertyRepresentation) UnmarshalJSON

func (code *PropertyRepresentation) UnmarshalJSON(json []byte) error

type PropertyType

type PropertyType int

PropertyType is documented here http://hl7.org/fhir/ValueSet/concept-property-type

const (
	PropertyTypeCode PropertyType = iota
	PropertyTypeCoding
	PropertyTypeString
	PropertyTypeInteger
	PropertyTypeBoolean
	PropertyTypeDateTime
	PropertyTypeDecimal
)

func (PropertyType) Code

func (code PropertyType) Code() string

func (PropertyType) Definition

func (code PropertyType) Definition() string

func (PropertyType) Display

func (code PropertyType) Display() string

func (PropertyType) MarshalJSON

func (code PropertyType) MarshalJSON() ([]byte, error)

func (PropertyType) String

func (code PropertyType) String() string

func (*PropertyType) UnmarshalJSON

func (code *PropertyType) UnmarshalJSON(json []byte) error

type PublicationStatus

type PublicationStatus int

PublicationStatus is documented here http://hl7.org/fhir/ValueSet/publication-status

const (
	PublicationStatusDraft PublicationStatus = iota
	PublicationStatusActive
	PublicationStatusRetired
	PublicationStatusUnknown
)

func (PublicationStatus) Code

func (code PublicationStatus) Code() string

func (PublicationStatus) Definition

func (code PublicationStatus) Definition() string

func (PublicationStatus) Display

func (code PublicationStatus) Display() string

func (PublicationStatus) MarshalJSON

func (code PublicationStatus) MarshalJSON() ([]byte, error)

func (PublicationStatus) String

func (code PublicationStatus) String() string

func (*PublicationStatus) UnmarshalJSON

func (code *PublicationStatus) UnmarshalJSON(json []byte) error

type Reference

type Reference struct {
	ID         *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension  []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	Reference  *string     `bson:"reference,omitempty" json:"reference,omitempty"`
	Type       *string     `bson:"type,omitempty" json:"type,omitempty"`
	Identifier *Identifier `bson:"identifier,omitempty" json:"identifier,omitempty"`
	Display    *string     `bson:"display,omitempty" json:"display,omitempty"`
}

Reference is documented here http://hl7.org/fhir/StructureDefinition/Reference

type ReferenceVersionRules

type ReferenceVersionRules int

ReferenceVersionRules is documented here http://hl7.org/fhir/ValueSet/reference-version-rules

const (
	ReferenceVersionRulesEither ReferenceVersionRules = iota
	ReferenceVersionRulesIndependent
	ReferenceVersionRulesSpecific
)

func (ReferenceVersionRules) Code

func (code ReferenceVersionRules) Code() string

func (ReferenceVersionRules) Definition

func (code ReferenceVersionRules) Definition() string

func (ReferenceVersionRules) Display

func (code ReferenceVersionRules) Display() string

func (ReferenceVersionRules) MarshalJSON

func (code ReferenceVersionRules) MarshalJSON() ([]byte, error)

func (ReferenceVersionRules) String

func (code ReferenceVersionRules) String() string

func (*ReferenceVersionRules) UnmarshalJSON

func (code *ReferenceVersionRules) UnmarshalJSON(json []byte) error

type SearchEntryMode

type SearchEntryMode int

SearchEntryMode is documented here http://hl7.org/fhir/ValueSet/search-entry-mode

const (
	SearchEntryModeMatch SearchEntryMode = iota
	SearchEntryModeInclude
	SearchEntryModeOutcome
)

func (SearchEntryMode) Code

func (code SearchEntryMode) Code() string

func (SearchEntryMode) Definition

func (code SearchEntryMode) Definition() string

func (SearchEntryMode) Display

func (code SearchEntryMode) Display() string

func (SearchEntryMode) MarshalJSON

func (code SearchEntryMode) MarshalJSON() ([]byte, error)

func (SearchEntryMode) String

func (code SearchEntryMode) String() string

func (*SearchEntryMode) UnmarshalJSON

func (code *SearchEntryMode) UnmarshalJSON(json []byte) error

type Signature

type Signature struct {
	ID           *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension    []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	Type         []Coding    `bson:"type" json:"type"`
	When         string      `bson:"when" json:"when"`
	Who          Reference   `bson:"who" json:"who"`
	OnBehalfOf   *Reference  `bson:"onBehalfOf,omitempty" json:"onBehalfOf,omitempty"`
	TargetFormat *string     `bson:"targetFormat,omitempty" json:"targetFormat,omitempty"`
	SigFormat    *string     `bson:"sigFormat,omitempty" json:"sigFormat,omitempty"`
	Data         *string     `bson:"data,omitempty" json:"data,omitempty"`
}

Signature is documented here http://hl7.org/fhir/StructureDefinition/Signature

type SlicingRules

type SlicingRules int

SlicingRules is documented here http://hl7.org/fhir/ValueSet/resource-slicing-rules

const (
	SlicingRulesClosed SlicingRules = iota
	SlicingRulesOpen
	SlicingRulesOpenAtEnd
)

func (SlicingRules) Code

func (code SlicingRules) Code() string

func (SlicingRules) Definition

func (code SlicingRules) Definition() string

func (SlicingRules) Display

func (code SlicingRules) Display() string

func (SlicingRules) MarshalJSON

func (code SlicingRules) MarshalJSON() ([]byte, error)

func (SlicingRules) String

func (code SlicingRules) String() string

func (*SlicingRules) UnmarshalJSON

func (code *SlicingRules) UnmarshalJSON(json []byte) error

type StructureDefinition

type StructureDefinition struct {
	ID                *string                          `bson:"id,omitempty" json:"id,omitempty"`
	Meta              *Meta                            `bson:"meta,omitempty" json:"meta,omitempty"`
	ImplicitRules     *string                          `bson:"implicitRules,omitempty" json:"implicitRules,omitempty"`
	Language          *string                          `bson:"language,omitempty" json:"language,omitempty"`
	Text              *Narrative                       `bson:"text,omitempty" json:"text,omitempty"`
	Extension         []Extension                      `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension                      `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	URL               string                           `bson:"url" json:"url"`
	Identifier        []Identifier                     `bson:"identifier,omitempty" json:"identifier,omitempty"`
	Version           *string                          `bson:"version,omitempty" json:"version,omitempty"`
	Name              string                           `bson:"name" json:"name"`
	Title             *string                          `bson:"title,omitempty" json:"title,omitempty"`
	Status            PublicationStatus                `bson:"status" json:"status"`
	Experimental      *bool                            `bson:"experimental,omitempty" json:"experimental,omitempty"`
	Date              *DateTime                        `bson:"date,omitempty" json:"date,omitempty"`
	Publisher         *string                          `bson:"publisher,omitempty" json:"publisher,omitempty"`
	Contact           []ContactDetail                  `bson:"contact,omitempty" json:"contact,omitempty"`
	Description       *string                          `bson:"description,omitempty" json:"description,omitempty"`
	UseContext        []UsageContext                   `bson:"useContext,omitempty" json:"useContext,omitempty"`
	Jurisdiction      []CodeableConcept                `bson:"jurisdiction,omitempty" json:"jurisdiction,omitempty"`
	Purpose           *string                          `bson:"purpose,omitempty" json:"purpose,omitempty"`
	Copyright         *string                          `bson:"copyright,omitempty" json:"copyright,omitempty"`
	Keyword           []Coding                         `bson:"keyword,omitempty" json:"keyword,omitempty"`
	FhirVersion       *FHIRVersion                     `bson:"fhirVersion,omitempty" json:"fhirVersion,omitempty"`
	Mapping           []StructureDefinitionMapping     `bson:"mapping,omitempty" json:"mapping,omitempty"`
	Kind              StructureDefinitionKind          `bson:"kind" json:"kind"`
	Abstract          bool                             `bson:"abstract" json:"abstract"`
	Context           []StructureDefinitionContext     `bson:"context,omitempty" json:"context,omitempty"`
	ContextInvariant  []string                         `bson:"contextInvariant,omitempty" json:"contextInvariant,omitempty"`
	Type              string                           `bson:"type" json:"type"`
	BaseDefinition    *string                          `bson:"baseDefinition,omitempty" json:"baseDefinition,omitempty"`
	Derivation        *TypeDerivationRule              `bson:"derivation,omitempty" json:"derivation,omitempty"`
	Snapshot          *StructureDefinitionSnapshot     `bson:"snapshot,omitempty" json:"snapshot,omitempty"`
	Differential      *StructureDefinitionDifferential `bson:"differential,omitempty" json:"differential,omitempty"`
}

StructureDefinition is documented here http://hl7.org/fhir/StructureDefinition/StructureDefinition

func UnmarshalStructureDefinition

func UnmarshalStructureDefinition(b []byte) (StructureDefinition, error)

UnmarshalStructureDefinition unmarshals a StructureDefinition.

func (StructureDefinition) MarshalJSON

func (r StructureDefinition) MarshalJSON() ([]byte, error)

MarshalJSON marshals the given StructureDefinition as JSON into a byte slice

type StructureDefinitionContext

type StructureDefinitionContext struct {
	ID                *string              `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension          `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension          `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Type              ExtensionContextType `bson:"type" json:"type"`
	Expression        string               `bson:"expression" json:"expression"`
}

type StructureDefinitionDifferential

type StructureDefinitionDifferential struct {
	ID                *string             `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension         `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension         `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Element           []ElementDefinition `bson:"element" json:"element"`
}

type StructureDefinitionKind

type StructureDefinitionKind int

StructureDefinitionKind is documented here http://hl7.org/fhir/ValueSet/structure-definition-kind

const (
	StructureDefinitionKindPrimitiveType StructureDefinitionKind = iota
	StructureDefinitionKindComplexType
	StructureDefinitionKindResource
	StructureDefinitionKindLogical
)

func (StructureDefinitionKind) Code

func (code StructureDefinitionKind) Code() string

func (StructureDefinitionKind) Definition

func (code StructureDefinitionKind) Definition() string

func (StructureDefinitionKind) Display

func (code StructureDefinitionKind) Display() string

func (StructureDefinitionKind) MarshalJSON

func (code StructureDefinitionKind) MarshalJSON() ([]byte, error)

func (StructureDefinitionKind) String

func (code StructureDefinitionKind) String() string

func (*StructureDefinitionKind) UnmarshalJSON

func (code *StructureDefinitionKind) UnmarshalJSON(json []byte) error

type StructureDefinitionMapping

type StructureDefinitionMapping struct {
	ID                *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Identity          string      `bson:"identity" json:"identity"`
	URI               *string     `bson:"uri,omitempty" json:"uri,omitempty"`
	Name              *string     `bson:"name,omitempty" json:"name,omitempty"`
	Comment           *string     `bson:"comment,omitempty" json:"comment,omitempty"`
}

type StructureDefinitionSnapshot

type StructureDefinitionSnapshot struct {
	ID                *string             `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension         `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension         `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Element           []ElementDefinition `bson:"element" json:"element"`
}

type Time

type Time struct {
	// contains filtered or unexported fields
}

Time.

func NewTime

func NewTime(hour, minute, second int) *Time

func ParseTime

func ParseTime(s string) (t Time, err error)

func (Time) Hour

func (t Time) Hour() int

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) Minute

func (t Time) Minute() int

func (Time) Second

func (t Time) Second() int

func (*Time) Set

func (t *Time) Set(hour, minute, second int)

func (Time) String

func (t Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) (err error)

type TypeDerivationRule

type TypeDerivationRule int

TypeDerivationRule is documented here http://hl7.org/fhir/ValueSet/type-derivation-rule

const (
	TypeDerivationRuleSpecialization TypeDerivationRule = iota
	TypeDerivationRuleConstraint
)

func (TypeDerivationRule) Code

func (code TypeDerivationRule) Code() string

func (TypeDerivationRule) Definition

func (code TypeDerivationRule) Definition() string

func (TypeDerivationRule) Display

func (code TypeDerivationRule) Display() string

func (TypeDerivationRule) MarshalJSON

func (code TypeDerivationRule) MarshalJSON() ([]byte, error)

func (TypeDerivationRule) String

func (code TypeDerivationRule) String() string

func (*TypeDerivationRule) UnmarshalJSON

func (code *TypeDerivationRule) UnmarshalJSON(json []byte) error

type UsageContext

type UsageContext struct {
	ID        *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	Code      Coding      `bson:"code" json:"code"`
}

UsageContext is documented here http://hl7.org/fhir/StructureDefinition/UsageContext

type ValueSet

type ValueSet struct {
	ID                *string            `bson:"id,omitempty" json:"id,omitempty"`
	Meta              *Meta              `bson:"meta,omitempty" json:"meta,omitempty"`
	ImplicitRules     *string            `bson:"implicitRules,omitempty" json:"implicitRules,omitempty"`
	Language          *string            `bson:"language,omitempty" json:"language,omitempty"`
	Text              *Narrative         `bson:"text,omitempty" json:"text,omitempty"`
	Extension         []Extension        `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension        `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	URL               *string            `bson:"url,omitempty" json:"url,omitempty"`
	Identifier        []Identifier       `bson:"identifier,omitempty" json:"identifier,omitempty"`
	Version           *string            `bson:"version,omitempty" json:"version,omitempty"`
	Name              *string            `bson:"name,omitempty" json:"name,omitempty"`
	Title             *string            `bson:"title,omitempty" json:"title,omitempty"`
	Status            PublicationStatus  `bson:"status" json:"status"`
	Experimental      *bool              `bson:"experimental,omitempty" json:"experimental,omitempty"`
	Date              *DateTime          `bson:"date,omitempty" json:"date,omitempty"`
	Publisher         *string            `bson:"publisher,omitempty" json:"publisher,omitempty"`
	Contact           []ContactDetail    `bson:"contact,omitempty" json:"contact,omitempty"`
	Description       *string            `bson:"description,omitempty" json:"description,omitempty"`
	UseContext        []UsageContext     `bson:"useContext,omitempty" json:"useContext,omitempty"`
	Jurisdiction      []CodeableConcept  `bson:"jurisdiction,omitempty" json:"jurisdiction,omitempty"`
	Immutable         *bool              `bson:"immutable,omitempty" json:"immutable,omitempty"`
	Purpose           *string            `bson:"purpose,omitempty" json:"purpose,omitempty"`
	Copyright         *string            `bson:"copyright,omitempty" json:"copyright,omitempty"`
	Compose           *ValueSetCompose   `bson:"compose,omitempty" json:"compose,omitempty"`
	Expansion         *ValueSetExpansion `bson:"expansion,omitempty" json:"expansion,omitempty"`
}

ValueSet is documented here http://hl7.org/fhir/StructureDefinition/ValueSet

func UnmarshalValueSet

func UnmarshalValueSet(b []byte) (ValueSet, error)

UnmarshalValueSet unmarshals a ValueSet.

func (ValueSet) MarshalJSON

func (r ValueSet) MarshalJSON() ([]byte, error)

MarshalJSON marshals the given ValueSet as JSON into a byte slice

type ValueSetCompose

type ValueSetCompose struct {
	ID                *string                  `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension              `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension              `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	LockedDate        *DateTime                `bson:"lockedDate,omitempty" json:"lockedDate,omitempty"`
	Inactive          *bool                    `bson:"inactive,omitempty" json:"inactive,omitempty"`
	Include           []ValueSetComposeInclude `bson:"include" json:"include"`
	Exclude           []ValueSetComposeInclude `bson:"exclude,omitempty" json:"exclude,omitempty"`
}

type ValueSetComposeInclude

type ValueSetComposeInclude struct {
	ID                *string                         `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension                     `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension                     `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	System            *string                         `bson:"system,omitempty" json:"system,omitempty"`
	Version           *string                         `bson:"version,omitempty" json:"version,omitempty"`
	Concept           []ValueSetComposeIncludeConcept `bson:"concept,omitempty" json:"concept,omitempty"`
	Filter            []ValueSetComposeIncludeFilter  `bson:"filter,omitempty" json:"filter,omitempty"`
	ValueSet          []string                        `bson:"valueSet,omitempty" json:"valueSet,omitempty"`
}

type ValueSetComposeIncludeConcept

type ValueSetComposeIncludeConcept struct {
	ID                *string                                    `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension                                `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension                                `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Code              string                                     `bson:"code" json:"code"`
	Display           *string                                    `bson:"display,omitempty" json:"display,omitempty"`
	Designation       []ValueSetComposeIncludeConceptDesignation `bson:"designation,omitempty" json:"designation,omitempty"`
}

type ValueSetComposeIncludeConceptDesignation

type ValueSetComposeIncludeConceptDesignation struct {
	ID                *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Language          *string     `bson:"language,omitempty" json:"language,omitempty"`
	Use               *Coding     `bson:"use,omitempty" json:"use,omitempty"`
	Value             string      `bson:"value" json:"value"`
}

type ValueSetComposeIncludeFilter

type ValueSetComposeIncludeFilter struct {
	ID                *string        `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension    `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension    `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Property          string         `bson:"property" json:"property"`
	Op                FilterOperator `bson:"op" json:"op"`
	Value             string         `bson:"value" json:"value"`
}

type ValueSetExpansion

type ValueSetExpansion struct {
	ID                *string                      `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension                  `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension                  `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Identifier        *string                      `bson:"identifier,omitempty" json:"identifier,omitempty"`
	Timestamp         DateTime                     `bson:"timestamp" json:"timestamp"`
	Total             *int                         `bson:"total,omitempty" json:"total,omitempty"`
	Offset            *int                         `bson:"offset,omitempty" json:"offset,omitempty"`
	Parameter         []ValueSetExpansionParameter `bson:"parameter,omitempty" json:"parameter,omitempty"`
	Contains          []ValueSetExpansionContains  `bson:"contains,omitempty" json:"contains,omitempty"`
}

type ValueSetExpansionContains

type ValueSetExpansionContains struct {
	ID                *string                                    `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension                                `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension                                `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	System            *string                                    `bson:"system,omitempty" json:"system,omitempty"`
	Abstract          *bool                                      `bson:"abstract,omitempty" json:"abstract,omitempty"`
	Inactive          *bool                                      `bson:"inactive,omitempty" json:"inactive,omitempty"`
	Version           *string                                    `bson:"version,omitempty" json:"version,omitempty"`
	Code              *string                                    `bson:"code,omitempty" json:"code,omitempty"`
	Display           *string                                    `bson:"display,omitempty" json:"display,omitempty"`
	Designation       []ValueSetComposeIncludeConceptDesignation `bson:"designation,omitempty" json:"designation,omitempty"`
	Contains          []ValueSetExpansionContains                `bson:"contains,omitempty" json:"contains,omitempty"`
}

type ValueSetExpansionParameter

type ValueSetExpansionParameter struct {
	ID                *string     `bson:"id,omitempty" json:"id,omitempty"`
	Extension         []Extension `bson:"extension,omitempty" json:"extension,omitempty"`
	ModifierExtension []Extension `bson:"modifierExtension,omitempty" json:"modifierExtension,omitempty"`
	Name              string      `bson:"name" json:"name"`
}

Jump to

Keyboard shortcuts

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