<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="access-medicationstatement-pat" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;">
        <tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;">
          <th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="The logical name of the element">Name</a>
          </th>
          <th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Information about the use of the element">Flags</a>
          </th>
          <th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a>
          </th>
          <th style="width: 100px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Reference to the type of the element">Type</a>
          </th>
          <th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Additional information about the element">Description &amp; Constraints</a>
            <span style="float: right">
              <a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format">
                <img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit" />
              </a>
            </span>
          </th>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement">MedicationStatement</a>
            <a name="MedicationStatement"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">ACCESS MedicationStatement (Patient) Profile</td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.identifier">identifier</a>
            <a name="MedicationStatement.identifier"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">External identifier</td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Primitive Data Type" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.status">status</a>
            <a name="MedicationStatement.status"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#code">code</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">active | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken | normal | aborted | cancelled  | held | new | suspended | nullified | obsolete<br /><span style="font-weight:bold">Binding: </span><a href="http://hl7.org/fhir/R4/valueset-medication-statement-status.html">Medication Status Codes</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)<br /><span style="font-weight:bold">Example General': </span><span style="color: darkgreen">ACTIVE</span></td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_choice.gif" alt="." style="background-color: white; background-color: inherit" title="Choice of Types" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.medication[x]">medication[x]</a>
            <a name="MedicationStatement.medication_x_"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a>, <a href="http://hl7.org/fhir/R4/references.html">Reference</a>(http://hl7.org/fhir/ca/core/StructureDefinition/profile-medication)</td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">What medication was taken<br /><span style="font-weight:bold">Binding: </span><a href="https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct">https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.">preferred</a>)</td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.subject">subject</a>
            <a name="MedicationStatement.subject"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/references.html">Reference</a>(http://hl7.org/fhir/ca/core/StructureDefinition/profile-patient)</td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Who is/was taking the medication</td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_choice.gif" alt="." style="background-color: white; background-color: inherit" title="Choice of Types" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.effective[x]">effective[x]</a>
            <a name="MedicationStatement.effective_x_"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a>, <a href="http://hl7.org/fhir/R4/datatypes.html#Period">Period</a></td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">The date/time or intervel when the medication is/was/will be taken</td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Primitive Data Type" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.dateAsserted">dateAsserted</a>
            <a name="MedicationStatement.dateAsserted"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">When the statement was asserted</td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.informationSource">informationSource</a>
            <a name="MedicationStatement.informationSource"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/patient.html">Patient</a> | <a href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a href="http://hl7.org/fhir/R4/practitionerrole.html">PractitionerRole</a> | <a href="http://hl7.org/fhir/R4/relatedperson.html">RelatedPerson</a> | <a href="http://hl7.org/fhir/R4/organization.html">Organization</a>)</td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Person or organization that provided the information about the taking of this medication</td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.reasonCode">reasonCode</a>
            <a name="MedicationStatement.reasonCode"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Reason for why the medication is being/was taken<br /><span style="font-weight:bold">Binding: </span><a href="http://hl7.org/fhir/R4/valueset-condition-code.html">Condition/Problem/DiagnosisCodes</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#example" title="Instances are not expected or even encouraged to draw from the specified value set.  The value set merely provides examples of the types of concepts intended to be included.">example</a>)</td>
        </tr>
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;">
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy">
            <img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy" />
            <img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy" />
            <a href="{{[id]}}-definitions.html#MedicationStatement.dosage">dosage</a>
            <a name="MedicationStatement.dosage"></a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy" />
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">
            <a href="http://hl7.org/fhir/R4/datatypes.html#Dosage">Dosage</a>
          </td>
          <td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Details of how medication is/was taken or should be taken</td>
        </tr>
        <tr>
          <td colspan="5" class="hierarchy">
            <br />
            <a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format">
              <img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit" /> Documentation for this format</a>
          </td>
        </tr>
      </table>
    </div>
  </text>
  <url value="http://infoway-inforoute.ca/fhir/StructureDefinition/access-medicationstatement-pat" />
  <version value="0.1.0" />
  <name value="AccessMedicationStatement-Pat" />
  <title value="ACCESS MedicationStatement (Patient) Profile" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2019-03-21T00:00:00-04:00" />
  <publisher value="Canada Health Infoway" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://infoway-inforoute.ca" />
    </telecom>
  </contact>
  <description value="Constraints on the MedicationStatement resource to reflect source data mappings for the ACCESS Health project. Focus of this profile is on display of medication statement information to citizen/patient viewers." />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="prince-edward-island-cerx" />
    <uri value="http://unknown.org/Prince Edward Island CeRX" />
    <name value="Prince Edward Island CeRX" />
  </mapping>
  <mapping>
    <identity value="newfoundland-cerx" />
    <uri value="http://unknown.org/Newfoundland CeRX" />
    <name value="Newfoundland CeRX" />
  </mapping>
  <mapping>
    <identity value="new-brunswick-cerx" />
    <uri value="http://unknown.org/New Brunswick CeRX" />
    <name value="New Brunswick CeRX" />
  </mapping>
  <mapping>
    <identity value="nova-scotia-cerx" />
    <uri value="http://unknown.org/Nova Scotia CeRX" />
    <name value="Nova Scotia CeRX" />
  </mapping>
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationStatement" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationStatement">
      <path value="MedicationStatement" />
      <short value="ACCESS MedicationStatement (Patient) Profile" />
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="CeRX supports two specializations of MedicationRecord, each varies in supported data. Both mappings provided below: PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest    OR   PORX_IN060400CA/PORX_MT060190CA/medicationRecord/OtherMedication" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="CeRX supports two specializations of MedicationRecord, each varies in supported data. Both mappings provided below: PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest    OR   PORX_IN060400CA/PORX_MT060190CA/medicationRecord/OtherMedication" />
      </mapping>
      <mapping>
        <identity value="new-brunswick-cerx" />
        <map value="NB does not currently support applicable CeRX Message Type(s)" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="CeRX supports two specializations of MedicationRecord, each varies in supported data. Both mappings provided below: PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest    OR   PORX_IN060400CA/PORX_MT060190CA/medicationRecord/OtherMedication" />
      </mapping>
    </element>
    <element id="MedicationStatement.identifier">
      <path value="MedicationStatement.identifier" />
      <short value="External identifier" />
      <type>
        <code value="Identifier" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/id" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/id" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/id" />
      </mapping>
    </element>
    <element id="MedicationStatement.status">
      <path value="MedicationStatement.status" />
      <short value="active | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken | normal | aborted | cancelled  | held | new | suspended | nullified | obsolete" />
      <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid. Atlantic Implementors need to be aware that the Act Status Codes recommended by CeRX only partially match the codes to the MedicationRequest status (required) value set." />
      <type>
        <code value="code" />
      </type>
      <example>
        <label value="General" />
        <valueCode value="ACTIVE" />
      </example>
      <mustSupport value="true" />
      <isModifier value="false" />
      <binding>
        <strength value="required" />
        <description value="MedicationStatement Status Codes" />
        <valueSet value="http://hl7.org/fhir/ValueSet/medication-statement-status" />
      </binding>
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/statusCode" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/statusCode" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/statusCode" />
      </mapping>
    </element>
    <element id="MedicationStatement.medication[x]">
      <path value="MedicationStatement.medication[x]" />
      <short value="What medication was taken" />
      <comment value="If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.&#xA;&#xA;Implementors need to be aware that the medication codes utilized by the source DIS will likely come from the Clinical Drug CeRX value set (https://infocentral.infoway-inforoute.ca/extra/ns/cerx43-html/html/vocabulary.html?type=vs&amp;id=ClinicalDrug) which draws in codes from various other code systems (HC-DIN, HC-NPN, HC-AIGC, etc.). There is currently no equivilant FHIR value set that supports this superset to recommend when binding." />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/core/StructureDefinition/profile-medication" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <binding>
        <strength value="preferred" />
        <description value="Canadian Clinical Drug Data (CCDD) Medicinal Products" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/prescriptionmedicinalproduct" />
      </binding>
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/directTarget/COCT_MT220110CA/medication" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/directTarget/COCT_MT220110CA/medication" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/directTarget/COCT_MT220110CA/medication" />
      </mapping>
    </element>
    <element id="MedicationStatement.subject">
      <path value="MedicationStatement.subject" />
      <short value="Who is/was taking the medication" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/core/StructureDefinition/profile-patient" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/subject/COCT_MT050203CA/patient/id" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/subject/COCT_MT050203CA/patient/id" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/subject/COCT_MT050203CA/patient/id" />
      </mapping>
    </element>
    <element id="MedicationStatement.effective[x]">
      <path value="MedicationStatement.effective[x]" />
      <short value="The date/time or intervel when the medication is/was/will be taken" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/fulfillment2/supplyEventFirstSummary/effectiveTime, INCLUDE End Date PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/fulfillment3/supplyEventLastSummary/effectiveTime (if medication is now longer active) OR if OTC medication: PORX_IN060400CA/PORX_MT060190CA/medicationRecord/otherMedication/effectiveTime" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/fulfillment2/supplyEventFirstSummary/effectiveTime, INCLUDE End Date PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/fulfillment3/supplyEventLastSummary/effectiveTime (if medication is now longer active) OR if OTC medication: PORX_IN060400CA/PORX_MT060190CA/medicationRecord/otherMedication/effectiveTime" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/fulfillment2/supplyEventFirstSummary/effectiveTime, INCLUDE End Date PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/fulfillment3/supplyEventLastSummary/effectiveTime (if medication is now longer active) OR if OTC medication: PORX_IN060400CA/PORX_MT060190CA/medicationRecord/otherMedication/effectiveTime" />
      </mapping>
    </element>
    <element id="MedicationStatement.dateAsserted">
      <path value="MedicationStatement.dateAsserted" />
      <short value="When the statement was asserted" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="One potential but not semantically airtight mapping is PORX_IN060400CA/MCCI_MT000300CA/creationTime" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="One potential but not semantically airtight mapping is PORX_IN060400CA/MCCI_MT000300CA/creationTime" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="One potential but not semantically airtight mapping is PORX_IN060400CA/MCCI_MT000300CA/creationTime" />
      </mapping>
    </element>
    <element id="MedicationStatement.informationSource">
      <path value="MedicationStatement.informationSource" />
      <short value="Person or organization that provided the information about the taking of this medication" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/author/COCT_MT090107CA/assignedPerson" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/author/COCT_MT090107CA/assignedPerson" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/author/COCT_MT090107CA/assignedPerson" />
      </mapping>
    </element>
    <element id="MedicationStatement.reasonCode">
      <path value="MedicationStatement.reasonCode" />
      <short value="Reason for why the medication is being/was taken" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <binding>
        <strength value="example" />
        <description value="Condition/Problem/DiagnosisCodes" />
        <valueSet value="http://hl7.org/fhir/ValueSet/condition-code" />
      </binding>
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis" />
      </mapping>
    </element>
    <element id="MedicationStatement.reasonCode.CodeableConcept.code">
      <path value="MedicationStatement.reasonCode.CodeableConcept.code" />
      <short value="Symbol in syntax defined by the system" />
      <type>
        <code value="code" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/value" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/value" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/value" />
      </mapping>
    </element>
    <element id="MedicationStatement.reasonCode.CodeableConcept.display">
      <path value="MedicationStatement.reasonCode.CodeableConcept.display" />
      <short value="Representation defined by the system" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/text" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/text" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/text" />
      </mapping>
    </element>
    <element id="MedicationStatement.reasonCode.CodeableConcept.system">
      <path value="MedicationStatement.reasonCode.CodeableConcept.system" />
      <short value="Identity of the terminology system" />
      <type>
        <code value="uri" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis" />
      </mapping>
    </element>
    <element id="MedicationStatement.reasonCode.CodeableConcept.text">
      <path value="MedicationStatement.reasonCode.CodeableConcept.text" />
      <short value="Plain text representation of the concept" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/text" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/text" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/reason/PORX_MT980050CA/indications/observationDiagnosis/text" />
      </mapping>
    </element>
    <element id="MedicationStatement.dosage">
      <path value="MedicationStatement.dosage" />
      <short value="Details of how medication is/was taken or should be taken" />
      <type>
        <code value="Dosage" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="prince-edward-island-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/component1/administrationInstructions/text" />
      </mapping>
      <mapping>
        <identity value="newfoundland-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/component1/administrationInstructions/text" />
      </mapping>
      <mapping>
        <identity value="nova-scotia-cerx" />
        <map value="PORX_IN060400CA/PORX_MT060190CA/medicationRecord/combinedMedicationRequest/component1/administrationInstructions/text" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>