Documentation ¶
Index ¶
- Constants
- type Builtin
- type Cardinality
- func (c *Cardinality) FromBaseElementDefinition(ed *fhir.ElementDefinition) (err error)
- func (c *Cardinality) FromElementDefinition(ed *fhir.ElementDefinition) (err error)
- func (c *Cardinality) IsDisabled() bool
- func (c *Cardinality) IsList() bool
- func (c *Cardinality) IsOptional() bool
- func (c *Cardinality) IsRequired() bool
- func (c *Cardinality) IsScalar() bool
- func (c *Cardinality) IsUnboundedList() bool
- func (c *Cardinality) String() string
- type Code
- type CodeSystem
- type Field
- type Model
- type Type
- func (t *Type) HasDerived() bool
- func (t *Type) InPackage(pkg string) bool
- func (t *Type) IsComplex() bool
- func (t *Type) IsConstraint() bool
- func (t *Type) IsExtension() bool
- func (t *Type) IsPrimitive() bool
- func (t *Type) IsResource() bool
- func (t *Type) IsSpecialization() bool
- func (t *Type) Package() string
- func (t *Type) Version() string
- type TypeKind
- type TypeSet
- func (ts *TypeSet) Add(t *Type)
- func (ts *TypeSet) All() []*Type
- func (ts *TypeSet) Base() string
- func (ts *TypeSet) ComplexTypes() *TypeSet
- func (ts *TypeSet) DefinedInPackage(pkg registry.PackageRef) *TypeSet
- func (ts *TypeSet) Get(url string) *Type
- func (ts *TypeSet) InBase() *TypeSet
- func (ts *TypeSet) Lookup(url string) (*Type, bool)
- func (ts *TypeSet) PrimitiveTypes() *TypeSet
- func (ts *TypeSet) Resources() *TypeSet
- func (ts *TypeSet) TypesMatching(condition func(*Type) bool) *TypeSet
- type TypeSource
Constants ¶
View Source
const Unbound = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builtin ¶
type Builtin struct { // Name is the name of the builtin type. Name string // Regex is a regular expression that the value must match. Regex *regexp.Regexp }
Builtin is a helper type that is used to represent language-level builtin types.
func (*Builtin) ValidateString ¶
type Cardinality ¶
Cardinality represents the cardinality of an element.
func (*Cardinality) FromBaseElementDefinition ¶
func (c *Cardinality) FromBaseElementDefinition(ed *fhir.ElementDefinition) (err error)
func (*Cardinality) FromElementDefinition ¶
func (c *Cardinality) FromElementDefinition(ed *fhir.ElementDefinition) (err error)
func (*Cardinality) IsDisabled ¶
func (c *Cardinality) IsDisabled() bool
func (*Cardinality) IsList ¶
func (c *Cardinality) IsList() bool
func (*Cardinality) IsOptional ¶
func (c *Cardinality) IsOptional() bool
func (*Cardinality) IsRequired ¶
func (c *Cardinality) IsRequired() bool
func (*Cardinality) IsScalar ¶
func (c *Cardinality) IsScalar() bool
func (*Cardinality) IsUnboundedList ¶
func (c *Cardinality) IsUnboundedList() bool
func (*Cardinality) String ¶
func (c *Cardinality) String() string
type Code ¶
type Code struct { // Value is the actual string code value. Value string // Display is the human readable display value. Display string // Definition is the definition of the code. Definition string }
Code represents a code that is defined in a code system.
type CodeSystem ¶
type CodeSystem struct { // Package is the name of the package that the code system is defined in. Package string // Version is the version of the package that the code system is defined in. Version string // Description is the full description of the code system. Description string // URL is the URL of the code system. URL string // Name is the name of the code system. Name string // Title is the title of the code system. Title string // Status is the publication status of the code system. Status string // Codes is a list of all the codes that are defined in the code system. Codes []Code }
CodeSystem represents a FHIR code system.
type Field ¶
type Field struct { Name string Path string Short string Comment string Definition string Type *Type Alternatives []*Type Builtin *Builtin Cardinality Cardinality BaseCardinality Cardinality }
func (*Field) IsDisabled ¶
func (*Field) IsNarrowed ¶
func (*Field) IsOptional ¶
func (*Field) IsRequired ¶
func (*Field) IsUnboundedList ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewModel ¶
func NewModel(module *conformance.Module) *Model
func (*Model) CodeSystems ¶
func (m *Model) CodeSystems() []*CodeSystem
func (*Model) DefineAllTypes ¶
func (*Model) DefineType ¶
type Type ¶
type Type struct { Source *TypeSource Short string Comment string Description string URL string Name string Kind TypeKind Base *Type Derived []*Type IsAbstract bool Fields []*Field SubTypes []*Type }
func CommonBase ¶
func (*Type) HasDerived ¶
func (*Type) IsConstraint ¶
func (*Type) IsExtension ¶
func (*Type) IsPrimitive ¶
func (*Type) IsResource ¶
func (*Type) IsSpecialization ¶
type TypeSet ¶
type TypeSet struct {
// contains filtered or unexported fields
}
func DefaultTypeSet ¶
func DefaultTypeSet() *TypeSet
func NewTypeSet ¶
func (*TypeSet) ComplexTypes ¶
func (*TypeSet) DefinedInPackage ¶
func (ts *TypeSet) DefinedInPackage(pkg registry.PackageRef) *TypeSet
func (*TypeSet) PrimitiveTypes ¶
type TypeSource ¶
type TypeSource struct { Package registry.PackageRef File string StructureDefinition *definition.StructureDefinition }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package conformance provides the FHIR Conformance Module definition.
|
Package conformance provides the FHIR Conformance Module definition. |
definition
Package definition provides the raw definitions for FHIR data types.
|
Package definition provides the raw definitions for FHIR data types. |
Click to show internal directories.
Click to hide internal directories.