PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-epr-mhealth@1.0.0
    http://fhir.ch/ig/ch-epr-mhealth/StructureDefinition/ch-mhd-documentreference-comprehensive
description: CH MHD Profile on CH Core DocumentReference
package_name: ch.fhir.ig.ch-epr-mhealth
derivation: constraint
name: CHMhdDocumentReferenceComprehensive
type: DocumentReference
elements:
  description: {mustSupport: true, index: 15}
  category: {mustSupport: true, index: 8}
  date: {mustSupport: true, index: 10}
  docStatus: {index: 6}
  content:
    index: 17
    elements:
      attachment:
        mustSupport: true
        index: 18
        elements:
          contentType:
            binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.mimeType'}
            mustSupport: true
            index: 19
          language:
            binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.languageCode'}
            mustSupport: true
            index: 20
          data: {index: 21}
          url: {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: [url, contentType, language, creation]
      format:
        binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.formatCode'}
        mustSupport: true
        index: 27
    required: [format]
  type: {mustSupport: true, index: 7}
  author: {type: Reference, mustSupport: true, index: 11}
  extension:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        deletionStatus:
          match: {url: null}
          schema: {type: Extension, short: Deletion status of the document, mustSupport: true, url: 'http://fhir.ch/ig/ch-epr-mhealth/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-mhealth/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:
      period: {mustSupport: true, index: 29}
      facilityType:
        binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.healthcareFacilityTypeCode'}
        mustSupport: true
        index: 30
      practiceSetting:
        binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.practiceSettingCode'}
        mustSupport: true
        index: 31
      sourcePatientInfo:
        type: Reference
        mustSupport: true
        refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient']
        index: 32
      related:
        mustSupport: true
        index: 33
        elements:
          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: 34}
    required: [practiceSetting, sourcePatientInfo, facilityType]
  securityLabel: {mustSupport: true, index: 16}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient']
    index: 9
  authenticator: {type: Reference, index: 12}
package_version: 1.0.0
extensions:
  deletionStatus: {url: 'http://fhir.ch/ig/ch-epr-mhealth/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-mhealth/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-mhealth/StructureDefinition/ch-mhd-documentreference-comprehensive
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-documentreference
version: 1.0.0
required: [securityLabel, masterIdentifier, context, identifier, subject, type, date, category]