PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A set of images produced in single study (one or more series of references images)
CLOSED {
a [fhir:ImagingStudy];
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:ImagingStudy.identifier @*; # Identifiers for the whole study
fhir:ImagingStudy.status @ AND
{fhir:value @fhirvs:imagingstudy-status}; # registered | available | cancelled
# | entered-in-error | unknown
fhir:ImagingStudy.modality @*; # All series modality if actual
# acquisition modalities
fhir:ImagingStudy.subject @; # Who or what is the subject of the
# study
fhir:ImagingStudy.encounter @?; # Encounter with which this imaging
# study is associated
fhir:ImagingStudy.started @?; # When the study was started
fhir:ImagingStudy.basedOn @*; # Request fulfilled
fhir:ImagingStudy.referrer @?; # Referring physician
fhir:ImagingStudy.interpreter @*; # Who interpreted images
fhir:ImagingStudy.endpoint @*; # Study access endpoint
fhir:ImagingStudy.numberOfSeries @?; # Number of Study Related Series
fhir:ImagingStudy.numberOfInstances @?; # Number of Study Related Instances
fhir:ImagingStudy.procedureReference @?; # The performed Procedure reference
fhir:ImagingStudy.procedureCode @*; # The performed procedure code
fhir:ImagingStudy.location @?; # Where ImagingStudy occurred
fhir:ImagingStudy.reasonCode @*; # Why the study was requested
fhir:ImagingStudy.reasonReference @*; # Why was study performed
fhir:ImagingStudy.note @*; # User-defined comments
fhir:ImagingStudy.description @?; # Institution-generated description
fhir:ImagingStudy.series @*; # Each study has one or more series
# of instances
fhir:index xsd:integer? # Relative position in a list
}
# Each study has one or more series of instances
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:ImagingStudy.series.uid @; # DICOM Series Instance UID for the
# series
fhir:ImagingStudy.series.number @?; # Numeric identifier of this series
fhir:ImagingStudy.series.modality @; # The modality of the instances in
# the series
fhir:ImagingStudy.series.description @?; # A short human readable summary of
# the series
fhir:ImagingStudy.series.numberOfInstances @?; # Number of Series Related Instances
fhir:ImagingStudy.series.endpoint @*; # Series access endpoint
fhir:ImagingStudy.series.bodySite @?; # Body part examined
fhir:ImagingStudy.series.laterality @?; # Body part laterality
fhir:ImagingStudy.series.specimen @*; # Specimen imaged
fhir:ImagingStudy.series.started @?; # When the series started
fhir:ImagingStudy.series.performer @*; # Who performed the series
fhir:ImagingStudy.series.instance @*; # A single SOP instance from the
# series
fhir:index xsd:integer? # Relative position in a list
}
# Who performed the series
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:ImagingStudy.series.performer.function @?; # Type of performance
fhir:ImagingStudy.series.performer.actor @; # Who performed the series
fhir:index xsd:integer? # Relative position in a list
}
# A single SOP instance from the series
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:ImagingStudy.series.instance.uid @; # DICOM SOP Instance UID
fhir:ImagingStudy.series.instance.sopClass @; # DICOM class type
fhir:ImagingStudy.series.instance.number @?; # The number of this instance in the
# series
fhir:ImagingStudy.series.instance.title @?; # Description of instance
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?
}
# 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 @