PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh@dhdr-4.0.1-alpha1.0.0
    http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Medication
description: This resource is used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication.
package_name: ca.on.oh
derivation: constraint
name: Medication
type: Medication
elements:
  id: {mustSupport: true, index: 0}
  meta:
    mustSupport: true
    index: 1
    elements:
      profile: {mustSupport: true, index: 2}
    required: [profile]
  extension:
    mustSupport: true
    index: 3
    slicing:
      slices:
        monitoredDrugIndicator:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-monitored-drug-indicator', index: 4}
          max: 1
        compoundIndicator:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-compound-indicator', index: 5}
  code:
    mustSupport: true
    index: 6
    elements:
      coding:
        mustSupport: true
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          - {path: code, type: value}
          min: null
          slices:
            drugDIN:
              match: {system: 'http://hl7.org/fhir/NamingSystem/ca-hc-din', code: null}
              schema:
                binding: {strength: required, valueSet: 'http://www.canada.ca/en/health-canada/services/drugs-health-products/drug-products/drug-product-database-3'}
                mustSupport: true
                index: 8
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/NamingSystem/ca-hc-din'}
                    mustSupport: true
                    index: 9
                  code: {mustSupport: true, index: 10}
                  display: {mustSupport: true, index: 11}
                required: [display, system, code]
            drugGeneric:
              match: {system: 'https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name', code: null}
              schema:
                mustSupport: true
                index: 12
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name'}
                    mustSupport: true
                    index: 13
                  display: {mustSupport: true, index: 14}
                required: [display, system]
            drugCCDD:
              match: {system: 'http://terminology.hl7.org/CodeSystem/hc-CCDD', code: null}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct'}
                mustSupport: true
                index: 15
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/hc-CCDD'}
                    mustSupport: true
                    index: 16
                  code: {mustSupport: true, index: 17}
                  display: {mustSupport: true, index: 18}
                required: [display, system, code]
            drugNatural:
              match: {system: 'http://terminology.hl7.org/CodeSystem/v3-hc-npn', code: null}
              schema:
                binding: {strength: required, valueSet: 'http://fhir.infoway-inforoute.ca/io/psca/ValueSet/LicensedNaturalHealthProducts'}
                mustSupport: true
                index: 19
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-hc-npn'}
                    mustSupport: true
                    index: 20
                  code: {mustSupport: true, index: 21}
                  display: {mustSupport: true, index: 22}
                required: [display, system, code]
      text: {mustSupport: true, index: 23}
  ingredient:
    mustSupport: true
    index: 24
    elements:
      item:
        mustSupport: true
        choices: [itemCodeableConcept]
        index: 26
      itemCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: item, index: 27}
      item[x]:
        elements:
          coding:
            mustSupport: true
            index: 28
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                drugCCDD:
                  match: {system: 'http://terminology.hl7.org/CodeSystem/hc-CCDD'}
                  schema:
                    binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct'}
                    mustSupport: true
                    index: 29
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/hc-CCDD'}
                        mustSupport: true
                        index: 30
                      code: {mustSupport: true, index: 31}
                      display: {mustSupport: true, index: 32}
                    required: [display, system, code]
                drugNatural:
                  match: {system: 'http://terminology.hl7.org/CodeSystem/v3-hc-npn'}
                  schema:
                    binding: {strength: required, valueSet: 'http://fhir.infoway-inforoute.ca/io/psca/ValueSet/LicensedNaturalHealthProducts'}
                    mustSupport: true
                    index: 33
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-hc-npn'}
                        mustSupport: true
                        index: 34
                      code: {mustSupport: true, index: 35}
                      display: {mustSupport: true, index: 36}
                    required: [display, system, code]
                drugGeneric:
                  match: {system: 'https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name'}
                  schema:
                    mustSupport: true
                    index: 37
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name'}
                        mustSupport: true
                        index: 38
                      display: {mustSupport: true, index: 39}
                    required: [display, system]
                drugDIN:
                  match: {system: 'http://hl7.org/fhir/NamingSystem/ca-hc-din'}
                  schema:
                    binding: {strength: required, valueSet: 'http://www.canada.ca/en/health-canada/services/drugs-health-products/drug-products/drug-product-database-3'}
                    mustSupport: true
                    index: 40
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://hl7.org/fhir/NamingSystem/ca-hc-din'}
                        mustSupport: true
                        index: 41
                      code: {mustSupport: true, index: 42}
                      display: {mustSupport: true, index: 43}
                    required: [display, system, code]
          text: {mustSupport: true, index: 44}
package_version: dhdr-4.0.1-alpha1.0.0
extensions:
  monitoredDrugIndicator: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-monitored-drug-indicator', max: 1, type: Extension, isModifier: false, index: 4}
  compoundIndicator: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-compound-indicator', type: Extension, isModifier: false, index: 5}
class: profile
kind: resource
url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 4.0.1
required: [meta, code]