PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.cz.img@1.0.0
    https://hl7.cz/fhir/img/StructureDefinition/cz-keyImage-documentReference
description: A document containing key images for a patient.It can refer to a `DICOM` or `non-DICOM` image. When referring to a DICOM image, the DocumentReference.content.attachment.url should be a WADO-URI. When referring to 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. When the resource represents a DICOM series it SHALL contain the `Series Instance UID` in the identifier element.
package_name: hl7.fhir.cz.img
derivation: constraint
name: CZ_KeyImageDocumentReference
type: DocumentReference
elements:
  category:
    index: 26
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: profile}
      min: 1
      slices:
        imkeyimages:
          match: {}
          schema:
            _required: true
            index: 27
            elements:
              coding:
                index: 28
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: value}
                  min: 1
                  slices:
                    keyimagecode:
                      match: {code: 55113-5, system: 'http://loinc.org', display: Key images Document Radiology}
                      schema:
                        pattern:
                          type: Coding
                          value: {code: 55113-5, system: 'http://loinc.org', display: Key images Document Radiology}
                        _required: true
                        index: 29
                      min: 1
                      max: 1
            required: [coding]
  content:
    index: 35
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: extension.value, type: value}
      min: null
      slices:
        thumbnail:
          match:
            extension: {value: null}
          schema:
            index: 36
            extensions:
              thumbnail:
                url: http://hl7.org/fhir/StructureDefinition/documentreference-thumbnail|5.3.0
                type: Extension
                index: 38
                elements:
                  value:
                    pattern: {type: Boolean, value: true}
                    choices: []
                    index: 40
            elements:
              extension:
                index: 37
                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|5.3.0
                        index: 38
                        elements:
                          value:
                            pattern: {type: Boolean, value: true}
                            choices: []
                            index: 40
            required: [extension]
        content:
          match:
            extension: {value: null}
          schema:
            _required: true
            index: 41
            extensions:
              thumbnail:
                url: http://hl7.org/fhir/StructureDefinition/documentreference-thumbnail|5.3.0
                type: Extension
                index: 43
                elements:
                  value:
                    pattern: {type: Boolean, value: false}
                    choices: []
                    index: 45
            elements:
              extension:
                index: 42
                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|5.3.0
                        index: 43
                        elements:
                          value:
                            pattern: {type: Boolean, value: false}
                            choices: []
                            index: 45
              attachment:
                elements:
                  url: {index: 46}
                required: [url]
            required: [extension]
  author:
    type: Reference
    refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer', 'https://hl7.cz/fhir/core/StructureDefinition/cz-medical-device', 'https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core']
    index: 31
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: profile}
      min: null
      slices:
        performer:
          match: {}
          schema:
            type: Reference
            refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core']
            array: true
            index: 32
          min: 0
  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
            extensions: {}
            elements:
              extension: {index: 2}
              value:
                choices: [valueReference]
                index: 4
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/AppointmentResponse', 'http://hl7.org/fhir/StructureDefinition/Claim', 'http://hl7.org/fhir/StructureDefinition/CommunicationRequest', 'http://hl7.org/fhir/StructureDefinition/Contract', 'http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest', 'http://hl7.org/fhir/StructureDefinition/DeviceRequest', 'http://hl7.org/fhir/StructureDefinition/EnrollmentRequest', 'http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation', 'http://hl7.org/fhir/StructureDefinition/NutritionOrder', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest', 'http://hl7.org/fhir/StructureDefinition/SupplyRequest', 'http://hl7.org/fhir/StructureDefinition/VisionPrescription', 'https://hl7.cz/fhir/core/StructureDefinition/appointment-cz-core', 'https://hl7.cz/fhir/core/StructureDefinition/medicationRequest-cz-core', 'https://hl7.cz/fhir/img/StructureDefinition/cz-carePlanImage', 'https://hl7.cz/fhir/img/StructureDefinition/cz-imagingOrderInformation']
                index: 5
        basedOn/imorderaccession:
          match: {url: null, value: null}
          schema:
            index: 6
            extensions: {}
            elements:
              extension: {index: 7}
              value:
                choices: [valueReference]
                index: 9
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-imagingOrderInformation']
                index: 10
              value[x]:
                elements:
                  identifier: {type: Identifier, index: 11}
                required: [identifier]
        modality:
          match: {url: null, value: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.modality', index: 12}
          min: 1
          max: 1
        note:
          match: {url: null, value: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/note|5.3.0', index: 13}
          min: 0
          max: 1
        view:
          match: {url: null, value: null}
          schema: {type: Extension, url: 'https://hl7.cz/fhir/img/StructureDefinition/CrossVersionMediaViewExtension', index: 14}
          min: 0
          max: 1
  custodian:
    type: Reference
    refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core']
    index: 34
  identifier:
    index: 15
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: value}
      min: null
      slices:
        seriesInstanceUid:
          match: {}
          schema:
            index: 16
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '00080018', system: 'http://hl7.eu/fhir/imaging/CodeSystem/codesystem-missing-dicom-terminology'}
                index: 17
              system:
                pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                index: 18
              value: {index: 19}
              assigner:
                type: Reference
                refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core']
                index: 20
            required: [value, type, system]
        sopClassInstanceUid:
          match: {}
          schema:
            index: 21
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '112002', system: 'http://dicom.nema.org/resources/ontology/DCM'}
                index: 22
              system:
                pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                index: 23
              value: {index: 24}
              assigner:
                type: Reference
                refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core']
                index: 25
            required: [value, type, system]
  context:
    elements:
      sourcePatientInfo:
        type: Reference
        refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-patient-animal', 'https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core']
        index: 47
  subject:
    type: Reference
    refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-patient-animal', 'https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core']
    index: 30
  authenticator:
    type: Reference
    refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core']
    index: 33
package_version: 1.0.0
extensions:
  basedOn:
    url: http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.basedOn
    type: Extension
    index: 1
    extensions: {}
    elements:
      extension: {index: 2}
      value:
        choices: [valueReference]
        index: 4
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/AppointmentResponse', 'http://hl7.org/fhir/StructureDefinition/Claim', 'http://hl7.org/fhir/StructureDefinition/CommunicationRequest', 'http://hl7.org/fhir/StructureDefinition/Contract', 'http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest', 'http://hl7.org/fhir/StructureDefinition/DeviceRequest', 'http://hl7.org/fhir/StructureDefinition/EnrollmentRequest', 'http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation', 'http://hl7.org/fhir/StructureDefinition/NutritionOrder', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest', 'http://hl7.org/fhir/StructureDefinition/SupplyRequest', 'http://hl7.org/fhir/StructureDefinition/VisionPrescription', 'https://hl7.cz/fhir/core/StructureDefinition/appointment-cz-core', 'https://hl7.cz/fhir/core/StructureDefinition/medicationRequest-cz-core', 'https://hl7.cz/fhir/img/StructureDefinition/cz-carePlanImage', 'https://hl7.cz/fhir/img/StructureDefinition/cz-imagingOrderInformation']
        index: 5
  basedOn/imorderaccession:
    url: null
    index: 6
    extensions: {}
    elements:
      extension: {index: 7}
      value:
        choices: [valueReference]
        index: 9
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-imagingOrderInformation']
        index: 10
      value[x]:
        elements:
          identifier: {type: Identifier, index: 11}
        required: [identifier]
  modality: {url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.modality', min: 1, max: 1, type: Extension, index: 12}
  note: {url: 'http://hl7.org/fhir/StructureDefinition/note|5.3.0', min: 0, max: 1, type: Extension, index: 13}
  view: {url: 'https://hl7.cz/fhir/img/StructureDefinition/CrossVersionMediaViewExtension', min: 0, max: 1, type: Extension, index: 14}
class: profile
kind: resource
url: https://hl7.cz/fhir/img/StructureDefinition/cz-keyImage-documentReference
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.0.0
required: [extension, subject, category]