PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A definition of an exposure, outcome, or other variable
CLOSED {
a [fhir:EvidenceVariable];
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:EvidenceVariable.url @?; # Canonical identifier for this
# evidence variable, represented as
# a URI (globally unique)
fhir:EvidenceVariable.identifier @*; # Additional identifier for the
# evidence variable
fhir:EvidenceVariable.version @?; # Business version of the evidence
# variable
fhir:EvidenceVariable.name @?; # Name for this evidence variable
# (computer friendly)
fhir:EvidenceVariable.title @?; # Name for this evidence variable
# (human friendly)
fhir:EvidenceVariable.shortTitle @?; # Title for use in informal contexts
fhir:EvidenceVariable.subtitle @?; # Subordinate title of the
# EvidenceVariable
fhir:EvidenceVariable.status @ AND
{fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:EvidenceVariable.date @?; # Date last changed
fhir:EvidenceVariable.description @?; # Natural language description of
# the evidence variable
fhir:EvidenceVariable.note @*; # Used for footnotes or explanatory
# notes
fhir:EvidenceVariable.useContext @*; # The context that the content is
# intended to support
fhir:EvidenceVariable.publisher @?; # Name of the publisher
# (organization or individual)
fhir:EvidenceVariable.contact @*; # Contact details for the publisher
fhir:EvidenceVariable.author @*; # Who authored the content
fhir:EvidenceVariable.editor @*; # Who edited the content
fhir:EvidenceVariable.reviewer @*; # Who reviewed the content
fhir:EvidenceVariable.endorser @*; # Who endorsed the content
fhir:EvidenceVariable.relatedArtifact @*; # Additional documentation,
# citations, etc.
fhir:EvidenceVariable.actual @?; # Actual or conceptual
fhir:EvidenceVariable.characteristicCombination @ AND
{fhir:value @fhirvs:characteristic-combination}?; # intersection | union
fhir:EvidenceVariable.characteristic @*; # What defines the members of the
# evidence element
fhir:EvidenceVariable.handling @ AND
{fhir:value @fhirvs:variable-handling}?; # continuous | dichotomous | ordinal
# | polychotomous
fhir:EvidenceVariable.category @*; # A grouping for ordinal or
# polychotomous variables
fhir:index xsd:integer? # Relative position in a list
}
# What defines the members of the evidence element
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:EvidenceVariable.characteristic.description @?; # Natural language description of
# the characteristic
( # What code or expression defines
# members?
fhir:EvidenceVariable.characteristic.definitionReference @ |
fhir:EvidenceVariable.characteristic.definitionCanonical @ |
fhir:EvidenceVariable.characteristic.definitionCodeableConcept @ |
fhir:EvidenceVariable.characteristic.definitionExpression @
);
fhir:EvidenceVariable.characteristic.method @?; # Method used for describing
# characteristic
fhir:EvidenceVariable.characteristic.device @?; # Device used for determining
# characteristic
fhir:EvidenceVariable.characteristic.exclude @?; # Whether the characteristic
# includes or excludes members
fhir:EvidenceVariable.characteristic.timeFromStart @?; # Observation time from study start
fhir:EvidenceVariable.characteristic.groupMeasure @ AND
{fhir:value @fhirvs:group-measure}?; # mean | median | mean-of-mean |
# mean-of-median | median-of-mean |
# median-of-median
fhir:index xsd:integer? # Relative position in a list
}
# A grouping for ordinal or polychotomous variables
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:EvidenceVariable.category.name @?; # Description of the grouping
( # Definition of the grouping
fhir:EvidenceVariable.category.valueCodeableConcept @ |
fhir:EvidenceVariable.category.valueQuantity @ |
fhir:EvidenceVariable.category.valueRange @
)?;
fhir:index xsd:integer? # Relative position in a list
}
# Observation time from study start
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:EvidenceVariable.characteristic.timeFromStart.description @?; # Human readable description
fhir:EvidenceVariable.characteristic.timeFromStart.quantity @?; # Used to express the observation at
# a defined amount of time after the
# study start
fhir:EvidenceVariable.characteristic.timeFromStart.range @?; # Used to express the observation
# within a period after the study
# start
fhir:EvidenceVariable.characteristic.timeFromStart.note @*; # Used for footnotes or explanatory
# notes
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 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 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
}
# 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
}
# 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 @