PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Measurements and simple assertions
CLOSED {
a [fhir:Observation];
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:Observation.identifier @*; # Business Identifier for observation
fhir:Observation.basedOn @*; # Fulfills plan, proposal or order
fhir:Observation.partOf @*; # Part of referenced event
fhir:Observation.status @ AND
{fhir:value @fhirvs:observation-status}; # registered | preliminary | final |
# amended +
fhir:Observation.category @*; # Classification of type of
# observation
fhir:Observation.code @; # Type of observation (code / type)
fhir:Observation.subject @?; # Who and/or what the observation is
# about
fhir:Observation.focus @*; # What the observation is about,
# when it is not about the subject
# of record
fhir:Observation.encounter @?; # Healthcare event during which this
# observation is made
( # Clinically relevant
# time/time-period for observation
fhir:Observation.effectiveDateTime @ |
fhir:Observation.effectivePeriod @ |
fhir:Observation.effectiveTiming @ |
fhir:Observation.effectiveInstant @
)?;
fhir:Observation.issued @?; # Date/Time this version was made
# available
fhir:Observation.performer @*; # Who is responsible for the
# observation
( # Actual result
fhir:Observation.valueQuantity @ |
fhir:Observation.valueCodeableConcept @ |
fhir:Observation.valueString @ |
fhir:Observation.valueBoolean @ |
fhir:Observation.valueInteger @ |
fhir:Observation.valueRange @ |
fhir:Observation.valueRatio @ |
fhir:Observation.valueSampledData @ |
fhir:Observation.valueTime @ |
fhir:Observation.valueDateTime @ |
fhir:Observation.valuePeriod @
)?;
fhir:Observation.dataAbsentReason @?; # Why the result is missing
fhir:Observation.interpretation @*; # High, low, normal, etc.
fhir:Observation.note @*; # Comments about the observation
fhir:Observation.bodySite @?; # Observed body part
fhir:Observation.method @?; # How it was done
fhir:Observation.specimen @?; # Specimen used for this observation
fhir:Observation.device @?; # (Measurement) Device
fhir:Observation.referenceRange @*; # Provides guide for interpretation
fhir:Observation.hasMember @*; # Related resource that belongs to
# the Observation group
fhir:Observation.derivedFrom @*; # Related measurements the
# observation is made from
fhir:Observation.component @*; # Component results
fhir:index xsd:integer? # Relative position in a list
}
# Provides guide for interpretation
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:Observation.referenceRange.low @?; # Low Range, if relevant
fhir:Observation.referenceRange.high @?; # High Range, if relevant
fhir:Observation.referenceRange.type @?; # Reference range qualifier
fhir:Observation.referenceRange.appliesTo @*; # Reference range population
fhir:Observation.referenceRange.age @?; # Applicable age range, if relevant
fhir:Observation.referenceRange.text @?; # Text based reference range in an
# observation
fhir:index xsd:integer? # Relative position in a list
}
# Component results
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:Observation.component.code @; # Type of component observation
# (code / type)
( # Actual component result
fhir:Observation.component.valueQuantity @ |
fhir:Observation.component.valueCodeableConcept @ |
fhir:Observation.component.valueString @ |
fhir:Observation.component.valueBoolean @ |
fhir:Observation.component.valueInteger @ |
fhir:Observation.component.valueRange @ |
fhir:Observation.component.valueRatio @ |
fhir:Observation.component.valueSampledData @ |
fhir:Observation.component.valueTime @ |
fhir:Observation.component.valueDateTime @ |
fhir:Observation.component.valuePeriod @
)?;
fhir:Observation.component.dataAbsentReason @?; # Why the component result is missing
fhir:Observation.component.interpretation @*; # High, low, normal, etc.
fhir:Observation.component.referenceRange @*; # Provides guide for interpretation
# of component result
fhir:index xsd:integer? # Relative position in a list
}
# Provides guide for interpretation of component result
CLOSED {
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
}
# A reference from one resource to another
CLOSED {
fhir:link IRI?;
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Reference.reference @?; # Literal reference, Relative,
# internal or absolute URL
fhir:Reference.type @?; # Type the reference refers to (e.g.
# "Patient")
fhir:Reference.identifier @?; # Logical reference, when literal
# reference is not known
fhir:Reference.display @?; # Text alternative for the resource
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?
}
# A fixed quantity (no comparator)
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Quantity.value @?; # Numerical value (with implicit
# precision)
fhir:Quantity.unit @?; # Unit representation
fhir:Quantity.system @?; # System that defines coded unit form
fhir:Quantity.code @?; # Coded form of the unit
fhir:index xsd:integer? # Relative position in a list
}
# Time range defined by start and end date/time
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Period.start @?; # Starting time with inclusive
# boundary
fhir:Period.end @?; # End time with inclusive boundary,
# if not ongoing
fhir:index xsd:integer? # Relative position in a list
}
# A measured or measurable amount
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Quantity.value @?; # Numerical value (with implicit
# precision)
fhir:Quantity.comparator @ AND
{fhir:value @fhirvs:quantity-comparator}?; # < | <= | >= | > - how to
# understand the value
fhir:Quantity.unit @?; # Unit representation
fhir:Quantity.system @?; # System that defines coded unit form
fhir:Quantity.code @?; # Coded form of the unit
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
}
# Set of values bounded by low and high
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Range.low @?; # Low limit
fhir:Range.high @?; # High limit
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
}
# Text node with attribution
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
( # Individual responsible for the
# annotation
fhir:Annotation.authorReference @ |
fhir:Annotation.authorString @
)?;
fhir:Annotation.time @?; # When the annotation was made
fhir:Annotation.text @; # The annotation - text content (as
# markdown)
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type instant
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value instant?; # Primitive value for instant
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 @ |
fhir:Extension.valueUnsignedInt @ |
fhir:Extension.valueUri @ |
fhir:Extension.valueUrl @ |
fhir:Extension.valueUuid @ |
fhir:Extension.valueAddress @ |
fhir:Extension.valueAge @ |
fhir:Extension.valueAnnotation @ |
fhir:Extension.valueAttachment @ |
fhir:Extension.valueCodeableConcept @ |
fhir:Extension.valueCodeableReference @ |
fhir:Extension.valueCoding @ |
fhir:Extension.valueContactPoint @ |
fhir:Extension.valueCount @ |
fhir:Extension.valueDistance @ |
fhir:Extension.valueDuration @ |
fhir:Extension.valueHumanName @ |
fhir:Extension.valueIdentifier @ |
fhir:Extension.valueMoney @ |
fhir:Extension.valuePeriod @ |
fhir:Extension.valueQuantity @ |
fhir:Extension.valueRange @ |
fhir:Extension.valueRatio @ |
fhir:Extension.valueRatioRange @ |
fhir:Extension.valueReference @ |
fhir:Extension.valueSampledData @ |
fhir:Extension.valueSignature @ |
fhir:Extension.valueTiming @ |
fhir:Extension.valueContactDetail @ |
fhir:Extension.valueContributor @ |
fhir:Extension.valueDataRequirement @ |
fhir:Extension.valueExpression @ |
fhir:Extension.valueParameterDefinition @ |
fhir:Extension.valueRelatedArtifact @ |
fhir:Extension.valueTriggerDefinition @ |
fhir:Extension.valueUsageContext @ |
fhir:Extension.valueDosage @
)?;
fhir:index xsd:integer? # Relative position in a list
}
# An identifier intended for computation
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Identifier.use @ AND
{fhir:value @fhirvs:identifier-use}?; # usual | official | temp |
# secondary | old (If known)
fhir:Identifier.type @?; # Description of identifier
fhir:Identifier.system @?; # The namespace for the identifier
# value
fhir:Identifier.value @?; # The value that is unique
fhir:Identifier.period @?; # Time period when id is/was valid
# for use
fhir:Identifier.assigner @?; # Organization that issued id (may
# be just text)
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type boolean
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value boolean?; # Primitive value for boolean
fhir:index xsd:integer? # Relative position in a list
}
# Human-readable summary of the resource (essential clinical and business information)
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Narrative.status @ AND
{fhir:value @fhirvs:narrative-status}; # generated | extensions |
# additional | empty
fhir:Narrative.div xsd:string; # Limited xhtml content
fhir:index xsd:integer? # Relative position in a list
}
# A series of measurements taken by a device
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:SampledData.origin @; # Zero value and units
fhir:SampledData.period @; # Number of milliseconds between
# samples
fhir:SampledData.factor @?; # Multiply data by this before
# adding to origin
fhir:SampledData.lowerLimit @?; # Lower limit of detection
fhir:SampledData.upperLimit @?; # Upper limit of detection
fhir:SampledData.dimensions @; # Number of sample points at each
# time point
fhir:SampledData.data @?; # Decimal values with spaces, or "E"
# | "U" | "L"
fhir:index xsd:integer? # Relative position in a list
}
# A ratio of two Quantity values - a numerator and a denominator
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Ratio.numerator @?; # Numerator value
fhir:Ratio.denominator @?; # Denominator value
fhir:index xsd:integer? # Relative position in a list
}
# A timing schedule that specifies an event that may occur multiple times
CLOSED {
fhir:Element.id 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:Timing.event @*; # When the event occurs
fhir:Timing.repeat @?; # When the event is to occur
fhir:Timing.code @?; # BID | TID | QID | AM | PM | QD |
# QOD | +
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type time
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value time?; # Primitive value for time
fhir:index xsd:integer? # Relative position in a list
}
# Concept - reference to a terminology or just text
CLOSED {
a NONLITERAL*;
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:CodeableConcept.coding @*; # Code defined by a terminology
# system
fhir:CodeableConcept.text @?; # Plain text representation of the
# concept
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
}
# An address expressed using postal conventions (as opposed to GPS or other location definition formats)
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Address.use @ AND
{fhir:value @fhirvs:address-use}?; # home | work | temp | old | billing
# - purpose of this address
fhir:Address.type @ AND
{fhir:value @fhirvs:address-type}?; # postal | physical | both
fhir:Address.text @?; # Text representation of the address
fhir:Address.line @*; # Street name, number, direction &
# P.O. Box etc.
fhir:Address.city @?; # Name of city, town etc.
fhir:Address.district @?; # District name (aka county)
fhir:Address.state @?; # Sub-unit of country (abbreviations
# ok)
fhir:Address.postalCode @?; # Postal code for area
fhir:Address.country @?; # Country (e.g. can be ISO 3166 2 or
# 3 letter code)
fhir:Address.period @?; # Time period when address was/is in
# use
fhir:index xsd:integer? # Relative position in a list
}
# Content in a format defined elsewhere
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Attachment.contentType @ AND
{fhir:value @fhirvs:mimetypes}?; # Mime type of the content, with
# charset etc.
fhir:Attachment.language @?; # Human language of the content
# (BCP-47)
fhir:Attachment.data @?; # Data inline, base64ed
fhir:Attachment.url @?; # Uri where the data can be found
fhir:Attachment.size @?; # Number of bytes of content (if url
# provided)
fhir:Attachment.hash @?; # Hash of the data (sha-1, base64ed)
fhir:Attachment.title @?; # Label to display in place of the
# data
fhir:Attachment.creation @?; # Date attachment was first created
fhir:index xsd:integer? # Relative position in a list
}
# A measured or measurable amount
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Quantity.value @?; # Numerical value (with implicit
# precision)
fhir:Quantity.comparator @ AND
{fhir:value @fhirvs:quantity-comparator}?; # < | <= | >= | > - how to
# understand the value
fhir:Quantity.unit @?; # Unit representation
fhir:Quantity.system @?; # System that defines coded unit form
fhir:Quantity.code @?; # Coded form of the unit
fhir:index xsd:integer? # Relative position in a list
}
# Describes a required data item
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:DataRequirement.type @ AND
{fhir:value @fhirvs:all-types}; # The type of the required data
fhir:DataRequirement.profile @