<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2021-03-01T20:02:53.914+00:00" />
  </meta>
  <url value="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-code-representative" />
  <name value="ExtIsRepresentative" />
  <title value="DIN is Representative" />
  <status value="draft" />
  <description value="If set to true, indicates that the medication code sent was chosen as a &amp;quot;representative&amp;quot; code of a drug picked at a more general level. I.e. The user didn't actually choose this specific code. The intended constraints around what drug should be supplied are conveyed by the request's substitution rules." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Medication.code.coding" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <comment value="Conformance Rule: If prescribing by Generic Name, a (representative) DIN must be present in the message and this boolean must be 'true'.&#xA;Usage Note:    The receiving system will ONLY interpret the ingredients from the representative DIN; it is understood that this DIN was not prescribed.   For representative DINs, the prescriber must also enter a strength and strength unit of measure and may optionally enter a prescription drug form.  It is expected that this data will also be present.&#xA;&#xA;Usage Note:   The receiving system must understand that the Prescription was based on a Generic Name when this flag is set, meaning that the product that is being taken by the patient may be a generic equivalent with the same prescribed dosage.&#xA;&#xA;Usage Note: The representative DIN is chosen by the EMR (not the prescriber) based on the drug and route that is entered by the prescriber.&#xA;&#xA;Usage Note: This is used within PrescribeIT™ is to allow for automation as it provides a codified value to represent what the prescriber wants. This may assist the pharmacist in dispensing." />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-code-representative" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <min value="1" />
      <type>
        <code value="boolean" />
      </type>
    </element>
  </differential>
</StructureDefinition>