臺灣核心實作指引(TW Core IG)
0.1.1 - Trial Use

This page is part of the 臺灣核心實作指引(TW Core IG) (v0.1.1: Releases) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Logical Model: TWMedicationRequestModel - XML Profile

Active as of 2023-08-30

XML representation of the TWMedicationRequest logical model.

Raw xml | Download



<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="TWMedicationRequest"/>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml">Placeholder</div>
  </text>
  <url
       value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/TWMedicationRequest"/>
  <version value="0.1.1"/>
  <name value="TWMedicationRequestModel"/>
  <title value="臺灣核心-藥品處方(TW Core MedicationRequest) 之資料模型"/>
  <status value="active"/>
  <date value="2023-08-30T12:27:08+08:00"/>
  <contact>
    <name value="衛生福利部"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.mohw.gov.tw/"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="CCYU@mohw.gov.tw"/>
    </telecom>
  </contact>
  <description value="臺灣核心-藥品處方(TW Core MedicationRequest) 之資料模型"/>
  <fhirVersion value="4.0.1"/>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <mapping>
    <identity value="TWMedicationRequest"/>
    <uri value="https://twcore.mohw.gov.tw/ig/twcore"/>
    <name value="TW Core IG"/>
  </mapping>
  <kind value="logical"/>
  <abstract value="false"/>
  <type
        value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/TWMedicationRequest"/>
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Base"/>
  <derivation value="specialization"/>
  <snapshot>
    <element id="TWMedicationRequest">
      <path value="TWMedicationRequest"/>
      <short value="臺灣核心-藥品處方(TW Core MedicationRequest) 之資料模型"/>
      <definition value="臺灣核心-藥品處方(TW Core MedicationRequest) 之資料模型"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Base"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <isModifier value="false"/>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.text">
      <path value="TWMedicationRequest.text"/>
      <short value="內容摘要以供人閱讀"/>
      <definition value="內容摘要以供人閱讀"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Narrative"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.text"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.identifier">
      <path value="TWMedicationRequest.identifier"/>
      <short value="藥品處方的外部識別碼"/>
      <definition value="藥品處方的外部識別碼"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.identifier"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.identifier"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.status">
      <path value="TWMedicationRequest.status"/>
      <short value="藥品處方的狀態"/>
      <definition value="藥品處方的狀態"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.status"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.status"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.intent">
      <path value="TWMedicationRequest.intent"/>
      <short value="藥品處方的意圖"/>
      <definition value="藥品處方的意圖"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.intent"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.intent"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.category">
      <path value="TWMedicationRequest.category"/>
      <short value="藥品處方的類別"/>
      <definition value="藥品處方的類別"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.category"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.category"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.medication[x]">
      <path value="TWMedicationRequest.medication[x]"/>
      <short value="服用的藥品"/>
      <definition value="服用的藥品"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.medication[x]"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Medication"/>
      </type>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.medication[x]"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.subject[x]">
      <path value="TWMedicationRequest.subject[x]"/>
      <short value="開立此藥品處方的對象"/>
      <definition value="開立此藥品處方的對象"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.subject[x]"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Patient"/>
      </type>
      <type>
        <code value="Group"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.subject.Reference(TW Core Patient | Group)"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.encounter">
      <path value="TWMedicationRequest.encounter"/>
      <short value="與此藥品處方紀錄密切相關的就醫"/>
      <definition value="與此藥品處方紀錄密切相關的就醫"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Encounter"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.encounter.Reference(TW Core Encounter)"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.authoredOn">
      <path value="TWMedicationRequest.authoredOn"/>
      <short value="藥品處方最初請求時間"/>
      <definition value="藥品處方最初請求時間"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.authoredOn"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.authoredOn"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.requester[x]">
      <path value="TWMedicationRequest.requester[x]"/>
      <short value="提出藥品處方的人/對象"/>
      <definition value="提出藥品處方的人/對象"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.requester[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Practitioner"/>
      </type>
      <type>
        <code value="PractitionerRole"/>
      </type>
      <type>
        <code value="Organization"/>
      </type>
      <type>
        <code value="Patient"/>
      </type>
      <type>
        <code value="RelatedPerson"/>
      </type>
      <type>
        <code value="Device"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.requester.Reference(TW Core Practitioner | PractitionerRole | TW Core Organization Hospital Department | TW Core Patient | RelatedPerson | Device)"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.reasonReference[x]">
      <path value="TWMedicationRequest.reasonReference[x]"/>
      <short value="開立處方的原因"/>
      <definition value="開立處方的原因"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="TWMedicationRequest.reasonReference[x]"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Condition"/>
      </type>
      <type>
        <code value="Observation"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.reasonReference.Reference(TW Core Condition | TW Core Observation Laboratory Result)"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.note">
      <path value="TWMedicationRequest.note"/>
      <short value="關於處方的資訊"/>
      <definition value="關於處方的資訊"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="TWMedicationRequest.note"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Annotation"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.note"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dosageInstruction">
      <path value="TWMedicationRequest.dosageInstruction"/>
      <short value="應該如何用藥"/>
      <definition value="應該如何用藥"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="TWMedicationRequest.dosageInstruction"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Dosage"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.dosageInstruction"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dispenseRequest">
      <path value="TWMedicationRequest.dispenseRequest"/>
      <short value="藥品供應授權"/>
      <definition value="藥品供應授權"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.dispenseRequest"/>
        <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>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.dispenseRequest"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dispenseRequest.id">
      <path value="TWMedicationRequest.dispenseRequest.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="TWMedicationRequest.dispenseRequest.extension">
      <path value="TWMedicationRequest.dispenseRequest.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="TWMedicationRequest.dispenseRequest.modifierExtension">
      <path value="TWMedicationRequest.dispenseRequest.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="TWMedicationRequest.dispenseRequest.validityPeriod">
      <path value="TWMedicationRequest.dispenseRequest.validityPeriod"/>
      <short value="處方可用以配藥的有效期限"/>
      <definition value="處方可用以配藥的有效期限"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TWMedicationRequest.dispenseRequest.validityPeriod"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.dispenseRequest.validityPeriod"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dispenseRequest.numberOfRepeatsAllowed">
      <path
            value="TWMedicationRequest.dispenseRequest.numberOfRepeatsAllowed"/>
      <short value="可重複領藥的次數"/>
      <definition value="可重複領藥的次數"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path
              value="TWMedicationRequest.dispenseRequest.numberOfRepeatsAllowed"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="unsignedInt"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.dispenseRequest.numberOfRepeatsAllowed"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dispenseRequest.expectedSupplyDuration">
      <path
            value="TWMedicationRequest.dispenseRequest.expectedSupplyDuration"/>
      <short value="每次配藥可持續的天數"/>
      <definition value="每次配藥可持續的天數"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path
              value="TWMedicationRequest.dispenseRequest.expectedSupplyDuration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Duration"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.dispenseRequest.expectedSupplyDuration"/>
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="TWMedicationRequest">
      <path value="TWMedicationRequest"/>
      <short value="臺灣核心-藥品處方(TW Core MedicationRequest) 之資料模型"/>
      <definition value="臺灣核心-藥品處方(TW Core MedicationRequest) 之資料模型"/>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.text">
      <path value="TWMedicationRequest.text"/>
      <short value="內容摘要以供人閱讀"/>
      <definition value="內容摘要以供人閱讀"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Narrative"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.text"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.identifier">
      <path value="TWMedicationRequest.identifier"/>
      <short value="藥品處方的外部識別碼"/>
      <definition value="藥品處方的外部識別碼"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Identifier"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.identifier"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.status">
      <path value="TWMedicationRequest.status"/>
      <short value="藥品處方的狀態"/>
      <definition value="藥品處方的狀態"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.status"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.intent">
      <path value="TWMedicationRequest.intent"/>
      <short value="藥品處方的意圖"/>
      <definition value="藥品處方的意圖"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.intent"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.category">
      <path value="TWMedicationRequest.category"/>
      <short value="藥品處方的類別"/>
      <definition value="藥品處方的類別"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.category"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.medication[x]">
      <path value="TWMedicationRequest.medication[x]"/>
      <short value="服用的藥品"/>
      <definition value="服用的藥品"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Medication"/>
      </type>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.medication[x]"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.subject[x]">
      <path value="TWMedicationRequest.subject[x]"/>
      <short value="開立此藥品處方的對象"/>
      <definition value="開立此藥品處方的對象"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Patient"/>
      </type>
      <type>
        <code value="Group"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.subject.Reference(TW Core Patient | Group)"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.encounter">
      <path value="TWMedicationRequest.encounter"/>
      <short value="與此藥品處方紀錄密切相關的就醫"/>
      <definition value="與此藥品處方紀錄密切相關的就醫"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Encounter"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.encounter.Reference(TW Core Encounter)"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.authoredOn">
      <path value="TWMedicationRequest.authoredOn"/>
      <short value="藥品處方最初請求時間"/>
      <definition value="藥品處方最初請求時間"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.authoredOn"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.requester[x]">
      <path value="TWMedicationRequest.requester[x]"/>
      <short value="提出藥品處方的人/對象"/>
      <definition value="提出藥品處方的人/對象"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Practitioner"/>
      </type>
      <type>
        <code value="PractitionerRole"/>
      </type>
      <type>
        <code value="Organization"/>
      </type>
      <type>
        <code value="Patient"/>
      </type>
      <type>
        <code value="RelatedPerson"/>
      </type>
      <type>
        <code value="Device"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.requester.Reference(TW Core Practitioner | PractitionerRole | TW Core Organization Hospital Department | TW Core Patient | RelatedPerson | Device)"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.reasonReference[x]">
      <path value="TWMedicationRequest.reasonReference[x]"/>
      <short value="開立處方的原因"/>
      <definition value="開立處方的原因"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Condition"/>
      </type>
      <type>
        <code value="Observation"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.reasonReference.Reference(TW Core Condition | TW Core Observation Laboratory Result)"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.note">
      <path value="TWMedicationRequest.note"/>
      <short value="關於處方的資訊"/>
      <definition value="關於處方的資訊"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Annotation"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.note"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dosageInstruction">
      <path value="TWMedicationRequest.dosageInstruction"/>
      <short value="應該如何用藥"/>
      <definition value="應該如何用藥"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Dosage"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.dosageInstruction"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dispenseRequest">
      <path value="TWMedicationRequest.dispenseRequest"/>
      <short value="藥品供應授權"/>
      <definition value="藥品供應授權"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.dispenseRequest"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dispenseRequest.validityPeriod">
      <path value="TWMedicationRequest.dispenseRequest.validityPeriod"/>
      <short value="處方可用以配藥的有效期限"/>
      <definition value="處方可用以配藥的有效期限"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map value="TWCoreMedicationRequest.dispenseRequest.validityPeriod"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dispenseRequest.numberOfRepeatsAllowed">
      <path
            value="TWMedicationRequest.dispenseRequest.numberOfRepeatsAllowed"/>
      <short value="可重複領藥的次數"/>
      <definition value="可重複領藥的次數"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="unsignedInt"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.dispenseRequest.numberOfRepeatsAllowed"/>
      </mapping>
    </element>
    <element id="TWMedicationRequest.dispenseRequest.expectedSupplyDuration">
      <path
            value="TWMedicationRequest.dispenseRequest.expectedSupplyDuration"/>
      <short value="每次配藥可持續的天數"/>
      <definition value="每次配藥可持續的天數"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Duration"/>
      </type>
      <mapping>
        <identity value="TWMedicationRequest"/>
        <map
             value="TWCoreMedicationRequest.dispenseRequest.expectedSupplyDuration"/>
      </mapping>
    </element>
  </differential>
</StructureDefinition>