<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="VGHKS-MedicationRequest-TOTFA" />
  <url value="http://standard-interoperability-lab.com/fhir/StructureDefinition/VGHKSMedicationRequestTOTFA" />
  <name value="VGHKSMedicationRequestTOTFA" />
  <title value="VGHKS MedicationRequest TOTFA profile" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest.identifier.use">
      <path value="MedicationRequest.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.type">
      <path value="MedicationRequest.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.system">
      <path value="MedicationRequest.identifier.system" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.value">
      <path value="MedicationRequest.identifier.value" />
      <short value="TOTFA.p13" />
      <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system.&#xD;&#xA;醫令序" />
    </element>
    <element id="MedicationRequest.identifier.period">
      <path value="MedicationRequest.identifier.period" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.assigner">
      <path value="MedicationRequest.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.status">
      <path value="MedicationRequest.status" />
      <short value="[active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown]請輸入(completed)" />
      <fixedCode value="completed" />
    </element>
    <element id="MedicationRequest.statusReason">
      <path value="MedicationRequest.statusReason" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.intent">
      <path value="MedicationRequest.intent" />
      <short value="[proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option]請輸入(order)" />
      <fixedCode value="order" />
    </element>
    <element id="MedicationRequest.category.coding.code">
      <path value="MedicationRequest.category.coding.code" />
      <short value="TOTFA.p2, TOTFA.p3, TOTFA.p17" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).&#xD;&#xA;category[0].coding[0].code對應至TOTFA.p2&#xD;&#xA;category[1].coding[0].code對應至TOTFA.p3&#xD;&#xA;category[2].coding[0].code對應至TOTFA.p17" />
    </element>
    <element id="MedicationRequest.category.text">
      <path value="MedicationRequest.category.text" />
      <short value="[醫令調劑方式, 醫令類別, 慢性病連續處方箋、同一療程及排程檢查案件註記]" />
      <definition value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.&#xD;&#xA;category[0].text請輸入醫令調劑方式&#xD;&#xA;category[1].text請輸入醫令類別&#xD;&#xA;category[2].text請輸入慢性病連續處方箋、同一療程及排程檢查案件註記" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.priority">
      <path value="MedicationRequest.priority" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.doNotPerform">
      <path value="MedicationRequest.doNotPerform" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reported[x]">
      <path value="MedicationRequest.reported[x]" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication[x]">
      <path value="MedicationRequest.medication[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="MedicationRequest.medication[x].coding.version">
      <path value="MedicationRequest.medication[x].coding.version" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication[x].coding.code">
      <path value="MedicationRequest.medication[x].coding.code" />
      <short value="TOTFA.p4" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).&#xD;&#xA;藥品(項目)代號" />
    </element>
    <element id="MedicationRequest.medication[x].coding.userSelected">
      <path value="MedicationRequest.medication[x].coding.userSelected" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.subject.reference">
      <path value="MedicationRequest.subject.reference" />
      <short value="患者Resource Link" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.subject.type">
      <path value="MedicationRequest.subject.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.subject.identifier">
      <path value="MedicationRequest.subject.identifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.subject.display">
      <path value="MedicationRequest.subject.display" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.encounter">
      <path value="MedicationRequest.encounter" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.encounter.reference">
      <path value="MedicationRequest.encounter.reference" />
      <short value="TOTFA看診紀錄 Resource Link" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.encounter.type">
      <path value="MedicationRequest.encounter.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.encounter.identifier">
      <path value="MedicationRequest.encounter.identifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.encounter.display">
      <path value="MedicationRequest.encounter.display" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.supportingInformation">
      <path value="MedicationRequest.supportingInformation" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.authoredOn">
      <path value="MedicationRequest.authoredOn" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.requester">
      <path value="MedicationRequest.requester" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer">
      <path value="MedicationRequest.performer" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performerType">
      <path value="MedicationRequest.performerType" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder">
      <path value="MedicationRequest.recorder" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reasonCode.coding.code">
      <path value="MedicationRequest.reasonCode.coding.code" />
      <short value="TOTFA.p6" />
    </element>
    <element id="MedicationRequest.reasonCode.text">
      <path value="MedicationRequest.reasonCode.text" />
      <short value="[診療之部位]" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.reasonReference">
      <path value="MedicationRequest.reasonReference" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.instantiatesCanonical">
      <path value="MedicationRequest.instantiatesCanonical" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.instantiatesUri">
      <path value="MedicationRequest.instantiatesUri" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn">
      <path value="MedicationRequest.basedOn" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.groupIdentifier">
      <path value="MedicationRequest.groupIdentifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.courseOfTherapyType">
      <path value="MedicationRequest.courseOfTherapyType" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.insurance">
      <path value="MedicationRequest.insurance" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.note">
      <path value="MedicationRequest.note" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.sequence">
      <path value="MedicationRequest.dosageInstruction.sequence" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.text">
      <path value="MedicationRequest.dosageInstruction.text" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.additionalInstruction">
      <path value="MedicationRequest.dosageInstruction.additionalInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.patientInstruction">
      <path value="MedicationRequest.dosageInstruction.patientInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.event">
      <path value="MedicationRequest.dosageInstruction.timing.event" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat">
      <path value="MedicationRequest.dosageInstruction.timing.repeat" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.code.coding.code">
      <path value="MedicationRequest.dosageInstruction.timing.code.coding.code" />
      <short value="TOTFA.p7" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).&#xD;&#xA;藥品使用頻率" />
    </element>
    <element id="MedicationRequest.dosageInstruction.asNeeded[x]">
      <path value="MedicationRequest.dosageInstruction.asNeeded[x]" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.site.coding.code">
      <path value="MedicationRequest.dosageInstruction.site.coding.code" />
      <short value="TOTFA.p9" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).&#xD;&#xA;給藥途徑/作用部位" />
    </element>
    <element id="MedicationRequest.dosageInstruction.route">
      <path value="MedicationRequest.dosageInstruction.route" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.method">
      <path value="MedicationRequest.dosageInstruction.method" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.type">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x]" />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x].value">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x].value" />
      <short value="TOTFA.p5" />
      <definition value="The value of the measured amount. The value includes an implicit precision in the presentation of the value.&#xD;&#xA;藥品用量" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.rate[x]">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.rate[x]" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerPeriod">
      <path value="MedicationRequest.dosageInstruction.maxDosePerPeriod" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerAdministration">
      <path value="MedicationRequest.dosageInstruction.maxDosePerAdministration" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerLifetime">
      <path value="MedicationRequest.dosageInstruction.maxDosePerLifetime" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill">
      <path value="MedicationRequest.dispenseRequest.initialFill" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenseInterval">
      <path value="MedicationRequest.dispenseRequest.dispenseInterval" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.validityPeriod.start">
      <path value="MedicationRequest.dispenseRequest.validityPeriod.start" />
      <short value="TOTFA.p14" />
      <definition value="The start of the period. The boundary is inclusive.&#xD;&#xA;執行時間-起" />
    </element>
    <element id="MedicationRequest.dispenseRequest.validityPeriod.end">
      <path value="MedicationRequest.dispenseRequest.validityPeriod.end" />
      <short value="TOTFA.p15" />
      <definition value="The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.&#xD;&#xA;執行時間-迄" />
    </element>
    <element id="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed">
      <path value="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity.value">
      <path value="MedicationRequest.dispenseRequest.quantity.value" />
      <short value="TOTFA.p10" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.value">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.value" />
      <short value="TOTFA.p1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.unit">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.unit" />
      <min value="1" />
      <fixedString value="days" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.system">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration.code">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration.code" />
      <min value="1" />
      <fixedCode value="d" />
    </element>
    <element id="MedicationRequest.dispenseRequest.performer">
      <path value="MedicationRequest.dispenseRequest.performer" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.substitution">
      <path value="MedicationRequest.substitution" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.priorPrescription">
      <path value="MedicationRequest.priorPrescription" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.detectedIssue">
      <path value="MedicationRequest.detectedIssue" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.eventHistory">
      <path value="MedicationRequest.eventHistory" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>