PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@core-2.1.0
    http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr
description: Base definition for a composition in the context of the electronic patient record (EPR).
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHCoreCompositionEPR
type: Composition
elements:
  date: {index: 11}
  section:
    index: 32
    extensions:
      sectionId: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-sectionid', min: 0, max: 1, type: Extension, index: 34}
    elements:
      extension:
        index: 33
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            sectionId:
              match: {url: null}
              schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-sectionid', index: 34}
              min: 0
              max: 1
      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: 35
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: pattern}
      min: null
      slices:
        originalRepresentation:
          match:
            code:
              coding:
              - {code: 55108-5, system: 'http://loinc.org', display: Clinical presentation}
          schema:
            short: Contains the original representation as a PDF of the current document.
            index: 36
            elements:
              title: {short: Original representation, index: 37}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 55108-5, system: 'http://loinc.org', display: Clinical presentation}
                index: 38
              text: {short: Representation of the original view, index: 39}
              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: 40
                extensions:
                  narrativeLink: {url: 'http://hl7.org/fhir/StructureDefinition/narrativeLink', min: 0, max: 1, type: Extension, short: narrativeLink to img src attribute, index: 42}
                elements:
                  extension:
                    index: 41
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        narrativeLink:
                          match: {url: null}
                          schema: {type: Extension, short: narrativeLink to img src attribute, url: 'http://hl7.org/fhir/StructureDefinition/narrativeLink', index: 42}
                          min: 0
                          max: 1
              section: {index: 43}
            required: [entry, text, title, code]
  attester:
    index: 20
    slicing:
      rules: open
      discriminator:
      - {path: mode, type: value}
      min: null
      slices:
        legalAuthenticator:
          match: {mode: legal}
          schema:
            short: legal authenticator
            index: 21
            elements:
              mode:
                pattern: {type: Code, value: legal}
                index: 22
              time: {index: 23}
              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: 24
                elements:
                  reference: {index: 25}
            required: [time, party]
  type:
    binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.typeCode'}
    index: 8
  title: {index: 16}
  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: 12
    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: 14}
    elements:
      extension:
        index: 13
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            time:
              match: {url: null}
              schema: {type: Extension, short: Timestamp of the authorship/data input, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time', index: 14}
              min: 0
              max: 1
      reference: {index: 15}
  extension:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        versionNumber:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-versionnumber', index: 2}
          min: 0
          max: 1
        informationRecipient:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient', index: 3}
          min: 1
        dataEnterer:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-dataenterer', index: 4}
          min: 0
          max: 1
  custodian:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr']
    index: 26
    elements:
      reference: {index: 27}
  language: {index: 0}
  identifier:
    index: 5
    elements:
      system:
        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
        index: 6
      value: {index: 7}
    required: [value, system]
  relatesTo:
    elements:
      target:
        choices: [targetIdentifier, targetReference]
        index: 29
      targetIdentifier: {type: Identifier, choiceOf: target, index: 30}
      targetReference:
        type: Reference
        choiceOf: target
        refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr']
        index: 31
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr']
    index: 9
    elements:
      reference: {index: 10}
  confidentiality:
    index: 17
    extensions:
      confidentialityCode: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode', min: 1, max: 1, type: Extension, index: 19}
    elements:
      extension:
        index: 18
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            confidentialityCode:
              match: {url: null}
              schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode', index: 19}
              min: 1
              max: 1
package_version: core-2.1.0
extensions:
  versionNumber: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-versionnumber', min: 0, max: 1, type: Extension, index: 2}
  informationRecipient: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient', min: 1, type: Extension, index: 3}
  dataEnterer: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-dataenterer', min: 0, max: 1, type: Extension, index: 4}
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: 2.1.0
required: [confidentiality, identifier, subject, type, language]