臺灣電子處方箋與調劑單張實作指引(TW EMPD IG)
0.1.0 - ci-build

臺灣電子處方箋與調劑單張實作指引(TW EMPD IG) - Downloaded Version 0.1.0 See the Directory of published versions

## Resource Profile: MedicationDispenseDS - XML Profile

Active as of 2024-01-13

XML representation of the MedicationDispense-DS resource profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="MedicationDispense-DS"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition MedicationDispense-DS</b></p><a name="MedicationDispense-DS"> </a><a name="hcMedicationDispense-DS"> </a><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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><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 style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><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 style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><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 style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px" class="hierarchy"><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 style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><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, " 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 : var(--ig-left,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_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense">MedicationDispense</a><a name="MedicationDispense"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-MedicationDispense-twcore.html">TWCoreMedicationDispense</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.identifier">identifier</a><a name="MedicationDispense.identifier"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.identifier.value">value</a><a name="MedicationDispense.identifier.value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The value that is unique</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.category">category</a><a name="MedicationDispense.category"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html" title="CodeableConcept">CodeableConceptTW</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">配藥/調劑藥品的類型。[應填入醫令類別]</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.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="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.medication[x]">medication[x]</a><a name="MedicationDispense.medication_x_"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">所提供的藥品</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><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_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <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.">medicationCodeableConcept</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html" title="TW CodeableConcept">CodeableConceptTW</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><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_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> medicationReference</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,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">Reference</a>(<a href="StructureDefinition-Medication-DS.html">調劑單張-藥物處方內容(Medication)</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.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_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> Slices for medication[x]<a name="MedicationDispense.medication_x_.2"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Content/Rules for all slices</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><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_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"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.medication[x]:medicationReference" title="Slice medicationReference">medication[x]:medicationReference</a><a name="MedicationDispense.medication_x_.3"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,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="StructureDefinition-Medication-DS.html">調劑單張-藥物處方內容(Medication)</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">What medication was supplied</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck124.png)" class="hierarchy"><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_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.medication[x]:medicationCodeableConcept" title="Slice medicationCodeableConcept: 指明所提供的藥品，這是一個指向代表藥品的resource的連接，可以是藥品的細節，也可以是一個帶有代碼的屬性，從已知的藥品列表中指明此藥品。
    商品名稱Brand Name，此為用於調製之藥品名稱">medication[x]:medicationCodeableConcept</a><a name="MedicationDispense.medication_x_.4"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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 : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html" title="CodeableConcept">CodeableConceptTW</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,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="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.subject">subject</a><a name="MedicationDispense.subject"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,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/group.html">Group</a> | <a href="StructureDefinition-Patient-DS.html">調劑單張-病人基本資料</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">配藥/調劑藥品的對象，意即為誰配藥/調劑藥品。</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.quantity">quantity</a><a name="MedicationDispense.quantity"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#SimpleQuantity" title="Quantity">SimpleQuantity</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">配藥/調劑藥品的量</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><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"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.quantity.value">value</a><a name="MedicationDispense.quantity.value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#decimal">decimal</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Numerical value (with implicit precision).[應填入給藥總量 Total Amount]</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.quantity.unit">unit</a><a name="MedicationDispense.quantity.unit"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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 : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.daysSupply">daysSupply</a><a name="MedicationDispense.daysSupply"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#SimpleQuantity" title="Quantity">SimpleQuantity</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><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: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.daysSupply.value">value</a><a name="MedicationDispense.daysSupply.value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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 : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#decimal">decimal</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Numerical value (with implicit precision)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.daysSupply.unit">unit</a><a name="MedicationDispense.daysSupply.unit"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Unit representation</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.receiver">receiver</a><a name="MedicationDispense.receiver"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-Patient-DS.html">調劑單張-病人基本資料</a> | <a href="StructureDefinition-Practitioner-DS.html">調劑單張-醫事人員基本資料</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">誰領取了藥品</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.note" title="Extra information about the dispense that could not be conveyed in the other attributes.
    [處方疑義樣態註記]：預設為「無」
    填寫說明：
    處方有疑義樣態時請填寫「有」
    處方無疑義樣態請填寫「無」">note</a><a name="MedicationDispense.note"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Annotation">Annotation</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.note.text">text</a><a name="MedicationDispense.note.text"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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 : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#markdown">markdown</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The annotation  - text content (as markdown)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction">dosageInstruction</a><a name="MedicationDispense.dosageInstruction"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Dosage">Dosage</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">病人如何使用藥品或者照護者如何給藥</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck111.png)" class="hierarchy"><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: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.timing">timing</a><a name="MedicationDispense.dosageInstruction.timing"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Timing">Timing</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">應該何時給藥；時間的寫法請參照Timimg datatype。</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1111.png)" class="hierarchy"><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_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"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.timing.repeat">repeat</a><a name="MedicationDispense.dosageInstruction.timing.repeat"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Element</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">事件定期重複發生的時間</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11100.png)" class="hierarchy"><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_vline.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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.timing.repeat.frequency">frequency</a><a name="MedicationDispense.dosageInstruction.timing.repeat.frequency"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#positiveInt">positiveInt</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Event occurs frequency times per period.[應填入頻率 Frequency]</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1101.png)" class="hierarchy"><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_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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.timing.code">code</a><a name="MedicationDispense.dosageInstruction.timing.code"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11000.png)" class="hierarchy"><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_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.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"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.timing.code.coding">coding</a><a name="MedicationDispense.dosageInstruction.timing.code.coding"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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 : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-Coding-tw.html" title="Coding">CodingTW</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><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"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.route">route</a><a name="MedicationDispense.dosageInstruction.route"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html" title="CodeableConcept">CodeableConceptTW</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">How drug should enter body.[應填入給藥途徑 Route of Administration]</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck101.png)" class="hierarchy"><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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.doseAndRate">doseAndRate</a><a name="MedicationDispense.dosageInstruction.doseAndRate"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Element</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">用藥量</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1003.png)" class="hierarchy"><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.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: white; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic; font-style: italic" href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.doseAndRate.dose[x]">Slices for dose[x]</a><a name="MedicationDispense.dosageInstruction.doseAndRate.dose_x_"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="font-style: italic">1</span><span style="font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#SimpleQuantity" title="Quantity">SimpleQuantity</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">每一劑量的藥量</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by type:$this</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10025.png)" class="hierarchy"><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_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: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity" title="Slice doseQuantity">dose[x]:doseQuantity</a><a name="MedicationDispense.dosageInstruction.doseAndRate.dose_x_.2"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#SimpleQuantity" title="Quantity">SimpleQuantity</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">每一劑量的藥量</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100250.png)" class="hierarchy"><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_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_slice.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="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.value">value</a><a name="MedicationDispense.dosageInstruction.doseAndRate.dose_x_.value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#decimal">decimal</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Numerical value (with implicit precision).[應填入劑量]</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100240.png)" class="hierarchy"><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_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_slice.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"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.unit">unit</a><a name="MedicationDispense.dosageInstruction.doseAndRate.dose_x_.unit"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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 : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Unit representation.[應填入劑量單位  Dose Units]。如：顆、CC等</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.substitution">substitution</a><a name="MedicationDispense.substitution"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">配藥/調劑藥品時是否進行了藥品替代</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><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.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"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.substitution.wasSubstituted" title="True if the dispenser dispensed a different drug or product from what was prescribed.
    預設為「無」
    填寫說明：
    有更換藥品時請填寫「有」
    無有更換藥品請填寫「無」">wasSubstituted</a><a name="MedicationDispense.substitution.wasSubstituted"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; 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 : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#boolean">boolean</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-DS-definitions.html#MedicationDispense.substitution.reason">reason</a><a name="MedicationDispense.substitution.reason"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html" title="CodeableConcept">CodeableConceptTW</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明</td></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, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <url
           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationDispense-DS"/>
      <version value="0.1.0"/>
      <name value="MedicationDispenseDS"/>
      <title value="調劑單張-調劑內容(MedicationDispense)"/>
      <status value="active"/>
      <date value="2024-01-13"/>
      <publisher value="NHI"/>
      <contact>
        <name value="NHI"/>
        <telecom>
          <system value="url"/>
          <value value="https://www.nhi.gov.tw/en/mp-2.html"/>
        </telecom>
      </contact>
      <description value="此Profiles用於描述調劑單張的調劑內容。"/>
      <fhirVersion value="4.0.1"/>
      <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="rx-dispense-rmim"/>
        <uri value="http://www.hl7.org/v3/PORX_RM020070UV"/>
        <name value="V3 Pharmacy Dispense RMIM"/>
      </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="MedicationDispense"/>
      <baseDefinition
                      value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationDispense-twcore"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="0.3.2"/>
        </extension>
        <element id="MedicationDispense">
          <path value="MedicationDispense"/>
          <short value="為指定病人配藥/調劑藥品"/>
          <definition
                      value="表明將為或已為指定人員/病人配藥/調劑藥品。這包括所提供藥品（供應品）的描述和給藥說明。配藥/調劑藥品是藥局系統回應藥品請求的結果。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="dom-2"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
            <expression value="contained.contained.empty()"/>
            <xpath value="not(parent::f:contained and f:contained)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-3"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource"/>
            <expression
                        value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"/>
            <xpath
                   value="not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-4"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
            <expression
                        value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
            <xpath
                   value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-5"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a security label"/>
            <expression value="contained.meta.security.empty()"/>
            <xpath value="not(exists(f:contained/*/f:meta/f:security))"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
              <valueBoolean value="true"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
              <valueMarkdown
                             value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."/>
            </extension>
            <key value="dom-6"/>
            <severity value="warning"/>
            <human
                   value="A resource should have narrative for robust management"/>
            <expression value="text.`div`.exists()"/>
            <xpath value="exists(f:text/h:div)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="mdd-1"/>
            <severity value="error"/>
            <human value="whenHandedOver cannot be before whenPrepared"/>
            <expression
                        value="whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver &gt;= whenPrepared"/>
            <xpath
                   value="not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value &gt;= f:whenPrepared/@value)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Entity. Role, or Act"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Event"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Supply[moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="MedicationDispense.id">
          <path value="MedicationDispense.id"/>
          <short
                 value="不重複的ID用以識別儲存在特定FHIR Server中的MedicationDispense紀錄，通常又稱為邏輯性ID。"/>
          <definition value="resource的邏輯ID，在resource的URL中使用。一旦指定，這個值永遠不會改變。"/>
          <comment
                   value="一個resource使用新增操作（create operation）提交給伺服器時，此resource沒有id，它的id在resource被創建後由伺器分配/指定。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="id"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="MedicationDispense.meta">
          <path value="MedicationDispense.meta"/>
          <short value="此MedicationDispense Resource的metadata"/>
          <definition
                      value="關於resource的metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與resource的版本更改相關聯。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.meta"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Meta"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="MedicationDispense.implicitRules">
          <path value="MedicationDispense.implicitRules"/>
          <short value="創建此內容所依據的一組規則"/>
          <definition
                      value="構建resource時遵循的一系列規則的參照，在處理內容時必須理解這些規則。通常這是對IG所定義之特殊規則及其他profiles的參照。"/>
          <comment
                   value="宣告這套規則限制了內容只能被有限的交易夥伴所理解。這從本質上限制了資料的長期有用性。然而，現有的健康生態體系高度分裂，還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能，實作者和/或規範編寫者應該避免使用這個資料項目。通常在使用時，此URL是對IG的參照，此IG將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.implicitRules"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation"/>
          <isSummary value="true"/>
        </element>
        <element id="MedicationDispense.language">
          <path value="MedicationDispense.language"/>
          <short value="用以表述MedicationDispense Resource內容的語言。"/>
          <definition value="編寫此resource的語言"/>
          <comment
                   value="提供語言是為了支援索引和可存取性（通常，文字表述轉語音等服務使用此語言標籤）。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此語言。不應該假定Resource.language自動適用於敘述。如果指定語言，它也應該被指定在html中的div資料項目（關於xml:lang和html lang屬性之間的關係，見HTML5中的規則）。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.language"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <example>
            <label value="Value"/>
            <valueString value="zh-TW"/>
          </example>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
              <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Language"/>
            </extension>
            <strength value="preferred"/>
            <description
                         value="人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/languages"/>
          </binding>
        </element>
        <element id="MedicationDispense.text">
          <path value="MedicationDispense.text"/>
          <short value="MedicationDispense Resource之內容摘要以供人閱讀"/>
          <definition
                      value="人可讀的敘述，包含resource的摘要，可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼，但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義有哪些內容應該在敘述中表示，以確保臨床安全。"/>
          <comment
                   value="內嵌（contained）的resource沒有敘述，非內嵌（contained）的resource則 **建議應該（SHOULD）** 有敘述。有時resource可能只有文字表述，很少或沒有額外的結構化資料（只要滿足所有minOccurs=1的資料項目）。這可能出現在舊系統的資料，當資訊以 「文字表述區塊（text blob） 」的形式被取得，或者文字表述是原始輸入或說明，而編碼資訊稍後再添加。"/>
          <alias value="narrative"/>
          <alias value="html"/>
          <alias value="xhtml"/>
          <alias value="display"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Narrative"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Act.text?"/>
          </mapping>
        </element>
        <element id="MedicationDispense.contained">
          <path value="MedicationDispense.contained"/>
          <short value="Contained, inline Resources"/>
          <definition
                      value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
          <comment
                   value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels."/>
          <alias value="inline resources"/>
          <alias value="anonymous resources"/>
          <alias value="contained resources"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.contained"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="MedicationDispense.extension">
          <path value="MedicationDispense.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="MedicationDispense.modifierExtension">
          <path value="MedicationDispense.modifierExtension"/>
          <short value="Extensions that cannot be ignored"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier">
          <path value="MedicationDispense.identifier"/>
          <short value="External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item"/>
          <definition
                      value="與此配藥/調劑藥品相關的識別碼，由業務流程定義，和/或在直接使用 URL 參照resource本身不適當時用來表示它。這些是執行者或其他系統分配給此resource的業務識別碼，隨著resource更新和從伺服器到伺服器的傳送，這些識別碼保持不變。"/>
          <comment value="這是配藥/調劑藥品的業務識別碼，不是resource識別碼。"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.id"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier.id">
          <path value="MedicationDispense.identifier.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier.extension">
          <path value="MedicationDispense.identifier.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier.use">
          <path value="MedicationDispense.identifier.use"/>
          <short value="usual | official | temp | secondary | old (If known)"/>
          <definition value="The purpose of this identifier."/>
          <comment
                   value="Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."/>
          <requirements
                        value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.use"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary id for a permanent one."/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IdentifierUse"/>
            </extension>
            <strength value="required"/>
            <description
                         value="Identifies the purpose for this identifier, if known ."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Role.code or implied by context"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier.type">
          <path value="MedicationDispense.identifier.type"/>
          <short value="Description of identifier"/>
          <definition
                      value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/>
          <comment
                   value="This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage.   Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type."/>
          <requirements
                        value="Allows users to make use of identifiers when the identifier system is not known."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IdentifierType"/>
            </extension>
            <strength value="extensible"/>
            <description
                         value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/identifier-type|4.0.1"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="CX.5"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Role.code or implied by context"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier.system">
          <path value="MedicationDispense.identifier.system"/>
          <short value="The namespace for the identifier value"/>
          <definition
                      value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/>
          <comment value="Identifier.system is always case sensitive."/>
          <requirements
                        value="There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <example>
            <label value="General"/>
            <valueUri value="http://www.acme.com/identifiers/patient"/>
          </example>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="CX.4 / EI-2-4"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="II.root or Role.id.root"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="./IdentifierType"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier.value">
          <path value="MedicationDispense.identifier.value"/>
          <short value="The value that is unique"/>
          <definition
                      value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/>
          <comment
                   value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <example>
            <label value="General"/>
            <valueString value="123456"/>
          </example>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="CX.1 / EI.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="./Value"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier.period">
          <path value="MedicationDispense.identifier.period"/>
          <short value="Time period when id is/was valid for use"/>
          <definition
                      value="Time period during which identifier is/was valid for use."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="CX.7 + CX.8"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Role.effectiveTime or implied by context"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="./StartDate and ./EndDate"/>
          </mapping>
        </element>
        <element id="MedicationDispense.identifier.assigner">
          <path value="MedicationDispense.identifier.assigner"/>
          <short value="Organization that issued id (may be just text)"/>
          <definition value="Organization that issued/manages the identifier."/>
          <comment
                   value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.assigner"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="CX.4 / (CX.4,CX.9,CX.10)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="./IdentifierIssuingAuthority"/>
          </mapping>
        </element>
        <element id="MedicationDispense.partOf">
          <path value="MedicationDispense.partOf"/>
          <short value="配藥/調劑藥品事件的一部分"/>
          <definition value="觸發配藥/調劑藥品的程序"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.partOf"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.partOf"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=COMP]/target[classCode=PROC,moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="MedicationDispense.status">
          <path value="MedicationDispense.status"/>
          <short
                 value="preparation | in-progress | cancelled | on-hold | completed +"/>
          <definition value="指定配藥/調劑藥品事件集狀態的代碼"/>
          <comment
                   value="此資料項目被標記為修飾用(modifier)，因為其中的狀態代碼也包含表示此 resource 目前無效的代碼。"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationDispenseStatus"/>
            </extension>
            <strength value="required"/>
            <description value="一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態；應填入所綁定值集中的其中一個代碼"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.status"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.status"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".statusCode"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.SupplyEvent.statusCode"/>
          </mapping>
        </element>
        <element id="MedicationDispense.statusReason[x]">
          <path value="MedicationDispense.statusReason[x]"/>
          <short
                 value="未進行配藥/調劑藥品的原因
    Binding：可參考Medication dispense status reason codes代碼表，但此代碼表只是針對這個欄位的一個可能值的示例，不預期也不鼓勵使用者一定要使用此代碼表的代碼。"/>
          <definition value="表明為何未執行配藥/調劑藥品的原因"/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.statusReason[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationDispenseStatusReason"/>
            </extension>
            <strength value="example"/>
            <description
                         value="可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/medicationdispense-status-reason"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.category">
          <path value="MedicationDispense.category"/>
          <short value="配藥/調劑藥品的類型。[應填入醫令類別]"/>
          <definition value="表明配藥/調劑藥品類型（例如：預計在哪用藥或給藥（如住院病人或門診病人））。"/>
          <comment
                   value="類型可用於包含藥品的預期用藥地點或其他類型的配藥/調劑藥品。在建立Profile時，一組規則或條件(Invariant)可用於綁定到不同的值集，例如：可用來確保特定類型的配藥總是與特定的值集代碼關聯，從而保確資料的一致性和準確性。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.category"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationDispenseCategory"/>
            </extension>
            <strength value="preferred"/>
            <description
                         value="鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/medicationdispense-category"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.medication[x]">
          <path value="MedicationDispense.medication[x]"/>
          <slicing>
            <discriminator>
              <type value="type"/>
              <path value="$this"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <short value="所提供的藥品"/>
          <definition
                      value="指明目前正在使用的藥品。這可能是一個連結到代表藥品詳細資訊的resource，或者是一個帶有代碼的簡單屬性，從已知藥品清單中表明藥品的代碼。"/>
          <comment
                   value="如果只指定了一個代碼，則此代碼必須是特定產品的代碼。如果需要更多資訊，則建議使用medication resource。例如：如果需要藥品的劑型(form)或批號(lot number)，則必須參照Medication resource。"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.medication[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationCode"/>
            </extension>
            <strength value="example"/>
            <description
                         value="A coded concept identifying which substance or product can be dispensed."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/medication-codes"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.code"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.what[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="RXD-2-Dispense/Give Code"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PRD].role"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map
                 value="CombinedMedicationRequest.component1.AdministrationRequest.consumable"/>
          </mapping>
        </element>
        <element id="MedicationDispense.medication[x]:medicationReference">
          <path value="MedicationDispense.medication[x]"/>
          <sliceName value="medicationReference"/>
          <short value="What medication was supplied"/>
          <definition
                      value="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications."/>
          <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, then you must reference the Medication resource."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.medication[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.code"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.what[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="RXD-2-Dispense/Give Code"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PRD].role"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map
                 value="CombinedMedicationRequest.component1.AdministrationRequest.consumable"/>
          </mapping>
        </element>
        <element id="MedicationDispense.medication[x]:medicationCodeableConcept">
          <path value="MedicationDispense.medication[x]"/>
          <sliceName value="medicationCodeableConcept"/>
          <short
                 value="所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。"/>
          <definition
                      value="指明所提供的藥品，這是一個指向代表藥品的resource的連接，可以是藥品的細節，也可以是一個帶有代碼的屬性，從已知的藥品列表中指明此藥品。
    商品名稱Brand Name，此為用於調製之藥品名稱"/>
          <comment
                   value="如果只具體說明一個代碼，那麼它需要是一個特定產品的代碼。如果需要更多資訊，那麼建議使用Medication resource。例如：如果您需要劑型或批號，或者如果藥品是複方或臨場調製（extemporaneously prepared）的，那麼您必須參考Medication resource。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.medication[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationCode"/>
            </extension>
            <strength value="example"/>
            <description
                         value="A coded concept identifying which substance or product can be dispensed."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/medication-codes"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.id">
          <path value="MedicationDispense.medication[x].id"/>
          <representation value="xmlAttr"/>
          <short value="唯一可識別ID，以供資料項目間相互參照。"/>
          <definition value="resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.extension">
          <path value="MedicationDispense.medication[x].extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="擴充的資料項目"/>
          <definition value="擴充的資料項目"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.coding">
          <path value="MedicationDispense.medication[x].coding"/>
          <slicing>
            <discriminator>
              <type value="pattern"/>
              <path value="$this"/>
            </discriminator>
            <rules value="open"/>
          </slicing>
          <short value="由專門術語系統（terminology system）定義的代碼"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.coding:fda-medication-tw">
          <path value="MedicationDispense.medication[x].coding"/>
          <sliceName value="fda-medication-tw"/>
          <short value="此為臺灣食品藥物管理署(TFDA)維護之藥品代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照。"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <strength value="required"/>
            <description value="應填入所綁定值集中的其中一個代碼。"/>
            <valueSet
                      value="https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-fda-tw"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-tw">
          <path value="MedicationDispense.medication[x].coding"/>
          <sliceName value="nhi-medication-tw"/>
          <short
                 value="此為中央健康保險署(NHI)維護之藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照。"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <strength value="required"/>
            <description value="應填入所綁定值集中的其中一個代碼。"/>
            <valueSet
                      value="https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-ch-herb-tw">
          <path value="MedicationDispense.medication[x].coding"/>
          <sliceName value="nhi-medication-ch-herb-tw"/>
          <short
                 value="此為中央健康保險署(NHI)維護之中藥藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照。"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <strength value="required"/>
            <description value="應填入所綁定值集中的其中一個代碼。"/>
            <valueSet
                      value="https://twcore.mohw.gov.tw/ig/twcore/ValueSet/nhi-medication-ch-herb-tw"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.coding:rxnorm-medication-us-core">
          <path value="MedicationDispense.medication[x].coding"/>
          <sliceName value="rxnorm-medication-us-core"/>
          <short
                 value="RxNorm為美國Unified Medical Language System®中的藥品代碼，取得UMLS®授權即可免費使用，可依情境選用此代碼。"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照。"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <strength value="required"/>
            <description value="應填入所綁定值集中的其中一個代碼。"/>
            <valueSet
                      value="https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-rxnorm-tw"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.coding:atc-medication-code">
          <path value="MedicationDispense.medication[x].coding"/>
          <sliceName value="atc-medication-code"/>
          <short
                 value="ATC代碼的版權為世界衛生組織（WHO）Collaborating Centre for Drug Statistics Methodology，可免費使用，可依情境選用此代碼。"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照。"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <strength value="required"/>
            <description value="應填入所綁定值集中的其中一個代碼。"/>
            <valueSet
                      value="https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medcation-atc-tw"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.coding:snomedct-medication-codes">
          <path value="MedicationDispense.medication[x].coding"/>
          <sliceName value="snomedct-medication-codes"/>
          <short value="此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照。"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <strength value="required"/>
            <description
                         value="可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/medication-codes"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.medication[x]:medicationCodeableConcept.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="MedicationDispense.medication[x].text"/>
          <short value="概念的文字表示法"/>
          <definition value="輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。"/>
          <comment value="很多時候，此文字表述與其中一個代碼的顯示名稱相同。"/>
          <requirements
                        value="專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="MedicationDispense.subject">
          <path value="MedicationDispense.subject"/>
          <short value="配藥/調劑藥品的對象，意即為誰配藥/調劑藥品。"/>
          <definition value="一個指向resource的連結，代表接受藥物治療的個人或團體。"/>
          <comment value="給藥-&gt;對象-&gt;病人"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.subject"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.subject"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PID-3-Patient ID List"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject"/>
          </mapping>
        </element>
        <element id="MedicationDispense.context">
          <path value="MedicationDispense.context"/>
          <short value="與此配藥/調劑藥品相關的就醫事件(Encounter/Episode)"/>
          <definition value="描述此事件發生時所處的醫療環境或治療階段，例如：此事件是在某次就醫或某照護病程中發生的。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.context"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.context"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=&quot;type of encounter or episode&quot;]"/>
          </mapping>
        </element>
        <element id="MedicationDispense.supportingInformation">
          <path value="MedicationDispense.supportingInformation"/>
          <short value="支持配藥/調劑藥品的資訊"/>
          <definition value="支持配藥/調劑藥品的其他資訊"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.supportingInformation"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Resource"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.context"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]"/>
          </mapping>
        </element>
        <element id="MedicationDispense.performer">
          <path value="MedicationDispense.performer"/>
          <short value="執行此配藥/藥品調劑的人員。"/>
          <definition value="表明由誰或由什麼執行了此事件"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.performer"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.performer"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PRF]"/>
          </mapping>
        </element>
        <element id="MedicationDispense.performer.id">
          <path value="MedicationDispense.performer.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.performer.extension">
          <path value="MedicationDispense.performer.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.performer.modifierExtension">
          <path value="MedicationDispense.performer.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="MedicationDispense.performer.function">
          <path value="MedicationDispense.performer.function"/>
          <short value="誰進行了配藥/藥品調劑以及他們做了什麼"/>
          <definition value="區分配藥中的執行者類型。例如：資料輸入員、包裝藥品人員、最終核對者。"/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <requirements value="允許對不同執行者參與類型進行明確區分"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.performer.function"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationDispensePerformerFunction"/>
            </extension>
            <strength value="example"/>
            <description
                         value="可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/medicationdispense-performer-function"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.performer.actor">
          <path value="MedicationDispense.performer.actor"/>
          <short value="執行此操作的個人"/>
          <definition value="執行此動作的設備、健康照護服務提供者等。應假設行為人是配藥/調劑藥品人員。"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.performer.actor"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Device"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.performer.actor"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".role"/>
          </mapping>
        </element>
        <element id="MedicationDispense.location">
          <path value="MedicationDispense.location"/>
          <short value="配藥/調劑藥品的位置"/>
          <definition value="進行配藥/調劑藥品的主要實體位置"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.location"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Location"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=LOC].role"/>
          </mapping>
        </element>
        <element id="MedicationDispense.authorizingPrescription">
          <path value="MedicationDispense.authorizingPrescription"/>
          <short value="授權此配藥/調劑藥品的處方"/>
          <definition value="表明配藥/調劑藥品所依據的藥品請求"/>
          <comment value="對應至事件邏輯模型中的 basedOn"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.authorizingPrescription"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationRequest-twcore"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.basedOn"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="ORC-2 Placer Order Number"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=FLFS].target[moodCode=RQO]"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.inFulfillmentOf"/>
          </mapping>
        </element>
        <element id="MedicationDispense.type">
          <path value="MedicationDispense.type"/>
          <short value="配藥/調劑藥品類型。例如：試用分裝、部分分裝、緊急分裝等"/>
          <definition value="表明執行的配藥/調劑藥品事件類型。例如：試用分裝、試用完成、部分分裝、緊急分裝、樣品等。"/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationDispenseType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.quantity">
          <path value="MedicationDispense.quantity"/>
          <short value="配藥/調劑藥品的量"/>
          <definition value="已配發的藥量。包括藥品的計量單位。"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.quantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map
                 value="RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".quantity"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.SupplyEvent.quantity"/>
          </mapping>
        </element>
        <element id="MedicationDispense.quantity.id">
          <path value="MedicationDispense.quantity.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.quantity.extension">
          <path value="MedicationDispense.quantity.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.quantity.value">
          <path value="MedicationDispense.quantity.value"/>
          <short
                 value="Numerical value (with implicit precision).[應填入給藥總量 Total Amount]"/>
          <definition
                      value="The value of the measured amount. The value includes an implicit precision in the presentation of the value."/>
          <comment
                   value="The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."/>
          <requirements
                        value="Precision is handled implicitly in almost all cases of measurement."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="SN.2  / CQ - N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"/>
          </mapping>
        </element>
        <element id="MedicationDispense.quantity.comparator">
          <path value="MedicationDispense.quantity.comparator"/>
          <short
                 value="&lt; | &lt;= | &gt;= | &gt; - how to understand the value"/>
          <definition value="Not allowed to be used in this context"/>
          <requirements
                        value="Need a framework for handling measures where the value is &lt;5ug/L or &gt;400mg/L due to the limitations of measuring methodology."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Quantity.comparator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <meaningWhenMissing
                              value="If there is no comparator, then there is no modification of the value"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This is labeled as &quot;Is Modifier&quot; because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuantityComparator"/>
            </extension>
            <strength value="required"/>
            <description
                         value="How the Quantity should be understood and represented."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="SN.1  / CQ.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="IVL properties"/>
          </mapping>
        </element>
        <element id="MedicationDispense.quantity.unit">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="MedicationDispense.quantity.unit"/>
          <short value="Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等"/>
          <definition value="A human-readable form of the unit."/>
          <requirements
                        value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.unit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.unit"/>
          </mapping>
        </element>
        <element id="MedicationDispense.quantity.system">
          <path value="MedicationDispense.quantity.system"/>
          <short value="System that defines coded unit form"/>
          <definition
                      value="The identification of the system that provides the coded form of the unit."/>
          <requirements
                        value="Need to know the system that defines the coded form of the unit."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <condition value="qty-3"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CO.codeSystem, PQ.translation.codeSystem"/>
          </mapping>
        </element>
        <element id="MedicationDispense.quantity.code">
          <path value="MedicationDispense.quantity.code"/>
          <short value="Coded form of the unit"/>
          <definition
                      value="A computer processable form of the unit in some unit representation system."/>
          <comment
                   value="The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system."/>
          <requirements
                        value="Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.code, MO.currency, PQ.translation.code"/>
          </mapping>
        </element>
        <element id="MedicationDispense.daysSupply">
          <path value="MedicationDispense.daysSupply"/>
          <short
                 value="Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]"/>
          <definition value="藥品的劑量，以時間為單位來表示。"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.daysSupply"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map
                 value="TQ1.6 Timing/Quantity Segment Service Duration.
    Prior to v2.5, ORC.7.3 Common Order Segment / Quantity/Timing / Duration component.  This is a formatted string, first character for the time unit (e.g., D=days), followed by the value.  For example, “D14” represents “14 days supply”
    From v2.5 on, TQ1.6 Timing/Quantity Segment / Service Duration.  This is a CQ data type (&lt;Quantity (NM)&gt; ^ &lt;Units (CWE)&gt;), thus for days supply, assuming the unit of measure is “days”, the numeric value is TQ1.6.1 (…|14^
    For backwards compatibility, ORC.7 was permitted through v2.6.  Both forms (field and segment) may be present in v2.5, v2.5.1, and v2.6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="effectiveUseTime"/>
          </mapping>
        </element>
        <element id="MedicationDispense.daysSupply.id">
          <path value="MedicationDispense.daysSupply.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.daysSupply.extension">
          <path value="MedicationDispense.daysSupply.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.daysSupply.value">
          <path value="MedicationDispense.daysSupply.value"/>
          <short value="Numerical value (with implicit precision)"/>
          <definition
                      value="The value of the measured amount. The value includes an implicit precision in the presentation of the value."/>
          <comment
                   value="The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."/>
          <requirements
                        value="Precision is handled implicitly in almost all cases of measurement."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="SN.2  / CQ - N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"/>
          </mapping>
        </element>
        <element id="MedicationDispense.daysSupply.comparator">
          <path value="MedicationDispense.daysSupply.comparator"/>
          <short
                 value="&lt; | &lt;= | &gt;= | &gt; - how to understand the value"/>
          <definition value="Not allowed to be used in this context"/>
          <requirements
                        value="Need a framework for handling measures where the value is &lt;5ug/L or &gt;400mg/L due to the limitations of measuring methodology."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Quantity.comparator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <meaningWhenMissing
                              value="If there is no comparator, then there is no modification of the value"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This is labeled as &quot;Is Modifier&quot; because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuantityComparator"/>
            </extension>
            <strength value="required"/>
            <description
                         value="How the Quantity should be understood and represented."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="SN.1  / CQ.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="IVL properties"/>
          </mapping>
        </element>
        <element id="MedicationDispense.daysSupply.unit">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="MedicationDispense.daysSupply.unit"/>
          <short value="Unit representation"/>
          <definition value="A human-readable form of the unit."/>
          <requirements
                        value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.unit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.unit"/>
          </mapping>
        </element>
        <element id="MedicationDispense.daysSupply.system">
          <path value="MedicationDispense.daysSupply.system"/>
          <short value="System that defines coded unit form"/>
          <definition
                      value="The identification of the system that provides the coded form of the unit."/>
          <requirements
                        value="Need to know the system that defines the coded form of the unit."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <condition value="qty-3"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CO.codeSystem, PQ.translation.codeSystem"/>
          </mapping>
        </element>
        <element id="MedicationDispense.daysSupply.code">
          <path value="MedicationDispense.daysSupply.code"/>
          <short value="Coded form of the unit"/>
          <definition
                      value="A computer processable form of the unit in some unit representation system."/>
          <comment
                   value="The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system."/>
          <requirements
                        value="Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.code, MO.currency, PQ.translation.code"/>
          </mapping>
        </element>
        <element id="MedicationDispense.whenPrepared">
          <path value="MedicationDispense.whenPrepared"/>
          <short value="產品包裝和審核時間"/>
          <definition value="配製藥品的包裝和審核時間"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.whenPrepared"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="RXD-3-Date/Time Dispensed"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime[xmi:type=IVL_TS].low"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.SupplyEvent.effectiveTime"/>
          </mapping>
        </element>
        <element id="MedicationDispense.whenHandedOver">
          <path value="MedicationDispense.whenHandedOver"/>
          <short value="藥品發放的時間"/>
          <definition value="病人或其代理人收到配製藥品的時間"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.whenHandedOver"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.occurrence[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="RXD-3-Date/Time Dispensed"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime[xmi:type=IVL_TS].high"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.SupplyEvent.effectiveTime"/>
          </mapping>
        </element>
        <element id="MedicationDispense.destination">
          <path value="MedicationDispense.destination"/>
          <short value="藥品被送往何處"/>
          <definition value="作為配藥/調劑藥品事件的一部分，識別藥品送達的機構/位置。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.destination"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map
                 value="RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=DST].role"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.SupplyEvent.destination"/>
          </mapping>
        </element>
        <element id="MedicationDispense.receiver">
          <path value="MedicationDispense.receiver"/>
          <short value="誰領取了藥品"/>
          <definition value="識別誰領藥。通常是病人或其照護者，但在某些情況下也可能是醫護專業人員。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.receiver"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-DS"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=RCV].role"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.SupplyEvent.receiver"/>
          </mapping>
        </element>
        <element id="MedicationDispense.note">
          <path value="MedicationDispense.note"/>
          <short
                 value="Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記"/>
          <definition
                      value="Extra information about the dispense that could not be conveyed in the other attributes.
    [處方疑義樣態註記]：預設為「無」
    填寫說明：
    處方有疑義樣態時請填寫「有」
    處方無疑義樣態請填寫「無」"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.note"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Annotation"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.note"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="RXD-9 Dispense Notes"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ]/source[classCode=ACT,moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="MedicationDispense.note.id">
          <path value="MedicationDispense.note.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.note.extension">
          <path value="MedicationDispense.note.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.note.author[x]">
          <path value="MedicationDispense.note.author[x]"/>
          <short value="Individual responsible for the annotation"/>
          <definition
                      value="The individual responsible for making the annotation."/>
          <comment
                   value="Organization is used when there's no need for specific attribution as to who made the comment."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Annotation.author[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"/>
          </type>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Act.participant[typeCode=AUT].role"/>
          </mapping>
        </element>
        <element id="MedicationDispense.note.time">
          <path value="MedicationDispense.note.time"/>
          <short value="When the annotation was made"/>
          <definition
                      value="Indicates when this particular annotation was made."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Annotation.time"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Act.effectiveTime"/>
          </mapping>
        </element>
        <element id="MedicationDispense.note.text">
          <path value="MedicationDispense.note.text"/>
          <short value="The annotation  - text content (as markdown)"/>
          <definition value="The text of the annotation in markdown format."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Annotation.text"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Act.text"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction">
          <path value="MedicationDispense.dosageInstruction"/>
          <short value="病人如何使用藥品或者照護者如何給藥"/>
          <definition value="指明病人如何使用藥品"/>
          <comment
                   value="當劑量或給藥速度在整個給藥期間預計要變化時（例如：逐漸降低劑量處方），需要提供多個劑量指示的說明，以表達不同的劑量/給藥速度。藥劑師在配藥/調劑藥品前會審核藥品醫令，並根據實際配藥更新dosageInstruction。"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.dosageInstruction"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Dosage"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.id">
          <path value="MedicationDispense.dosageInstruction.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.extension">
          <path value="MedicationDispense.dosageInstruction.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.modifierExtension">
          <path value="MedicationDispense.dosageInstruction.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.sequence">
          <path value="MedicationDispense.dosageInstruction.sequence"/>
          <short value="劑量指示的順序"/>
          <definition value="表明使用或解釋劑量指示的順序"/>
          <requirements
                        value="如果多個劑量的序號是相同的，那麼就意味著這些指示將被視為同時進行。如果序號不同，那麼這些劑量將是依續使用。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.sequence"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="integer"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="TQ1-1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".text"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.text">
          <path value="MedicationDispense.dosageInstruction.text"/>
          <short value="純文字表述的劑量指示，例如：SIG。"/>
          <definition value="純文字表述的劑量指示，例如：SIG。"/>
          <requirements
                        value="純文字表述劑量指示可用於說明太複雜而無法編碼的案例。此屬性的內容不包括藥品的名稱或描述。當有已編碼的指示，純文字表述說明可能仍然存在，以顯示給服用藥品或給藥的人。文字指示預計將始終被填入。如果dosage.timing屬性也被填入，那麼dosage.text應該反映與timing相同的資訊。關於給藥或準備藥品的附加資訊應作為文字包括在內。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="RXO-6; RXE-21"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".text"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.additionalInstruction">
          <path
                value="MedicationDispense.dosageInstruction.additionalInstruction"/>
          <short value="對病人的補充指示或警告－例如：「隨餐服用」，「可能引起嗜睡」"/>
          <definition
                      value="向病人提供關於如何服藥的補充指示（例如 「隨餐服用」或「在進食前半小時服用」）或給病人的藥品警告（例如「可能導致嗜睡 」或「避免皮膚暴露於陽光直射或人工強光燈（日曬用）下」）。"/>
          <comment
                   value="應在dosage.text中填入關於用藥或準備藥品的資訊（例如： 「盡可能快地透過腹膜內口輸液」或 「在用 x 藥後立即服用」）。"/>
          <requirements
                        value="附加指示是要編碼的，但在沒有編碼的情況下，此資料項目可以包括文字。例如，「用大量的水吞咽」，這可能編碼也可能不編碼。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Dosage.additionalInstruction"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdditionalInstruction"/>
            </extension>
            <strength value="example"/>
            <description
                         value="一個編碼的概念，確定額外的指示，如「與水一起服用」或「避免操作重型機器」；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/additional-instruction-codes"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.patientInstruction">
          <path value="MedicationDispense.dosageInstruction.patientInstruction"/>
          <short value="以病人或消費者為導向的指示"/>
          <definition value="用病人或消費者能理解的術語提供指示"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.patientInstruction"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="RXO-7"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".text"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing">
          <path value="MedicationDispense.dosageInstruction.timing"/>
          <short value="應該何時給藥；時間的寫法請參照Timimg datatype。"/>
          <definition value="應該何時給藥"/>
          <comment
                   value="這個屬性可能並不總是被填入，而Dosage.text預計會被填入。如果兩者都被填入，那麼Dosage.text應反映Dosage.timing的內容。"/>
          <requirements
                        value="病人用藥的時間安排。這種data type允許許多不同的表達方式。例如：「每8小時一次」；「一天三次」；「從2011年12月23日開始的10天裡，早餐前半小時」；「2013年10月15日、2013年10月17日和2013年11月1日」。有時，當率值（rate）為總容量／期間，其「期間」意指（例如：500mL／2小時）之持續期間為2小時。但當率值非意指「持續期間」時（例如：250mL／小時），則需要timing.repeat.duration來表達輸液的時間區間。"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Dosage.timing"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Timing"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.id">
          <path value="MedicationDispense.dosageInstruction.timing.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.extension">
          <path value="MedicationDispense.dosageInstruction.timing.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.modifierExtension">
          <path
                value="MedicationDispense.dosageInstruction.timing.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.event">
          <path value="MedicationDispense.dosageInstruction.timing.event"/>
          <short value="事件發生的時間"/>
          <definition value="指明事件發生的特定時間"/>
          <requirements value="例如：在一份用藥記錄中，你需要把一個一般的規範變成一個精確的規範。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Timing.event"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="QLIST&lt;TS&gt;"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.repeat">
          <path value="MedicationDispense.dosageInstruction.timing.repeat"/>
          <short value="事件定期重複發生的時間"/>
          <definition value="一組描述事件何時被安排的規則"/>
          <requirements value="定期重複的時間安排"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Element"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="tim-1"/>
            <severity value="error"/>
            <human
                   value="if there's a duration, there needs to be duration units"/>
            <expression value="duration.empty() or durationUnit.exists()"/>
            <xpath value="not(exists(f:duration)) or exists(f:durationUnit)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <constraint>
            <key value="tim-2"/>
            <severity value="error"/>
            <human value="if there's a period, there needs to be period units"/>
            <expression value="period.empty() or periodUnit.exists()"/>
            <xpath value="not(exists(f:period)) or exists(f:periodUnit)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <constraint>
            <key value="tim-4"/>
            <severity value="error"/>
            <human value="duration SHALL be a non-negative value"/>
            <expression value="duration.exists() implies duration &gt;= 0"/>
            <xpath value="f:duration/@value &gt;= 0 or not(f:duration/@value)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <constraint>
            <key value="tim-5"/>
            <severity value="error"/>
            <human value="period SHALL be a non-negative value"/>
            <expression value="period.exists() implies period &gt;= 0"/>
            <xpath value="f:period/@value &gt;= 0 or not(f:period/@value)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <constraint>
            <key value="tim-6"/>
            <severity value="error"/>
            <human value="If there's a periodMax, there must be a period"/>
            <expression value="periodMax.empty() or period.exists()"/>
            <xpath value="not(exists(f:periodMax)) or exists(f:period)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <constraint>
            <key value="tim-7"/>
            <severity value="error"/>
            <human value="If there's a durationMax, there must be a duration"/>
            <expression value="durationMax.empty() or duration.exists()"/>
            <xpath value="not(exists(f:durationMax)) or exists(f:duration)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <constraint>
            <key value="tim-8"/>
            <severity value="error"/>
            <human value="If there's a countMax, there must be a count"/>
            <expression value="countMax.empty() or count.exists()"/>
            <xpath value="not(exists(f:countMax)) or exists(f:count)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <constraint>
            <key value="tim-9"/>
            <severity value="error"/>
            <human
                   value="If there's an offset, there must be a when (and not C, CM, CD, CV)"/>
            <expression
                        value="offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))"/>
            <xpath value="not(exists(f:offset)) or exists(f:when)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <constraint>
            <key value="tim-10"/>
            <severity value="error"/>
            <human
                   value="If there's a timeOfDay, there cannot be a when, or vice versa"/>
            <expression value="timeOfDay.empty() or when.empty()"/>
            <xpath value="not(exists(f:timeOfDay)) or not(exists(f:when))"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="Implies PIVL or EIVL"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.repeat.id">
          <path value="MedicationDispense.dosageInstruction.timing.repeat.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.extension">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.bounds[x]">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.bounds[x]"/>
          <short value="時間或期間長度／長度範圍，或（開始和／或結束）限制"/>
          <definition value="時間長度或可能的時間長度範圍，或開始和／或結束時間。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.bounds[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Duration"/>
          </type>
          <type>
            <code value="Range"/>
          </type>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="IVL(TS) used in a QSI"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.repeat.count">
          <path value="MedicationDispense.dosageInstruction.timing.repeat.count"/>
          <short value="重複的次數"/>
          <definition
                      value="在整個持續期間內，期望重複的總次數。如果countMax這個資料項目存在，此count資料項目表示允許次數範圍的下限。"/>
          <comment
                   value="如果你同時擁有bounds和count這兩個資料項目，那麼這應該被理解為在bounds期間，發生count的次數。"/>
          <requirements value="重複次數可透過設定結束時間或總發生次數作限制"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.count"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.count"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.countMax">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.countMax"/>
          <short value="重複的最大次數"/>
          <definition
                      value="如果countMax存在，表示count是一個範圍，如此可在［count］和［countMax］之間的重複次數執行動作。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.countMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.count"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.duration">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.duration"/>
          <short value="此事件持續多久時間"/>
          <definition
                      value="這件事發生的時候會持續多久時間。如果durationMax這個資料項目存在，則此duration資料項目表示持續時間的允許範圍之下限。"/>
          <comment
                   value="對於一些事件，持續時間是事件定義的一部分（例如：靜脈輸液，持續時間隱含於特定輸液量及速度）。對於其他事件，它是時間規範的一部分（例如：運動持續時間）。"/>
          <requirements value="有些活動不是立即發生，需要維持一段時間。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.duration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.durationMax">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.durationMax"/>
          <short value="此事件持續多久時間 （最長時間／最大值）"/>
          <definition
                      value="如果durationMax這個資料項目存在，表示duration資料項目是一個範圍的下限 — 所以要在［duration］和［durationMax］之間執行此活動。"/>
          <comment
                   value="對於一些事件，持續時間是事件定義的一部分（例如：靜脈輸液，持續時間隱含於特定輸液量及速度）。對於其他事件，它是時間規範的一部分（例如：運動持續時間）。"/>
          <requirements value="有些活動不是立即發生，需要維持一段時間。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.durationMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.durationUnit">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.durationUnit"/>
          <short
                 value="s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM）"/>
          <definition value="持續時間的單位，以UCUM為單位。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.durationUnit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="UnitsOfTime"/>
            </extension>
            <strength value="required"/>
            <description value="時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/units-of-time|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase.unit"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.frequency">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.frequency"/>
          <short
                 value="Event occurs frequency times per period.[應填入頻率 Frequency]"/>
          <definition
                      value="在特定期間內重複動作的次數。如果frequencyMax存在，此frequency資料項目表示頻率的允許範圍的下限。"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.frequency"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <meaningWhenMissing
                              value="If no frequency is stated, the assumption is that the event occurs once per period, but systems SHOULD always be specific about this"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.frequencyMax">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.frequencyMax"/>
          <short value="此事件於每一期間的最大發生頻率"/>
          <definition
                      value="如果frequencyMax存在，frequency資料項目表示頻率範圍的下限 – 所以要在［frequency］和［frequencyMax］之間重複執行此活動。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.frequencyMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.repeat.period">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.period"/>
          <short value="此事件於特定時間區間所發生的頻率"/>
          <definition
                      value="表示重複發生的時間區間；例如：為了表示「每天3次」，3次是頻率（frequency），1天是週期（period）。如果存在periodMax資料項目，此period資料項目表示時間區間長度的允許範圍的下限。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.periodMax">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.periodMax"/>
          <short value="時間區間的上限（3-4小時）"/>
          <definition
                      value="如果periodMax存在，表示時間區間是一個從［period］到［periodMax］的範圍，允許表達像是「每3至5天一次」的概念。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.periodMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.periodUnit">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.periodUnit"/>
          <short
                 value="s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM）"/>
          <definition value="持續時間的單位，以UCUM為單位。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.periodUnit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="UnitsOfTime"/>
            </extension>
            <strength value="required"/>
            <description value="時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/units-of-time|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase.unit"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.dayOfWeek">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.dayOfWeek"/>
          <short value="mon ｜ tue ｜ wed ｜ thu ｜ fri ｜ sat ｜ sun"/>
          <definition value="如果提供的資訊為一星期中的一天或多天，那麼此活動只發生在這特定的幾天。"/>
          <comment
                   value="如果沒有指定天數，則假定該活動每天都會發生，否則就會指定。資料項目frequency和period不能與dayOfWeek同時使用。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Timing.repeat.dayOfWeek"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DayOfWeek"/>
            </extension>
            <strength value="required"/>
            <description value="應填入DaysOfWeek值集中的其中一個代碼"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.timeOfDay">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.timeOfDay"/>
          <short value="一天中的活動時間"/>
          <definition value="具體說明一天中活動進行的時間"/>
          <comment
                   value="當指定了一天中的時間時，就會推斷出該活動每天都會在指定的時間發生（由dayofWeek篩選）。資料項目when、frequency和period不能和timeOfDay一起使用。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Timing.repeat.timeOfDay"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="time"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.repeat.when">
          <path value="MedicationDispense.dosageInstruction.timing.repeat.when"/>
          <short value="事件發生的時間區間之代碼"/>
          <definition value="一天中的一個大致時段，可能與日常生活中的某一事件有關，表明該活動應在何時發生。"/>
          <comment value="當一個以上的事件被列出，則此事件被綁定至合併的數個特定事件。"/>
          <requirements value="時間經常由特定事件的發生所決定，例如：起床、吃飯和睡覺。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Timing.repeat.when"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EventTiming"/>
            </extension>
            <strength value="required"/>
            <description value="與時程表有關的真實世界事件；應填入EventTiming值集中的其中一個代碼"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/event-timing|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="EIVL.event"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.repeat.offset">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.offset"/>
          <short value="事件的分鐘數（之前或之後）"/>
          <definition
                      value="距離特定事件發生的分鐘數。如果事件代碼沒有表明該分鐘是在事件之前還是之後，則假定該offset是指特定事件發生後的分鐘數。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.offset"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="unsignedInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="EIVL.offset"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.code">
          <path value="MedicationDispense.dosageInstruction.timing.code"/>
          <short value="BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後"/>
          <definition
                      value="活動發生時機之代碼（或只是code.text中的文字）。像是BID的一些代碼到處都有，但許多機構定義它們自己的額外代碼。如果提供了一個代碼，此代碼被理解為是結構化時間資料中規定的任何內容的完整陳述，代碼或資料都可用於解釋時機（Timing），但.repeat.bounds適用於代碼（且不包含在代碼中）的例外。"/>
          <comment
                   value="BID等被定義為「在機構特定的時間」。例如：一個機構可以選擇BID是 「總是在早上7點和下午6點」。如果這種選項是不合適的，就不應該使用代碼BID。反之，應使用一個獨特的機構特定代碼來代替HL7定義的BID代碼和／或使用一個結構化表示法（在這種情況下，具體說明兩個事件時間）。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TimingAbbreviation"/>
            </extension>
            <strength value="preferred"/>
            <description
                         value="已知／確定的時間模式之代碼；鼓勵使用TimingAbbreviation值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/timing-abbreviation"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="QSC.code"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.code.id">
          <path value="MedicationDispense.dosageInstruction.timing.code.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.code.extension">
          <path
                value="MedicationDispense.dosageInstruction.timing.code.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.code.coding">
          <path value="MedicationDispense.dosageInstruction.timing.code.coding"/>
          <short
                 value="由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <strength value="extensible"/>
            <description value="應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。"/>
            <valueSet
                      value="https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.code.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="MedicationDispense.dosageInstruction.timing.code.text"/>
          <short value="概念的文字標記法"/>
          <definition value="輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。"/>
          <comment value="很多時候，此文字表述與其中一個代碼的顯示名稱相同。"/>
          <requirements
                        value="專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.asNeeded[x]">
          <path value="MedicationDispense.dosageInstruction.asNeeded[x]"/>
          <short
                 value="「根據（對x的）需要」服用
    Binding：一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；可參考SNOMEDCTMedicationAsNeededReasonCodes值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。"/>
          <definition
                      value="表明此藥品是否只在需要時在特定的用法（Boolean選項）服用，或者表明服用此藥品（CodeableConcept）的前提條件。"/>
          <comment
                   value="可以透過設定Boolean = True來表達不用填寫理由的「根據需要」。在這種情況下，CodeableConcept不會被填入任何值。或者你可以透過包括CodeableConcept來表達 「根據需要」的理由。在這種情況下，Boolean值被假定為True。如果您將Boolean值設置為「False」，那麼該劑量是根據時間表給予的，而不是 「prn」或 「根據需要」。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.asNeeded[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <strength value="extensible"/>
            <description
                         value="一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/medication-as-needed-reason"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.site">
          <path value="MedicationDispense.dosageInstruction.site"/>
          <short value="用藥之身體部位"/>
          <definition value="用藥的身體部位"/>
          <comment
                   value="如果使用案例需要BodySite resource的屬性（例如：分別識別和追蹤），那麼就使用標準extension bodySite。可以是一個摘要代碼，也可以是對一個非常精確的位置定義的參照，或者兩者都是。"/>
          <requirements value="對藥品首次進入之人體解剖部位的編碼說明"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.site"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <strength value="extensible"/>
            <description
                         value="一個編碼概念，描述藥品進入或在身體上的位置；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/approach-site-codes"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.route">
          <path value="MedicationDispense.dosageInstruction.route"/>
          <short
                 value="How drug should enter body.[應填入給藥途徑 Route of Administration]"/>
          <definition value="藥品應如何進入體內"/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <requirements value="具體說明治療劑進入或到達病人體內的途徑或生理途徑之代碼"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Dosage.route"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RouteOfAdministration"/>
            </extension>
            <strength value="example"/>
            <description
                         value="A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/route-codes"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.route.id">
          <path value="MedicationDispense.dosageInstruction.route.id"/>
          <representation value="xmlAttr"/>
          <short value="唯一可識別ID，以供資料項目間相互參照。"/>
          <definition value="resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.route.extension">
          <path value="MedicationDispense.dosageInstruction.route.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="擴充的資料項目"/>
          <definition value="擴充的資料項目"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="MedicationDispense.dosageInstruction.route.coding">
          <path value="MedicationDispense.dosageInstruction.route.coding"/>
          <short
                 value="由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。"/>
          <definition value="由專門術語系統（terminology system）所定義之代碼的參照"/>
          <comment
                   value="代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。"/>
          <requirements value="允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <strength value="extensible"/>
            <description value="應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。"/>
            <valueSet
                      value="https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-path-sct-tw"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.route.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="MedicationDispense.dosageInstruction.route.text"/>
          <short value="概念的文字標記法"/>
          <definition value="輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。"/>
          <comment value="很多時候，此文字表述與其中一個代碼的顯示名稱相同。"/>
          <requirements
                        value="專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.method">
          <path value="MedicationDispense.dosageInstruction.method"/>
          <short value="用藥的技術"/>
          <definition value="用藥的技術"/>
          <comment value="使用的專門術語通常先組合配對（pre-coordinate）用藥途徑和／或劑型。"/>
          <requirements value="表示藥品進入或進入身體的方法的一個編碼值。最常用的方法為注射。例如：慢推、深靜脈。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.method"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <strength value="extensible"/>
            <description
                         value="一個編碼概念，描述用藥的技術；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/administration-method-codes"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.doseAndRate">
          <path value="MedicationDispense.dosageInstruction.doseAndRate"/>
          <short value="用藥量"/>
          <definition value="用藥量"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="Dosage.doseAndRate"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Element"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="TQ1-2"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.doseAndRate.id">
          <path value="MedicationDispense.dosageInstruction.doseAndRate.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.doseAndRate.extension">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.doseAndRate.type">
          <path value="MedicationDispense.dosageInstruction.doseAndRate.type"/>
          <short value="特定劑量或比率種類"/>
          <definition value="特定劑量或比率種類，例如：依處方或計算而來。"/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <requirements value="如果此type資料項目沒有被填入，則假定為「依處方（ordered）」。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.doseAndRate.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DoseAndRateType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="可參考DoseAndRateType值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/dose-rate-type"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]">
          <path value="MedicationDispense.dosageInstruction.doseAndRate.dose[x]"/>
          <slicing>
            <discriminator>
              <type value="type"/>
              <path value="$this"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <short value="每一劑量的藥量"/>
          <definition value="每一劑量的藥量"/>
          <comment
                   value="請注意這是指特定藥品量，而不是指每種有效成分量。每種成分量都可以在Medication resource中進行溝通。例如：如果想表達一錠375毫克的藥錠，劑量是一錠，你可以使用Medication resource來記錄此藥錠是由375毫克的藥物XYZ組成。或者，如果劑量是375毫克，那麼你可能只需要使用Medication resource來表明這是藥錠。如果是靜脈注射，例如：多巴胺，你想表明400毫克多巴胺被混合在500毫升的靜脈注射液中，那麼這些都將在Medication resource中呈現。如果用藥不打算是即時的（速率是存在的，或者時間是有期限的），這可具體說明以傳達在時間表所指示的時段之總用藥量，例如：500毫升的劑量應該在4小時內完成。"/>
          <requirements value="在一次用藥事件中給予的治療用或其他的物質量"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Dosage.doseAndRate.dose[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="RXO-2, RXE-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".doseQuantity"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity">
          <path value="MedicationDispense.dosageInstruction.doseAndRate.dose[x]"/>
          <sliceName value="doseQuantity"/>
          <short value="每一劑量的藥量"/>
          <definition value="每一劑量的藥量"/>
          <comment
                   value="請注意這是指特定藥品量，而不是指每種有效成分量。每種成分量都可以在Medication resource中進行溝通。例如：如果想表達一錠375毫克的藥錠，劑量是一錠，你可以使用Medication resource來記錄此藥錠是由375毫克的藥物XYZ組成。或者，如果劑量是375毫克，那麼你可能只需要使用Medication resource來表明這是藥錠。如果是靜脈注射，例如：多巴胺，你想表明400毫克多巴胺被混合在500毫升的靜脈注射液中，那麼這些都將在Medication resource中呈現。如果用藥不打算是即時的（速率是存在的，或者時間是有期限的），這可具體說明以傳達在時間表所指示的時段之總用藥量，例如：500毫升的劑量應該在4小時內完成。"/>
          <requirements value="在一次用藥事件中給予的治療用或其他的物質量"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Dosage.doseAndRate.dose[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="RXO-2, RXE-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".doseQuantity"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.id">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.extension">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.value">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].value"/>
          <short value="Numerical value (with implicit precision).[應填入劑量]"/>
          <definition
                      value="The value of the measured amount. The value includes an implicit precision in the presentation of the value."/>
          <comment
                   value="The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."/>
          <requirements
                        value="Precision is handled implicitly in almost all cases of measurement."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="SN.2  / CQ - N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.comparator">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].comparator"/>
          <short
                 value="&lt; | &lt;= | &gt;= | &gt; - how to understand the value"/>
          <definition value="Not allowed to be used in this context"/>
          <requirements
                        value="Need a framework for handling measures where the value is &lt;5ug/L or &gt;400mg/L due to the limitations of measuring methodology."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Quantity.comparator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <meaningWhenMissing
                              value="If there is no comparator, then there is no modification of the value"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This is labeled as &quot;Is Modifier&quot; because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuantityComparator"/>
            </extension>
            <strength value="required"/>
            <description
                         value="How the Quantity should be understood and represented."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="SN.1  / CQ.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="IVL properties"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.unit">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].unit"/>
          <short value="Unit representation.[應填入劑量單位  Dose Units]。如：顆、CC等"/>
          <definition value="A human-readable form of the unit."/>
          <requirements
                        value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.unit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.unit"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.system">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].system"/>
          <short value="System that defines coded unit form"/>
          <definition
                      value="The identification of the system that provides the coded form of the unit."/>
          <requirements
                        value="Need to know the system that defines the coded form of the unit."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <condition value="qty-3"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CO.codeSystem, PQ.translation.codeSystem"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.code">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].code"/>
          <short value="Coded form of the unit"/>
          <definition
                      value="A computer processable form of the unit in some unit representation system."/>
          <comment
                   value="The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system."/>
          <requirements
                        value="Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.code, MO.currency, PQ.translation.code"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.doseAndRate.rate[x]">
          <path value="MedicationDispense.dosageInstruction.doseAndRate.rate[x]"/>
          <short value="每時間單位內的用藥量"/>
          <definition value="每時間單位內的用藥量"/>
          <comment
                   value="可同時提供rate和doseQuantity，以提供關於如何用藥和供應藥品的全部細節。如果速率打算隨著時間的推移而改變，根據當地的規則／法規，每次改變都應作為帶有更新速率的新版MedicationRequest來捕捉，或者用帶有新速率的新的MedicationRequest來捕捉。可以使用rateRatio和rateQuantity來指定一段時間內的比率（例如：100毫升／小時）。rateQuantity的方式要求系統有能力解析包含毫升／小時的UCUM語法，而不是將時間指定為分母的特定比率。如果指定了一個2小時500毫升的率值，使用rateRatio可能比使用rateQuantity指定250毫克／小時在語義上更正確。"/>
          <requirements
                        value="指明藥品引入病人體內的速度。通常是指輸液的速度，例如：每1小時100毫升或100毫升／小時。也可表示為每單位時間的速度，例如：每2小時500毫升，其他例子如200微克／分鐘或200微克／1分鐘；1升／8小時。有時，當表示為總容量／持續時間時，速率可以隱喻持續時間（例如：500毫升／2小時隱喻持續時間為2小時）。然而，當速率未隱喻持續時間時（例如：250毫升／小時），則需要timing.repeat.duration來表達輸液的時間區間。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.doseAndRate.rate[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Ratio"/>
          </type>
          <type>
            <code value="Range"/>
          </type>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="RXE22, RXE23, RXE-24"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".rateQuantity"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.maxDosePerPeriod">
          <path value="MedicationDispense.dosageInstruction.maxDosePerPeriod"/>
          <short value="每時間單位內用藥的上限"/>
          <definition value="每時間單位內用藥的上限"/>
          <comment value="這是為了在有上限的情況下作為劑量的輔助說明。例如：「每4小時2錠，一天最多8錠」。"/>
          <requirements value="在一段時間區間用於某一對象的治療用物質之最大總量。例如：24小時內1,000毫克。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.maxDosePerPeriod"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Ratio"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="RXO-23, RXE-19"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".maxDoseQuantity"/>
          </mapping>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.maxDosePerAdministration">
          <path
                value="MedicationDispense.dosageInstruction.maxDosePerAdministration"/>
          <short value="每次用藥的上限"/>
          <definition value="每次用藥的上限"/>
          <comment
                   value="這是為了在有上限的情況下作為劑量的輔助說明。例如：與體表面積有關的劑量有一個上限，如在5至10分鐘內靜脈注射1.5毫克／平方米（最多2毫克），其doseQuantity為1.5毫克／平方米，maxDosePerAdministration為2毫克。"/>
          <requirements value="每次用於某一對象治療用物質的最大總量"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.maxDosePerAdministration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="not supported"/>
          </mapping>
        </element>
        <element id="MedicationDispense.dosageInstruction.maxDosePerLifetime">
          <path value="MedicationDispense.dosageInstruction.maxDosePerLifetime"/>
          <short value="病人一生中用藥的上限"/>
          <definition value="病人一生中用藥的上限"/>
          <requirements value="用於某一對象的治療用物質於其一生的最大總數量"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Dosage.maxDosePerLifetime"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="not supported"/>
          </mapping>
        </element>
        <element id="MedicationDispense.substitution">
          <path value="MedicationDispense.substitution"/>
          <short value="配藥/調劑藥品時是否進行了藥品替代"/>
          <definition
                      value="表示配藥/調劑藥品過程中是否進行了藥品替代。在某些情況下，替代是預料之中的，但卻沒有發生；在另一些情況下，替代是預料之外的，但卻發生了。這一部分解釋了替代是否發生或未發生的情況及原因。如果沒有說明，則表示沒有進行替代。"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.substitution"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map value="CombinedMedicationDispense.substitutionMade"/>
          </mapping>
        </element>
        <element id="MedicationDispense.substitution.id">
          <path value="MedicationDispense.substitution.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.substitution.extension">
          <path value="MedicationDispense.substitution.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="MedicationDispense.substitution.modifierExtension">
          <path value="MedicationDispense.substitution.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="MedicationDispense.substitution.wasSubstituted">
          <path value="MedicationDispense.substitution.wasSubstituted"/>
          <short
                 value="Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]"/>
          <definition
                      value="True if the dispenser dispensed a different drug or product from what was prescribed.
    預設為「無」
    填寫說明：
    有更換藥品時請填寫「有」
    無有更換藥品請填寫「無」"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.substitution.wasSubstituted"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".actionNegationInd"/>
          </mapping>
        </element>
        <element id="MedicationDispense.substitution.type">
          <path value="MedicationDispense.substitution.type"/>
          <short value="代碼表示配藥是否與處方要求不同"/>
          <definition value="表示是否配製與處方不同藥品的代碼"/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="MedicationDispense.substitution.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationIntendedSubstitutionType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.substitution.reason">
          <path value="MedicationDispense.substitution.reason"/>
          <short
                 value="Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明"/>
          <definition value="表明替代（或不替代）處方的原因"/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.substitution.reason"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationIntendedSubstitutionReason"/>
            </extension>
            <strength value="example"/>
            <description
                         value="可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
        </element>
        <element id="MedicationDispense.substitution.responsibleParty">
          <path value="MedicationDispense.substitution.responsibleParty"/>
          <short value="誰對藥品替代負責"/>
          <definition value="對替代負有主要責任的個人或機構"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.substitution.responsibleParty"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PFM].role[classCode=ASSIGN]"/>
          </mapping>
          <mapping>
            <identity value="rx-dispense-rmim"/>
            <map
                 value="CombinedMedicationDispense.substitutionMade.ResponsibleParty"/>
          </mapping>
        </element>
        <element id="MedicationDispense.detectedIssue">
          <path value="MedicationDispense.detectedIssue"/>
          <short value="臨床問題與行動"/>
          <definition
                      value="表明病人的一項或多項實際或潛在的臨床行動之間存在的臨床問題，例如：藥品交互作用、重複治療、劑量警示等。"/>
          <comment value="此資料項目可包括決策支援系統或臨床醫生發現的問題，也可包括解決問題所採取步驟資訊。"/>
          <alias value="Contraindication"/>
          <alias value="Drug Utilization Review (DUR)"/>
          <alias value="Alert"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.detectedIssue"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/DetectedIssue"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value"/>
          </mapping>
        </element>
        <element id="MedicationDispense.eventHistory">
          <path value="MedicationDispense.eventHistory"/>
          <short value="相關生命周期事件的清單"/>
          <definition value="已發生的相關事件摘要，例如：配藥/調劑藥品是否已審核。"/>
          <comment
                   value="這可能不包括請求的所有版本的出處(Provenances) - 只包括那些被認為 「相關 」或重要的版本。 **必須沒有(SHALL NOT)** 包括與當前版本 resource 相關的 Provenance。(如果該Provenance被視為「相關 」的變更，則需要作為後續更新的一部分添加。在此之前，可以使用 _revinclude 直接查詢該版本的Provenance（所有Provenance都應以此請求的某個歷史版本作為其查詢對象）。"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="MedicationDispense.eventHistory"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Provenance-twcore"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"/>
          </mapping>
        </element>
      </snapshot>
      <differential>
        <element id="MedicationDispense.identifier">
          <path value="MedicationDispense.identifier"/>
          <short value="External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item"/>
          <min value="1"/>
        </element>
        <element id="MedicationDispense.identifier.value">
          <path value="MedicationDispense.identifier.value"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.category">
          <path value="MedicationDispense.category"/>
          <short value="配藥/調劑藥品的類型。[應填入醫令類別]"/>
        </element>
        <element id="MedicationDispense.medication[x]">
          <path value="MedicationDispense.medication[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://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS"/>
          </type>
        </element>
        <element id="MedicationDispense.medication[x]:medicationReference">
          <path value="MedicationDispense.medication[x]"/>
          <sliceName value="medicationReference"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.medication[x]:medicationCodeableConcept">
          <path value="MedicationDispense.medication[x]"/>
          <sliceName value="medicationCodeableConcept"/>
          <short
                 value="所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。"/>
          <definition
                      value="指明所提供的藥品，這是一個指向代表藥品的resource的連接，可以是藥品的細節，也可以是一個帶有代碼的屬性，從已知的藥品列表中指明此藥品。
    商品名稱Brand Name，此為用於調製之藥品名稱"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.subject">
          <path value="MedicationDispense.subject"/>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS"/>
          </type>
        </element>
        <element id="MedicationDispense.quantity">
          <path value="MedicationDispense.quantity"/>
          <min value="1"/>
        </element>
        <element id="MedicationDispense.quantity.value">
          <path value="MedicationDispense.quantity.value"/>
          <short
                 value="Numerical value (with implicit precision).[應填入給藥總量 Total Amount]"/>
          <min value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.quantity.unit">
          <path value="MedicationDispense.quantity.unit"/>
          <short value="Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等"/>
          <min value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.daysSupply">
          <path value="MedicationDispense.daysSupply"/>
          <short
                 value="Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]"/>
          <min value="1"/>
        </element>
        <element id="MedicationDispense.daysSupply.value">
          <path value="MedicationDispense.daysSupply.value"/>
          <min value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.daysSupply.unit">
          <path value="MedicationDispense.daysSupply.unit"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.receiver">
          <path value="MedicationDispense.receiver"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS"/>
            <targetProfile
                           value="https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-DS"/>
          </type>
        </element>
        <element id="MedicationDispense.note">
          <path value="MedicationDispense.note"/>
          <short
                 value="Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記"/>
          <definition
                      value="Extra information about the dispense that could not be conveyed in the other attributes.
    [處方疑義樣態註記]：預設為「無」
    填寫說明：
    處方有疑義樣態時請填寫「有」
    處方無疑義樣態請填寫「無」"/>
          <min value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.note.text">
          <path value="MedicationDispense.note.text"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.dosageInstruction">
          <path value="MedicationDispense.dosageInstruction"/>
          <min value="1"/>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing">
          <path value="MedicationDispense.dosageInstruction.timing"/>
          <min value="1"/>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.repeat">
          <path value="MedicationDispense.dosageInstruction.timing.repeat"/>
          <min value="1"/>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.timing.repeat.frequency">
          <path
                value="MedicationDispense.dosageInstruction.timing.repeat.frequency"/>
          <short
                 value="Event occurs frequency times per period.[應填入頻率 Frequency]"/>
          <min value="1"/>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.code">
          <path value="MedicationDispense.dosageInstruction.timing.code"/>
          <short value="BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後"/>
        </element>
        <element id="MedicationDispense.dosageInstruction.timing.code.coding">
          <path value="MedicationDispense.dosageInstruction.timing.code.coding"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.dosageInstruction.route">
          <path value="MedicationDispense.dosageInstruction.route"/>
          <short
                 value="How drug should enter body.[應填入給藥途徑 Route of Administration]"/>
          <min value="1"/>
        </element>
        <element id="MedicationDispense.dosageInstruction.doseAndRate">
          <path value="MedicationDispense.dosageInstruction.doseAndRate"/>
          <min value="1"/>
        </element>
        <element id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]">
          <path value="MedicationDispense.dosageInstruction.doseAndRate.dose[x]"/>
          <slicing>
            <discriminator>
              <type value="type"/>
              <path value="$this"/>
            </discriminator>
            <rules value="open"/>
          </slicing>
          <min value="1"/>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity">
          <path value="MedicationDispense.dosageInstruction.doseAndRate.dose[x]"/>
          <sliceName value="doseQuantity"/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.value">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].value"/>
          <short value="Numerical value (with implicit precision).[應填入劑量]"/>
          <min value="1"/>
          <mustSupport value="true"/>
        </element>
        <element
                 id="MedicationDispense.dosageInstruction.doseAndRate.dose[x]:doseQuantity.unit">
          <path
                value="MedicationDispense.dosageInstruction.doseAndRate.dose[x].unit"/>
          <short value="Unit representation.[應填入劑量單位  Dose Units]。如：顆、CC等"/>
          <min value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.substitution">
          <path value="MedicationDispense.substitution"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.substitution.wasSubstituted">
          <path value="MedicationDispense.substitution.wasSubstituted"/>
          <short
                 value="Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]"/>
          <definition
                      value="True if the dispenser dispensed a different drug or product from what was prescribed.
    預設為「無」
    填寫說明：
    有更換藥品時請填寫「有」
    無有更換藥品請填寫「無」"/>
          <mustSupport value="true"/>
        </element>
        <element id="MedicationDispense.substitution.reason">
          <path value="MedicationDispense.substitution.reason"/>
          <short
                 value="Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明"/>
          <mustSupport value="true"/>
        </element>
      </differential>
    </StructureDefinition>