PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # A set of resources composed into a single coherent clinical statement with clinical attestation CLOSED { a [fhir:Composition]; 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:Composition.identifier @?; # Version-independent identifier for # the Composition fhir:Composition.status @ AND {fhir:value @fhirvs:composition-status}; # preliminary | final | amended | # entered-in-error fhir:Composition.type @; # Kind of composition (LOINC if # possible) fhir:Composition.category @*; # Categorization of Composition fhir:Composition.subject @?; # Who and/or what the composition is # about fhir:Composition.encounter @?; # Context of the Composition fhir:Composition.date @; # Composition editing time fhir:Composition.author @+; # Who and/or what authored the # composition fhir:Composition.title @; # Human Readable name/title fhir:Composition.confidentiality @ AND {fhir:value @}?; # As defined by affinity domain fhir:Composition.attester @*; # Attests to accuracy of composition fhir:Composition.custodian @?; # Organization which maintains the # composition fhir:Composition.relatesTo @*; # Relationships to other # compositions/documents fhir:Composition.event @*; # The clinical service(s) being # documented fhir:Composition.section @*; # Composition is broken into sections fhir:index xsd:integer? # Relative position in a list } # Relationships to other compositions/documents 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:Composition.relatesTo.code @ AND {fhir:value @fhirvs:document-relationship-type}; # replaces | transforms | signs | # appends ( # Target of the relationship fhir:Composition.relatesTo.targetIdentifier @ | fhir:Composition.relatesTo.targetReference @ ); fhir:index xsd:integer? # Relative position in a list } # The clinical service(s) being documented 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:Composition.event.code @*; # Code(s) that apply to the event # being documented fhir:Composition.event.period @?; # The period covered by the # documentation fhir:Composition.event.detail @*; # The event(s) being documented fhir:index xsd:integer? # Relative position in a list } # Attests to accuracy of composition 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:Composition.attester.mode @ AND {fhir:value @fhirvs:composition-attestation-mode}; # personal | professional | legal | # official fhir:Composition.attester.time @?; # When the composition was attested fhir:Composition.attester.party @?; # Who attested the composition fhir:index xsd:integer? # Relative position in a list } # Composition is broken into sections 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:Composition.section.title @?; # Label for section (e.g. for ToC) fhir:Composition.section.code @?; # Classification of section # (recommended) fhir:Composition.section.author @*; # Who and/or what authored the # section fhir:Composition.section.focus @?; # Who/what the section is about, # when it is not about the subject # of composition fhir:Composition.section.text @?; # Text summary of the section, for # human interpretation fhir:Composition.section.mode @ AND {fhir:value @fhirvs:list-mode}?; # working | snapshot | changes fhir:Composition.section.orderedBy @?; # Order of section entries fhir:Composition.section.entry @*; # A reference to data that supports # this section fhir:Composition.section.emptyReason @?; # Why the section is empty fhir:Composition.section.section @*; # Nested Section fhir:index xsd:integer? # Relative position in a list } # Nested Section CLOSED { 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 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 @