PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh@dhdr-4.0.0-alpha1.0.2
    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}
  extension:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        monitoredDrugIndicator:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-monitored-drug-indicator', index: 2}
          min: 0
          max: 1
        compoundIndicator:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-compound-indicator', index: 3}
          min: 0
  code:
    mustSupport: true
    index: 4
    elements:
      coding:
        mustSupport: true
        index: 5
        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: 6
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/NamingSystem/ca-hc-din'}
                    mustSupport: true
                    index: 7
                  code: {mustSupport: true, index: 8}
                  display: {mustSupport: true, index: 9}
                required: [display, system, code]
            drugGeneric:
              match: {system: 'https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name', code: null}
              schema:
                mustSupport: true
                index: 10
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name'}
                    mustSupport: true
                    index: 11
                  display: {mustSupport: true, index: 12}
                required: [display, system]
            drugCCDD:
              match: {system: 'https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset', code: null}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct'}
                mustSupport: true
                index: 13
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset'}
                    mustSupport: true
                    index: 14
                  code: {mustSupport: true, index: 15}
                  display: {mustSupport: true, index: 16}
                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: 17
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-hc-npn'}
                    mustSupport: true
                    index: 18
                  code: {mustSupport: true, index: 19}
                  display: {mustSupport: true, index: 20}
                required: [display, system, code]
      text: {mustSupport: true, index: 21}
  ingredient:
    mustSupport: true
    index: 22
    elements:
      item:
        mustSupport: true
        choices: [itemCodeableConcept]
        index: 24
      itemCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: item, index: 25}
      item[x]:
        elements:
          coding:
            mustSupport: true
            index: 26
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                drugCCDD:
                  match: {system: 'https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset'}
                  schema:
                    binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct'}
                    mustSupport: true
                    index: 27
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset'}
                        mustSupport: true
                        index: 28
                      code: {mustSupport: true, index: 29}
                      display: {mustSupport: true, index: 30}
                    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: 31
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-hc-npn'}
                        mustSupport: true
                        index: 32
                      code: {mustSupport: true, index: 33}
                      display: {mustSupport: true, index: 34}
                    required: [display, system, code]
                drugGeneric:
                  match: {system: 'https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name'}
                  schema:
                    mustSupport: true
                    index: 35
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name'}
                        mustSupport: true
                        index: 36
                      display: {mustSupport: true, index: 37}
                    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: 38
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://hl7.org/fhir/NamingSystem/ca-hc-din'}
                        mustSupport: true
                        index: 39
                      code: {mustSupport: true, index: 40}
                      display: {mustSupport: true, index: 41}
                    required: [display, system, code]
          text: {mustSupport: true, index: 42}
package_version: dhdr-4.0.0-alpha1.0.2
extensions:
  monitoredDrugIndicator: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-monitored-drug-indicator', min: 0, max: 1, type: Extension, isModifier: false, index: 2}
  compoundIndicator: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-compound-indicator', min: 0, type: Extension, isModifier: false, index: 3}
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.0
required: [code]