PackagesCanonicalsLogsProblems
    Packages
    rs/ch.fhir.ig.ch@epr-fhir-5.0.0-ballot
    http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-mhd-documentreference-comprehensive
description: CH MHD Profile on CH Core DocumentReference
package_name: rs/ch.fhir.ig.ch
derivation: constraint
name: CHMhdDocumentReferenceComprehensive
type: DocumentReference
elements:
  description: {mustSupport: true, index: 15}
  category:
    binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.classCode'}
    mustSupport: true
    index: 8
  docStatus: {index: 6}
  content:
    index: 17
    elements:
      attachment:
        mustSupport: true
        index: 18
        elements:
          contentType:
            binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.mimeType'}
            mustSupport: true
            index: 19
          language:
            binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.languageCode'}
            mustSupport: true
            index: 20
          data: {index: 21}
          url: {short: 'The ITI-68 endpoint to use, or a reference to the Binary resource in the Bundle.', mustSupport: true, index: 22}
          size: {mustSupport: true, index: 23}
          hash: {mustSupport: true, index: 24}
          title: {mustSupport: true, index: 25}
          creation: {mustSupport: true, index: 26}
        required: [contentType, creation, language, title, url]
      format:
        binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.formatCode'}
        mustSupport: true
        index: 27
    required: [format]
  type:
    binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.typeCode'}
    mustSupport: true
    index: 7
  author:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-relatedperson', 'http://hl7.org/fhir/StructureDefinition/Device']
    index: 11
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        deletionStatus:
          match: {url: null}
          schema: {type: Extension, short: Deletion status of the document, mustSupport: true, url: 'http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-ext-deletionstatus', index: 1}
          min: 0
          max: 1
        originalProviderRole:
          match: {url: null}
          schema: {type: Extension, short: 'Original ProviderRole: This extra metadata attribute SHALL be set by the Document Source actor to the role value of the current user and SHALL NOT be updated by Update Initiator or Document Administrator actors.', mustSupport: true, url: 'http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-ext-author-authorrole', index: 2}
          min: 1
          max: 1
  masterIdentifier: {type: Identifier, mustSupport: true, index: 3}
  custodian: {index: 13}
  status: {short: current | superseded, mustSupport: true, index: 5}
  identifier: {mustSupport: true, index: 4}
  relatesTo: {mustSupport: true, index: 14}
  context:
    index: 28
    elements:
      event:
        binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.eventCodeList'}
        mustSupport: true
        index: 29
      period: {mustSupport: true, index: 30}
      facilityType:
        binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.healthcareFacilityTypeCode', bindingName: DocumentC80FacilityType}
        mustSupport: true
        index: 31
      practiceSetting:
        binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.practiceSettingCode', bindingName: DocumentC80PracticeSetting}
        mustSupport: true
        index: 32
      sourcePatientInfo:
        type: Reference
        mustSupport: true
        refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient']
        index: 33
      related:
        index: 34
        slicing:
          rules: open
          discriminator:
          - {path: identifier, type: value}
          min: null
          slices:
            StudyInstanceUID:
              match: {identifier: null}
              schema:
                mustSupport: true
                index: 35
                elements:
                  identifier: {type: Identifier, short: 'Requirements on XDS-I.b (Swiss context): When a Imaging Document Source provides a document to the Document Repository, it must provide the StudyInstanceUID, found in the to be registered KOS object, in the referenceIdList (urn:ihe:iti:xds:2013:referenceIdList) attribute of the documentEntry metadata.', mustSupport: true, index: 36}
    required: [facilityType, practiceSetting, sourcePatientInfo]
  securityLabel:
    binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.confidentialityCode'}
    mustSupport: true
    index: 16
  subject:
    mustSupport: true
    index: 9
    elements:
      identifier: {type: Identifier, index: 10}
    required: [identifier]
  authenticator:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole']
    index: 12
package_version: epr-fhir-5.0.0-ballot
extensions:
  deletionStatus: {url: 'http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-ext-deletionstatus', min: 0, max: 1, type: Extension, short: Deletion status of the document, mustSupport: true, index: 1}
  originalProviderRole: {url: 'http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-ext-author-authorrole', min: 1, max: 1, type: Extension, short: 'Original ProviderRole: This extra metadata attribute SHALL be set by the Document Source actor to the role value of the current user and SHALL NOT be updated by Update Initiator or Document Administrator actors.', mustSupport: true, index: 2}
class: profile
kind: resource
url: http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-mhd-documentreference-comprehensive
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-documentreference
version: 5.0.0-ballot
required: [category, context, extension, masterIdentifier, securityLabel, subject, type]