PackagesCanonicalsLogsProblems
    Packages
    ihe.rad.mado@1.0.0
    https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirDocumentReference
description: MADO specific profile for the IHE-MHD Document Reference for FHIR Imaging Study Manifest that includes the MADO specific content format, the extensions\nrelated to body-site and modality, and the definition on where `StudyInstanceUID` and `AccessionNumber` are stored.\n\nThis profile requires `context.period` and copies most of the restrictions defined in the [MHD DocumentReference Comprehensive](https://profiles.ihe.net/ITI/MHD/StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.html) \nprofiles (except `securityLabel`).
package_name: ihe.rad.mado
derivation: constraint
name: MadoFhirDocumentReference
type: DocumentReference
elements:
  category: {short: 'Categorization of document, see section 6.X.6 of volume 3.', index: 8}
  content:
    short: Clinical context of the manifest
    index: 19
    extensions:
      profile:
        url: http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.content.profile
        type: Extension
        short: Contains the profile of the referred report
        index: 21
        extensions:
          value:
            url: null
            index: 22
            extensions: {}
            elements:
              extension: {index: 23}
              value:
                choices: []
                index: 25
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    valueCanonical:
                      match: {}
                      schema:
                        pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                        choices: [valueCanonical]
                        index: 27
                      min: 0
                      max: 1
              valueCanonical:
                type: canonical
                pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                choiceOf: value
                index: 28
                slicing:
                  slices:
                    valueCanonical:
                      match: {}
                      schema:
                        type: canonical
                        pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                        choiceOf: value
                        index: 28
                      min: 0
                      max: 1
        elements:
          extension:
            index: 22
            slicing:
              slices:
                value:
                  match: {}
                  schema:
                    index: 22
                    extensions: {}
                    elements:
                      extension: {index: 23}
                      value:
                        choices: []
                        index: 25
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: $this, type: type}
                          min: null
                          slices:
                            valueCanonical:
                              match: {}
                              schema:
                                pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                                choices: [valueCanonical]
                                index: 27
                              min: 0
                              max: 1
                      valueCanonical:
                        type: canonical
                        pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                        choiceOf: value
                        index: 28
                        slicing:
                          slices:
                            valueCanonical:
                              match: {}
                              schema:
                                type: canonical
                                pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                                choiceOf: value
                                index: 28
                              min: 0
                              max: 1
    elements:
      extension:
        index: 20
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            profile:
              match: {url: null}
              schema:
                type: Extension
                short: Contains the profile of the referred report
                url: http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.content.profile
                index: 21
                extensions:
                  value:
                    url: null
                    index: 22
                    extensions: {}
                    elements:
                      extension: {index: 23}
                      value:
                        choices: []
                        index: 25
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: $this, type: type}
                          min: null
                          slices:
                            valueCanonical:
                              match: {}
                              schema:
                                pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                                choices: [valueCanonical]
                                index: 27
                              min: 0
                              max: 1
                      valueCanonical:
                        type: canonical
                        pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                        choiceOf: value
                        index: 28
                        slicing:
                          slices:
                            valueCanonical:
                              match: {}
                              schema:
                                type: canonical
                                pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                                choiceOf: value
                                index: 28
                              min: 0
                              max: 1
                elements:
                  extension:
                    index: 22
                    slicing:
                      slices:
                        value:
                          match: {}
                          schema:
                            index: 22
                            extensions: {}
                            elements:
                              extension: {index: 23}
                              value:
                                choices: []
                                index: 25
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCanonical:
                                      match: {}
                                      schema:
                                        pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                                        choices: [valueCanonical]
                                        index: 27
                                      min: 0
                                      max: 1
                              valueCanonical:
                                type: canonical
                                pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                                choiceOf: value
                                index: 28
                                slicing:
                                  slices:
                                    valueCanonical:
                                      match: {}
                                      schema:
                                        type: canonical
                                        pattern: {type: Canonical, value: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirBundle'}
                                        choiceOf: value
                                        index: 28
                                      min: 0
                                      max: 1
      attachment:
        elements:
          contentType:
            pattern: {type: Code, value: application/fhir+json}
            index: 29
          language: {index: 30}
          creation: {index: 31}
        required: [language, creation]
      format:
        index: 32
        elements:
          system:
            pattern: {type: Uri, value: 'http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode'}
            index: 33
          code:
            pattern: {type: Code, value: 'urn:ihe:rad:MADO:fhir-manifest:2026'}
            index: 34
    required: [extension, format]
  type: {short: 'Kind of document (LOINC if possible), see section 6.X.6 of volume 3.', index: 7}
  author:
    short: Who and/or what authored the document (i.e. manifest)
    index: 10
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this.resolve(), type: profile}
      min: null
      slices:
        source-organization:
          match: {}
          schema:
            type: Reference
            short: The organization that generated the manifest.
            refers: ['https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoCreatorOrganization']
            index: 11
          min: 0
          max: 1
        source-device:
          match: {}
          schema:
            type: Reference
            short: The device that generated the manifest.
            refers: ['https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoCreator']
            index: 12
          min: 0
          max: 1
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        bodysite:
          match: {url: null}
          schema:
            short: The anatomical region of the patient that is the focus of the imaging manifest, concept field is required.
            type: Extension
            mustSupport: true
            url: https://profiles.ihe.net/RAD/MADO/StructureDefinition/ext-R5-DocumentReference.bodySite
            index: 1
            elements:
              value:
                choices: []
                index: 3
        modality:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/ext-R5-DocumentReference.modality', index: 4}
          min: 1
  masterIdentifier: {short: The identifier of the FHIR Imaging Study Manifest., index: 5}
  custodian: {short: Organization which maintains the document (i.e. manifest), index: 14}
  identifier: {index: 6}
  relatesTo:
    index: 15
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: value}
      min: null
      slices:
        kos-reference:
          match: {code: transforms}
          schema:
            short: Reference to the DocumentReference resource that contains the DICOM KOS manifest that corresponds to this imaging manifest in FHIR format
            index: 16
            elements:
              code:
                pattern: {type: Code, value: transforms}
                index: 17
              target:
                type: Reference
                refers: ['https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoDicomKosDocumentReference']
                index: 18
  context:
    index: 35
    elements:
      event: {short: 'Main clinical acts documented, could include the study procedure codes.', index: 36}
      period:
        index: 37
        elements:
          start: {short: The start time of the study referred to by the manifest, index: 38}
        required: [start]
      facilityType: {index: 39}
      practiceSetting: {index: 40}
      related:
        index: 41
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: identifier, type: profile}
          min: 1
          slices:
            study-instance-uid:
              match: {}
              schema:
                short: The Study Instance UID of the imaging study that is the focus of the imaging manifest, represented as an Identifier with a fixed system and a value that corresponds to the Study Instance UID.
                refers: ['http://hl7.org/fhir/StructureDefinition/Resource|4.0.1']
                type: Reference
                mustSupport: true
                _required: true
                index: 42
              min: 1
              max: 1
            accession-number:
              match: {}
              schema:
                short: The Accession Number of the imaging study that is the focus of the imaging manifest, represented as an Identifier with a fixed system and a value that corresponds to the Accession Number.
                refers: ['http://hl7.org/fhir/StructureDefinition/Resource|4.0.1']
                type: Reference
                mustSupport: true
                index: 43
              min: 0
              max: 1
    required: [related, practiceSetting, period, facilityType]
  subject: {index: 9}
  authenticator: {short: Who/what authenticated the document (i.e. manifest), index: 13}
package_version: 1.0.0
extensions:
  bodysite:
    url: https://profiles.ihe.net/RAD/MADO/StructureDefinition/ext-R5-DocumentReference.bodySite
    short: The anatomical region of the patient that is the focus of the imaging manifest, concept field is required.
    type: Extension
    mustSupport: true
    index: 1
    elements:
      value:
        choices: []
        index: 3
  modality: {url: 'https://profiles.ihe.net/RAD/MADO/StructureDefinition/ext-R5-DocumentReference.modality', min: 1, type: Extension, mustSupport: true, index: 4}
class: profile
kind: resource
url: https://profiles.ihe.net/RAD/MADO/StructureDefinition/MadoFhirDocumentReference
base: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference
version: 1.0.0
required: [extension, context, identifier, subject, type, category]