PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@emed-4.0.0
    http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication
description: Definition of the medication
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHEMEDMedication
type: Medication
elements:
  code:
    elements:
      coding:
        short: Code of the medication
        index: 0
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            GTIN:
              match: {system: 'urn:oid:2.51.1.1'}
              schema:
                short: Use GTIN for Swiss products
                mustSupport: true
                array: true
                index: 1
                elements:
                  system:
                    short: Global Trade Item Number (GS1)
                    pattern: {type: Uri, value: 'urn:oid:2.51.1.1'}
                    index: 2
                  code: {index: 3}
                required: [system, code]
            ATC:
              match: {system: 'http://www.whocc.no/atc'}
              schema:
                short: Use ATC for foreign products
                array: true
                index: 4
                elements:
                  system:
                    short: Anatomical Therapeutic Chemical (ATC) Classification
                    pattern: {type: Uri, value: 'http://www.whocc.no/atc'}
                    index: 5
                  code: {index: 6}
                required: [system, code]
      text: {short: Medication name, mustSupport: true, index: 7}
    required: [text]
  form:
    short: Galenic form
    binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-emed/ValueSet/edqm-pharmaceuticaldoseform'}
    index: 8
    elements:
      coding:
        mustSupport: true
        index: 9
        elements:
          system: {index: 10}
          code: {index: 11}
        required: [system, code]
    required: [coding]
  amount: {type: Ratio, short: Package size, index: 12}
  ingredient:
    elements:
      item:
        choices: []
        index: 14
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            itemCodeableConcept:
              match: {}
              schema:
                choices: [itemCodeableConcept]
                index: 16
              min: 0
              max: 1
      itemCodeableConcept:
        type: CodeableConcept
        choiceOf: item
        index: 17
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, choiceOf: item, index: 17}
              min: 0
              max: 1
      item[x]:
        elements:
          coding:
            short: Ingredients coded with SNOMED CT
            binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-emed/ValueSet/ActivePharmaceuticalIngredient'}
            index: 18
          text: {short: Ingredient name, mustSupport: true, index: 19}
        required: [text]
      strength: {type: Ratio, short: Dose per unit, mustSupport: true, index: 20}
package_version: emed-4.0.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 4.0.0