{
  "resourceType": "StructureDefinition",
  "id": "profile-medication",
  "meta": {
    "lastUpdated": "2024-10-17T18:16:31.2217228+00:00"
  },
  "url": "https://simplifier.net/omd-cdss/medicationprofile",
  "version": "0.0.0",
  "name": "MedicationProfile",
  "title": "Medication Profile",
  "status": "draft",
  "date": "2021-10-24T22:48:08.2560608+00:00",
  "publisher": "OMD",
  "description": "Proposed constraints and extensions on the Medication resource.  Generated as a first step toward creating a set of Canadian Baseline FHIR profiles.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "CDSS5.1",
      "uri": "www.ontariomd.com",
      "name": "CDS-S 5.1"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication",
        "path": "Medication",
        "short": "Medication Profile",
        "definition": "The Medication Profile is based upon the core FHIR Medication Resource"
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "description": "TBD. This is a placeholder for a comprehensive valueset, consisting of all Manufactured Product (MP), Non-proprietary Therapeutic Product (NTP) and Therapeutic Moiety (TM) codes, which would be created and maintained by Canada Health Infoway. Medicinal products for prescribing and dispensing in Canada. The content of this subset only contains commonly used medicinal products that are available for prescribing and dispensing in Canada. This content will expand to include all human medicinal products over time.",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct"
        }
      },
      {
        "id": "Medication.code.coding",
        "path": "Medication.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "display"
            }
          ],
          "rules": "open"
        },
        "comment": "CA Core Usage Notes: either text or at least one coding or both have to be present",
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding.code",
        "path": "Medication.code.coding.code",
        "definition": "BASE RESOURCE DEFINITION:\r\nA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n\r\nCDS-S PROFILE DEFINITION:\r\nThe DIN extracted from the EMR's Drug Database for the medication selected by the provider for the purpose of prescribing a medication.",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE09.005",
            "comment": "Drug Code"
          }
        ]
      },
      {
        "id": "Medication.code.coding.display",
        "path": "Medication.code.coding.display",
        "definition": "BASE RESOURCE DEFINITION:\r\nA representation of the meaning of the code in the system, following the rules of the system.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nThe brand name under which the prescribed medicine is marketed in Canada (provided by the EMR's Drug Database) or the name of the medicine as typed in by the provider.",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/NamingSystem/ca-hc-din|[id-system-local-base]/ca-on-provincial-pin|[id-system-local-base]/ca-on-local-pin"
        },
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE09.003",
            "comment": "Brand Name"
          }
        ]
      },
      {
        "id": "Medication.code.coding:drugGeneric",
        "path": "Medication.code.coding",
        "sliceName": "drugGeneric",
        "definition": "BASE RESOURCE DEFINITION: \r\nA reference to a code defined by a terminology system.\r\n\r\nCDS-S PROFILE DEFINITION: \r\nNon-Proprietary name or generic name of the drug dispensed.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE09.036",
            "comment": "Generic Name"
          }
        ]
      },
      {
        "id": "Medication.code.text",
        "path": "Medication.code.text",
        "definition": "BASE RESOURCE DEFINITION:\r\nA human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nThe free form text for the purpose of prescribing custom compounds or complex prescriptions that are not supported by the medication discreet data elements.",
        "comment": "CA Core Usage Notes: either text or at least one coding or both have to be present",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE09.004",
            "comment": "Drug Description"
          }
        ]
      },
      {
        "id": "Medication.manufacturer",
        "path": "Medication.manufacturer",
        "comment": "CA Core Usage Notes: This is a reference to an organization that manufactures the medication. TBD: if there is a need to refernce a 'DPD Company', a new extension should be created and used. A 'DPD Company' name, as used in the Health Canada DPF, indicates the organisation (company) that holds the authorization to place the product on the market in Canada. This may not be the company that has manufactured the product, but it is the company that holds the legal responsibility for the use of the product in Canada and should be the same as the company named on the product label/packaging.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-organization"
            ]
          }
        ]
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "definition": "BASE RESOURCE DEFINITION:\r\nA representation of the meaning of the code in the system, following the rules of the system.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nThe form in which the drug product is to be administered to the patient. Can eb the form in which the drug product was manufactured and provided by the EMR's Drug Database or as typed in by the provider.",
        "comment": "CA Core Usage Notes: The prescription drug form is required in some provinces in order to meet the prescribing standards set out by the College of Physicians and Surgeons.",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "description": "TBD. This is a placeholder for a comprehensive valueset, which would be created and maintained by Canada Health Infoway.",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/prescriptiondrugform"
        },
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE09.008",
            "comment": "Drug From"
          }
        ]
      }
    ]
  }
}