{
  "resourceType": "StructureDefinition",
  "id": "d55eaded-3836-45fc-8860-da8c534b4e5f",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-05-05T20:02:34.6494345+00:00"
  },
  "url": "https://ehealthontario.ca/API/FHIR/StructureDefinition/ca-on-medications-profile-Medication",
  "name": "Medication",
  "status": "draft",
  "date": "2019-05-08T19:51:14.232659Z",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication.extension",
        "path": "Medication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Medication.extension:ExtensionDrugStrength",
        "path": "Medication.extension",
        "sliceName": "ExtensionDrugStrength",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": "https://ehealthontario.ca/API/FHIR/StructureDefinition/ca-on-medications-ext-MedicationStrength"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "short": "Codes that identify the medication/professional services",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding",
        "path": "Medication.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "4",
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugIdentifier",
        "path": "Medication.code.coding",
        "sliceName": "drugIdentifier",
        "short": "Drug Identification Number (DIN)",
        "definition": "Number issued by Health Canada for drugs that can be legally marketed in Canada.\r\nIn absence of DINs, Product Identification Numbers (PINs) may be provided instead.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugIdentifier.system",
        "path": "Medication.code.coding.system",
        "definition": "The identification of the code system that defines the meaning of the symbol in the code. http://www.hc-sc.gc.ca/dhp-mps/prodpharma/databasdon/index_e.html",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/NamingSystem/ca-hc-din",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "The identification of the code system that defines the meaning of the symbol in the code. URI of Health Canada DIN or Ontario Provincial PIN or Local Insurance PIN",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/NamingSystem/ca-hc-din"
          }
        }
      },
      {
        "id": "Medication.code.coding:drugIdentifier.version",
        "path": "Medication.code.coding.version",
        "mustSupport": false
      },
      {
        "id": "Medication.code.coding:drugIdentifier.code",
        "path": "Medication.code.coding.code",
        "comment": "The value will be the dispensed medication’s /professional services' DIN/PIN. Note that FHIR strings may not exceed 1MB in size.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugIdentifier.display",
        "path": "Medication.code.coding.display",
        "label": "Brand name",
        "short": "Brand name",
        "definition": "Brand name of the prescription drug dispensed.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugGeneric",
        "path": "Medication.code.coding",
        "sliceName": "drugGeneric",
        "short": "Drug Name (Generic)",
        "definition": "Non-proprietary name or generic name of the drug dispensed.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugGeneric.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "fixedUri": "https://ehealthontario.ca/API/FHIR/NamingSystem/ca-drug-gen-name",
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugGeneric.display",
        "path": "Medication.code.coding.display",
        "definition": "This value was the generic name submitted to the ODB when the medication/professional services were dispensed.",
        "comment": "This value was the generic name submitted to the ODB when the medication/professional services were dispensed. Note that FHIR strings may not exceed 1MB in size",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugClass",
        "path": "Medication.code.coding",
        "sliceName": "drugClass",
        "short": "Therapeutic Classification Name",
        "definition": "Pharmacologic-therapeutic classification of the prescription drug dispensed, used to group interchangeable drug products.",
        "comment": "Based on American Hospital Formulary Service (AHFS)",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugClass.system",
        "path": "Medication.code.coding.system",
        "comment": "See Terminology Worksheet for list of codes",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Codes supported by eHealth Ontario identifying the classification of a drug",
          "valueSetUri": "https://ehealthontario.ca/fhir/ValueSet/dhdr-ca-on-drug-class-ahfs"
        }
      },
      {
        "id": "Medication.code.coding:drugClass.code",
        "path": "Medication.code.coding.code",
        "definition": "Symbol in syntax defined by the system: https://tgateway.infoway-inforoute.ca/vs/drugclassification",
        "comment": "See Terminology Worksheet for list of display values. Note that FHIR strings may not exceed 1MB in size",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugClass.display",
        "path": "Medication.code.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugSubclass",
        "path": "Medication.code.coding",
        "sliceName": "drugSubclass",
        "short": "Therapeutic Sub-Classification Name",
        "definition": "Pharmacologic-therapeutic sub-classification of the prescription drug dispensed",
        "comment": "Based on American Hospital Formulary Service (AHFS)",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:drugSubclass.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Drug Sub-Classifications",
          "valueSetUri": "https://ehealthontario.ca/fhir/ValueSet/dhdr-ca-on-drug-subclass-ahfs"
        }
      },
      {
        "id": "Medication.code.coding:drugSubclass.code",
        "path": "Medication.code.coding.code",
        "definition": "Symbol in syntax defined by the system: https://tgateway.infoway-inforoute.ca/vs/drugsubclassification",
        "comment": "See Terminology Worksheet for list of codes",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "example",
          "valueSetUri": "https://tgateway.infoway-inforoute.ca/vs/drugsubclassification"
        }
      },
      {
        "id": "Medication.code.coding:drugSubclass.display",
        "path": "Medication.code.coding.display",
        "mustSupport": true
      },
      {
        "id": "Medication.isBrand",
        "path": "Medication.isBrand",
        "mustSupport": true
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "short": "Drug Dosage Form",
        "definition": "Drug Dosage Form.  Form of the drug dispensed (e.g. tablet, capsule, injection). Dosage information is presented as a text rather than a code/system pair.",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "https://tgateway.infoway-inforoute.ca/vs/prescriptiondrugform"
          }
        }
      },
      {
        "id": "Medication.form.text",
        "path": "Medication.form.text",
        "mustSupport": true
      }
    ]
  }
}