PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# An action that is being or was performed on a patient
CLOSED {
a [fhir:Procedure];
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:Procedure.identifier @*; # External Identifiers for this
# procedure
fhir:Procedure.instantiatesCanonical @*; # Instantiates FHIR protocol or
# definition
fhir:Procedure.instantiatesUri @*; # Instantiates external protocol or
# definition
fhir:Procedure.basedOn @*; # A request for this procedure
fhir:Procedure.partOf @*; # Part of referenced event
fhir:Procedure.status @ AND
{fhir:value @fhirvs:event-status}; # preparation | in-progress |
# not-done | on-hold | stopped |
# completed | entered-in-error |
# unknown
fhir:Procedure.statusReason @?; # Reason for current status
fhir:Procedure.category @?; # Classification of the procedure
fhir:Procedure.code @?; # Identification of the procedure
fhir:Procedure.subject @; # Who the procedure was performed on
fhir:Procedure.encounter @?; # Encounter created as part of
( # When the procedure was performed
fhir:Procedure.performedDateTime @ |
fhir:Procedure.performedPeriod @ |
fhir:Procedure.performedString @ |
fhir:Procedure.performedAge @ |
fhir:Procedure.performedRange @
)?;
fhir:Procedure.recorder @?; # Who recorded the procedure
fhir:Procedure.asserter @?; # Person who asserts this procedure
fhir:Procedure.performer @*; # The people who performed the
# procedure
fhir:Procedure.location @?; # Where the procedure happened
fhir:Procedure.reasonCode @*; # Coded reason procedure performed
fhir:Procedure.reasonReference @*; # The justification that the
# procedure was performed
fhir:Procedure.bodySite @*; # Target body sites
fhir:Procedure.outcome @?; # The result of procedure
fhir:Procedure.report @*; # Any report resulting from the
# procedure
fhir:Procedure.complication @*; # Complication following the
# procedure
fhir:Procedure.complicationDetail @*; # A condition that is a result of
# the procedure
fhir:Procedure.followUp @*; # Instructions for follow up
fhir:Procedure.note @*; # Additional information about the
# procedure
fhir:Procedure.focalDevice @*; # Manipulated, implanted, or removed
# device
fhir:Procedure.usedReference @*; # Items used during procedure
fhir:Procedure.usedCode @*; # Coded items used during the
# procedure
fhir:index xsd:integer? # Relative position in a list
}
# Manipulated, implanted, or removed device
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:Procedure.focalDevice.action @?; # Kind of change to device
fhir:Procedure.focalDevice.manipulated @; # Device that was changed
fhir:index xsd:integer? # Relative position in a list
}
# The people who performed the procedure
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:Procedure.performer.function @?; # Type of performance
fhir:Procedure.performer.actor @; # The reference to the practitioner
fhir:Procedure.performer.onBehalfOf @?; # Organization the device or
# practitioner was acting for
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?
}
# 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
}
# 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 @