PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@core-5.0.0-ballot
    http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr
description: Definition of the Composition resource for use in the context of the electronic patient record (EPR).
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHCoreCompositionEPR
type: Composition
elements:
  section:
    index: 23
    elements:
      author:
        type: Reference
        refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', '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: 24
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: pattern}
      min: null
      slices:
        originalRepresentation:
          match:
            code:
              coding:
              - {code: 55108-5, system: 'http://loinc.org'}
          schema:
            short: Contains the original representation as a PDF of the current document.
            index: 25
            elements:
              title: {short: Original representation, index: 26}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 55108-5, system: 'http://loinc.org'}
                index: 27
              text: {short: Representation of the original view, index: 28}
              entry:
                type: Reference
                short: According to the EPR ordonnance the PDF has to be in PDF/A-1 or PDF/A-2 format.
                refers: ['http://hl7.org/fhir/StructureDefinition/Binary']
                index: 29
                extensions:
                  narrativeLink: {url: 'http://hl7.org/fhir/StructureDefinition/narrativeLink', min: 0, max: 1, type: Extension, short: narrativeLink to img src attribute, index: 30}
                elements:
                  extension:
                    type: Extension
                    short: narrativeLink to img src attribute
                    url: http://hl7.org/fhir/StructureDefinition/narrativeLink
                    index: 30
                    slicing:
                      slices:
                        narrativeLink:
                          match: {}
                          schema: {type: Extension, short: narrativeLink to img src attribute, url: 'http://hl7.org/fhir/StructureDefinition/narrativeLink', index: 30}
                          min: 0
                          max: 1
              section: {index: 31}
            required: [entry, text, title, code]
  attester:
    index: 14
    slicing:
      rules: open
      discriminator:
      - {path: mode, type: value}
      min: null
      slices:
        legalAuthenticator:
          match: {mode: legal}
          schema:
            short: legal authenticator
            index: 15
            elements:
              mode:
                pattern: {type: Code, value: legal}
                index: 16
              party:
                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/RelatedPerson']
                index: 17
            required: [party]
  type:
    short: Kind of composition
    binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.typeCode'}
    index: 7
  author:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', '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: 9
    extensions:
      time: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time', min: 0, max: 1, type: Extension, short: Timestamp of the authorship/data input, index: 10}
    elements:
      extension:
        type: Extension
        short: Timestamp of the authorship/data input
        url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time
        index: 10
        slicing:
          slices:
            time:
              match: {}
              schema: {type: Extension, short: Timestamp of the authorship/data input, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time', index: 10}
              min: 0
              max: 1
  extension:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        informationRecipient:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient', index: 2}
          min: 0
        dataEnterer:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-dataenterer', index: 3}
          min: 0
          max: 1
  custodian:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr']
    index: 18
  language: {index: 0}
  identifier:
    index: 4
    elements:
      system:
        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
        index: 5
      value: {index: 6}
    required: [value, system]
  relatesTo:
    elements:
      target:
        choices: [targetIdentifier, targetReference]
        index: 20
      targetIdentifier: {type: Identifier, choiceOf: target, index: 21}
      targetReference:
        type: Reference
        choiceOf: target
        refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr']
        index: 22
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr']
    index: 8
  confidentiality:
    index: 11
    extensions:
      confidentialityCode: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode', min: 1, max: 1, type: Extension, index: 13}
    elements:
      extension:
        index: 12
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            confidentialityCode:
              match: {url: null}
              schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode', index: 13}
              min: 1
              max: 1
    required: [extension]
package_version: core-5.0.0-ballot
extensions:
  informationRecipient: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient', min: 0, type: Extension, index: 2}
  dataEnterer: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-dataenterer', min: 0, max: 1, type: Extension, index: 3}
class: profile
kind: resource
url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition
version: 5.0.0-ballot
required: [confidentiality, identifier, subject, language]