<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="medication-clinemr" />
  <text>
    <status value="extensions" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p class="res-header-id">
        <b>Generated Narrative: StructureDefinition medication-clinemr</b>
      </p>
      <a name="medication-clinemr"></a>
      <a name="hcmedication-clinemr"></a>
      <table border="0" cellpadding="0" cellspacing="0" class="xhtTableBorder0">
        <tr class="xhtRowBorder1">
          <th scope="col" style="" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a>
          </th>
          <th scope="col" style="" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a>
          </th>
          <th scope="col" style="" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a>
          </th>
          <th scope="col" style="; width: 100px" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a>
          </th>
          <th scope="col" style="" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a>
            <span style="float: right">
              <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format">
                <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit" />
              </a>
            </span>
          </th>
        </tr>
        <tr class="xhtRowBorder0 xhtRowEven">
          <td style="background-image: url(tbl_bck1.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_resource.png" alt="" style="background-color: white; background-color: inherit" title="Resource" class="hierarchy" />
            <a href="StructureDefinition-medication-clinemr-definitions.html#Medication">Medication</a>
            <a name="Medication"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-Medication-twcore.html">TWCoreMedication</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
        </tr>
        <tr class="xhtRowBorder0 xhtRowOdd">
          <td style="background-image: url(tbl_bck11.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <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_element.gif" alt="" style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Medication.</span>
            <a href="StructureDefinition-medication-clinemr-definitions.html#Medication.code">code</a>
            <a name="Medication.code"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0">1..<span class="xhtPieceDeEmphasized">1</span></td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html" title="CodeableConcept" class="xhtPieceDeEmphasized">CodeableConceptTW</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">藥品的代碼。若無健保碼的藥品，優先選填臺灣食藥署藥品及醫療器材代碼。</td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowEven">
          <td style="background-image: url(tbl_bck110.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vline.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.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" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Medication.code.</span>
            <a href="StructureDefinition-medication-clinemr-definitions.html#Medication.code.coding">coding</a>
            <a name="Medication.code.coding"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0">1..2</td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-Coding-tw.html" title="Coding" class="xhtPieceDeEmphasized">CodingTW</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">應填入藥品健保碼Drug NHICode/藥品藥品碼Drug Code(code)及藥品商品名Drug Name(display)</td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowOdd">
          <td style="background-image: url(tbl_bck103.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vline.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_slice.png" alt="" style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Medication.code.</span>Slices for coding<a name="Medication.code.coding.2"></a></td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0">Content/Rules for all slices</td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowEven">
          <td style="background-image: url(tbl_bck1024.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vline.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end_slicer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_slice_item.png" alt="" style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Medication.code.Slices for coding.</span>
            <a href="StructureDefinition-medication-clinemr-definitions.html#Medication.code.coding:mohw-dopmac-tcm-medication-tw" title="Slice mohw-dopmac-tcm-medication-tw">coding:mohw-dopmac-tcm-medication-tw</a>
            <a name="Medication.code.coding:mohw-dopmac-tcm-medication-tw"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: #B60000" title="This element must be supported">S</span>
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only"> This element must be supported. </span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">0..1</td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="http://hl7.org/fhir/R4/datatypes.html#Coding" class="xhtPieceDeEmphasized">Coding</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">此為衛福部中醫藥司(MOHW DOPMAC)維護之中藥藥證號碼，可免費使用，可依情境選用此代碼。<br class="binding" /><span class="xhtPieceBold binding">Binding: </span><a href="ValueSet-traditional-chinese-medication-mohw-dopmac-tw.html" title="https://fhir.cohesiondata.com/clinemr/ValueSet/traditional-chinese-medication-mohw-dopmac-tw" class="binding">臺灣衛福部中醫藥品許可證值集</a><span class="binding"> (</span><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." class="binding">required</a><span class="binding">)</span></td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowOdd">
          <td style="background-image: url(tbl_bck01.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <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_element.gif" alt="" style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Medication.</span>
            <a href="StructureDefinition-medication-clinemr-definitions.html#Medication.ingredient">ingredient</a>
            <a name="Medication.ingredient"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0" />
        </tr>
        <tr class="xhtRowBorder0 xhtRowEven">
          <td style="background-image: url(tbl_bck001.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end.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" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Medication.ingredient.</span>
            <a href="StructureDefinition-medication-clinemr-definitions.html#Medication.ingredient.item[x]">item[x]</a>
            <a name="Medication.ingredient.item_x_"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">1</span>
            <span class="xhtPieceDeEmphasized">..</span>
            <span class="xhtPieceDeEmphasized">1</span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">實際的成份或內容物</span>
          </td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowOdd">
          <td style="background-image: url(tbl_bck0010.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.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: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Medication.ingredient.item[x].</span>
            <span title="Base StructureDefinition for CodeableConcept Type: A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.">itemCodeableConcept</span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0"></td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a>(<a href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html" title="TW CodeableConcept">CodeableConceptTW</a>)</td>
          <td style="" class="hierarchy xhtCellBorder0" />
        </tr>
        <tr class="xhtRowBorder0 xhtRowEven">
          <td style="background-image: url(tbl_bck0000.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end.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" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Medication.ingredient.item[x].</span>itemReference</td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0"></td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a>(<a href="StructureDefinition-medication-clinemr.html">藥品(Medication ClinEMR)</a> | <a href="http://hl7.org/fhir/R4/substance.html">Substance</a>)</td>
          <td style="" class="hierarchy xhtCellBorder0" />
        </tr>
        <tr>
          <td colspan="5" class="hierarchy">
            <br />
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format">
              <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit" /> Documentation for this format</a>
          </td>
        </tr>
      </table>
    </div>
  </text>
  <url value="https://fhir.cohesiondata.com/clinemr/StructureDefinition/medication-clinemr" />
  <version value="1.1.0" />
  <name value="MedicationClinEMR" />
  <title value="藥品(Medication ClinEMR)" />
  <status value="active" />
  <date value="2026-10-20T23:53:00+08:00" />
  <publisher value="睿傳數據" />
  <contact>
    <name value="睿傳數據" />
    <telecom>
      <system value="url" />
      <value value="https://www.cohesiondata.com/" />
    </telecom>
  </contact>
  <description value="此藥品(Medication ClinEMR)Profile說明本IG如何進一步定義臺灣核心-藥品(TW Core Medication) Profile以呈現西醫/牙醫/中醫診所門診病摘之藥品的詳細資料。" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="script10.6" />
    <uri value="http://ncpdp.org/SCRIPT10_6" />
    <name value="Mapping to NCPDP SCRIPT 10.6" />
  </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="Medication" />
  <baseDefinition value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore" />
  <derivation value="constraint" />
  <snapshot>
    <extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
      <valueString value="0.3.2" />
    </extension>
  </snapshot>
  <differential>
    <element id="Medication.code">
      <path value="Medication.code" />
      <short value="藥品的代碼。若無健保碼的藥品，優先選填臺灣食藥署藥品及醫療器材代碼。" />
      <min value="1" />
    </element>
    <element id="Medication.code.coding">
      <path value="Medication.code.coding" />
      <short value="應填入藥品健保碼Drug NHICode/藥品藥品碼Drug Code(code)及藥品商品名Drug Name(display)" />
      <min value="1" />
      <max value="2" />
    </element>
    <element id="Medication.code.coding:mohw-dopmac-tcm-medication-tw">
      <path value="Medication.code.coding" />
      <sliceName value="mohw-dopmac-tcm-medication-tw" />
      <short value="此為衛福部中醫藥司(MOHW DOPMAC)維護之中藥藥證號碼，可免費使用，可依情境選用此代碼。" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.cohesiondata.com/clinemr/ValueSet/traditional-chinese-medication-mohw-dopmac-tw" />
      </binding>
    </element>
    <element id="Medication.ingredient.item[x]">
      <path value="Medication.ingredient.item[x]" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.cohesiondata.com/clinemr/StructureDefinition/medication-clinemr" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
      </type>
    </element>
  </differential>
</StructureDefinition>