PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Search parameter for a resource
CLOSED {
a [fhir:SearchParameter];
fhir:nodeRole [fhir:treeRoot]?;
fhir:Resource.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:SearchParameter.url @; # Canonical identifier for this
# search parameter, represented as a
# URI (globally unique)
fhir:SearchParameter.version @?; # Business version of the search
# parameter
fhir:SearchParameter.name @; # Name for this search parameter
# (computer friendly)
fhir:SearchParameter.derivedFrom @?; # Original definition for the search
# parameter
fhir:SearchParameter.status @ AND
{fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:SearchParameter.experimental @?; # For testing purposes, not real
# usage
fhir:SearchParameter.date @?; # Date last changed
fhir:SearchParameter.publisher @?; # Name of the publisher
# (organization or individual)
fhir:SearchParameter.contact @*; # Contact details for the publisher
fhir:SearchParameter.description @; # Natural language description of
# the search parameter
fhir:SearchParameter.useContext @*; # The context that the content is
# intended to support
fhir:SearchParameter.jurisdiction @*; # Intended jurisdiction for search
# parameter (if applicable)
fhir:SearchParameter.purpose @?; # Why this search parameter is
# defined
fhir:SearchParameter.code @; # Code used in URL
fhir:SearchParameter.base @ AND
{fhir:value @fhirvs:resource-types}+; # The resource type(s) this search
# parameter applies to
fhir:SearchParameter.type @ AND
{fhir:value @fhirvs:search-param-type}; # number | date | string | token |
# reference | composite | quantity |
# uri | special
fhir:SearchParameter.expression @?; # FHIRPath expression that extracts
# the values
fhir:SearchParameter.xpath @?; # XPath that extracts the values
fhir:SearchParameter.xpathUsage @ AND
{fhir:value @fhirvs:search-xpath-usage}?; # normal | phonetic | nearby |
# distance | other
fhir:SearchParameter.target @ AND
{fhir:value @fhirvs:resource-types}*; # Types of resource (if a resource
# reference)
fhir:SearchParameter.multipleOr @?; # Allow multiple values per
# parameter (or)
fhir:SearchParameter.multipleAnd @?; # Allow multiple parameters (and)
fhir:SearchParameter.comparator @ AND
{fhir:value @fhirvs:search-comparator}*; # eq | ne | gt | lt | ge | le | sa |
# eb | ap
fhir:SearchParameter.modifier @ AND
{fhir:value @fhirvs:search-modifier-code}*; # missing | exact | contains | not |
# text | in | not-in | below | above
# | type | identifier | ofType
fhir:SearchParameter.chain @*; # Chained names supported
fhir:SearchParameter.component @*; # For Composite resources to define
# the parts
fhir:index xsd:integer? # Relative position in a list
}
# For Composite resources to define the parts
CLOSED {
fhir:Element.id @?; # 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:SearchParameter.component.definition @; # Defines how the part works
fhir:SearchParameter.component.expression @; # Subexpression relative to main
# expression
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Primitive Type dateTime
CLOSED {
fhir:Element.id @?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value @?; # Primitive value for dateTime
fhir:index xsd:integer? # Relative position in a list
}
# Metadata about a resource
CLOSED {
fhir:Element.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 @?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value @?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type string
CLOSED {
fhir:Element.id @?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value @?; # Primitive value for string
fhir:index xsd:integer? # Relative position in a list
}
# Base Resource
{a .+;
fhir:Resource.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 @?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value @?; # Primitive value for canonical
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type uri
CLOSED {
fhir:Element.id @?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value @?; # Primitive value for uri
fhir:index xsd:integer? # Relative position in a list
}
# Optional Extensions Element
CLOSED {
fhir:Element.id @?;
fhir:Element.extension @*;
fhir:Extension.url @;
(
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 @