PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@emed-4.0.0
    http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-pharmaceuticaladvice
description: Definition of the composition for the pharmaceutical advice document
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHEMEDCompositionPharmaceuticalAdvice
type: Composition
elements:
  date: {short: The document's creation date and time, index: 5}
  section:
    index: 14
    slicing:
      slices:
        pharmaceuticalAdvice:
          match: {}
          schema:
            short: Pharmaceutical advice
            _required: true
            index: 15
            elements:
              title:
                short: "'Hinweise zur Medikation' in german or 'Conseils sur les médicaments' in french or 'Consigli sui medicamenti' in italian or 'Pharmaceutical Advice' in english\r\n                        or titles in other languages are also allowed"
                index: 16
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 61357-0, system: 'http://loinc.org'}
                index: 17
              text: {short: Human readable text of this section, index: 18}
              entry:
                type: Reference
                short: Observation
                refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-observation']
                index: 19
                elements:
                  reference: {index: 20}
                required: [reference]
              section: {index: 21}
            required: [entry, text, title, code]
        annotation:
          match: {}
          schema:
            short: Annotation
            index: 22
            elements:
              title:
                short: "'Kommentar' in german or 'Commentaire' in french or 'Osservazione' in italian or 'Comment' in english\r\n                        or titles in other languages are also allowed"
                index: 23
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48767-8, system: 'http://loinc.org'}
                index: 24
              text: {short: Human readable text of this section, index: 25}
              section: {index: 26}
            required: [text, title, code]
  attester:
    short: The authenticator of the document (person)
    index: 11
    slicing:
      slices:
        legalAuthenticator:
          match: {}
          schema:
            short: The legal authenticator of the document (person)
            index: 12
            elements:
              time: {short: Timestamp of the signature, index: 13}
  type:
    short: Record artifact (record artifact)
    constraint:
      ch-emed-comp-padv: {human: 'If a LOINC code is additionally provided, ''61356-2'' shall be used for this document type.', source: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-pharmaceuticaladvice', severity: error, expression: 'coding.exists(system = ''http://loinc.org'') and (coding.exists(system = ''http://loinc.org'' and code = ''61356-2''))'}
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '419891008', system: 'http://snomed.info/sct'}
    index: 3
  title:
    short: "'Kommentar zur Medikation' in german or 'Commentaire relatif à la médication' in french or 'Commento sulla terapia farmacologica' in italian or 'Pharmaceutical Advice' in english\r\n                        or titles in other languages are also allowed"
    index: 9
  author:
    index: 6
    slicing:
      rules: closed
      discriminator:
      - {path: resolve(), type: profile}
      min: null
      slices:
        person:
          match: {}
          schema:
            type: Reference
            short: The author of the document (person)
            refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
            array: true
            min: 1
            _required: true
            index: 7
          min: 1
        device:
          match: {}
          schema:
            type: Reference
            short: The device that created the document
            refers: ['http://hl7.org/fhir/StructureDefinition/Device']
            array: true
            index: 8
          min: 0
  status:
    pattern: {type: Code, value: final}
    index: 2
  language: {short: Language of the document, index: 0}
  identifier:
    elements:
      value: {index: 1}
  subject: {short: A patient for whom this document instance was created, index: 4}
  confidentiality:
    extensions:
      confidentialityCode: {url: null, short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 10}
    elements:
      extension:
        short: Swiss realm of confidentiality code according to the Swiss EPR regulation
        index: 10
        slicing:
          slices:
            confidentialityCode:
              match: {}
              schema: {short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 10}
package_version: emed-4.0.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-pharmaceuticaladvice
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr
version: 4.0.0
required: [section]