# Extension-給藥總日份 - 臺灣電子處方箋與調劑單張實作指引(TW EMPD IG) v0.2.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **Extension-給藥總日份**

## Extension: Extension-給藥總日份 

| | |
| :--- | :--- |
| *Official URL*:https://nhicore.nhi.gov.tw/empd/StructureDefinition/Extension-TotalDuration | *Version*:0.2.0 |
| Active as of 2026-06-16 | *Computable Name*:ExtensionTotalDuration |

用於表示給藥總日份 Total Medication Days

**Context of Use**

**Usage info**

**Usages:**

* Use this Extension: [調劑單張-處方內容(MedicationRequest)](StructureDefinition-MedicationRequest-DS.md) and [電子處方箋-處方內容(MedicationRequest)](StructureDefinition-MedicationRequest-EMPD.md)
* Examples for this Extension: [Bundle/bun-ds](Bundle-bun-ds.md), [Bundle/bun-ep](Bundle-bun-ep.md), [MedicationRequest/med-req-01-ds](MedicationRequest-med-req-01-ds.md) and [MedicationRequest/med-req-01-ep](MedicationRequest-med-req-01-ep.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-Extension-TotalDuration.json)

### Formal Views of Extension Content

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

 

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

#### Terminology Bindings

#### Constraints



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "Extension-TotalDuration",
  "url" : "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Extension-TotalDuration",
  "version" : "0.2.0",
  "name" : "ExtensionTotalDuration",
  "title" : "Extension-給藥總日份",
  "status" : "active",
  "date" : "2026-06-16T07:02:06+00:00",
  "publisher" : "NHI",
  "contact" : [{
    "name" : "NHI",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.nhi.gov.tw/en/mp-2.html"
    }]
  }],
  "description" : "用於表示給藥總日份 Total Medication Days",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "complex-type",
  "abstract" : false,
  "context" : [{
    "type" : "element",
    "expression" : "MedicationRequest"
  }],
  "type" : "Extension",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Extension",
      "path" : "Extension",
      "short" : "擴充的資料項目。[應填入給藥總日份 Total Medication Days]",
      "definition" : "擴充的資料項目。",
      "mustSupport" : true
    },
    {
      "id" : "Extension.extension",
      "path" : "Extension.extension",
      "max" : "0"
    },
    {
      "id" : "Extension.url",
      "path" : "Extension.url",
      "fixedUri" : "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Extension-TotalDuration"
    },
    {
      "id" : "Extension.value[x]",
      "path" : "Extension.value[x]",
      "min" : 1,
      "type" : [{
        "code" : "Quantity"
      }],
      "mustSupport" : true
    },
    {
      "id" : "Extension.value[x].value",
      "path" : "Extension.value[x].value",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Extension.value[x].unit",
      "path" : "Extension.value[x].unit",
      "mustSupport" : true
    }]
  }
}

```
