PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@core-5.0.0
    http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-documentreference-epr
description: Definition of the DocumentReference resource for use in the context of the electronic patient record (EPR).
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHCoreDocumentReferenceEPR
type: DocumentReference
elements:
  category:
    binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.classCode'}
    index: 1
  date: {index: 4}
  content:
    elements:
      attachment:
        elements:
          contentType:
            constraint:
              ch-docref-2: {human: 'The codes from the following ValueSet shall be used if one of them can be applied (aka ''extensible''): http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.mimeType', source: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-documentreference-epr', severity: warning, expression: 'memberOf(''http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.mimeType'')'}
            index: 10
          language:
            binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.languageCode'}
            index: 11
          url: {index: 12}
        required: [url, contentType, language]
      format:
        binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.formatCode'}
        index: 13
    required: [format]
  type:
    binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.typeCode'}
    index: 0
  author:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole-epr', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 5
    elements:
      reference: {index: 6}
    required: [reference]
  custodian:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr']
    index: 8
  context:
    elements:
      facilityType:
        binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.healthcareFacilityTypeCode'}
        index: 14
      practiceSetting:
        binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.practiceSettingCode'}
        index: 15
      sourcePatientInfo:
        type: Reference
        refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr']
        index: 16
  securityLabel: {index: 9}
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr']
    index: 2
    elements:
      reference: {index: 3}
    required: [reference]
  authenticator:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole-epr']
    index: 7
package_version: core-5.0.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-documentreference-epr
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-documentreference
version: 5.0.0
required: [securityLabel, author, subject, type, date, category]