<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-medication" />
  <meta>
    <lastUpdated value="2024-10-17T18:16:31.2217228+00:00" />
  </meta>
  <url value="https://simplifier.net/omd-cdss/medicationprofile" />
  <version value="0.0.0" />
  <name value="MedicationProfile" />
  <title value="Medication Profile" />
  <status value="draft" />
  <date value="2021-10-24T22:48:08.2560608+00:00" />
  <publisher value="OMD" />
  <description value="Proposed constraints and extensions on the Medication resource.  Generated as a first step toward creating a set of Canadian Baseline FHIR profiles." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="CDSS5.1" />
    <uri value="www.ontariomd.com" />
    <name value="CDS-S 5.1" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Medication" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" />
  <derivation value="constraint" />
  <differential>
    <element id="Medication">
      <path value="Medication" />
      <short value="Medication Profile" />
      <definition value="The Medication Profile is based upon the core FHIR Medication Resource" />
    </element>
    <element id="Medication.code">
      <path value="Medication.code" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <description value="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 value="https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct" />
      </binding>
    </element>
    <element id="Medication.code.coding">
      <path value="Medication.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="display" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <comment value="CA Core Usage Notes: either text or at least one coding or both have to be present" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding.code">
      <path value="Medication.code.coding.code" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;A 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).&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The DIN extracted from the EMR's Drug Database for the medication selected by the provider for the purpose of prescribing a medication." />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE09.005" />
        <comment value="Drug Code" />
      </mapping>
    </element>
    <element id="Medication.code.coding.display">
      <path value="Medication.code.coding.display" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The 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 value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/NamingSystem/ca-hc-din|[id-system-local-base]/ca-on-provincial-pin|[id-system-local-base]/ca-on-local-pin" />
      </binding>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE09.003" />
        <comment value="Brand Name" />
      </mapping>
    </element>
    <element id="Medication.code.coding:drugGeneric">
      <path value="Medication.code.coding" />
      <sliceName value="drugGeneric" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;A reference to a code defined by a terminology system.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;Non-Proprietary name or generic name of the drug dispensed." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE09.036" />
        <comment value="Generic Name" />
      </mapping>
    </element>
    <element id="Medication.code.text">
      <path value="Medication.code.text" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;A 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.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The free form text for the purpose of prescribing custom compounds or complex prescriptions that are not supported by the medication discreet data elements." />
      <comment value="CA Core Usage Notes: either text or at least one coding or both have to be present" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE09.004" />
        <comment value="Drug Description" />
      </mapping>
    </element>
    <element id="Medication.manufacturer">
      <path value="Medication.manufacturer" />
      <comment value="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 value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-organization" />
      </type>
    </element>
    <element id="Medication.form">
      <path value="Medication.form" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The 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 value="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 value="true" />
      <binding>
        <strength value="preferred" />
        <description value="TBD. This is a placeholder for a comprehensive valueset, which would be created and maintained by Canada Health Infoway." />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/prescriptiondrugform" />
      </binding>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE09.008" />
        <comment value="Drug From" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>