PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh-dhdr@4.0.2-alpha1.0.1
    http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-consumer-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-dhdr
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:
        MedicationStrength:
          match: {url: null}
          schema: {type: Extension, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-medication-strength', index: 2}
          min: 0
        compoundIndicator:
          match: {url: null}
          schema: {type: Extension, 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
        array: true
        min: 1
        max: 8
        index: 5
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          - {path: code, type: value}
          min: 1
          max: 8
          slices:
            drugIdentifier:
              match: {system: 'http://hl7.org/fhir/NamingSystem/ca-hc-din', code: null}
              schema:
                mustSupport: true
                _required: 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]
            drugClass:
              match: {system: 'https://ehealthontario.ca/fhir/NamingSystem/ca-on-drug-class-ahfs', code: null}
              schema:
                mustSupport: true
                array: true
                max: 3
                index: 13
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://ehealthontario.ca/fhir/NamingSystem/ca-on-drug-class-ahfs'}
                    mustSupport: true
                    index: 14
                  code:
                    binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/drugclassification'}
                    mustSupport: true
                    index: 15
                  display: {mustSupport: true, index: 16}
                required: [display, system, code]
            drugSubclass:
              match: {system: 'https://ehealthontario.ca/fhir/NamingSystem/ca-on-drug-subclass-ahfs', code: null}
              schema:
                mustSupport: true
                array: true
                max: 3
                index: 17
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://ehealthontario.ca/fhir/NamingSystem/ca-on-drug-subclass-ahfs'}
                    mustSupport: true
                    index: 18
                  code:
                    binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/drugsubclassification'}
                    mustSupport: true
                    index: 19
                  display: {mustSupport: true, index: 20}
                required: [system, code]
    required: [coding]
  form:
    mustSupport: true
    index: 21
    elements:
      coding:
        binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiondrugform'}
        mustSupport: true
        index: 22
        elements:
          system: {mustSupport: true, index: 23}
          code: {mustSupport: true, index: 24}
          display: {mustSupport: true, index: 25}
        required: [system, code]
      text: {mustSupport: true, index: 26}
    required: [coding, text]
package_version: 4.0.2-alpha1.0.1
extensions:
  MedicationStrength: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-medication-strength', min: 0, type: Extension, index: 2}
  compoundIndicator: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-compound-indicator', min: 0, type: Extension, index: 3}
class: profile
kind: resource
url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-consumer-profile-Medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.0.0
required: [code]