PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A set of codes drawn from one or more code systems
CLOSED {
a [fhir:ValueSet];
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:ValueSet.url @?; # Canonical identifier for this
# value set, represented as a URI
# (globally unique)
fhir:ValueSet.identifier @*; # Additional identifier for the
# value set (business identifier)
fhir:ValueSet.version @?; # Business version of the value set
fhir:ValueSet.name @?; # Name for this value set (computer
# friendly)
fhir:ValueSet.title @?; # Name for this value set (human
# friendly)
fhir:ValueSet.status @ AND
{fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:ValueSet.experimental @?; # For testing purposes, not real
# usage
fhir:ValueSet.date @?; # Date last changed
fhir:ValueSet.publisher @?; # Name of the publisher
# (organization or individual)
fhir:ValueSet.contact @*; # Contact details for the publisher
fhir:ValueSet.description @?; # Natural language description of
# the value set
fhir:ValueSet.useContext @*; # The context that the content is
# intended to support
fhir:ValueSet.jurisdiction @*; # Intended jurisdiction for value
# set (if applicable)
fhir:ValueSet.immutable @?; # Indicates whether or not any
# change to the content logical
# definition may occur
fhir:ValueSet.purpose @?; # Why this value set is defined
fhir:ValueSet.copyright @?; # Use and/or publishing restrictions
fhir:ValueSet.compose @?; # Content logical definition of the
# value set (CLD)
fhir:ValueSet.expansion @?; # Used when the value set is
# "expanded"
fhir:index xsd:integer? # Relative position in a list
}
# Content logical definition of the value set (CLD)
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:ValueSet.compose.lockedDate @?; # Fixed date for references with no
# specified version (transitive)
fhir:ValueSet.compose.inactive @?; # Whether inactive codes are in the
# value set
fhir:ValueSet.compose.include @+; # Include one or more codes from a
# code system or other value set(s)
fhir:ValueSet.compose.exclude @*; # Explicitly exclude codes from a
# code system or other value sets
fhir:index xsd:integer? # Relative position in a list
}
# Used when the value set is "expanded"
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:ValueSet.expansion.identifier @?; # Identifies the value set expansion
# (business identifier)
fhir:ValueSet.expansion.timestamp @; # Time ValueSet expansion happened
fhir:ValueSet.expansion.total @?; # Total number of codes in the
# expansion
fhir:ValueSet.expansion.offset @?; # Offset at which this resource
# starts
fhir:ValueSet.expansion.parameter @*; # Parameter that controlled the
# expansion process
fhir:ValueSet.expansion.contains @*; # Codes in the value set
fhir:index xsd:integer? # Relative position in a list
}
# Explicitly exclude codes from a code system or other value sets
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
# Parameter that controlled the expansion process
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:ValueSet.expansion.parameter.name @; # Name as assigned by the client or
# server
( # Value of the named parameter
fhir:ValueSet.expansion.parameter.valueString @ |
fhir:ValueSet.expansion.parameter.valueBoolean @ |
fhir:ValueSet.expansion.parameter.valueInteger @ |
fhir:ValueSet.expansion.parameter.valueDecimal @ |
fhir:ValueSet.expansion.parameter.valueUri @ |
fhir:ValueSet.expansion.parameter.valueCode @ |
fhir:ValueSet.expansion.parameter.valueDateTime @
)?;
fhir:index xsd:integer? # Relative position in a list
}
# Codes in the 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:ValueSet.expansion.contains.system @?; # System value for the code
fhir:ValueSet.expansion.contains.abstract @?; # If user cannot select this entry
fhir:ValueSet.expansion.contains.inactive @?; # If concept is inactive in the code
# system
fhir:ValueSet.expansion.contains.version @?; # Version in which this code/display
# is defined
fhir:ValueSet.expansion.contains.code @?; # Code - if blank, this is not a
# selectable code
fhir:ValueSet.expansion.contains.display @?; # User display for the concept
fhir:ValueSet.expansion.contains.designation @*; # Additional representations for
# this item
fhir:ValueSet.expansion.contains.contains @*; # Codes contained under this entry
fhir:index xsd:integer? # Relative position in a list
}
# Include one or more codes from a code system or other value set(s)
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:ValueSet.compose.include.system @?; # The system the codes come from
fhir:ValueSet.compose.include.version @?; # Specific version of the code
# system referred to
fhir:ValueSet.compose.include.concept @*; # A concept defined in the system
fhir:ValueSet.compose.include.filter @*; # Select codes/concepts by their
# properties (including
# relationships)
fhir:ValueSet.compose.include.valueSet @*; # Select the contents included in
# this value set
fhir:index xsd:integer? # Relative position in a list
}
# Select codes/concepts by their properties (including relationships)
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:ValueSet.compose.include.filter.property @; # A property/filter defined by the
# code system
fhir:ValueSet.compose.include.filter.op @ AND
{fhir:value @fhirvs:filter-operator}; # = | is-a | descendent-of |
# is-not-a | regex | in | not-in |
# generalizes | exists
fhir:ValueSet.compose.include.filter.value @; # Code from the system, or regex
# criteria, or boolean value for
# exists
fhir:index xsd:integer? # Relative position in a list
}
# Additional representations for this item
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
# A concept defined in the 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:ValueSet.compose.include.concept.code @; # Code or expression from system
fhir:ValueSet.compose.include.concept.display @?; # Text to display for this code for
# this value set in this valueset
fhir:ValueSet.compose.include.concept.designation @*; # Additional representations for
# this concept
fhir:index xsd:integer? # Relative position in a list
}
# Codes contained under this entry
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
# Additional representations for this 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:ValueSet.compose.include.concept.designation.language @?; # Human language of the designation
fhir:ValueSet.compose.include.concept.designation.use @?; # Types of uses of designations
fhir:ValueSet.compose.include.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
}
# Primitive Type date
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value date?; # Primitive value for date
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 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 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 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 @