PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.eu.imaging@1.0.0-ballot
    http://hl7.eu/fhir/imaging/StructureDefinition/DocumentReferenceKeyImageEuImaging
description: 'A document containing key images for a patient. It can refer to a DICOM or non-DICOM image. \nWhen referring to a DICOM image, the DocumentReference.content.attachment.url should be a WADO-URI. When referring \nto a non-DICOM image, the DocumentReference.content.attachment.url should be a direct URL to the image.\n\nWhen the resource represents a DICOM instance it SHALL contain a the SOP Instance UID in the identifier element. \nWhen the resource represents a DICOM series it SHALL contain the Series Instance UID in the identifier element. '
package_name: hl7.fhir.eu.imaging
derivation: constraint
name: DocumentReferenceKeyImageEuImaging
type: DocumentReference
elements:
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      - {path: value, type: value}
      min: 1
      slices:
        basedOn:
          match: {url: null, value: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.basedOn', index: 1}
          min: 0
        basedOn/ServiceRequestOrderEuImagingaccession:
          match: {url: null, value: null}
          schema:
            index: 2
            extensions: {}
            elements:
              extension: {index: 3}
              value:
                choices: [valueReference]
                index: 5
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.eu/fhir/imaging/StructureDefinition/ServiceRequestOrderEuImaging']
                index: 6
              value[x]:
                elements:
                  identifier: {type: Identifier, index: 7}
                required: [identifier]
        modality:
          match: {url: null, value: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.modality', index: 8}
          min: 1
          max: 1
  identifier:
    index: 9
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: value}
      min: null
      slices:
        seriesInstanceUid:
          match: {}
          schema:
            index: 10
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '112002', system: 'http://dicom.nema.org/resources/ontology/DCM'}
                index: 11
              system:
                pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                index: 12
              value: {index: 13}
            required: [value, type, system]
        sopClassInstanceUid:
          match: {}
          schema:
            index: 14
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '00080018', system: 'http://hl7.eu/fhir/imaging/CodeSystem/codesystem-missing-dicom-terminology'}
                index: 15
              system:
                pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                index: 16
              value: {index: 17}
            required: [value, type, system]
  type:
    binding: {strength: preferred, valueSet: 'http://terminology.hl7.org/ValueSet/image-reference-type'}
    index: 18
  category:
    index: 19
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: profile}
      min: 1
      slices:
        imkeyimages:
          match: {}
          schema:
            _required: true
            index: 20
            elements:
              coding:
                index: 21
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: value}
                  min: 1
                  slices:
                    keyimagecode:
                      match: {code: 55113-5, system: 'http://loinc.org'}
                      schema:
                        pattern:
                          type: Coding
                          value: {code: 55113-5, system: 'http://loinc.org'}
                        _required: true
                        index: 22
                      min: 1
                      max: 1
            required: [coding]
  subject:
    type: Reference
    refers: ['http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core']
    index: 23
  author:
    index: 24
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: profile}
      min: null
      slices:
        performer:
          match: {}
          schema:
            type: Reference
            refers: ['http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core']
            array: true
            index: 25
          min: 0
  content:
    index: 26
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: extension.value, type: value}
      min: null
      slices:
        thumbnail:
          match:
            extension: {value: null}
          schema:
            index: 27
            extensions:
              thumbnail:
                url: http://hl7.org/fhir/StructureDefinition/documentreference-thumbnail
                type: Extension
                index: 29
                elements:
                  value:
                    pattern: {type: Boolean, value: true}
                    choices: []
                    index: 31
            elements:
              extension:
                index: 28
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    thumbnail:
                      match: {url: null}
                      schema:
                        type: Extension
                        url: http://hl7.org/fhir/StructureDefinition/documentreference-thumbnail
                        index: 29
                        elements:
                          value:
                            pattern: {type: Boolean, value: true}
                            choices: []
                            index: 31
            required: [extension]
        content:
          match:
            extension: {value: null}
          schema:
            _required: true
            index: 32
            extensions:
              thumbnail:
                url: http://hl7.org/fhir/StructureDefinition/documentreference-thumbnail
                type: Extension
                index: 34
                elements:
                  value:
                    pattern: {type: Boolean, value: false}
                    choices: []
                    index: 36
            elements:
              extension:
                index: 33
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    thumbnail:
                      match: {url: null}
                      schema:
                        type: Extension
                        url: http://hl7.org/fhir/StructureDefinition/documentreference-thumbnail
                        index: 34
                        elements:
                          value:
                            pattern: {type: Boolean, value: false}
                            choices: []
                            index: 36
              attachment:
                elements:
                  url: {index: 37}
                required: [url]
            required: [extension]
package_version: 1.0.0-ballot
extensions:
  basedOn: {url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.basedOn', min: 0, type: Extension, index: 1}
  basedOn/ServiceRequestOrderEuImagingaccession:
    url: null
    index: 2
    extensions: {}
    elements:
      extension: {index: 3}
      value:
        choices: [valueReference]
        index: 5
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['http://hl7.eu/fhir/imaging/StructureDefinition/ServiceRequestOrderEuImaging']
        index: 6
      value[x]:
        elements:
          identifier: {type: Identifier, index: 7}
        required: [identifier]
  modality: {url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.modality', min: 1, max: 1, type: Extension, index: 8}
class: profile
kind: resource
url: http://hl7.eu/fhir/imaging/StructureDefinition/DocumentReferenceKeyImageEuImaging
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.0.0-ballot
required: [extension, subject, category]