# 電子處方箋-處方內容(MedicationRequest) - 臺灣電子處方箋與調劑單張實作指引(TW EMPD IG) v0.2.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **電子處方箋-處方內容(MedicationRequest)**

## Resource Profile: 電子處方箋-處方內容(MedicationRequest) 

| | |
| :--- | :--- |
| *Official URL*:https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD | *Version*:0.2.0 |
| Active as of 2023-10-30 | *Computable Name*:MedicationRequestEMPD |

 
此Profile繼承於臺灣核心-藥品處方(TW Core MedicationRequest)，並用於描述電子處方箋的處方內容[[**FMM1**](http://build.fhir.org/versions.html#maturity)] 

**Usages:**

* Use this Profile: [電子處方箋-Bundle](StructureDefinition-Bundle-EMPD.md)
* Refer to this Profile: [電子處方箋-Composition](StructureDefinition-Composition-EMPD.md)
* Examples for this Profile: [MedicationRequest/med-req-01-ep](MedicationRequest-med-req-01-ep.md) and [MedicationRequest/med-req-02-ep](MedicationRequest-med-req-02-ep.md)
* CapabilityStatements using this Profile: [電子處方箋與調劑單張-用戶端](CapabilityStatement-CapabilityStatementEMPDClient.md) and [電子處方箋與調劑單張-伺服端](CapabilityStatement-CapabilityStatementEMPDServer.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/resource/tw.gov.mohw.nhi.empd|current/StructureDefinition/StructureDefinition-MedicationRequest-EMPD.json)

### Formal Views of Profile Content

 [Description of Profiles, Differentials, Snapshots and how the different presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-MedicationRequest-EMPD.csv), [Excel](StructureDefinition-MedicationRequest-EMPD.xlsx), [Schematron](StructureDefinition-MedicationRequest-EMPD.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "MedicationRequest-EMPD",
  "url" : "https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD",
  "version" : "0.2.0",
  "name" : "MedicationRequestEMPD",
  "title" : "電子處方箋-處方內容(MedicationRequest)",
  "status" : "active",
  "date" : "2023-10-30",
  "publisher" : "NHI",
  "contact" : [{
    "name" : "NHI",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.nhi.gov.tw/en/mp-2.html"
    }]
  }],
  "description" : "此Profile繼承於臺灣核心-藥品處方(TW Core MedicationRequest)，並用於描述電子處方箋的處方內容[[*FMM1*](http://build.fhir.org/versions.html#maturity)]",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "script10.6",
    "uri" : "http://ncpdp.org/SCRIPT10_6",
    "name" : "Mapping to NCPDP SCRIPT 10.6"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  },
  {
    "identity" : "v2",
    "uri" : "http://hl7.org/v2",
    "name" : "HL7 v2 Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "MedicationRequest",
  "baseDefinition" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationRequest-twcore",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "MedicationRequest",
      "path" : "MedicationRequest",
      "constraint" : [{
        "key" : "empd-ord-1",
        "severity" : "error",
        "human" : "當醫令類別不是特殊材料(code=3)時，應檢核劑量、劑量單位、頻率、使用時間、給藥途徑、給藥日數、給藥總量與給藥總日份。",
        "expression" : "category.where(coding.system='https://nhicore.nhi.gov.tw/empd/CodeSystem/OrderType-cs' and coding.code='3').exists() or (dosageInstruction.exists() and dispenseRequest.quantity.value.exists() and dispenseRequest.quantity.unit.exists() and dispenseRequest.expectedSupplyDuration.exists())",
        "source" : "https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD"
      }]
    },
    {
      "id" : "MedicationRequest.extension",
      "path" : "MedicationRequest.extension",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "url"
        }],
        "ordered" : false,
        "rules" : "open"
      },
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.extension:TotalMedicationDays",
      "path" : "MedicationRequest.extension",
      "sliceName" : "TotalMedicationDays",
      "short" : "擴充的資料項目。[應填入電子處方箋給藥總日份 Total Medication Days]",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Extension-TotalDuration"]
      }]
    },
    {
      "id" : "MedicationRequest.identifier",
      "path" : "MedicationRequest.identifier",
      "short" : "此藥品處方的外部識別碼。[應填入處方箋單號 Prescription No.與項次 Item]",
      "definition" : "與此藥品處方相關的識別碼，這些識別碼是由業務流程定義的，並且/或者在對resource本身的直接URL參照不合適的情況下用來參照它。它們是由執行者或其他系統指定給此resource的業務用識別碼，並隨著resource的更新和從伺服器到伺服器的傳播而保持不變。\r\n項次 Item: 使民眾及藥局確認藥品品項數",
      "min" : 2
    },
    {
      "id" : "MedicationRequest.category",
      "path" : "MedicationRequest.category",
      "slicing" : {
        "discriminator" : [{
          "type" : "pattern",
          "path" : "$this"
        }],
        "rules" : "open"
      },
      "min" : 3
    },
    {
      "id" : "MedicationRequest.category:typesOfPrescription",
      "path" : "MedicationRequest.category",
      "sliceName" : "typesOfPrescription",
      "short" : "[應填入處方箋種類註記 Types of Prescription]。",
      "min" : 1,
      "max" : "1",
      "binding" : {
        "strength" : "required",
        "description" : "應填入[MedicationRequestPrescription](ValueSet-TypeOfPrescription-vs.html)值集中的其中一個代碼。",
        "valueSet" : "https://nhicore.nhi.gov.tw/empd/ValueSet/TypeOfPrescription-vs"
      }
    },
    {
      "id" : "MedicationRequest.category:orderType",
      "path" : "MedicationRequest.category",
      "sliceName" : "orderType",
      "short" : "[應填入醫令類別]。",
      "definition" : "表示藥品處方的型別（例如：預計用藥或給藥的地方（即住院病人或門診病人）。藉由「醫令類別」區分是否為藥品或特殊材料。",
      "min" : 1,
      "max" : "1",
      "binding" : {
        "strength" : "required",
        "description" : "醫令類別；應填入[OrderType](ValueSet-OrderType-vs.html)值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。",
        "valueSet" : "https://nhicore.nhi.gov.tw/empd/ValueSet/OrderType-vs"
      }
    },
    {
      "id" : "MedicationRequest.category:selfpayStatus",
      "path" : "MedicationRequest.category",
      "sliceName" : "selfpayStatus",
      "short" : "\"[應填入自費註記]。用於判別就醫識別碼是否必填。如自費註記為\"Y\"，無須檢核健保代碼。\"",
      "min" : 1,
      "max" : "1",
      "binding" : {
        "strength" : "required",
        "description" : "自費註記；應填入[SelfpayStatus](ValueSet-SelfpayStatus-vs.html)值集中適合的代碼。",
        "valueSet" : "https://nhicore.nhi.gov.tw/empd/ValueSet/SelfpayStatus-vs"
      }
    },
    {
      "id" : "MedicationRequest.medication[x]",
      "path" : "MedicationRequest.medication[x]",
      "type" : [{
        "code" : "CodeableConcept",
        "profile" : ["https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"]
      },
      {
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD"]
      }]
    },
    {
      "id" : "MedicationRequest.medication[x]:medicationReference",
      "path" : "MedicationRequest.medication[x]",
      "sliceName" : "medicationReference",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.medication[x]:medicationCodeableConcept",
      "path" : "MedicationRequest.medication[x]",
      "sliceName" : "medicationCodeableConcept",
      "type" : [{
        "code" : "CodeableConcept",
        "profile" : ["https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.insurance",
      "path" : "MedicationRequest.insurance",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ClaimResponse",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Coverage-EMR"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.note",
      "path" : "MedicationRequest.note",
      "short" : "關於處方的資訊或其他相關備註說明。[應填入處方箋註銷註記/須被合併之處方箋註記]。"
    },
    {
      "id" : "MedicationRequest.dosageInstruction.timing.repeat",
      "path" : "MedicationRequest.dosageInstruction.timing.repeat",
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dosageInstruction.timing.repeat.frequency",
      "path" : "MedicationRequest.dosageInstruction.timing.repeat.frequency",
      "short" : "此事件於每一期間的發生頻率。[應填入頻率 Frequency]",
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dosageInstruction.timing.code",
      "path" : "MedicationRequest.dosageInstruction.timing.code",
      "short" : "BID ｜ TID ｜ QID ｜ AM ｜ PM ｜ QD ｜ QOD ｜ + [應填入使用時間]"
    },
    {
      "id" : "MedicationRequest.dosageInstruction.route",
      "path" : "MedicationRequest.dosageInstruction.route",
      "short" : "藥品應如何進入體內。[應填入給藥途徑 Route of Administration]"
    },
    {
      "id" : "MedicationRequest.dosageInstruction.method",
      "path" : "MedicationRequest.dosageInstruction.method",
      "short" : "用藥的技術。[應填入用藥指示]",
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dosageInstruction.doseAndRate",
      "path" : "MedicationRequest.dosageInstruction.doseAndRate",
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
      "path" : "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
      "slicing" : {
        "discriminator" : [{
          "type" : "type",
          "path" : "$this"
        }],
        "rules" : "open"
      },
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity",
      "path" : "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
      "sliceName" : "doseQuantity",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity.value",
      "path" : "MedicationRequest.dosageInstruction.doseAndRate.dose[x].value",
      "short" : "Numerical value (with implicit precision).[應填入劑量 Dose]",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity.unit",
      "path" : "MedicationRequest.dosageInstruction.doseAndRate.dose[x].unit",
      "short" : "Unit representation.[應填入劑量單位 Dose Units]",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dispenseRequest.validityPeriod",
      "path" : "MedicationRequest.dispenseRequest.validityPeriod",
      "short" : "處方可用以配藥的有效期限[應填入處方箋有效日期]",
      "min" : 1
    },
    {
      "id" : "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
      "path" : "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
      "short" : "可重複領藥的次數。[應填入連續處方可調劑次數 Refill Times]",
      "min" : 1
    },
    {
      "id" : "MedicationRequest.dispenseRequest.quantity",
      "path" : "MedicationRequest.dispenseRequest.quantity",
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dispenseRequest.quantity.value",
      "path" : "MedicationRequest.dispenseRequest.quantity.value",
      "short" : "Numerical value (with implicit precision).[應填入給藥總量 Total Amount]",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dispenseRequest.quantity.unit",
      "path" : "MedicationRequest.dispenseRequest.quantity.unit",
      "short" : "Unit representation.[應填入給藥總量單位 Total Units]",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.dispenseRequest.expectedSupplyDuration",
      "path" : "MedicationRequest.dispenseRequest.expectedSupplyDuration",
      "short" : "每次配藥可持續的天數。[應填入給藥日數 Medication Days]"
    },
    {
      "id" : "MedicationRequest.substitution",
      "path" : "MedicationRequest.substitution",
      "short" : "對替代藥品的任何限制。填寫說明：有特殊情況時才填寫。",
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.substitution.allowed[x]",
      "path" : "MedicationRequest.substitution.allowed[x]",
      "mustSupport" : true
    },
    {
      "id" : "MedicationRequest.substitution.reason",
      "path" : "MedicationRequest.substitution.reason",
      "short" : "為什麼要（不）進行替換。[應填入不得以其他廠牌藥品替代之理由]，有特殊情況時才填寫。",
      "mustSupport" : true
    }]
  }
}

```
