PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A quality measure definition
CLOSED {
a [fhir:Measure];
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:Measure.url @?; # Canonical identifier for this
# measure, represented as a URI
# (globally unique)
fhir:Measure.identifier @*; # Additional identifier for the
# measure
fhir:Measure.version @?; # Business version of the measure
fhir:Measure.name @?; # Name for this measure (computer
# friendly)
fhir:Measure.title @?; # Name for this measure (human
# friendly)
fhir:Measure.subtitle @?; # Subordinate title of the measure
fhir:Measure.status @ AND
{fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:Measure.experimental @?; # For testing purposes, not real
# usage
( # E.g. Patient, Practitioner,
# RelatedPerson, Organization,
# Location, Device
fhir:Measure.subjectCodeableConcept @ |
fhir:Measure.subjectReference @
)?;
fhir:Measure.date @?; # Date last changed
fhir:Measure.publisher @?; # Name of the publisher
# (organization or individual)
fhir:Measure.contact @*; # Contact details for the publisher
fhir:Measure.description @?; # Natural language description of
# the measure
fhir:Measure.useContext @*; # The context that the content is
# intended to support
fhir:Measure.jurisdiction @*; # Intended jurisdiction for measure
# (if applicable)
fhir:Measure.purpose @?; # Why this measure is defined
fhir:Measure.usage @?; # Describes the clinical usage of
# the measure
fhir:Measure.copyright @?; # Use and/or publishing restrictions
fhir:Measure.approvalDate @?; # When the measure was approved by
# publisher
fhir:Measure.lastReviewDate @?; # When the measure was last reviewed
fhir:Measure.effectivePeriod @?; # When the measure is expected to be
# used
fhir:Measure.topic @*; # The category of the measure, such
# as Education, Treatment,
# Assessment, etc.
fhir:Measure.author @*; # Who authored the content
fhir:Measure.editor @*; # Who edited the content
fhir:Measure.reviewer @*; # Who reviewed the content
fhir:Measure.endorser @*; # Who endorsed the content
fhir:Measure.relatedArtifact @*; # Additional documentation,
# citations, etc.
fhir:Measure.library @*; # Logic used by the measure
fhir:Measure.disclaimer @?; # Disclaimer for use of the measure
# or its referenced content
fhir:Measure.scoring @?; # proportion | ratio |
# continuous-variable | cohort
fhir:Measure.compositeScoring @?; # opportunity | all-or-nothing |
# linear | weighted
fhir:Measure.type @*; # process | outcome | structure |
# patient-reported-outcome |
# composite
fhir:Measure.riskAdjustment @?; # How risk adjustment is applied for
# this measure
fhir:Measure.rateAggregation @?; # How is rate aggregation performed
# for this measure
fhir:Measure.rationale @?; # Detailed description of why the
# measure exists
fhir:Measure.clinicalRecommendationStatement @?; # Summary of clinical guidelines
fhir:Measure.improvementNotation @?; # increase | decrease
fhir:Measure.definition @*; # Defined terms used in the measure
# documentation
fhir:Measure.guidance @?; # Additional guidance for
# implementers
fhir:Measure.group @*; # Population criteria group
fhir:Measure.supplementalData @*; # What other data should be reported
# with the measure
fhir:index xsd:integer? # Relative position in a list
}
# What other data should be reported with the measure
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:Measure.supplementalData.code @?; # Meaning of the supplemental data
fhir:Measure.supplementalData.usage @*; # supplemental-data |
# risk-adjustment-factor
fhir:Measure.supplementalData.description @?; # The human readable description of
# this supplemental data
fhir:Measure.supplementalData.criteria @; # Expression describing additional
# data to be reported
fhir:index xsd:integer? # Relative position in a list
}
# Population criteria group
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:Measure.group.code @?; # Meaning of the group
fhir:Measure.group.description @?; # Summary description
fhir:Measure.group.population @*; # Population criteria
fhir:Measure.group.stratifier @*; # Stratifier criteria for the measure
fhir:index xsd:integer? # Relative position in a list
}
# Stratifier criteria for the measure
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:Measure.group.stratifier.code @?; # Meaning of the stratifier
fhir:Measure.group.stratifier.description @?; # The human readable description of
# this stratifier
fhir:Measure.group.stratifier.criteria @?; # How the measure should be
# stratified
fhir:Measure.group.stratifier.component @*; # Stratifier criteria component for
# the measure
fhir:index xsd:integer? # Relative position in a list
}
# Population criteria
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:Measure.group.population.code @?; # initial-population | numerator |
# numerator-exclusion | denominator
# | denominator-exclusion |
# denominator-exception |
# measure-population |
# measure-population-exclusion |
# measure-observation
fhir:Measure.group.population.description @?; # The human readable description of
# this population criteria
fhir:Measure.group.population.criteria @; # The criteria that defines this
# population
fhir:index xsd:integer? # Relative position in a list
}
# Stratifier criteria component for the measure
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:Measure.group.stratifier.component.code @?; # Meaning of the stratifier component
fhir:Measure.group.stratifier.component.description @?; # The human readable description of
# this stratifier component
fhir:Measure.group.stratifier.component.criteria @; # Component of how the measure
# should be stratified
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
}
# 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?
}
# 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
}
# 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
}
# Related artifacts for a knowledge resource
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:RelatedArtifact.type @ AND
{fhir:value @fhirvs:related-artifact-type}; # documentation | justification |
# citation | predecessor | successor
# | derived-from | depends-on |
# composed-of
fhir:RelatedArtifact.label @?; # Short label
fhir:RelatedArtifact.display @?; # Brief description of the related
# artifact
fhir:RelatedArtifact.citation @?; # Bibliographic citation for the
# artifact
fhir:RelatedArtifact.url @?; # Where the artifact can be accessed
fhir:RelatedArtifact.document @?; # What document is being referenced
fhir:RelatedArtifact.resource @?; # What resource is being referenced
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 @