PackagesCanonicalsLogsProblems
    Packages
    rs/ch.chmed20af.emediplan@1.0.0
    http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-card-composition
description: Profile for the Composition Resource of the Medication Card document.
package_name: rs/ch.chmed20af.emediplan
derivation: constraint
name: CompositionMedicationCardDocument
type: Composition
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        informationRecipient:
          match: {url: null}
          schema: {short: A recipient of this document, index: 1}
        privatefield:
          match: {url: null}
          schema: {type: Extension, short: Private fields for patient, url: 'http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-privatefield', index: 2}
          min: 0
  identifier: {short: Logical identifier for document (GUID), index: 3}
  type:
    short: Document type
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '721912009', system: 'http://snomed.info/sct', display: Medication summary document (record artifact)}
    type: CodeableConcept
    index: 4
  subject:
    type: Reference
    short: Patient
    refers: ['http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-card-patient']
    index: 5
  date: {short: Composition editing time, index: 6}
  author:
    type: Reference
    short: Author
    refers: ['http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-card-patient', 'http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-practitioner', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 7
  attester:
    short: The authenticator of the document (person)
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: mode, type: value}
      min: null
      slices:
        professionalAuthenticator:
          match: {mode: professional}
          schema:
            short: The professional authenticator of the document (person)
            index: 9
            elements:
              mode:
                pattern: {type: code, value: professional}
                type: code
                index: 10
              time: {short: 'When composition was attested by the party, Validate date: Date of validation', index: 11}
              party:
                type: Reference
                short: 'Validated by: The Gln of the pharmacist who has validated the medication card'
                refers: ['http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-practitioner']
                index: 12
  section:
    index: 13
    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: Original representation
            index: 14
            elements:
              title: {short: Original representation, index: 15}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 55108-5, system: 'http://loinc.org', display: Clinical presentation}
                type: CodeableConcept
                index: 16
              text: {short: Representation of the original view, index: 17}
              entry:
                type: Reference
                short: PDF
                refers: ['http://hl7.org/fhir/StructureDefinition/Binary']
                index: 18
              section: {index: 19}
        card:
          match:
            code:
              coding:
              - {code: 10160-0, system: 'http://loinc.org', display: History of medication use}
          schema:
            index: 20
            elements:
              title: {short: '''Medikamentenliste'' in german or ''Liste de médicaments'' in french or ''Lista farmaci'' in talian or ''Medication List'' in english                         or titles in other languages are also allowed', index: 21}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org', display: History of medication use}
                type: CodeableConcept
                index: 22
              entry:
                type: Reference
                short: Medication statement
                refers: ['http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-card-medicationstatement']
                index: 23
              section: {index: 24}
        annotation:
          match:
            code:
              coding:
              - {code: 48767-8, system: 'http://loinc.org', display: Annotation comment}
          schema:
            index: 25
            elements:
              title: {short: '''Kommentar'' in german or ''Commentaire'' in french or ''Osservazione'' in italian or ''Comment'' in english                         or titles in other languages are also allowed', index: 26}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48767-8, system: 'http://loinc.org', display: Annotation comment}
                type: CodeableConcept
                index: 27
              entry: {short: General comments, index: 28}
              section: {index: 29}
        healthconcerns:
          match:
            code:
              coding:
              - {code: 75310-3, system: 'http://loinc.org', display: Health Concerns}
          schema:
            index: 30
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 75310-3, system: 'http://loinc.org', display: Health Concerns}
                type: CodeableConcept
                index: 31
              entry:
                index: 32
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    bodyweight:
                      match: {}
                      schema:
                        type: Reference
                        short: Body Weight (kg)
                        refers: ['http://hl7.org/fhir/StructureDefinition/bodyweight']
                        index: 33
                      max: 1
                    bodyheight:
                      match: {}
                      schema:
                        type: Reference
                        short: Body height (cm)
                        refers: ['http://hl7.org/fhir/StructureDefinition/bodyheight']
                        index: 34
                      max: 1
                    dlstmen:
                      match: {}
                      schema:
                        short: First day of last menstruation
                        refers: ['http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-obs-dateoflastmenstruation']
                        type: Reference
                        index: 35
                      max: 1
                    prematurebaby:
                      match: {}
                      schema:
                        short: Premature Baby
                        refers: ['http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-obs-prematurebaby']
                        type: Reference
                        index: 36
                      max: 1
                    timeofgestation:
                      match: {}
                      schema:
                        short: Time of gestation
                        refers: ['http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-obs-timeofgestation']
                        type: Reference
                        index: 37
                      max: 1
                    risks:
                      match: {}
                      schema:
                        short: Risks
                        refers: ['http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-condition-risks']
                        type: Reference
                        array: true
                        max: 6
                        index: 38
                      max: 6
              section: {index: 39}
            required: [code]
package_version: 1.0.0
extensions:
  informationRecipient: {url: null, short: A recipient of this document, index: 1}
  privatefield: {url: 'http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-privatefield', min: 0, type: Extension, short: Private fields for patient, index: 2}
class: profile
kind: resource
url: http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-card-composition
base: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationcard
version: 1.0.0