PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Medical care, research study or other healthcare event causing physical injury
CLOSED {
a [fhir:AdverseEvent];
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:AdverseEvent.identifier @?; # Business identifier for the event
fhir:AdverseEvent.actuality @ AND
{fhir:value @fhirvs:adverse-event-actuality}; # actual | potential
fhir:AdverseEvent.category @*; # product-problem | product-quality
# | product-use-error | wrong-dose |
# incorrect-prescribing-information
# | wrong-technique |
# wrong-route-of-administration |
# wrong-rate | wrong-duration |
# wrong-time | expired-drug |
# medical-device-use-error |
# problem-different-manufacturer |
# unsafe-physical-environment
fhir:AdverseEvent.event @?; # Type of the event itself in
# relation to the subject
fhir:AdverseEvent.subject @; # Subject impacted by event
fhir:AdverseEvent.encounter @?; # Encounter created as part of
fhir:AdverseEvent.date @?; # When the event occurred
fhir:AdverseEvent.detected @?; # When the event was detected
fhir:AdverseEvent.recordedDate @?; # When the event was recorded
fhir:AdverseEvent.resultingCondition @*; # Effect on the subject due to this
# event
fhir:AdverseEvent.location @?; # Location where adverse event
# occurred
fhir:AdverseEvent.seriousness @?; # Seriousness of the event
fhir:AdverseEvent.severity @?; # mild | moderate | severe
fhir:AdverseEvent.outcome @?; # resolved | recovering | ongoing |
# resolvedWithSequelae | fatal |
# unknown
fhir:AdverseEvent.recorder @?; # Who recorded the adverse event
fhir:AdverseEvent.contributor @*; # Who was involved in the adverse
# event or the potential adverse
# event
fhir:AdverseEvent.suspectEntity @*; # The suspected agent causing the
# adverse event
fhir:AdverseEvent.subjectMedicalHistory @*; # AdverseEvent.subjectMedicalHistory
fhir:AdverseEvent.referenceDocument @*; # AdverseEvent.referenceDocument
fhir:AdverseEvent.study @*; # AdverseEvent.study
fhir:index xsd:integer? # Relative position in a list
}
# The suspected agent causing the adverse event
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:AdverseEvent.suspectEntity.instance @; # Refers to the specific entity that
# caused the adverse event
fhir:AdverseEvent.suspectEntity.causality @*; # Information on the possible cause
# of the event
fhir:index xsd:integer? # Relative position in a list
}
# Information on the possible cause of the event
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:AdverseEvent.suspectEntity.causality.assessment @?; # Assessment of if the entity caused
# the event
fhir:AdverseEvent.suspectEntity.causality.productRelatedness @?; # AdverseEvent.suspectEntity.causa-
# lityProductRelatedness
fhir:AdverseEvent.suspectEntity.causality.author @?; # AdverseEvent.suspectEntity.causa-
# lityAuthor
fhir:AdverseEvent.suspectEntity.causality.method @?; # ProbabilityScale | Bayesian |
# Checklist
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# 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
}
# 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
}
# 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 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
}
# 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 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?
}
# 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
}
# 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
}
# 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
}
# 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 @*; # The profile of the required data
( # E.g. Patient, Practitioner,
# RelatedPerson, Organization,
# Location, Device
fhir:DataRequirement.subjectCodeableConcept @ |
fhir:DataRequirement.subjectReference @
)?;
fhir:DataRequirement.mustSupport @*; # Indicates specific structure
# elements that are referenced by
# the knowledge module
fhir:DataRequirement.codeFilter @*; # What codes are expected
fhir:DataRequirement.dateFilter @*; # What dates/date ranges are expected
fhir:DataRequirement.limit @?; # Number of results
fhir:DataRequirement.sort @*; # Order of the results
fhir:index xsd:integer? # Relative position in a list
}
# How the medication is/was taken or should be taken
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:Dosage.sequence @?; # The order of the dosage
# instructions
fhir:Dosage.text @?; # Free text dosage instructions e.g.
# SIG
fhir:Dosage.additionalInstruction @*; # Supplemental instruction or
# warnings to the patient - e.g.
# "with meals", "may cause
# drowsiness"
fhir:Dosage.patientInstruction @?; # Patient or consumer oriented
# instructions
fhir:Dosage.timing @?; # When medication should be
# administered
( # Take "as needed" (for x)
fhir:Dosage.asNeededBoolean @ |
fhir:Dosage.asNeededCodeableConcept @
)?;
fhir:Dosage.site @?; # Body site to administer to
fhir:Dosage.route @?; # How drug should enter body
fhir:Dosage.method @?; # Technique for administering
# medication
fhir:Dosage.doseAndRate @*; # Amount of medication administered
fhir:Dosage.maxDosePerPeriod @?; # Upper limit on medication per unit
# of time
fhir:Dosage.maxDosePerAdministration @?; # Upper limit on medication per
# administration
fhir:Dosage.maxDosePerLifetime @?; # Upper limit on medication per
# lifetime of the patient
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type uuid
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value uuid?; # Primitive value for uuid
fhir:index xsd:integer? # Relative position in a list
}
# Range of ratio values
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:RatioRange.lowNumerator @?; # Low Numerator limit
fhir:RatioRange.highNumerator @?; # High Numerator limit
fhir:RatioRange.denominator @?; # Denominator value
fhir:index xsd:integer? # Relative position in a list
}
# A reference to a code defined by a terminology system
CLOSED {
a NONLITERAL?;
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Coding.system @?; # Identity of the terminology system
fhir:Coding.version @?; # Version of the system - if relevant
fhir:Coding.code @?; # Symbol in syntax defined by the
# system
fhir:Coding.display @?; # Representation defined by the
# system
fhir:Coding.userSelected @?; # If this coding was chosen directly
# by the user
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
}
# Primitive Type id
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value id?; # Primitive value for id
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type positiveInt
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value positiveInt?; # Primitive value for positiveInt
fhir:index xsd:integer? # Relative position in a list
}
# A length - a value with a unit that is a physical distance
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
}
# 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 length of time
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
}
# 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
}
# 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 base64Binary