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

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

## Resource Profile: 調劑單張-調劑內容(MedicationDispense)

Official URL: https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationDispense-DS | Version: 0.1.0
Active as of 2024-01-13 | Computable Name: MedicationDispenseDS

此Profiles用於描述調劑單張的調劑內容。

Usages:

- Use this Profile: 調劑單張-Bundle
- Refer to this Profile: 調劑單張-Composition
- Examples for this Profile: MedicationDispense/med-dis-01-ds
- CapabilityStatements using this Profile: 電子處方箋與調劑單張-用戶端 and 電子處方箋與調劑單張-伺服端

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationDispense | C | 0..* | TWCoreMedicationDispense | 為指定病人配藥/調劑藥品 Constraints: mdd-1
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 1..* | Identifier | External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
status | ?!S Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed + Binding: MedicationDispense Status Codes (required): 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態；應填入所綁定值集中的其中一個代碼
category | S | 0..1 | CodeableConceptTW | 配藥/調劑藥品的類型。[應填入醫令類別] Binding: MedicationDispense Category Codes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
Slices for medication[x] | S Σ | 1..1 |  | 所提供的藥品 Slice: Unordered, Closed by type:$this Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed.
medicationCodeableConcept |  |  | CodeableConcept(CodeableConceptTW) |
medicationReference |  |  | Reference(調劑單張-藥物處方內容(Medication)) |
medication[x]:medicationReference | S Σ | 0..1 | Reference(調劑單張-藥物處方內容(Medication)) | What medication was supplied
medication[x]:medicationCodeableConcept | S | 0..1 | CodeableConceptTW | 所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。 Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed.
Slices for coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Slice: Unordered, Open by pattern:$this
coding:fda-medication-tw | S | 0..1 | CodingTW | 此為臺灣食品藥物管理署(TFDA)維護之藥品代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。 Binding: 臺灣食藥署藥品及醫療器材代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:nhi-medication-tw | S | 0..1 | CodingTW | 此為中央健康保險署(NHI)維護之藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。 Binding: 臺灣健保署用藥品項代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:nhi-medication-ch-herb-tw | S | 0..1 | CodingTW | 此為中央健康保險署(NHI)維護之中藥藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。 Binding: 臺灣健保署中藥用藥品項值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:rxnorm-medication-us-core | S | 0..1 | CodingTW | RxNorm為美國Unified Medical Language System®中的藥品代碼，取得UMLS®授權即可免費使用，可依情境選用此代碼。 Binding: RxNorm藥品代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:atc-medication-code | S | 0..1 | CodingTW | ATC代碼的版權為世界衛生組織（WHO）Collaborating Centre for Drug Statistics Methodology，可免費使用，可依情境選用此代碼。 Binding: 臺灣食藥署藥品藥理治療分類ATC碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:snomedct-medication-codes | S | 0..1 | CodingTW | 此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。 Binding: SNOMEDCTMedicationCodes (required): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
text | S Σ | 0..1 | string | 概念的文字表示法
subject | S Σ | 1..1 | Reference(Group | 調劑單張-病人基本資料) | 配藥/調劑藥品的對象，意即為誰配藥/調劑藥品。
context | S | 0..1 | Reference(TW Core Encounter) | 與此配藥/調劑藥品相關的就醫事件(Encounter/Episode)
performer | S | 0..* | BackboneElement | 執行此配藥/藥品調劑的人員。
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
actor | S | 1..1 | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 執行此操作的個人
authorizingPrescription | S | 0..* | Reference(TW Core MedicationRequest) | 授權此配藥/調劑藥品的處方
type | S | 0..1 | CodeableConceptTW | 配藥/調劑藥品類型。例如：試用分裝、部分分裝、緊急分裝等 Binding: ActPharmacySupplyType (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
quantity | S | 1..1 | SimpleQuantity | 配藥/調劑藥品的量
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision).[應填入給藥總量 Total Amount]
unit | S Σ | 1..1 | string | Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等
daysSupply | S | 1..1 | SimpleQuantity | Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
unit | S Σ | 0..1 | string | Unit representation
whenHandedOver | S | 0..1 | dateTime | 藥品發放的時間
receiver |  | 0..* | Reference(調劑單張-病人基本資料 | 調劑單張-醫事人員基本資料) | 誰領取了藥品
note | S | 1..* | Annotation | Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記
text | S Σ | 1..1 | markdown | The annotation - text content (as markdown)
dosageInstruction | S | 1..* | Dosage | 病人如何使用藥品或者照護者如何給藥
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
sequence | S Σ | 0..1 | integer | 劑量指示的順序
text | S Σ | 0..1 | string | 純文字表述的劑量指示，例如：SIG。
patientInstruction | S Σ | 0..1 | string | 以病人或消費者為導向的指示
timing | S Σ | 1..1 | Timing | 應該何時給藥；時間的寫法請參照Timimg datatype。
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
repeat | S Σ C | 1..1 | Element | 事件定期重複發生的時間 Constraints: tim-1, tim-2, tim-4, tim-5, tim-6, tim-7, tim-8, tim-9, tim-10
count | S Σ | 0..1 | positiveInt | 重複的次數
duration | S Σ | 0..1 | decimal | 此事件持續多久時間
durationUnit | S Σ | 0..1 | code | s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM） Binding: UnitsOfTime (required): 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
frequency | S Σ | 1..1 | positiveInt | Event occurs frequency times per period.[應填入頻率 Frequency]
period | S Σ | 0..1 | decimal | 此事件於特定時間區間所發生的頻率
periodUnit | S Σ | 0..1 | code | s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM） Binding: UnitsOfTime (required): 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
dayOfWeek | S Σ | 0..* | code | mon ｜ tue ｜ wed ｜ thu ｜ fri ｜ sat ｜ sun Binding: DaysOfWeek (required): 應填入DaysOfWeek值集中的其中一個代碼
timeOfDay | S Σ | 0..* | time | 一天中的活動時間
code | S Σ | 0..1 | CodeableConcept | BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後 Binding: TimingAbbreviation (preferred): 已知／確定的時間模式之代碼；鼓勵使用TimingAbbreviation值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Binding: HL7 TimingAbbreviation + 臺灣健保署藥品使用頻率值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S Σ | 0..1 | string | 概念的文字標記法
route | S | 1..1 | CodeableConceptTW | How drug should enter body.[應填入給藥途徑 Route of Administration] Binding: SNOMEDCTRouteCodes (example): A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Binding: SNOMED CT + 臺灣健保署給藥途徑值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S Σ | 0..1 | string | 概念的文字標記法
doseAndRate | S Σ | 1..* | Element | 用藥量
Slices for dose[x] | S Σ | 1..1 | SimpleQuantity | 每一劑量的藥量 Slice: Unordered, Closed by type:$this
dose[x]:doseQuantity | S Σ | 1..1 | SimpleQuantity | 每一劑量的藥量
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision).[應填入劑量]
unit | S Σ | 1..1 | string | Unit representation.[應填入劑量單位 Dose Units]。如：顆、CC等
rate[x] | S Σ | 0..1 |  | 每時間單位內的用藥量
rateRatio |  |  | Ratio |
rateRange |  |  | Range |
rateQuantity |  |  | Quantity(SimpleQuantity) |
substitution | S | 0..1 | BackboneElement | 配藥/調劑藥品時是否進行了藥品替代
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
wasSubstituted | S | 1..1 | boolean | Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]
reason | S | 0..* | CodeableConceptTW | Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明 Binding: SubstanceAdminSubstitutionReason (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
MedicationDispense.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` From the FHIR Standard
MedicationDispense.status | required | MedicationDispense Status Codes `http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1` From the FHIR Standard
MedicationDispense.category | preferred | MedicationDispense Category Codes `http://hl7.org/fhir/ValueSet/medicationdispense-category` From the FHIR Standard
MedicationDispense.medication[x] | example | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.medication[x]:medicationCodeableConcept | example | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.medication[x]:medicationCodeableConcept.coding:fda-medication-tw | required | TWMedicationFDA `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-fda-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-tw | required | TWMedicationNHI `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-ch-herb-tw | required | TWCHHerbMedicationNHI `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/nhi-medication-ch-herb-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:rxnorm-medication-us-core | required | TWMedicationRXNORM `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-rxnorm-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:atc-medication-code | required | TWMedcationATC `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medcation-atc-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:snomedct-medication-codes | required | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.type | example | ActPharmacySupplyType `http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType`
MedicationDispense.dosageInstruction.timing.repeat.durationUnit | required | UnitsOfTime `http://hl7.org/fhir/ValueSet/units-of-time|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.periodUnit | required | UnitsOfTime `http://hl7.org/fhir/ValueSet/units-of-time|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.dayOfWeek | required | DaysOfWeek `http://hl7.org/fhir/ValueSet/days-of-week|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.code | preferred | TimingAbbreviation `http://hl7.org/fhir/ValueSet/timing-abbreviation` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.code.coding | extensible | TWMedicationFrequencyHL7 `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw`
MedicationDispense.dosageInstruction.route | example | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.route.coding | extensible | TWMedicationPathSCT `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-path-sct-tw`
MedicationDispense.substitution.reason | example | SubstanceAdminSubstitutionReason `http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | MedicationDispense | 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 : 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() |
dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared : whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared |
tim-1 | error | MedicationDispense.dosageInstruction.timing.repeat | if there's a duration, there needs to be duration units : duration.empty() or durationUnit.exists() |
tim-2 | error | MedicationDispense.dosageInstruction.timing.repeat | if there's a period, there needs to be period units : period.empty() or periodUnit.exists() |
tim-4 | error | MedicationDispense.dosageInstruction.timing.repeat | duration SHALL be a non-negative value : duration.exists() implies duration >= 0 |
tim-5 | error | MedicationDispense.dosageInstruction.timing.repeat | period SHALL be a non-negative value : period.exists() implies period >= 0 |
tim-6 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a periodMax, there must be a period : periodMax.empty() or period.exists() |
tim-7 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a durationMax, there must be a duration : durationMax.empty() or duration.exists() |
tim-8 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a countMax, there must be a count : countMax.empty() or count.exists() |
tim-9 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's an offset, there must be a when (and not C, CM, CD, CV) : offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not())) |
tim-10 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a timeOfDay, there cannot be a when, or vice versa : timeOfDay.empty() or when.empty() |

This structure is derived from TWCoreMedicationDispense

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationDispense |  |  | TWCoreMedicationDispense |
identifier |  | 1..* | Identifier | External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item
value | S | 0..1 | string | The value that is unique
category |  | 0..1 | CodeableConceptTW | 配藥/調劑藥品的類型。[應填入醫令類別]
medication[x] |  | 1..1 |  | 所提供的藥品
medicationCodeableConcept |  |  | CodeableConcept(CodeableConceptTW) |
medicationReference |  |  | Reference(調劑單張-藥物處方內容(Medication)) |
Slices for medication[x] |  |  |  | Content/Rules for all slices
medication[x]:medicationReference | S | 0..1 | Reference(調劑單張-藥物處方內容(Medication)) | What medication was supplied
medication[x]:medicationCodeableConcept | S | 0..1 | CodeableConceptTW | 所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。
subject |  | 1..1 | Reference(Group | 調劑單張-病人基本資料) | 配藥/調劑藥品的對象，意即為誰配藥/調劑藥品。
quantity |  | 1..1 | SimpleQuantity | 配藥/調劑藥品的量
value | S | 1..1 | decimal | Numerical value (with implicit precision).[應填入給藥總量 Total Amount]
unit | S | 1..1 | string | Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等
daysSupply |  | 1..1 | SimpleQuantity | Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]
value | S | 1..1 | decimal | Numerical value (with implicit precision)
unit | S | 0..1 | string | Unit representation
receiver |  | 0..* | Reference(調劑單張-病人基本資料 | 調劑單張-醫事人員基本資料) | 誰領取了藥品
note | S | 1..* | Annotation | Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記
text | S | 1..1 | markdown | The annotation - text content (as markdown)
dosageInstruction |  | 1..* | Dosage | 病人如何使用藥品或者照護者如何給藥
timing |  | 1..1 | Timing | 應該何時給藥；時間的寫法請參照Timimg datatype。
repeat |  | 1..1 | Element | 事件定期重複發生的時間
frequency |  | 1..1 | positiveInt | Event occurs frequency times per period.[應填入頻率 Frequency]
code |  | 0..1 | CodeableConcept | BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
route |  | 1..1 | CodeableConceptTW | How drug should enter body.[應填入給藥途徑 Route of Administration]
doseAndRate |  | 1..* | Element | 用藥量
Slices for dose[x] |  | 1..1 | SimpleQuantity | 每一劑量的藥量 Slice: Unordered, Open by type:$this
dose[x]:doseQuantity |  | 1..1 | SimpleQuantity | 每一劑量的藥量
value | S | 1..1 | decimal | Numerical value (with implicit precision).[應填入劑量]
unit | S | 1..1 | string | Unit representation.[應填入劑量單位 Dose Units]。如：顆、CC等
substitution | S | 0..1 | BackboneElement | 配藥/調劑藥品時是否進行了藥品替代
wasSubstituted | S | 1..1 | boolean | Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]
reason | S | 0..* | CodeableConceptTW | Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationDispense | C | 0..* | TWCoreMedicationDispense | 為指定病人配藥/調劑藥品 Constraints: mdd-1
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的MedicationDispense紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此MedicationDispense Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述MedicationDispense Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | MedicationDispense Resource之內容摘要以供人閱讀 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 1..* | Identifier | External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text)
partOf |  | 0..* | Reference(TW Core Procedure) | 配藥/調劑藥品事件的一部分
status | ?!S Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed + Binding: MedicationDispense Status Codes (required): 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態；應填入所綁定值集中的其中一個代碼
statusReason[x] |  | 0..1 | CodeableConceptTW | 未進行配藥/調劑藥品的原因 Binding：可參考Medication dispense status reason codes代碼表，但此代碼表只是針對這個欄位的一個可能值的示例，不預期也不鼓勵使用者一定要使用此代碼表的代碼。 Binding: MedicationDispense Status Reason Codes (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
category | S | 0..1 | CodeableConceptTW | 配藥/調劑藥品的類型。[應填入醫令類別] Binding: MedicationDispense Category Codes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
Slices for medication[x] | S Σ | 1..1 |  | 所提供的藥品 Slice: Unordered, Closed by type:$this Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed.
medicationCodeableConcept |  |  | CodeableConcept(CodeableConceptTW) |
medicationReference |  |  | Reference(調劑單張-藥物處方內容(Medication)) |
medication[x]:medicationReference | S Σ | 0..1 | Reference(調劑單張-藥物處方內容(Medication)) | What medication was supplied
medication[x]:medicationCodeableConcept | S | 0..1 | CodeableConceptTW | 所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。 Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed.
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
Slices for coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Slice: Unordered, Open by pattern:$this
coding:fda-medication-tw | S | 0..1 | CodingTW | 此為臺灣食品藥物管理署(TFDA)維護之藥品代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。 Binding: 臺灣食藥署藥品及醫療器材代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:nhi-medication-tw | S | 0..1 | CodingTW | 此為中央健康保險署(NHI)維護之藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。 Binding: 臺灣健保署用藥品項代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:nhi-medication-ch-herb-tw | S | 0..1 | CodingTW | 此為中央健康保險署(NHI)維護之中藥藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。 Binding: 臺灣健保署中藥用藥品項值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:rxnorm-medication-us-core | S | 0..1 | CodingTW | RxNorm為美國Unified Medical Language System®中的藥品代碼，取得UMLS®授權即可免費使用，可依情境選用此代碼。 Binding: RxNorm藥品代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:atc-medication-code | S | 0..1 | CodingTW | ATC代碼的版權為世界衛生組織（WHO）Collaborating Centre for Drug Statistics Methodology，可免費使用，可依情境選用此代碼。 Binding: 臺灣食藥署藥品藥理治療分類ATC碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:snomedct-medication-codes | S | 0..1 | CodingTW | 此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。 Binding: SNOMEDCTMedicationCodes (required): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
text | S Σ | 0..1 | string | 概念的文字表示法
subject | S Σ | 1..1 | Reference(Group | 調劑單張-病人基本資料) | 配藥/調劑藥品的對象，意即為誰配藥/調劑藥品。
context | S | 0..1 | Reference(TW Core Encounter) | 與此配藥/調劑藥品相關的就醫事件(Encounter/Episode)
supportingInformation |  | 0..* | Reference(Resource) | 支持配藥/調劑藥品的資訊
performer | S | 0..* | BackboneElement | 執行此配藥/藥品調劑的人員。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
function |  | 0..1 | CodeableConceptTW | 誰進行了配藥/藥品調劑以及他們做了什麼 Binding: MedicationDispense Performer Function Codes (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
actor | S | 1..1 | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 執行此操作的個人
location |  | 0..1 | Reference(Location) | 配藥/調劑藥品的位置
authorizingPrescription | S | 0..* | Reference(TW Core MedicationRequest) | 授權此配藥/調劑藥品的處方
type | S | 0..1 | CodeableConceptTW | 配藥/調劑藥品類型。例如：試用分裝、部分分裝、緊急分裝等 Binding: ActPharmacySupplyType (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
quantity | S | 1..1 | SimpleQuantity | 配藥/調劑藥品的量
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision).[應填入給藥總量 Total Amount]
unit | S Σ | 1..1 | string | Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等
system | Σ C | 0..1 | uri | System that defines coded unit form
code | Σ | 0..1 | code | Coded form of the unit
daysSupply | S | 1..1 | SimpleQuantity | Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
unit | S Σ | 0..1 | string | Unit representation
system | Σ C | 0..1 | uri | System that defines coded unit form
code | Σ | 0..1 | code | Coded form of the unit
whenPrepared | Σ | 0..1 | dateTime | 產品包裝和審核時間
whenHandedOver | S | 0..1 | dateTime | 藥品發放的時間
destination |  | 0..1 | Reference(TW Core Location) | 藥品被送往何處
receiver |  | 0..* | Reference(調劑單張-病人基本資料 | 調劑單張-醫事人員基本資料) | 誰領取了藥品
note | S | 1..* | Annotation | Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
author[x] | Σ | 0..1 |  | Individual responsible for the annotation
authorReference |  |  | Reference(Practitioner | Patient | RelatedPerson | Organization) |
authorString |  |  | string |
time | Σ | 0..1 | dateTime | When the annotation was made
text | S Σ | 1..1 | markdown | The annotation - text content (as markdown)
dosageInstruction | S | 1..* | Dosage | 病人如何使用藥品或者照護者如何給藥
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
sequence | S Σ | 0..1 | integer | 劑量指示的順序
text | S Σ | 0..1 | string | 純文字表述的劑量指示，例如：SIG。
additionalInstruction |  | 0..* | CodeableConceptTW | 對病人的補充指示或警告－例如：「隨餐服用」，「可能引起嗜睡」 Binding: SNOMEDCTAdditionalDosageInstructions (example): 一個編碼的概念，確定額外的指示，如「與水一起服用」或「避免操作重型機器」；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
patientInstruction | S Σ | 0..1 | string | 以病人或消費者為導向的指示
timing | S Σ | 1..1 | Timing | 應該何時給藥；時間的寫法請參照Timimg datatype。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
event | Σ | 0..* | dateTime | 事件發生的時間
repeat | S Σ C | 1..1 | Element | 事件定期重複發生的時間 Constraints: tim-1, tim-2, tim-4, tim-5, tim-6, tim-7, tim-8, tim-9, tim-10
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
bounds[x] | Σ | 0..1 |  | 時間或期間長度／長度範圍，或（開始和／或結束）限制
boundsDuration |  |  | Duration |
boundsRange |  |  | Range |
boundsPeriod |  |  | Period |
count | S Σ | 0..1 | positiveInt | 重複的次數
countMax | Σ | 0..1 | positiveInt | 重複的最大次數
duration | S Σ | 0..1 | decimal | 此事件持續多久時間
durationMax | Σ | 0..1 | decimal | 此事件持續多久時間 （最長時間／最大值）
durationUnit | S Σ | 0..1 | code | s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM） Binding: UnitsOfTime (required): 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
frequency | S Σ | 1..1 | positiveInt | Event occurs frequency times per period.[應填入頻率 Frequency]
frequencyMax | Σ | 0..1 | positiveInt | 此事件於每一期間的最大發生頻率
period | S Σ | 0..1 | decimal | 此事件於特定時間區間所發生的頻率
periodMax | Σ | 0..1 | decimal | 時間區間的上限（3-4小時）
periodUnit | S Σ | 0..1 | code | s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM） Binding: UnitsOfTime (required): 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
dayOfWeek | S Σ | 0..* | code | mon ｜ tue ｜ wed ｜ thu ｜ fri ｜ sat ｜ sun Binding: DaysOfWeek (required): 應填入DaysOfWeek值集中的其中一個代碼
timeOfDay | S Σ | 0..* | time | 一天中的活動時間
when | Σ | 0..* | code | 事件發生的時間區間之代碼 Binding: EventTiming (required): 與時程表有關的真實世界事件；應填入EventTiming值集中的其中一個代碼
offset | Σ | 0..1 | unsignedInt | 事件的分鐘數（之前或之後）
code | S Σ | 0..1 | CodeableConcept | BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後 Binding: TimingAbbreviation (preferred): 已知／確定的時間模式之代碼；鼓勵使用TimingAbbreviation值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Binding: HL7 TimingAbbreviation + 臺灣健保署藥品使用頻率值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S Σ | 0..1 | string | 概念的文字標記法
asNeeded[x] |  | 0..1 | CodeableConceptTW | 「根據（對x的）需要」服用 Binding：一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；可參考SNOMEDCTMedicationAsNeededReasonCodes值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。 Binding: SNOMEDCTMedicationAsNeededReasonCodes (extensible): 一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
site |  | 0..1 | CodeableConceptTW | 用藥之身體部位 Binding: SNOMEDCTAnatomicalStructureForAdministrationSiteCodes (extensible): 一個編碼概念，描述藥品進入或在身體上的位置；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
route | S | 1..1 | CodeableConceptTW | How drug should enter body.[應填入給藥途徑 Route of Administration] Binding: SNOMEDCTRouteCodes (example): A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Binding: SNOMED CT + 臺灣健保署給藥途徑值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S Σ | 0..1 | string | 概念的文字標記法
method |  | 0..1 | CodeableConceptTW | 用藥的技術 Binding: SNOMEDCTAdministrationMethodCodes (extensible): 一個編碼概念，描述用藥的技術；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
doseAndRate | S Σ | 1..* | Element | 用藥量
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
type |  | 0..1 | CodeableConceptTW | 特定劑量或比率種類 Binding: DoseAndRateType (example): 可參考DoseAndRateType值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
Slices for dose[x] | S Σ | 1..1 | SimpleQuantity | 每一劑量的藥量 Slice: Unordered, Closed by type:$this
dose[x]:doseQuantity | S Σ | 1..1 | SimpleQuantity | 每一劑量的藥量
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision).[應填入劑量]
unit | S Σ | 1..1 | string | Unit representation.[應填入劑量單位 Dose Units]。如：顆、CC等
system | Σ C | 0..1 | uri | System that defines coded unit form
code | Σ | 0..1 | code | Coded form of the unit
rate[x] | S Σ | 0..1 |  | 每時間單位內的用藥量
rateRatio |  |  | Ratio |
rateRange |  |  | Range |
rateQuantity |  |  | Quantity(SimpleQuantity) |
maxDosePerPeriod | Σ | 0..1 | Ratio | 每時間單位內用藥的上限
maxDosePerAdministration | Σ | 0..1 | SimpleQuantity | 每次用藥的上限
maxDosePerLifetime | Σ | 0..1 | SimpleQuantity | 病人一生中用藥的上限
substitution | S | 0..1 | BackboneElement | 配藥/調劑藥品時是否進行了藥品替代
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
wasSubstituted | S | 1..1 | boolean | Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]
type |  | 0..1 | CodeableConceptTW | 代碼表示配藥是否與處方要求不同 Binding: ActSubstanceAdminSubstitutionCode (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
reason | S | 0..* | CodeableConceptTW | Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明 Binding: SubstanceAdminSubstitutionReason (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
responsibleParty |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole) | 誰對藥品替代負責
detectedIssue |  | 0..* | Reference(DetectedIssue) | 臨床問題與行動
eventHistory |  | 0..* | Reference(TW Core Provenance) | 相關生命周期事件的清單
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
MedicationDispense.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
MedicationDispense.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` From the FHIR Standard
MedicationDispense.identifier.type | extensible | Identifier Type Codes `http://hl7.org/fhir/ValueSet/identifier-type|4.0.1` From the FHIR Standard
MedicationDispense.status | required | MedicationDispense Status Codes `http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1` From the FHIR Standard
MedicationDispense.statusReason[x] | example | MedicationDispense Status Reason Codes `http://hl7.org/fhir/ValueSet/medicationdispense-status-reason` From the FHIR Standard
MedicationDispense.category | preferred | MedicationDispense Category Codes `http://hl7.org/fhir/ValueSet/medicationdispense-category` From the FHIR Standard
MedicationDispense.medication[x] | example | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.medication[x]:medicationCodeableConcept | example | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.medication[x]:medicationCodeableConcept.coding:fda-medication-tw | required | TWMedicationFDA `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-fda-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-tw | required | TWMedicationNHI `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-ch-herb-tw | required | TWCHHerbMedicationNHI `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/nhi-medication-ch-herb-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:rxnorm-medication-us-core | required | TWMedicationRXNORM `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-rxnorm-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:atc-medication-code | required | TWMedcationATC `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medcation-atc-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:snomedct-medication-codes | required | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.performer.function | example | MedicationDispense Performer Function Codes `http://hl7.org/fhir/ValueSet/medicationdispense-performer-function` From the FHIR Standard
MedicationDispense.type | example | ActPharmacySupplyType `http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType`
MedicationDispense.dosageInstruction.additionalInstruction | example | SNOMEDCTAdditionalDosageInstructions `http://hl7.org/fhir/ValueSet/additional-instruction-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.durationUnit | required | UnitsOfTime `http://hl7.org/fhir/ValueSet/units-of-time|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.periodUnit | required | UnitsOfTime `http://hl7.org/fhir/ValueSet/units-of-time|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.dayOfWeek | required | DaysOfWeek `http://hl7.org/fhir/ValueSet/days-of-week|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.when | required | EventTiming `http://hl7.org/fhir/ValueSet/event-timing|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.code | preferred | TimingAbbreviation `http://hl7.org/fhir/ValueSet/timing-abbreviation` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.code.coding | extensible | TWMedicationFrequencyHL7 `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw`
MedicationDispense.dosageInstruction.asNeeded[x] | extensible | SNOMEDCTMedicationAsNeededReasonCodes `http://hl7.org/fhir/ValueSet/medication-as-needed-reason` From the FHIR Standard
MedicationDispense.dosageInstruction.site | extensible | SNOMEDCTAnatomicalStructureForAdministrationSiteCodes `http://hl7.org/fhir/ValueSet/approach-site-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.route | example | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.route.coding | extensible | TWMedicationPathSCT `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-path-sct-tw`
MedicationDispense.dosageInstruction.method | extensible | SNOMEDCTAdministrationMethodCodes `http://hl7.org/fhir/ValueSet/administration-method-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.doseAndRate.type | example | DoseAndRateType `http://hl7.org/fhir/ValueSet/dose-rate-type` From the FHIR Standard
MedicationDispense.substitution.type | example | ActSubstanceAdminSubstitutionCode `http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode`
MedicationDispense.substitution.reason | example | SubstanceAdminSubstitutionReason `http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | MedicationDispense | 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 : 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() |
dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared : whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared |
tim-1 | error | MedicationDispense.dosageInstruction.timing.repeat | if there's a duration, there needs to be duration units : duration.empty() or durationUnit.exists() |
tim-2 | error | MedicationDispense.dosageInstruction.timing.repeat | if there's a period, there needs to be period units : period.empty() or periodUnit.exists() |
tim-4 | error | MedicationDispense.dosageInstruction.timing.repeat | duration SHALL be a non-negative value : duration.exists() implies duration >= 0 |
tim-5 | error | MedicationDispense.dosageInstruction.timing.repeat | period SHALL be a non-negative value : period.exists() implies period >= 0 |
tim-6 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a periodMax, there must be a period : periodMax.empty() or period.exists() |
tim-7 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a durationMax, there must be a duration : durationMax.empty() or duration.exists() |
tim-8 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a countMax, there must be a count : countMax.empty() or count.exists() |
tim-9 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's an offset, there must be a when (and not C, CM, CD, CV) : offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not())) |
tim-10 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a timeOfDay, there cannot be a when, or vice versa : timeOfDay.empty() or when.empty() |

This structure is derived from TWCoreMedicationDispense

Summary

Mandatory: 17 elements
Must-Support: 15 elements

Structures

This structure refers to these other structures:

- TW CodeableConcept (https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw)
- 調劑單張-藥物處方內容(Medication) (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS)
- 調劑單張-病人基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS)
- 調劑單張-醫事人員基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-DS)
- SimpleQuantity (http://hl7.org/fhir/StructureDefinition/SimpleQuantity)

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the values of MedicationDispense.dosageInstruction.doseAndRate.dose[x]

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationDispense | C | 0..* | TWCoreMedicationDispense | 為指定病人配藥/調劑藥品 Constraints: mdd-1
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 1..* | Identifier | External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
status | ?!S Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed + Binding: MedicationDispense Status Codes (required): 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態；應填入所綁定值集中的其中一個代碼
category | S | 0..1 | CodeableConceptTW | 配藥/調劑藥品的類型。[應填入醫令類別] Binding: MedicationDispense Category Codes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
Slices for medication[x] | S Σ | 1..1 |  | 所提供的藥品 Slice: Unordered, Closed by type:$this Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed.
medicationCodeableConcept |  |  | CodeableConcept(CodeableConceptTW) |
medicationReference |  |  | Reference(調劑單張-藥物處方內容(Medication)) |
medication[x]:medicationReference | S Σ | 0..1 | Reference(調劑單張-藥物處方內容(Medication)) | What medication was supplied
medication[x]:medicationCodeableConcept | S | 0..1 | CodeableConceptTW | 所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。 Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed.
Slices for coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Slice: Unordered, Open by pattern:$this
coding:fda-medication-tw | S | 0..1 | CodingTW | 此為臺灣食品藥物管理署(TFDA)維護之藥品代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。 Binding: 臺灣食藥署藥品及醫療器材代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:nhi-medication-tw | S | 0..1 | CodingTW | 此為中央健康保險署(NHI)維護之藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。 Binding: 臺灣健保署用藥品項代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:nhi-medication-ch-herb-tw | S | 0..1 | CodingTW | 此為中央健康保險署(NHI)維護之中藥藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。 Binding: 臺灣健保署中藥用藥品項值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:rxnorm-medication-us-core | S | 0..1 | CodingTW | RxNorm為美國Unified Medical Language System®中的藥品代碼，取得UMLS®授權即可免費使用，可依情境選用此代碼。 Binding: RxNorm藥品代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:atc-medication-code | S | 0..1 | CodingTW | ATC代碼的版權為世界衛生組織（WHO）Collaborating Centre for Drug Statistics Methodology，可免費使用，可依情境選用此代碼。 Binding: 臺灣食藥署藥品藥理治療分類ATC碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:snomedct-medication-codes | S | 0..1 | CodingTW | 此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。 Binding: SNOMEDCTMedicationCodes (required): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
text | S Σ | 0..1 | string | 概念的文字表示法
subject | S Σ | 1..1 | Reference(Group | 調劑單張-病人基本資料) | 配藥/調劑藥品的對象，意即為誰配藥/調劑藥品。
context | S | 0..1 | Reference(TW Core Encounter) | 與此配藥/調劑藥品相關的就醫事件(Encounter/Episode)
performer | S | 0..* | BackboneElement | 執行此配藥/藥品調劑的人員。
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
actor | S | 1..1 | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 執行此操作的個人
authorizingPrescription | S | 0..* | Reference(TW Core MedicationRequest) | 授權此配藥/調劑藥品的處方
type | S | 0..1 | CodeableConceptTW | 配藥/調劑藥品類型。例如：試用分裝、部分分裝、緊急分裝等 Binding: ActPharmacySupplyType (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
quantity | S | 1..1 | SimpleQuantity | 配藥/調劑藥品的量
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision).[應填入給藥總量 Total Amount]
unit | S Σ | 1..1 | string | Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等
daysSupply | S | 1..1 | SimpleQuantity | Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
unit | S Σ | 0..1 | string | Unit representation
whenHandedOver | S | 0..1 | dateTime | 藥品發放的時間
receiver |  | 0..* | Reference(調劑單張-病人基本資料 | 調劑單張-醫事人員基本資料) | 誰領取了藥品
note | S | 1..* | Annotation | Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記
text | S Σ | 1..1 | markdown | The annotation - text content (as markdown)
dosageInstruction | S | 1..* | Dosage | 病人如何使用藥品或者照護者如何給藥
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
sequence | S Σ | 0..1 | integer | 劑量指示的順序
text | S Σ | 0..1 | string | 純文字表述的劑量指示，例如：SIG。
patientInstruction | S Σ | 0..1 | string | 以病人或消費者為導向的指示
timing | S Σ | 1..1 | Timing | 應該何時給藥；時間的寫法請參照Timimg datatype。
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
repeat | S Σ C | 1..1 | Element | 事件定期重複發生的時間 Constraints: tim-1, tim-2, tim-4, tim-5, tim-6, tim-7, tim-8, tim-9, tim-10
count | S Σ | 0..1 | positiveInt | 重複的次數
duration | S Σ | 0..1 | decimal | 此事件持續多久時間
durationUnit | S Σ | 0..1 | code | s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM） Binding: UnitsOfTime (required): 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
frequency | S Σ | 1..1 | positiveInt | Event occurs frequency times per period.[應填入頻率 Frequency]
period | S Σ | 0..1 | decimal | 此事件於特定時間區間所發生的頻率
periodUnit | S Σ | 0..1 | code | s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM） Binding: UnitsOfTime (required): 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
dayOfWeek | S Σ | 0..* | code | mon ｜ tue ｜ wed ｜ thu ｜ fri ｜ sat ｜ sun Binding: DaysOfWeek (required): 應填入DaysOfWeek值集中的其中一個代碼
timeOfDay | S Σ | 0..* | time | 一天中的活動時間
code | S Σ | 0..1 | CodeableConcept | BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後 Binding: TimingAbbreviation (preferred): 已知／確定的時間模式之代碼；鼓勵使用TimingAbbreviation值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Binding: HL7 TimingAbbreviation + 臺灣健保署藥品使用頻率值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S Σ | 0..1 | string | 概念的文字標記法
route | S | 1..1 | CodeableConceptTW | How drug should enter body.[應填入給藥途徑 Route of Administration] Binding: SNOMEDCTRouteCodes (example): A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Binding: SNOMED CT + 臺灣健保署給藥途徑值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S Σ | 0..1 | string | 概念的文字標記法
doseAndRate | S Σ | 1..* | Element | 用藥量
Slices for dose[x] | S Σ | 1..1 | SimpleQuantity | 每一劑量的藥量 Slice: Unordered, Closed by type:$this
dose[x]:doseQuantity | S Σ | 1..1 | SimpleQuantity | 每一劑量的藥量
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision).[應填入劑量]
unit | S Σ | 1..1 | string | Unit representation.[應填入劑量單位 Dose Units]。如：顆、CC等
rate[x] | S Σ | 0..1 |  | 每時間單位內的用藥量
rateRatio |  |  | Ratio |
rateRange |  |  | Range |
rateQuantity |  |  | Quantity(SimpleQuantity) |
substitution | S | 0..1 | BackboneElement | 配藥/調劑藥品時是否進行了藥品替代
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
wasSubstituted | S | 1..1 | boolean | Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]
reason | S | 0..* | CodeableConceptTW | Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明 Binding: SubstanceAdminSubstitutionReason (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
MedicationDispense.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` From the FHIR Standard
MedicationDispense.status | required | MedicationDispense Status Codes `http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1` From the FHIR Standard
MedicationDispense.category | preferred | MedicationDispense Category Codes `http://hl7.org/fhir/ValueSet/medicationdispense-category` From the FHIR Standard
MedicationDispense.medication[x] | example | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.medication[x]:medicationCodeableConcept | example | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.medication[x]:medicationCodeableConcept.coding:fda-medication-tw | required | TWMedicationFDA `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-fda-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-tw | required | TWMedicationNHI `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-ch-herb-tw | required | TWCHHerbMedicationNHI `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/nhi-medication-ch-herb-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:rxnorm-medication-us-core | required | TWMedicationRXNORM `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-rxnorm-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:atc-medication-code | required | TWMedcationATC `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medcation-atc-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:snomedct-medication-codes | required | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.type | example | ActPharmacySupplyType `http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType`
MedicationDispense.dosageInstruction.timing.repeat.durationUnit | required | UnitsOfTime `http://hl7.org/fhir/ValueSet/units-of-time|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.periodUnit | required | UnitsOfTime `http://hl7.org/fhir/ValueSet/units-of-time|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.dayOfWeek | required | DaysOfWeek `http://hl7.org/fhir/ValueSet/days-of-week|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.code | preferred | TimingAbbreviation `http://hl7.org/fhir/ValueSet/timing-abbreviation` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.code.coding | extensible | TWMedicationFrequencyHL7 `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw`
MedicationDispense.dosageInstruction.route | example | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.route.coding | extensible | TWMedicationPathSCT `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-path-sct-tw`
MedicationDispense.substitution.reason | example | SubstanceAdminSubstitutionReason `http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | MedicationDispense | 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 : 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() |
dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared : whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared |
tim-1 | error | MedicationDispense.dosageInstruction.timing.repeat | if there's a duration, there needs to be duration units : duration.empty() or durationUnit.exists() |
tim-2 | error | MedicationDispense.dosageInstruction.timing.repeat | if there's a period, there needs to be period units : period.empty() or periodUnit.exists() |
tim-4 | error | MedicationDispense.dosageInstruction.timing.repeat | duration SHALL be a non-negative value : duration.exists() implies duration >= 0 |
tim-5 | error | MedicationDispense.dosageInstruction.timing.repeat | period SHALL be a non-negative value : period.exists() implies period >= 0 |
tim-6 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a periodMax, there must be a period : periodMax.empty() or period.exists() |
tim-7 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a durationMax, there must be a duration : durationMax.empty() or duration.exists() |
tim-8 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a countMax, there must be a count : countMax.empty() or count.exists() |
tim-9 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's an offset, there must be a when (and not C, CM, CD, CV) : offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not())) |
tim-10 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a timeOfDay, there cannot be a when, or vice versa : timeOfDay.empty() or when.empty() |

Differential View

This structure is derived from TWCoreMedicationDispense

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationDispense |  |  | TWCoreMedicationDispense |
identifier |  | 1..* | Identifier | External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item
value | S | 0..1 | string | The value that is unique
category |  | 0..1 | CodeableConceptTW | 配藥/調劑藥品的類型。[應填入醫令類別]
medication[x] |  | 1..1 |  | 所提供的藥品
medicationCodeableConcept |  |  | CodeableConcept(CodeableConceptTW) |
medicationReference |  |  | Reference(調劑單張-藥物處方內容(Medication)) |
Slices for medication[x] |  |  |  | Content/Rules for all slices
medication[x]:medicationReference | S | 0..1 | Reference(調劑單張-藥物處方內容(Medication)) | What medication was supplied
medication[x]:medicationCodeableConcept | S | 0..1 | CodeableConceptTW | 所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。
subject |  | 1..1 | Reference(Group | 調劑單張-病人基本資料) | 配藥/調劑藥品的對象，意即為誰配藥/調劑藥品。
quantity |  | 1..1 | SimpleQuantity | 配藥/調劑藥品的量
value | S | 1..1 | decimal | Numerical value (with implicit precision).[應填入給藥總量 Total Amount]
unit | S | 1..1 | string | Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等
daysSupply |  | 1..1 | SimpleQuantity | Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]
value | S | 1..1 | decimal | Numerical value (with implicit precision)
unit | S | 0..1 | string | Unit representation
receiver |  | 0..* | Reference(調劑單張-病人基本資料 | 調劑單張-醫事人員基本資料) | 誰領取了藥品
note | S | 1..* | Annotation | Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記
text | S | 1..1 | markdown | The annotation - text content (as markdown)
dosageInstruction |  | 1..* | Dosage | 病人如何使用藥品或者照護者如何給藥
timing |  | 1..1 | Timing | 應該何時給藥；時間的寫法請參照Timimg datatype。
repeat |  | 1..1 | Element | 事件定期重複發生的時間
frequency |  | 1..1 | positiveInt | Event occurs frequency times per period.[應填入頻率 Frequency]
code |  | 0..1 | CodeableConcept | BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
route |  | 1..1 | CodeableConceptTW | How drug should enter body.[應填入給藥途徑 Route of Administration]
doseAndRate |  | 1..* | Element | 用藥量
Slices for dose[x] |  | 1..1 | SimpleQuantity | 每一劑量的藥量 Slice: Unordered, Open by type:$this
dose[x]:doseQuantity |  | 1..1 | SimpleQuantity | 每一劑量的藥量
value | S | 1..1 | decimal | Numerical value (with implicit precision).[應填入劑量]
unit | S | 1..1 | string | Unit representation.[應填入劑量單位 Dose Units]。如：顆、CC等
substitution | S | 0..1 | BackboneElement | 配藥/調劑藥品時是否進行了藥品替代
wasSubstituted | S | 1..1 | boolean | Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]
reason | S | 0..* | CodeableConceptTW | Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationDispense | C | 0..* | TWCoreMedicationDispense | 為指定病人配藥/調劑藥品 Constraints: mdd-1
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的MedicationDispense紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此MedicationDispense Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述MedicationDispense Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | MedicationDispense Resource之內容摘要以供人閱讀 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 1..* | Identifier | External identifier.[應填入項次 Item/藥品批號]。至少需填入項次 Item
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | S Σ | 0..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text)
partOf |  | 0..* | Reference(TW Core Procedure) | 配藥/調劑藥品事件的一部分
status | ?!S Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed + Binding: MedicationDispense Status Codes (required): 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態；應填入所綁定值集中的其中一個代碼
statusReason[x] |  | 0..1 | CodeableConceptTW | 未進行配藥/調劑藥品的原因 Binding：可參考Medication dispense status reason codes代碼表，但此代碼表只是針對這個欄位的一個可能值的示例，不預期也不鼓勵使用者一定要使用此代碼表的代碼。 Binding: MedicationDispense Status Reason Codes (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
category | S | 0..1 | CodeableConceptTW | 配藥/調劑藥品的類型。[應填入醫令類別] Binding: MedicationDispense Category Codes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
Slices for medication[x] | S Σ | 1..1 |  | 所提供的藥品 Slice: Unordered, Closed by type:$this Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed.
medicationCodeableConcept |  |  | CodeableConcept(CodeableConceptTW) |
medicationReference |  |  | Reference(調劑單張-藥物處方內容(Medication)) |
medication[x]:medicationReference | S Σ | 0..1 | Reference(調劑單張-藥物處方內容(Medication)) | What medication was supplied
medication[x]:medicationCodeableConcept | S | 0..1 | CodeableConceptTW | 所提供的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。[應填入健保代碼與藥品商品名稱Brand Name]。健保代碼(code)；藥品商品名稱Brand Name(display)，至少需填入藥品商品名稱Brand Name。 Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying which substance or product can be dispensed.
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
Slices for coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Slice: Unordered, Open by pattern:$this
coding:fda-medication-tw | S | 0..1 | CodingTW | 此為臺灣食品藥物管理署(TFDA)維護之藥品代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。 Binding: 臺灣食藥署藥品及醫療器材代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:nhi-medication-tw | S | 0..1 | CodingTW | 此為中央健康保險署(NHI)維護之藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。 Binding: 臺灣健保署用藥品項代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:nhi-medication-ch-herb-tw | S | 0..1 | CodingTW | 此為中央健康保險署(NHI)維護之中藥藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。 Binding: 臺灣健保署中藥用藥品項值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:rxnorm-medication-us-core | S | 0..1 | CodingTW | RxNorm為美國Unified Medical Language System®中的藥品代碼，取得UMLS®授權即可免費使用，可依情境選用此代碼。 Binding: RxNorm藥品代碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:atc-medication-code | S | 0..1 | CodingTW | ATC代碼的版權為世界衛生組織（WHO）Collaborating Centre for Drug Statistics Methodology，可免費使用，可依情境選用此代碼。 Binding: 臺灣食藥署藥品藥理治療分類ATC碼值集 (required): 應填入所綁定值集中的其中一個代碼。
coding:snomedct-medication-codes | S | 0..1 | CodingTW | 此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。 Binding: SNOMEDCTMedicationCodes (required): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
text | S Σ | 0..1 | string | 概念的文字表示法
subject | S Σ | 1..1 | Reference(Group | 調劑單張-病人基本資料) | 配藥/調劑藥品的對象，意即為誰配藥/調劑藥品。
context | S | 0..1 | Reference(TW Core Encounter) | 與此配藥/調劑藥品相關的就醫事件(Encounter/Episode)
supportingInformation |  | 0..* | Reference(Resource) | 支持配藥/調劑藥品的資訊
performer | S | 0..* | BackboneElement | 執行此配藥/藥品調劑的人員。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
function |  | 0..1 | CodeableConceptTW | 誰進行了配藥/藥品調劑以及他們做了什麼 Binding: MedicationDispense Performer Function Codes (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
actor | S | 1..1 | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 執行此操作的個人
location |  | 0..1 | Reference(Location) | 配藥/調劑藥品的位置
authorizingPrescription | S | 0..* | Reference(TW Core MedicationRequest) | 授權此配藥/調劑藥品的處方
type | S | 0..1 | CodeableConceptTW | 配藥/調劑藥品類型。例如：試用分裝、部分分裝、緊急分裝等 Binding: ActPharmacySupplyType (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
quantity | S | 1..1 | SimpleQuantity | 配藥/調劑藥品的量
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision).[應填入給藥總量 Total Amount]
unit | S Σ | 1..1 | string | Unit representation.[應填入給藥總量單位 Total Units]。如：顆、CC、瓶等
system | Σ C | 0..1 | uri | System that defines coded unit form
code | Σ | 0..1 | code | Coded form of the unit
daysSupply | S | 1..1 | SimpleQuantity | Amount of medication expressed as a timing amount.[應填入給藥日數 Medication Days]
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
unit | S Σ | 0..1 | string | Unit representation
system | Σ C | 0..1 | uri | System that defines coded unit form
code | Σ | 0..1 | code | Coded form of the unit
whenPrepared | Σ | 0..1 | dateTime | 產品包裝和審核時間
whenHandedOver | S | 0..1 | dateTime | 藥品發放的時間
destination |  | 0..1 | Reference(TW Core Location) | 藥品被送往何處
receiver |  | 0..* | Reference(調劑單張-病人基本資料 | 調劑單張-醫事人員基本資料) | 誰領取了藥品
note | S | 1..* | Annotation | Information about the dispense.[應填入調劑之核種名稱/調劑之放射活度/完成調劑之放射活度/完成調劑之核醫放射性藥品數量/處方疑義樣態註記]。至少需填入處方疑義樣態註記
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
author[x] | Σ | 0..1 |  | Individual responsible for the annotation
authorReference |  |  | Reference(Practitioner | Patient | RelatedPerson | Organization) |
authorString |  |  | string |
time | Σ | 0..1 | dateTime | When the annotation was made
text | S Σ | 1..1 | markdown | The annotation - text content (as markdown)
dosageInstruction | S | 1..* | Dosage | 病人如何使用藥品或者照護者如何給藥
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
sequence | S Σ | 0..1 | integer | 劑量指示的順序
text | S Σ | 0..1 | string | 純文字表述的劑量指示，例如：SIG。
additionalInstruction |  | 0..* | CodeableConceptTW | 對病人的補充指示或警告－例如：「隨餐服用」，「可能引起嗜睡」 Binding: SNOMEDCTAdditionalDosageInstructions (example): 一個編碼的概念，確定額外的指示，如「與水一起服用」或「避免操作重型機器」；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
patientInstruction | S Σ | 0..1 | string | 以病人或消費者為導向的指示
timing | S Σ | 1..1 | Timing | 應該何時給藥；時間的寫法請參照Timimg datatype。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
event | Σ | 0..* | dateTime | 事件發生的時間
repeat | S Σ C | 1..1 | Element | 事件定期重複發生的時間 Constraints: tim-1, tim-2, tim-4, tim-5, tim-6, tim-7, tim-8, tim-9, tim-10
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
bounds[x] | Σ | 0..1 |  | 時間或期間長度／長度範圍，或（開始和／或結束）限制
boundsDuration |  |  | Duration |
boundsRange |  |  | Range |
boundsPeriod |  |  | Period |
count | S Σ | 0..1 | positiveInt | 重複的次數
countMax | Σ | 0..1 | positiveInt | 重複的最大次數
duration | S Σ | 0..1 | decimal | 此事件持續多久時間
durationMax | Σ | 0..1 | decimal | 此事件持續多久時間 （最長時間／最大值）
durationUnit | S Σ | 0..1 | code | s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM） Binding: UnitsOfTime (required): 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
frequency | S Σ | 1..1 | positiveInt | Event occurs frequency times per period.[應填入頻率 Frequency]
frequencyMax | Σ | 0..1 | positiveInt | 此事件於每一期間的最大發生頻率
period | S Σ | 0..1 | decimal | 此事件於特定時間區間所發生的頻率
periodMax | Σ | 0..1 | decimal | 時間區間的上限（3-4小時）
periodUnit | S Σ | 0..1 | code | s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM） Binding: UnitsOfTime (required): 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
dayOfWeek | S Σ | 0..* | code | mon ｜ tue ｜ wed ｜ thu ｜ fri ｜ sat ｜ sun Binding: DaysOfWeek (required): 應填入DaysOfWeek值集中的其中一個代碼
timeOfDay | S Σ | 0..* | time | 一天中的活動時間
when | Σ | 0..* | code | 事件發生的時間區間之代碼 Binding: EventTiming (required): 與時程表有關的真實世界事件；應填入EventTiming值集中的其中一個代碼
offset | Σ | 0..1 | unsignedInt | 事件的分鐘數（之前或之後）
code | S Σ | 0..1 | CodeableConcept | BID | TID | QID | AM | PM | QD | QOD | +[應填入使用時間]。如：飯前後 Binding: TimingAbbreviation (preferred): 已知／確定的時間模式之代碼；鼓勵使用TimingAbbreviation值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Binding: HL7 TimingAbbreviation + 臺灣健保署藥品使用頻率值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S Σ | 0..1 | string | 概念的文字標記法
asNeeded[x] |  | 0..1 | CodeableConceptTW | 「根據（對x的）需要」服用 Binding：一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；可參考SNOMEDCTMedicationAsNeededReasonCodes值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。 Binding: SNOMEDCTMedicationAsNeededReasonCodes (extensible): 一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
site |  | 0..1 | CodeableConceptTW | 用藥之身體部位 Binding: SNOMEDCTAnatomicalStructureForAdministrationSiteCodes (extensible): 一個編碼概念，描述藥品進入或在身體上的位置；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
route | S | 1..1 | CodeableConceptTW | How drug should enter body.[應填入給藥途徑 Route of Administration] Binding: SNOMEDCTRouteCodes (example): A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 0..* | CodingTW | 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Binding: SNOMED CT + 臺灣健保署給藥途徑值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S Σ | 0..1 | string | 概念的文字標記法
method |  | 0..1 | CodeableConceptTW | 用藥的技術 Binding: SNOMEDCTAdministrationMethodCodes (extensible): 一個編碼概念，描述用藥的技術；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
doseAndRate | S Σ | 1..* | Element | 用藥量
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
type |  | 0..1 | CodeableConceptTW | 特定劑量或比率種類 Binding: DoseAndRateType (example): 可參考DoseAndRateType值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
Slices for dose[x] | S Σ | 1..1 | SimpleQuantity | 每一劑量的藥量 Slice: Unordered, Closed by type:$this
dose[x]:doseQuantity | S Σ | 1..1 | SimpleQuantity | 每一劑量的藥量
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision).[應填入劑量]
unit | S Σ | 1..1 | string | Unit representation.[應填入劑量單位 Dose Units]。如：顆、CC等
system | Σ C | 0..1 | uri | System that defines coded unit form
code | Σ | 0..1 | code | Coded form of the unit
rate[x] | S Σ | 0..1 |  | 每時間單位內的用藥量
rateRatio |  |  | Ratio |
rateRange |  |  | Range |
rateQuantity |  |  | Quantity(SimpleQuantity) |
maxDosePerPeriod | Σ | 0..1 | Ratio | 每時間單位內用藥的上限
maxDosePerAdministration | Σ | 0..1 | SimpleQuantity | 每次用藥的上限
maxDosePerLifetime | Σ | 0..1 | SimpleQuantity | 病人一生中用藥的上限
substitution | S | 0..1 | BackboneElement | 配藥/調劑藥品時是否進行了藥品替代
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
wasSubstituted | S | 1..1 | boolean | Whether a substitution was or was not performed on the dispense.[應填入有更換藥品註記]
type |  | 0..1 | CodeableConceptTW | 代碼表示配藥是否與處方要求不同 Binding: ActSubstanceAdminSubstitutionCode (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
reason | S | 0..* | CodeableConceptTW | Why was substitution made.[應填入不得以其他廠牌藥品替代之理由]。填寫說明：有特殊情況時才填寫不可替代時始需註明 Binding: SubstanceAdminSubstitutionReason (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
responsibleParty |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole) | 誰對藥品替代負責
detectedIssue |  | 0..* | Reference(DetectedIssue) | 臨床問題與行動
eventHistory |  | 0..* | Reference(TW Core Provenance) | 相關生命周期事件的清單
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
MedicationDispense.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
MedicationDispense.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` From the FHIR Standard
MedicationDispense.identifier.type | extensible | Identifier Type Codes `http://hl7.org/fhir/ValueSet/identifier-type|4.0.1` From the FHIR Standard
MedicationDispense.status | required | MedicationDispense Status Codes `http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1` From the FHIR Standard
MedicationDispense.statusReason[x] | example | MedicationDispense Status Reason Codes `http://hl7.org/fhir/ValueSet/medicationdispense-status-reason` From the FHIR Standard
MedicationDispense.category | preferred | MedicationDispense Category Codes `http://hl7.org/fhir/ValueSet/medicationdispense-category` From the FHIR Standard
MedicationDispense.medication[x] | example | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.medication[x]:medicationCodeableConcept | example | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.medication[x]:medicationCodeableConcept.coding:fda-medication-tw | required | TWMedicationFDA `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-fda-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-tw | required | TWMedicationNHI `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:nhi-medication-ch-herb-tw | required | TWCHHerbMedicationNHI `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/nhi-medication-ch-herb-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:rxnorm-medication-us-core | required | TWMedicationRXNORM `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-rxnorm-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:atc-medication-code | required | TWMedcationATC `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medcation-atc-tw`
MedicationDispense.medication[x]:medicationCodeableConcept.coding:snomedct-medication-codes | required | SNOMEDCTMedicationCodes `http://hl7.org/fhir/ValueSet/medication-codes` From the FHIR Standard
MedicationDispense.performer.function | example | MedicationDispense Performer Function Codes `http://hl7.org/fhir/ValueSet/medicationdispense-performer-function` From the FHIR Standard
MedicationDispense.type | example | ActPharmacySupplyType `http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType`
MedicationDispense.dosageInstruction.additionalInstruction | example | SNOMEDCTAdditionalDosageInstructions `http://hl7.org/fhir/ValueSet/additional-instruction-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.durationUnit | required | UnitsOfTime `http://hl7.org/fhir/ValueSet/units-of-time|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.periodUnit | required | UnitsOfTime `http://hl7.org/fhir/ValueSet/units-of-time|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.dayOfWeek | required | DaysOfWeek `http://hl7.org/fhir/ValueSet/days-of-week|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.repeat.when | required | EventTiming `http://hl7.org/fhir/ValueSet/event-timing|4.0.1` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.code | preferred | TimingAbbreviation `http://hl7.org/fhir/ValueSet/timing-abbreviation` From the FHIR Standard
MedicationDispense.dosageInstruction.timing.code.coding | extensible | TWMedicationFrequencyHL7 `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw`
MedicationDispense.dosageInstruction.asNeeded[x] | extensible | SNOMEDCTMedicationAsNeededReasonCodes `http://hl7.org/fhir/ValueSet/medication-as-needed-reason` From the FHIR Standard
MedicationDispense.dosageInstruction.site | extensible | SNOMEDCTAnatomicalStructureForAdministrationSiteCodes `http://hl7.org/fhir/ValueSet/approach-site-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.route | example | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.route.coding | extensible | TWMedicationPathSCT `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-path-sct-tw`
MedicationDispense.dosageInstruction.method | extensible | SNOMEDCTAdministrationMethodCodes `http://hl7.org/fhir/ValueSet/administration-method-codes` From the FHIR Standard
MedicationDispense.dosageInstruction.doseAndRate.type | example | DoseAndRateType `http://hl7.org/fhir/ValueSet/dose-rate-type` From the FHIR Standard
MedicationDispense.substitution.type | example | ActSubstanceAdminSubstitutionCode `http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode`
MedicationDispense.substitution.reason | example | SubstanceAdminSubstitutionReason `http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | MedicationDispense | 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 : 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() |
dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared : whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared |
tim-1 | error | MedicationDispense.dosageInstruction.timing.repeat | if there's a duration, there needs to be duration units : duration.empty() or durationUnit.exists() |
tim-2 | error | MedicationDispense.dosageInstruction.timing.repeat | if there's a period, there needs to be period units : period.empty() or periodUnit.exists() |
tim-4 | error | MedicationDispense.dosageInstruction.timing.repeat | duration SHALL be a non-negative value : duration.exists() implies duration >= 0 |
tim-5 | error | MedicationDispense.dosageInstruction.timing.repeat | period SHALL be a non-negative value : period.exists() implies period >= 0 |
tim-6 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a periodMax, there must be a period : periodMax.empty() or period.exists() |
tim-7 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a durationMax, there must be a duration : durationMax.empty() or duration.exists() |
tim-8 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a countMax, there must be a count : countMax.empty() or count.exists() |
tim-9 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's an offset, there must be a when (and not C, CM, CD, CV) : offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not())) |
tim-10 | error | MedicationDispense.dosageInstruction.timing.repeat | If there's a timeOfDay, there cannot be a when, or vice versa : timeOfDay.empty() or when.empty() |

This structure is derived from TWCoreMedicationDispense

Summary

Mandatory: 17 elements
Must-Support: 15 elements

Structures

This structure refers to these other structures:

- TW CodeableConcept (https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw)
- 調劑單張-藥物處方內容(Medication) (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS)
- 調劑單張-病人基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS)
- 調劑單張-醫事人員基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-DS)
- SimpleQuantity (http://hl7.org/fhir/StructureDefinition/SimpleQuantity)

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the values of MedicationDispense.dosageInstruction.doseAndRate.dose[x]

Other representations of profile: CSV, Excel, Schematron