PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Declares the existence of and describes a code system or code system supplement
CLOSED {
a [fhir:CodeSystem];
fhir:nodeRole [fhir:treeRoot]?;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:DomainResource.text @?; # Text summary of the resource, for
# human interpretation
fhir:DomainResource.contained @*; # Contained, inline Resources
fhir:DomainResource.extension @*; # Additional content defined by
# implementations
fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored
fhir:CodeSystem.url @?; # Canonical identifier for this code
# system, represented as a URI
# (globally unique) (Coding.system)
fhir:CodeSystem.identifier @*; # Additional identifier for the code
# system (business identifier)
fhir:CodeSystem.version @?; # Business version of the code
# system (Coding.version)
fhir:CodeSystem.name @?; # Name for this code system
# (computer friendly)
fhir:CodeSystem.title @?; # Name for this code system (human
# friendly)
fhir:CodeSystem.status @ AND
{fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:CodeSystem.experimental @?; # For testing purposes, not real
# usage
fhir:CodeSystem.date @?; # Date last changed
fhir:CodeSystem.publisher @?; # Name of the publisher
# (organization or individual)
fhir:CodeSystem.contact @*; # Contact details for the publisher
fhir:CodeSystem.description @?; # Natural language description of
# the code system
fhir:CodeSystem.useContext @*; # The context that the content is
# intended to support
fhir:CodeSystem.jurisdiction @*; # Intended jurisdiction for code
# system (if applicable)
fhir:CodeSystem.purpose @?; # Why this code system is defined
fhir:CodeSystem.copyright @?; # Use and/or publishing restrictions
fhir:CodeSystem.caseSensitive @?; # If code comparison is case
# sensitive
fhir:CodeSystem.valueSet @?; # Canonical reference to the value
# set with entire code system
fhir:CodeSystem.hierarchyMeaning @ AND
{fhir:value @fhirvs:codesystem-hierarchy-meaning}?; # grouped-by | is-a | part-of |
# classified-with
fhir:CodeSystem.compositional @?; # If code system defines a
# compositional grammar
fhir:CodeSystem.versionNeeded @?; # If definitions are not stable
fhir:CodeSystem.content @ AND
{fhir:value @fhirvs:codesystem-content-mode}; # not-present | example | fragment |
# complete | supplement
fhir:CodeSystem.supplements @?; # Canonical URL of Code System this
# adds designations and properties
# to
fhir:CodeSystem.count @?; # Total concepts in the code system
fhir:CodeSystem.filter @*; # Filter that can be used in a value
# set
fhir:CodeSystem.property @*; # Additional information supplied
# about each concept
fhir:CodeSystem.concept @*; # Concepts in the code system
fhir:index xsd:integer? # Relative position in a list
}
# Additional information supplied about each concept
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:CodeSystem.property.code @; # Identifies the property on the
# concepts, and when referred to in
# operations
fhir:CodeSystem.property.uri @?; # Formal identifier for the property
fhir:CodeSystem.property.description @?; # Why the property is defined,
# and/or what it conveys
fhir:CodeSystem.property.type @ AND
{fhir:value @fhirvs:concept-property-type}; # code | Coding | string | integer |
# boolean | dateTime | decimal
fhir:index xsd:integer? # Relative position in a list
}
# Concepts in the code system
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:CodeSystem.concept.code @; # Code that identifies concept
fhir:CodeSystem.concept.display @?; # Text to display to the user
fhir:CodeSystem.concept.definition @?; # Formal definition
fhir:CodeSystem.concept.designation @*; # Additional representations for the
# concept
fhir:CodeSystem.concept.property @*; # Property value for the concept
fhir:CodeSystem.concept.concept @*; # Child Concepts
# (is-a/contains/categorizes)
fhir:index xsd:integer? # Relative position in a list
}
# Filter that can be used in a value set
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:CodeSystem.filter.code @; # Code that identifies the filter
fhir:CodeSystem.filter.description @?; # How or why the filter is used
fhir:CodeSystem.filter.operator @ AND
{fhir:value @fhirvs:filter-operator}+; # = | is-a | descendent-of |
# is-not-a | regex | in | not-in |
# generalizes | exists
fhir:CodeSystem.filter.value @; # What to use for the value
fhir:index xsd:integer? # Relative position in a list
}
# Property value for the concept
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:CodeSystem.concept.property.code @; # Reference to
# CodeSystem.property.code
( # Value of the property for this
# concept
fhir:CodeSystem.concept.property.valueCode @ |
fhir:CodeSystem.concept.property.valueCoding @ |
fhir:CodeSystem.concept.property.valueString @ |
fhir:CodeSystem.concept.property.valueInteger @ |
fhir:CodeSystem.concept.property.valueBoolean @ |
fhir:CodeSystem.concept.property.valueDateTime @ |
fhir:CodeSystem.concept.property.valueDecimal @
);
fhir:index xsd:integer? # Relative position in a list
}
# Child Concepts (is-a/contains/categorizes)
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
# Additional representations for the concept
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:CodeSystem.concept.designation.language @?; # Human language of the designation
fhir:CodeSystem.concept.designation.use @?; # Details how this designation would
# be used
fhir:CodeSystem.concept.designation.value @; # The text value for this designation
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Primitive Type dateTime
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value dateTime?; # Primitive value for dateTime
fhir:index xsd:integer? # Relative position in a list
}
# Metadata about a resource
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Meta.versionId @?; # Version specific identifier
fhir:Meta.lastUpdated @?; # When the resource version last
# changed
fhir:Meta.source @?; # Identifies where the resource
# comes from
fhir:Meta.profile @*; # Profiles this resource claims to
# conform to
fhir:Meta.security @*; # Security Labels applied to this
# resource
fhir:Meta.tag @*; # Tags applied to this resource
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type code
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value code?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type string
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value string MAXLENGTH 1048576?; # Primitive value for string
fhir:index xsd:integer? # Relative position in a list
}
# Base Resource
{a .+;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:index xsd:integer?
}
# Primitive Type canonical
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value canonical?; # Primitive value for canonical
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type integer
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value integer MININCLUSIVE -2147483648 MAXINCLUSIVE 2147483647?; # Primitive value for integer
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type uri
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value uri?; # Primitive value for uri
fhir:index xsd:integer? # Relative position in a list
}
# Optional Extensions Element
CLOSED {
fhir:Element.id id?;
fhir:Element.extension @*;
fhir:Extension.url uri;
(
fhir:Extension.valueBase64Binary @ |
fhir:Extension.valueBoolean @ |
fhir:Extension.valueCanonical @ |
fhir:Extension.valueCode @ |
fhir:Extension.valueDate @ |
fhir:Extension.valueDateTime @ |
fhir:Extension.valueDecimal @ |
fhir:Extension.valueId @ |
fhir:Extension.valueInstant @ |
fhir:Extension.valueInteger @ |
fhir:Extension.valueMarkdown @ |
fhir:Extension.valueOid @ |
fhir:Extension.valuePositiveInt @ |
fhir:Extension.valueString @ |
fhir:Extension.valueTime @