Report-ImReportDocumentReference
type: StructureDefinition
node role: treeRoot
id:
  v: Report-ImReportDocumentReference
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition Report-ImReportDocumentReference Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> DocumentReference 0..* ImReportMhdDocumentReference A reference to a document #xD; Slices for identifier Content/Rules for all slices #xD; identifier:entry-uuid O 1..1 IheMhdEntryUUIDIdentifier Business identifiers for the document Obligations Actor SHALL:populate-if-known Imaging study report provider #xD; status O 1..1 code current | superseded | entered-in-error Obligations Actor SHALL:populate Imaging study report provider #xD; modality O 1..* CodeableConcept Imaging modality used Obligations Actor SHALL:populate Imaging study report provider #xD; type O 1..1 CodeableConcept Type of Imaging Diagnostic Report Obligations Actor SHALL:populate-if-known Imaging study report provider #xD; category O 1..* CodeableConcept Categorization of document Obligations Actor SHALL:populate-if-known Imaging study report provider #xD; subject O 1..1 Reference(Resource) Who/what is the subject of the document Obligations Actor SHALL:populate-if-known Imaging study report provider #xD; bodySite O 0..* CodeableReference(BodyStructure) Body part included Obligations Actor SHALL:populate Imaging study report provider #xD; author O 0..* Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson | CareTeam) Who and/or what authored the document Obligations Actor SHALL:populate-if-known Imaging study report provider #xD; custodian O 0..1 Reference(Organization (EU base)) Organization that manages the Imaging Report Obligations Actor SHALL:populate-if-known Imaging study report provider #xD; relatesTo O 0..* BackboneElement Relationships to other documents Obligations Actor SHALL:populate-if-known Imaging study report provider #xD; securityLabel O 0..* CodeableConcept Document security-tags Obligations Actor SHALL:populate-if-known Imaging study report provider #xD; conte…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  value: integer
    v: 1
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: draft
url:
  v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference
version:
  v: 0.1.0-build
name:
  v: Report_ImReportDocumentReference
title:
  v: Report Obligations for ImReportIheMhdDocumentReference
status:
  v: draft
date:
  v: 2025-08-20T09:53:47+00:00
publisher:
  v: HL7 Europe
contact:
  name:
    v: HL7 Europe
  telecom:
    system:
      v: url
    value:
      v: http://hl7.eu
description:
  v: Report Obligations for ImReportIheMhdDocumentReference
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 150
    display:
      v: Europe
copyright:
  v: Used by permission of HL7 Europe, all rights reserved Creative Commons License
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: fhircomposition
  uri:
    v: http://hl7.org/fhir/composition
  name:
    v: FHIR Composition
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: xds
  uri:
    v: http://ihe.net/xds
  name:
    v: XDS metadata equivalent
mapping:
  identity:
    v: cda
  uri:
    v: http://hl7.org/v3/cda
  name:
    v: CDA (R2)
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 V2 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: DocumentReference
base definition:
  v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/ImReportMhdDocumentReference
  link: http://hl7.eu/fhir/imaging-r5/StructureDefinition/ImReportMhdDocumentReference
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 0.1.0-build
  element:
    id:
      v: DocumentReference
    path:
      v: DocumentReference
    short:
      v: A reference to a document
    definition:
      v: A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this "document" encompasses *any* serialized object with a mime-type, it includes formal patient-centric documents (CDA), clinical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference.
    comment:
      v: Usually, this is used for documents other than those defined by FHIR.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: DocumentReference
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: docRef-1
      severity:
        v: warning
      human:
        v: facilityType SHALL only be present if context is not an encounter
      expression:
        v: facilityType.empty() or context.where(resolve() is Encounter).empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DocumentReference
        link: http://hl7.org/fhir/StructureDefinition/DocumentReference
    constraint:
      key:
        v: docRef-2
      severity:
        v: warning
      human:
        v: practiceSetting SHALL only be present if context is not present
      expression:
        v: practiceSetting.empty() or context.where(resolve() is Encounter).empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DocumentReference
        link: http://hl7.org/fhir/StructureDefinition/DocumentReference
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource

key:
  v: dom-5
severity:
  v: error
human:
  v: If a resource is contained in another resource, it SHALL NOT have a security label
expression:
  v: contained.meta.security.empty()
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
  value: boolean
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
  value: markdown
    v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.
key:
  v: dom-6
severity:
  v: warning
human:
  v: A resource should have narrative for robust management
expression:
  v: text.`div`.exists()
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

v: false

v: false

v: false

identity:
  v: rim
map:
  v: Entity, Role, or Act,Document[classCode="DOC" and moodCode="EVN"]

identity:
  v: workflow
map:
  v: Event

identity:
  v: w5
map:
  v: infrastructure.documents

identity:
  v: fhircomposition
map:
  v: when describing a Composition

identity:
  v: xds
map:
  v: DocumentEntry

identity:
  v: cda
map:
  v: when describing a CDA

id:
  v: DocumentReference.id
path:
  v: DocumentReference.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: DocumentReference.meta
path:
  v: DocumentReference.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: DocumentReference.implicitRules
path:
  v: DocumentReference.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation
is summary:
  v: true

id:
  v: DocumentReference.language
path:
  v: DocumentReference.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    link: 5.0
    link: .0
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages

id:
  v: DocumentReference.text
path:
  v: DocumentReference.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
condition:
  v: dom-6
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: DocumentReference.contained
path:
  v: DocumentReference.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
condition:
  v: dom-2
condition:
  v: dom-4
condition:
  v: dom-3
condition:
  v: dom-5
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DocumentReference.extension
path:
  v: DocumentReference.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DocumentReference.modifierExtension
path:
  v: DocumentReference.modifierExtension
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: true

id:
  v: DocumentReference.identifier
path:
  v: DocumentReference.identifier
slicing:
  discriminator:
    type:
      v: value
    path:
      v: system
  ordered:
    v: false
  rules:
    v: open
short:
  v: Business identifiers for the document
definition:
  v: Other business identifiers associated with the document, including version independent identifiers.
comment:
  v: The structure and format of this identifier would be consistent with the specification corresponding to the format of the document. (e.g. for a DICOM standard document, a 64-character numeric UID; for an HL7 CDA format, the CDA Document Id root and extension).
requirements:
  v: Document identifiers usually assigned by the source of the document, or other business identifiers such as XDS DocumentEntry.uniqueId and DocumentEntry.entryUUID. These identifiers are specific to this instance of the document.
min:
  v: 1
max:
  v: *
base:
  path:
    v: DocumentReference.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.identifier
mapping:
  identity:
    v: v2
  map:
    v: TXA-12
mapping:
  identity:
    v: rim
  map:
    v: .id / .setId
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.entryUUID, DocumentEntry.uniqueId
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/id

id:
  v: DocumentReference.identifier:entry-uuid
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.identifier
slice name:
  v: entry-uuid
short:
  v: Business identifiers for the document
definition:
  v: Other business identifiers associated with the document, including version independent identifiers.
comment:
  v: The structure and format of this identifier would be consistent with the specification corresponding to the format of the document. (e.g. for a DICOM standard document, a 64-character numeric UID; for an HL7 CDA format, the CDA Document Id root and extension).
requirements:
  v: Document identifiers usually assigned by the source of the document, or other business identifiers such as XDS DocumentEntry.uniqueId and DocumentEntry.entryUUID. These identifiers are specific to this instance of the document.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
  profile:
    v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/IheMhdEntryUUIDIdentifier
    link: http://hl7.eu/fhir/imaging-r5/StructureDefinition/IheMhdEntryUUIDIdentifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.identifier
mapping:
  identity:
    v: v2
  map:
    v: TXA-12
mapping:
  identity:
    v: rim
  map:
    v: .id / .setId
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.entryUUID, DocumentEntry.uniqueId
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/id

id:
  v: DocumentReference.version
path:
  v: DocumentReference.version
short:
  v: An explicitly assigned identifer of a variation of the content in the DocumentReference
definition:
  v: An explicitly assigned identifer of a variation of the content in the DocumentReference.
comment:
  v: While each resource, including the DocumentReference itself, has its own version identifier, this is a formal identifier for the logical version of the DocumentReference as a whole. It would remain constant if the resources were moved to a new server, and all got new individual resource versions, for example.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.version
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.version

id:
  v: DocumentReference.basedOn
path:
  v: DocumentReference.basedOn
short:
  v: Procedure that caused this media to be created
definition:
  v: A procedure that is fulfilled in whole or in part by the creation of this media.
requirements:
  v: Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.
alias:
  v: fulfills
min:
  v: 0
max:
  v: *
base:
  path:
    v: DocumentReference.basedOn
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Appointment
    link: http://hl7.org/fhir/StructureDefinition/Appointment
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/AppointmentResponse
    link: http://hl7.org/fhir/StructureDefinition/AppointmentResponse
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan
    link: http://hl7.org/fhir/StructureDefinition/CarePlan
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Claim
    link: http://hl7.org/fhir/StructureDefinition/Claim
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CommunicationRequest
    link: http://hl7.org/fhir/StructureDefinition/CommunicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Contract
    link: http://hl7.org/fhir/StructureDefinition/Contract
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest
    link: http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceRequest
    link: http://hl7.org/fhir/StructureDefinition/DeviceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/EnrollmentRequest
    link: http://hl7.org/fhir/StructureDefinition/EnrollmentRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
    link: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    link: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionOrder
    link: http://hl7.org/fhir/StructureDefinition/NutritionOrder
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RequestOrchestration
    link: http://hl7.org/fhir/StructureDefinition/RequestOrchestration
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    link: http://hl7.org/fhir/StructureDefinition/ServiceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SupplyRequest
    link: http://hl7.org/fhir/StructureDefinition/SupplyRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/VisionPrescription
    link: http://hl7.org/fhir/StructureDefinition/VisionPrescription
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=FLFS].target
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.referenceIdList

id:
  v: DocumentReference.status
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.status
short:
  v: current | superseded | entered-in-error
definition:
  v: The status of this document reference.
comment:
  v: This is the status of the DocumentReference object, which might be independent from the docStatus element. This element is labeled as a modifier because the status contains the codes that mark the document or reference as not currently valid.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DocumentReferenceStatus
  strength:
    v: required
  description:
    v: The status of the document reference.
  value set:
    v: http://hl7.org/fhir/ValueSet/document-reference-status|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: v2
  map:
    v: TXA-19
mapping:
  identity:
    v: rim
  map:
    v: interim: .completionCode="IN" & ./statusCode[isNormalDatatype()]="active"; final: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and not(./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct()]); amended: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and ./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct() and statusCode="completed"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]="obsolete"
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.availabilityStatus

id:
  v: DocumentReference.docStatus
path:
  v: DocumentReference.docStatus
short:
  v: registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown
definition:
  v: The status of the underlying document.
comment:
  v: The document that is pointed to might be in various lifecycle states.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.docStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: ReferredDocumentStatus
  strength:
    v: required
  description:
    v: Status of the underlying document.
  value set:
    v: http://hl7.org/fhir/ValueSet/composition-status|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.status
mapping:
  identity:
    v: v2
  map:
    v: TXA-17
mapping:
  identity:
    v: rim
  map:
    v: .statusCode

id:
  v: DocumentReference.modality
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.modality
short:
  v: Imaging modality used
definition:
  v: Imaging modality used. This may include both acquisition and non-acquisition modalities.
min:
  v: 1
max:
  v: *
base:
  path:
    v: DocumentReference.modality
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: ImagingModality
  strength:
    v: extensible
  description:
    v: Type of acquired data in the instance.
  value set:
    v: http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html
    link: http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: DocumentReference.type
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.type
short:
  v: Type of Imaging Diagnostic Report
definition:
  v: Specifies that it refers to a Imaging Report
comment:
  v: Corresponds to the type of the Imaging resource.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: preferred
  value set:
    v: http://hl7.eu/fhir/imaging-r5/ValueSet/ImImagingReportTypesEuVS
    link: http://hl7.eu/fhir/imaging-r5/ValueSet/ImImagingReportTypesEuVS
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.type
mapping:
  identity:
    v: v2
  map:
    v: TXA-2
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.typeCode
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/code/@code The typeCode should be mapped from the ClinicalDocument/code element to a set of document type codes configured in the affinity domain. One suggested coding system to use for typeCode is LOINC, in which case the mapping step can be omitted.

id:
  v: DocumentReference.category
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.category
slicing:
  discriminator:
    type:
      v: value
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: Categorization of document
definition:
  v: A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type.
comment:
  v: Key metadata element describing the the category or classification of the document. This is a broader perspective that groups similar documents based on how they would be used. This is a primary key used in searching.
alias:
  v: class
alias:
  v: classCode
min:
  v: 1
max:
  v: *
base:
  path:
    v: DocumentReference.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: ReferencedItemCategory
  strength:
    v: example
  description:
    v: High-level kind of document at a macro level.
  value set:
    v: http://hl7.org/fhir/ValueSet/referenced-item-category
    link: http://hl7.org/fhir/ValueSet/referenced-item-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.category
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.classCode
mapping:
  identity:
    v: cda
  map:
    v: Derived from a mapping of /ClinicalDocument/code/@code to an Affinity Domain specified coded value to use and coding system. Affinity Domains are encouraged to use the appropriate value for Type of Service, based on the LOINC Type of Service (see Page 53 of the LOINC User's Manual). Must be consistent with /ClinicalDocument/code/@code

id:
  v: DocumentReference.category:imaging
path:
  v: DocumentReference.category
slice name:
  v: imaging
short:
  v: Categorization of document
definition:
  v: A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type.
comment:
  v: Key metadata element describing the the category or classification of the document. This is a broader perspective that groups similar documents based on how they would be used. This is a primary key used in searching.
alias:
  v: class
alias:
  v: classCode
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
pattern: CodeableConcept
  coding: https://loinc.org/rdf/18748-4
    system:
      v: http://loinc.org
    code:
      v: 18748-4
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: ReferencedItemCategory
  strength:
    v: example
  description:
    v: High-level kind of document at a macro level.
  value set:
    v: http://hl7.org/fhir/ValueSet/referenced-item-category
    link: http://hl7.org/fhir/ValueSet/referenced-item-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.category
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.classCode
mapping:
  identity:
    v: cda
  map:
    v: Derived from a mapping of /ClinicalDocument/code/@code to an Affinity Domain specified coded value to use and coding system. Affinity Domains are encouraged to use the appropriate value for Type of Service, based on the LOINC Type of Service (see Page 53 of the LOINC User's Manual). Must be consistent with /ClinicalDocument/code/@code

id:
  v: DocumentReference.subject
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.subject
short:
  v: Who/what is the subject of the document
definition:
  v: Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.subject
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: http://hl7.org/fhir/StructureDefinition/Resource
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.subject
mapping:
  identity:
    v: v2
  map:
    v: PID-3 (No standard way to define a Practitioner or Group subject in HL7 V2 MDM message)
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="SBJ"].role[typeCode="PAT"]
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.patientId
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/recordTarget/

id:
  v: DocumentReference.context
path:
  v: DocumentReference.context
short:
  v: Context of the document content
definition:
  v: Describes the clinical encounter or type of care that the document content is associated with.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DocumentReference.context
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Appointment
    link: http://hl7.org/fhir/StructureDefinition/Appointment
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    link: http://hl7.org/fhir/StructureDefinition/Encounter
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
    link: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
condition:
  v: docRef-1
condition:
  v: docRef-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.encounter
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.encounter
mapping:
  identity:
    v: rim
  map:
    v: unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct])

id:
  v: DocumentReference.event
path:
  v: DocumentReference.event
short:
  v: Main clinical acts documented
definition:
  v: This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the type Code, such as a "History and Physical Report" in which the procedure being documented is necessarily a "History and Physical" act.
comment:
  v: An event can further specialize the act inherent in the type, such as where it is simply "Procedure Report" and the procedure was a "colonoscopy". If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DocumentReference.event
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DocumentEventType
  strength:
    v: example
  description:
    v: This list of codes represents the main clinical acts being documented.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActCode
    link: http://terminology.hl7.org/ValueSet/v3-ActCode
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.event.detail
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.referenceIdList

id:
  v: DocumentReference.bodySite
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.bodySite
short:
  v: Body part included
definition:
  v: The anatomic structures included in the document.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DocumentReference.bodySite
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableReference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/BodyStructure
    link: http://hl7.org/fhir/StructureDefinition/BodyStructure
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: BodySite
  strength:
    v: example
  description:
    v: SNOMED CT Body site concepts
  value set:
    v: http://hl7.org/fhir/ValueSet/body-site
    link: http://hl7.org/fhir/ValueSet/body-site
mapping:
  identity:
    v: rim
  map:
    v: .targetSiteCode

id:
  v: DocumentReference.facilityType
path:
  v: DocumentReference.facilityType
short:
  v: Kind of facility where patient was seen
definition:
  v: The kind of facility where the patient was seen.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.facilityType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: docRef-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DocumentC80FacilityType
  strength:
    v: example
  description:
    v: XDS Facility Type.
  value set:
    v: http://hl7.org/fhir/ValueSet/c80-facilitycodes
    link: http://hl7.org/fhir/ValueSet/c80-facilitycodes
mapping:
  identity:
    v: fhircomposition
  map:
    v: usually from a mapping to a local ValueSet
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="LOC"].role[classCode="DSDLOC"].code
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.healthcareFacilityTypeCode
mapping:
  identity:
    v: cda
  map:
    v: usually a mapping to a local ValueSet. Must be consistent with /clinicalDocument/code

id:
  v: DocumentReference.practiceSetting
path:
  v: DocumentReference.practiceSetting
short:
  v: Additional details about where the content was created (e.g. clinical specialty)
definition:
  v: This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty.
comment:
  v: This element should be based on a coarse classification system for the class of specialty practice. Recommend the use of the classification system for Practice Setting, such as that described by the Subject Matter Domain in LOINC.
requirements:
  v: This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.practiceSetting
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: docRef-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DocumentC80PracticeSetting
  strength:
    v: example
  description:
    v: Additional details about where the content was created (e.g. clinical specialty).
  value set:
    v: http://hl7.org/fhir/ValueSet/c80-practice-codes
    link: http://hl7.org/fhir/ValueSet/c80-practice-codes
mapping:
  identity:
    v: fhircomposition
  map:
    v: usually from a mapping to a local ValueSet
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="LOC"].role[classCode="DSDLOC"].code
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.practiceSettingCode
mapping:
  identity:
    v: cda
  map:
    v: usually from a mapping to a local ValueSet

id:
  v: DocumentReference.period
path:
  v: DocumentReference.period
short:
  v: Time of service that is being documented
definition:
  v: The time period over which the service that is described by the document was provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.event.period
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.serviceStartTime, DocumentEntry.serviceStopTime
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/documentationOf/ serviceEvent/effectiveTime/low/ @value --> ClinicalDocument/documentationOf/ serviceEvent/effectiveTime/high/ @value

id:
  v: DocumentReference.date
path:
  v: DocumentReference.date
short:
  v: When this document reference was created
definition:
  v: When the document reference was created.
comment:
  v: Referencing/indexing time is used for tracking, organizing versions and searching.
alias:
  v: indexed
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: instant
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.date
mapping:
  identity:
    v: rim
  map:
    v: .availabilityTime[type="TS"]

id:
  v: DocumentReference.author
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.author
short:
  v: Who and/or what authored the document
definition:
  v: Identifies who is responsible for adding the information to the document.
comment:
  v: Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DocumentReference.author
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CareTeam
    link: http://hl7.org/fhir/StructureDefinition/CareTeam
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.author
mapping:
  identity:
    v: v2
  map:
    v: TXA-9 (No standard way to indicate a Device in HL7 V2 MDM message)
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="AUT"].role[classCode="ASSIGNED"]
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.author
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/author

id:
  v: DocumentReference.attester
path:
  v: DocumentReference.attester
short:
  v: Attests to accuracy of the document
definition:
  v: A participant who has authenticated the accuracy of the document.
comment:
  v: Only list each attester once.
requirements:
  v: Identifies responsibility for the accuracy of the document content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DocumentReference.attester
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.attester
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.legalAuthenticator
mapping:
  identity:
    v: cda
  map:
    v: .authenticator/.legalAuthenticator

id:
  v: DocumentReference.attester.id
path:
  v: DocumentReference.attester.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.attester.extension
path:
  v: DocumentReference.attester.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.attester.modifierExtension
path:
  v: DocumentReference.attester.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DocumentReference.attester.mode
path:
  v: DocumentReference.attester.mode
short:
  v: personal | professional | legal | official
definition:
  v: The type of attestation the authenticator offers.
requirements:
  v: Indicates the level of authority of the attestation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.attester.mode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DocumentAttestationMode
  strength:
    v: preferred
  description:
    v: The way in which a person authenticated a document.
  value set:
    v: http://hl7.org/fhir/ValueSet/composition-attestation-mode
    link: http://hl7.org/fhir/ValueSet/composition-attestation-mode
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.attester.mode
mapping:
  identity:
    v: rim
  map:
    v: unique(./modeCode)
mapping:
  identity:
    v: cda
  map:
    v: implied by .authenticator/.legalAuthenticator

id:
  v: DocumentReference.attester.time
path:
  v: DocumentReference.attester.time
short:
  v: When the document was attested
definition:
  v: When the document was attested by the party.
requirements:
  v: Identifies when the information in the document was deemed accurate. (Things may have changed since then.).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.attester.time
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.attester.time
mapping:
  identity:
    v: rim
  map:
    v: ./time[type="TS" and isNormalDatatype()]
mapping:
  identity:
    v: cda
  map:
    v: .authenticator.time

id:
  v: DocumentReference.attester.party
path:
  v: DocumentReference.attester.party
short:
  v: Who attested the document
definition:
  v: Who attested the document in the specified way.
requirements:
  v: Identifies who has taken on the responsibility for accuracy of the document content.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.attester.party
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.attester.party
mapping:
  identity:
    v: v2
  map:
    v: TXA-10
mapping:
  identity:
    v: rim
  map:
    v: ./role[classCode="ASSIGNED" and isNormalRole]/player[determinerCode="INST" and classCode=("DEV", "PSN") and isNormalEntity()] or ./role[classCode="ASSIGNED" and isNormalRole and not(player)]/scoper[determinerCode="INST" and classCode="ORG" and isNormalEntity()]
mapping:
  identity:
    v: cda
  map:
    v: .authenticator.assignedEnttty

id:
  v: DocumentReference.custodian
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.custodian
short:
  v: Organization that manages the Imaging Report
definition:
  v: Identifies the organization or group who is responsible for ongoing maintenance of and access to the document.
comment:
  v: Identifies the logical organization (software system, vendor, or department) to go to find the current version, where to report issues, etc. This is different from the physical location (URL, disk drive, or server) of the document, which is the technical location of the document, which host may be delegated to the management of some other organization.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.custodian
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.eu/fhir/base-r5/StructureDefinition/organization-eu
    link: http://hl7.eu/fhir/base-r5/StructureDefinition/organization-eu
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.custodian
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"]

id:
  v: DocumentReference.relatesTo
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.relatesTo
short:
  v: Relationships to other documents
definition:
  v: Relationships that this document has with other document references that already exist.
comment:
  v: This element is labeled as a modifier because documents that append to other documents are incomplete on their own.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DocumentReference.relatesTo
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.relatesTo
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry Associations

id:
  v: DocumentReference.relatesTo.id
path:
  v: DocumentReference.relatesTo.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.relatesTo.extension
path:
  v: DocumentReference.relatesTo.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.relatesTo.modifierExtension
path:
  v: DocumentReference.relatesTo.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DocumentReference.relatesTo.code
path:
  v: DocumentReference.relatesTo.code
short:
  v: The relationship type with another document
definition:
  v: The type of relationship that this document has with anther document.
comment:
  v: If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.relatesTo.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DocumentRelationshipType
  strength:
    v: extensible
  description:
    v: The type of relationship between the documents.
  value set:
    v: http://hl7.org/fhir/ValueSet/document-relationship-type
    link: http://hl7.org/fhir/ValueSet/document-relationship-type
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.relatesTo.type
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship.typeCode
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry Associations type
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/relatedDocument/typeCode

id:
  v: DocumentReference.relatesTo.target
path:
  v: DocumentReference.relatesTo.target
short:
  v: Target of the relationship
definition:
  v: The target document of this relationship.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.relatesTo.target
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    link: http://hl7.org/fhir/StructureDefinition/DocumentReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.relatesTo.resourceReference
mapping:
  identity:
    v: rim
  map:
    v: .target[classCode="DOC", moodCode="EVN"].id
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry Associations reference
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/relatedDocument/parentDocument

id:
  v: DocumentReference.description
path:
  v: DocumentReference.description
short:
  v: Human-readable description
definition:
  v: Human-readable description of the source document.
comment:
  v: What the document is about, a terse summary of the document.
requirements:
  v: Helps humans to assess whether the document is of interest.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: TXA-25
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="SUBJ"].target.text
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.comments

id:
  v: DocumentReference.securityLabel
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.securityLabel
short:
  v: Document security-tags
definition:
  v: A set of Security-Tag codes specifying the level of privacy/security of the Document found at DocumentReference.content.attachment.url. Note that DocumentReference.meta.security contains the security labels of the data elements in DocumentReference, while DocumentReference.securityLabel contains the security labels for the document the reference refers to. The distinction recognizes that the document may contain sensitive information, while the DocumentReference is metadata about the document and thus might not be as sensitive as the document. For example: a psychotherapy episode may contain highly sensitive information, while the metadata may simply indicate that some episode happened.
comment:
  v: The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce. In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects.
requirements:
  v: Use of the Health Care Privacy/Security Classification (HCS) system of security-tag use is recommended.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DocumentReference.securityLabel
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: SecurityLabels
  strength:
    v: example
  description:
    v: Example Security Labels from the Healthcare Privacy and Security Classification System.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-label-examples
    link: http://hl7.org/fhir/ValueSet/security-label-examples
mapping:
  identity:
    v: fhircomposition
  map:
    v: Bundle.meta.security
mapping:
  identity:
    v: v2
  map:
    v: TXA-18
mapping:
  identity:
    v: rim
  map:
    v: .confidentialityCode
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.confidentialityCode
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/confidentialityCode/@code

id:
  v: DocumentReference.content
path:
  v: DocumentReference.content
short:
  v: Document referenced
definition:
  v: The document and format referenced. If there are multiple content element repetitions, these must all represent the same document in different format, or attachment metadata.
comment:
  v: content element shall not contain different versions of the same content. For version handling use multiple DocumentReference with .relatesTo.
requirements:
  v: Note that .relatesTo may also include references to other DocumentReference with a transforms relationship to represent the same document in multiple formats.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.content
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: fhircomposition
  map:
    v: Bundle(Composition+*)
mapping:
  identity:
    v: rim
  map:
    v: document.text

id:
  v: DocumentReference.content.id
path:
  v: DocumentReference.content.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.content.extension
path:
  v: DocumentReference.content.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.content.modifierExtension
path:
  v: DocumentReference.content.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DocumentReference.content.attachment
path:
  v: DocumentReference.content.attachment
short:
  v: Where to access the document
definition:
  v: The document or URL of the document along with critical metadata to prove content has integrity.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.content.attachment
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Attachment
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.language, Composition.title, Composition.date
mapping:
  identity:
    v: v2
  map:
    v: TXA-3 for mime type
mapping:
  identity:
    v: rim
  map:
    v: document.text
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.mimeType, DocumentEntry.languageCode, DocumentEntry.URI, DocumentEntry.size, DocumentEntry.hash, DocumentEntry.title, DocumentEntry.creationTime
mapping:
  identity:
    v: cda
  map:
    v: ClinicalDocument/languageCode, ClinicalDocument/title, ClinicalDocument/date

id:
  v: DocumentReference.content.attachment.id
path:
  v: DocumentReference.content.attachment.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.content.attachment.extension
path:
  v: DocumentReference.content.attachment.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.content.attachment.contentType
path:
  v: DocumentReference.content.attachment.contentType
short:
  v: Mime type of the content, with charset etc.
definition:
  v: Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
requirements:
  v: Processors of the data need to be able to know how to interpret the data.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Attachment.contentType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: General
  value: code
    v: text/plain; charset=UTF-8, image/png
condition:
  v: att-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: MimeType
  strength:
    v: required
  description:
    v: BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)
  value set:
    v: http://hl7.org/fhir/ValueSet/mimetypes|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: v2
  map:
    v: ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used
mapping:
  identity:
    v: rim
  map:
    v: ./mediaType, ./charset

id:
  v: DocumentReference.content.attachment.language
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.content.attachment.language
short:
  v: Human language of the content (BCP-47)
definition:
  v: The human language of the content. The value can be any valid value according to BCP 47.
requirements:
  v: Users need to be able to choose between the languages in a set of attachments.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: General
  value: code
    v: en-AU
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    link: 5.0
    link: .0
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages
mapping:
  identity:
    v: rim
  map:
    v: ./language

id:
  v: DocumentReference.content.attachment.data
path:
  v: DocumentReference.content.attachment.data
short:
  v: Data inline, base64ed
definition:
  v: The actual data of the attachment - a sequence of bytes, base64 encoded.
comment:
  v: The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON.
requirements:
  v: The data needs to able to be transmitted inline.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.data
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: base64Binary
condition:
  v: att-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: ED.5
mapping:
  identity:
    v: rim
  map:
    v: ./data

id:
  v: DocumentReference.content.attachment.url
path:
  v: DocumentReference.content.attachment.url
short:
  v: Uri where the data can be found
definition:
  v: A location where the data can be accessed.
comment:
  v: If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data.
requirements:
  v: The data needs to be transmitted by reference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.url
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: url
example:
  label:
    v: General
  value: url
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RP.1+RP.2 - if they refer to a URL (see v2.6)
mapping:
  identity:
    v: rim
  map:
    v: ./reference/literal

id:
  v: DocumentReference.content.attachment.size
path:
  v: DocumentReference.content.attachment.size
short:
  v: Number of bytes of content (if url provided)
definition:
  v: The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
comment:
  v: The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference.
requirements:
  v: Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.size
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer64
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A (needs data type R3 proposal)

id:
  v: DocumentReference.content.attachment.hash
path:
  v: DocumentReference.content.attachment.hash
short:
  v: Hash of the data (sha-1, base64ed)
definition:
  v: The calculated hash of the data using SHA-1. Represented using base64.
comment:
  v: The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](http://hl7.org/fhir/R5/provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature.
requirements:
  v: Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.hash
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: base64Binary
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]

id:
  v: DocumentReference.content.attachment.title
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: DocumentReference.content.attachment.title
short:
  v: Label to display in place of the data
definition:
  v: A label or set of text to display in place of the data.
comment:
  v: May sometimes be derived from the source filename.
requirements:
  v: Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value: string
    v: Official Corporate Logo
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./title/data

id:
  v: DocumentReference.content.attachment.creation
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/Report-ImReportDocumentReference|0.1.0-build
      link: 0.1
      link: .0
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.content.attachment.creation
short:
  v: Date attachment was first created
definition:
  v: The date that the attachment was first created.
requirements:
  v: This is often tracked as an integrity issue for use of the attachment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.creation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A (needs data type R3 proposal)

id:
  v: DocumentReference.content.attachment.height
path:
  v: DocumentReference.content.attachment.height
short:
  v: Height of the image in pixels (photo/video)
definition:
  v: Height of the image in pixels (photo/video).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.height
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="OBS", moodCode="EVN",code="<CODE>"].value

id:
  v: DocumentReference.content.attachment.width
path:
  v: DocumentReference.content.attachment.width
short:
  v: Width of the image in pixels (photo/video)
definition:
  v: Width of the image in pixels (photo/video).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.width
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="OBS", moodCode="EVN",code="<CODE>"].value

id:
  v: DocumentReference.content.attachment.frames
path:
  v: DocumentReference.content.attachment.frames
short:
  v: Number of frames if > 1 (photo)
definition:
  v: The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.
comment:
  v: if the number of frames is not supplied, the value may be unknown. Applications should not assume that there is only one frame unless it is explicitly stated.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.frames
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="OBS", moodCode="EVN",code="<CODE>"].value

id:
  v: DocumentReference.content.attachment.duration
path:
  v: DocumentReference.content.attachment.duration
short:
  v: Length in seconds (audio / video)
definition:
  v: The duration of the recording in seconds - for audio and video.
comment:
  v: The duration might differ from occurrencePeriod if recording was paused.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.duration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="OBS", moodCode="EVN",code="<CODE>"].value

id:
  v: DocumentReference.content.attachment.pages
path:
  v: DocumentReference.content.attachment.pages
short:
  v: Number of printed pages
definition:
  v: The number of pages when printed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Attachment.pages
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: DocumentReference.content.profile
path:
  v: DocumentReference.content.profile
slicing:
  discriminator:
    type:
      v: value
    path:
      v: value
  ordered:
    v: false
  rules:
    v: open
short:
  v: Content profile rules for the document
definition:
  v: An identifier of the document constraints, encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType.
comment:
  v: Note that IHE often issues URNs for formatCode codes, not all documents can be identified by a URI. For FHIR content, .profile should indicate the structureDefinition profile canonical URI(s) that the content complies with.
alias:
  v: format
alias:
  v: formatCode
min:
  v: 1
max:
  v: *
base:
  path:
    v: DocumentReference.content.profile
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.meta.profile
mapping:
  identity:
    v: rim
  map:
    v: document.text
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.formatCode
mapping:
  identity:
    v: cda
  map:
    v: derived from the IHE Profile or Implementation Guide templateID

id:
  v: DocumentReference.content.profile.id
path:
  v: DocumentReference.content.profile.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.content.profile.extension
path:
  v: DocumentReference.content.profile.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.content.profile.modifierExtension
path:
  v: DocumentReference.content.profile.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DocumentReference.content.profile.value[x]
path:
  v: DocumentReference.content.profile.value[x]
short:
  v: Code|uri|canonical
definition:
  v: Code|uri|canonical.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.content.profile.value[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
type:
  code:
    v: uri
type:
  code:
    v: canonical
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DocumentFormat
  strength:
    v: preferred
  description:
    v: Document Format Codes.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-HL7FormatCodes
    link: http://terminology.hl7.org/ValueSet/v3-HL7FormatCodes
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.meta.profile
mapping:
  identity:
    v: rim
  map:
    v: document.text
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.formatCode
mapping:
  identity:
    v: cda
  map:
    v: derived from the IHE Profile or Implementation Guide templateID

id:
  v: DocumentReference.content.profile:hl7eu-imaging-report
path:
  v: DocumentReference.content.profile
slice name:
  v: hl7eu-imaging-report
short:
  v: Content profile rules for the document
definition:
  v: An identifier of the document constraints, encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType.
comment:
  v: Note that IHE often issues URNs for formatCode codes, not all documents can be identified by a URI. For FHIR content, .profile should indicate the structureDefinition profile canonical URI(s) that the content complies with.
alias:
  v: format
alias:
  v: formatCode
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.content.profile
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.meta.profile
mapping:
  identity:
    v: rim
  map:
    v: document.text
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.formatCode
mapping:
  identity:
    v: cda
  map:
    v: derived from the IHE Profile or Implementation Guide templateID

id:
  v: DocumentReference.content.profile:hl7eu-imaging-report.id
path:
  v: DocumentReference.content.profile.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.content.profile:hl7eu-imaging-report.extension
path:
  v: DocumentReference.content.profile.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DocumentReference.content.profile:hl7eu-imaging-report.modifierExtension
path:
  v: DocumentReference.content.profile.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DocumentReference.content.profile:hl7eu-imaging-report.value[x]
path:
  v: DocumentReference.content.profile.value[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: Code|uri|canonical
definition:
  v: Code|uri|canonical.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DocumentReference.content.profile.value[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
type:
  code:
    v: uri
type:
  code:
    v: canonical
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DocumentFormat
  strength:
    v: preferred
  description:
    v: Document Format Codes.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-HL7FormatCodes
    link: http://terminology.hl7.org/ValueSet/v3-HL7FormatCodes
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.meta.profile
mapping:
  identity:
    v: rim
  map:
    v: document.text
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.formatCode
mapping:
  identity:
    v: cda
  map:
    v: derived from the IHE Profile or Implementation Guide templateID

id:
  v: DocumentReference.content.profile:hl7eu-imaging-report.value[x]:valueCanonical
path:
  v: DocumentReference.content.profile.value[x]
slice name:
  v: valueCanonical
short:
  v: Code|uri|canonical
definition:
  v: Code|uri|canonical.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DocumentReference.content.profile.value[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: canonical
pattern: canonical
  v: http://hl7.eu/fhir/imaging-r5/StructureDefinition/ImReport
  link: http://hl7.eu/fhir/imaging-r5/StructureDefinition/ImReport
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: fhircomposition
  map:
    v: Composition.meta.profile
mapping:
  identity:
    v: rim
  map:
    v: document.text
mapping:
  identity:
    v: xds
  map:
    v: DocumentEntry.formatCode
mapping:
  identity:
    v: cda
  map:
    v: derived from the IHE Profile or Implementation Guide templateID

element:
  id:
    v: DocumentReference
  path:
    v: DocumentReference
element:
  id:
    v: DocumentReference.identifier:entry-uuid
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate-if-known
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.identifier
  slice name:
    v: entry-uuid
element:
  id:
    v: DocumentReference.status
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.status
element:
  id:
    v: DocumentReference.modality
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.modality
element:
  id:
    v: DocumentReference.type
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate-if-known
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.type
element:
  id:
    v: DocumentReference.category
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate-if-known
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.category
element:
  id:
    v: DocumentReference.subject
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate-if-known
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.subject
element:
  id:
    v: DocumentReference.bodySite
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.bodySite
element:
  id:
    v: DocumentReference.author
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate-if-known
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.author
element:
  id:
    v: DocumentReference.custodian
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate-if-known
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.custodian
element:
  id:
    v: DocumentReference.relatesTo
  extension:
    extension:
      url:
        v: code
      value: code
        v: SHALL:populate-if-known
    extension:
      url:
        v: actor
      value: canonical
        v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
        link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
  path:
    v: DocumentReference.relatesTo
element:
  id:
    v: DocumentReference.securityLabel
  extension:
    extension:
      url:
        v: code
      value: code

code
v: SHALL:populate-if-known

url:
  v: actor
value: canonical
  v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider

v: DocumentReference.securityLabel

id:
  v: DocumentReference.content.attachment.language
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.content.attachment.language

id:
  v: DocumentReference.content.attachment.creation
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:populate
  extension:
    url:
      v: actor
    value: canonical
      v: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
      link: http://hl7.eu/fhir/imaging-r5/ActorDefinition/ImReportProvider
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: DocumentReference.content.attachment.creation