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

臺灣電子處方箋與調劑單張實作指引(TW EMPD IG), published by NHI. This guide is not an authorized publication; it is the continuous build for version 0.2.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TWNHIFHIR/empd/ and changes regularly. See the Directory of published versions

Resource Profile: 電子處方箋與調劑單張-無健保代碼之藥品與特材(Medication)

Official URL: https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-Self-EMPD Version: 0.2.1
Active as of 2026-05-26 Computable Name: MedicationSelfEMPD

Copyright/Legal: 衛生福利部

此Profile用於描述電子處方箋與調劑單張中之健保代碼欄位。

本Profile之Medication.code用於承載電子處方箋與調劑單張中之健保代碼。
一、無健保代碼之藥品:
 (一)、為主管機關核准發給之藥品,請參照「藥品許可證類別資料標準」,填入許可證字號(共12~14碼)。
 (二)、無上開藥品許可證字號,請以999999+流水號4碼(流水號由院所自訂)編碼(共10碼)。
二、無健保代碼之特材:
 依下列說明編碼 (共12碼):
 第 1-2 碼:依現行特材代碼前 2 碼編碼原則 (2碼),請參照「全民健保特殊材料品項分類代碼編訂原則」。
 第 3 碼:半形大寫「 Z 」 (1 碼)。
 第 4-9 碼:許可證號 (6 碼)。
 第 10-12 碼:流水號 (3 碼) 。

本Profile中健保代碼之藥品與特材編碼僅提供參考。

Usages:

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.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication C 0..* Medication Definition of a Medication
Constraints: med-self-1, med-self-2, med-self-3
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... code SΣ 1..1 CodeableConcept 健保代碼。[無健保代碼之藥品或特材,請依規定暫編碼並填寫對應代碼系統]
Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
.... Slices for coding SΣ 1..1 Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:nonNHIMedication SΣ 0..1 Coding 無健保代碼之藥品暫編碼
Binding: 自費藥物值集 (example): 值集僅提供參考,請依規定自行編碼。
...... system SΣ 1..1 uri 無健保代碼之藥品代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs
...... code SΣ 1..1 code 無健保代碼之藥品暫編碼。[如為主管機關核准發給之藥品,請參照「藥品許可證類別資料標準」填入許可證字號(共12~14碼);無上開藥品許可證字號,請以999999+流水號4碼(流水號由院所自訂)編碼 (共10碼)]
...... display SΣ 0..1 string 無健保代碼之藥品名稱
..... coding:nonNHIMaterial SΣ 0..1 Coding 無健保代碼之特材健保代碼暫編碼
Binding: 無健保代碼之特材值集 (example): 值集僅提供參考,請依規定自行編碼。
...... system SΣ 1..1 uri 無健保代碼之特材代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs
...... code SΣ 1..1 code 無健保代碼之特材暫編碼。[第 1-2 碼依現行特材代碼前 2 碼編碼原則 (2碼) + 第 3 碼為 半形大寫「 Z 」 (1 碼) + 第 4-9 碼為許可證號 (6 碼) + 第 10-12 碼為流水號 (3 碼)]
...... display SΣ 0..1 string 無健保代碼之特材名稱
.... text SΣ 0..1 string 健保代碼對應之品項名稱。[全民健保已收載及列項之特材,沿用本署全民健康保險藥物給付項目及支付標準特材中英文名稱,非健保已收載醫材,請填列醫療器材許可證中英文名稱]

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Medication.code Base example SNOMED CT Medication Codes 📍4.0.1 FHIR Std.
Medication.code.coding:nonNHIMedication Base example 自費藥物值集 📦0.2.1 This IG
Medication.code.coding:nonNHIMaterial Base example 無健保代碼之特材值集 📦0.2.1 This IG
Medication.status Base required Medication status codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Medication If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Medication 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 Medication 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 Medication If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Medication 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()
med-self-1 error Medication Medication-Self-EMPD至少應包含一組無健保代碼之藥品或無健保代碼之特材coding code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').exists() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').exists()
med-self-2 error Medication 無健保代碼之藥品暫編碼須符合編碼規則:藥品許可證字號長度為12~14碼,或999999+流水號4碼(共10碼) code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').all(code.matches('^999999[0-9]{4}$') or (code.length() >= 12 and code.length() <= 14))
med-self-3 error Medication 無健保代碼之特材暫編碼須符合編碼規則:共12碼,第1-2碼為特材代碼前2碼、第3碼為半形大寫 Z、第4-9碼為許可證號、第10-12碼為流水號 code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').all(code.matches('^[A-Z]{2}[Z].{6}[0-9]{3}$'))

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication C 0..* Medication Definition of a Medication
Constraints: med-self-1, med-self-2, med-self-3
... code S 1..1 CodeableConcept 健保代碼。[無健保代碼之藥品或特材,請依規定暫編碼並填寫對應代碼系統]
.... Slices for coding S 1..1 Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:nonNHIMedication S 0..1 Coding 無健保代碼之藥品暫編碼
Binding: 自費藥物值集 (example): 值集僅提供參考,請依規定自行編碼。
...... system S 1..1 uri 無健保代碼之藥品代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs
...... code S 1..1 code 無健保代碼之藥品暫編碼。[如為主管機關核准發給之藥品,請參照「藥品許可證類別資料標準」填入許可證字號(共12~14碼);無上開藥品許可證字號,請以999999+流水號4碼(流水號由院所自訂)編碼 (共10碼)]
...... display S 0..1 string 無健保代碼之藥品名稱
..... coding:nonNHIMaterial S 0..1 Coding 無健保代碼之特材健保代碼暫編碼
Binding: 無健保代碼之特材值集 (example): 值集僅提供參考,請依規定自行編碼。
...... system S 1..1 uri 無健保代碼之特材代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs
...... code S 1..1 code 無健保代碼之特材暫編碼。[第 1-2 碼依現行特材代碼前 2 碼編碼原則 (2碼) + 第 3 碼為 半形大寫「 Z 」 (1 碼) + 第 4-9 碼為許可證號 (6 碼) + 第 10-12 碼為流水號 (3 碼)]
...... display S 0..1 string 無健保代碼之特材名稱
.... text S 0..1 string 健保代碼對應之品項名稱。[全民健保已收載及列項之特材,沿用本署全民健康保險藥物給付項目及支付標準特材中英文名稱,非健保已收載醫材,請填列醫療器材許可證中英文名稱]

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Medication.code.coding:nonNHIMedication Base example 自費藥物值集 📦0.2.1 This IG
Medication.code.coding:nonNHIMaterial Base example 無健保代碼之特材值集 📦0.2.1 This IG

Constraints

Id Grade Path(s) Description Expression
med-self-1 error Medication Medication-Self-EMPD至少應包含一組無健保代碼之藥品或無健保代碼之特材coding code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').exists() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').exists()
med-self-2 error Medication 無健保代碼之藥品暫編碼須符合編碼規則:藥品許可證字號長度為12~14碼,或999999+流水號4碼(共10碼) code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').all(code.matches('^999999[0-9]{4}$') or (code.length() >= 12 and code.length() <= 14))
med-self-3 error Medication 無健保代碼之特材暫編碼須符合編碼規則:共12碼,第1-2碼為特材代碼前2碼、第3碼為半形大寫 Z、第4-9碼為許可證號、第10-12碼為流水號 code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').all(code.matches('^[A-Z]{2}[Z].{6}[0-9]{3}$'))
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication C 0..* Medication Definition of a Medication
Constraints: med-self-1, med-self-2, med-self-3
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
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 Σ 0..* Identifier Business identifier for this medication
... code SΣ 1..1 CodeableConcept 健保代碼。[無健保代碼之藥品或特材,請依規定暫編碼並填寫對應代碼系統]
Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... Slices for coding SΣ 1..1 Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:nonNHIMedication SΣ 0..1 Coding 無健保代碼之藥品暫編碼
Binding: 自費藥物值集 (example): 值集僅提供參考,請依規定自行編碼。
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ 1..1 uri 無健保代碼之藥品代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs
...... version Σ 0..1 string Version of the system - if relevant
...... code SΣ 1..1 code 無健保代碼之藥品暫編碼。[如為主管機關核准發給之藥品,請參照「藥品許可證類別資料標準」填入許可證字號(共12~14碼);無上開藥品許可證字號,請以999999+流水號4碼(流水號由院所自訂)編碼 (共10碼)]
...... display SΣ 0..1 string 無健保代碼之藥品名稱
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... coding:nonNHIMaterial SΣ 0..1 Coding 無健保代碼之特材健保代碼暫編碼
Binding: 無健保代碼之特材值集 (example): 值集僅提供參考,請依規定自行編碼。
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ 1..1 uri 無健保代碼之特材代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs
...... version Σ 0..1 string Version of the system - if relevant
...... code SΣ 1..1 code 無健保代碼之特材暫編碼。[第 1-2 碼依現行特材代碼前 2 碼編碼原則 (2碼) + 第 3 碼為 半形大寫「 Z 」 (1 碼) + 第 4-9 碼為許可證號 (6 碼) + 第 10-12 碼為流水號 (3 碼)]
...... display SΣ 0..1 string 無健保代碼之特材名稱
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text SΣ 0..1 string 健保代碼對應之品項名稱。[全民健保已收載及列項之特材,沿用本署全民健康保險藥物給付項目及支付標準特材中英文名稱,非健保已收載醫材,請填列醫療器材許可證中英文名稱]
... status ?!Σ 0..1 code active | inactive | entered-in-error
Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use.
... manufacturer Σ 0..1 Reference(Organization) Manufacturer of the item
... form 0..1 CodeableConcept powder | tablets | capsule +
Binding: SNOMEDCTFormCodes (example): A coded concept defining the form of a medication.
... amount Σ 0..1 Ratio Amount of drug in package
... ingredient 0..* BackboneElement Active or inactive ingredient
.... 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
.... item[x] 1..1 The actual ingredient or content
..... itemCodeableConcept CodeableConcept
..... itemReference Reference(Substance | Medication)
.... isActive 0..1 boolean Active ingredient indicator
.... strength 0..1 Ratio Quantity of ingredient present
... batch 0..1 BackboneElement Details about packaged medications
.... 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
.... lotNumber 0..1 string Identifier assigned to batch
.... expirationDate 0..1 dateTime When batch will expire

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Medication.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Medication.code Base example SNOMED CT Medication Codes 📍4.0.1 FHIR Std.
Medication.code.coding:nonNHIMedication Base example 自費藥物值集 📦0.2.1 This IG
Medication.code.coding:nonNHIMaterial Base example 無健保代碼之特材值集 📦0.2.1 This IG
Medication.status Base required Medication status codes 📍4.0.1 FHIR Std.
Medication.form Base example SNOMED CT Form Codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Medication If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Medication 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 Medication 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 Medication If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Medication 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()
med-self-1 error Medication Medication-Self-EMPD至少應包含一組無健保代碼之藥品或無健保代碼之特材coding code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').exists() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').exists()
med-self-2 error Medication 無健保代碼之藥品暫編碼須符合編碼規則:藥品許可證字號長度為12~14碼,或999999+流水號4碼(共10碼) code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').all(code.matches('^999999[0-9]{4}$') or (code.length() >= 12 and code.length() <= 14))
med-self-3 error Medication 無健保代碼之特材暫編碼須符合編碼規則:共12碼,第1-2碼為特材代碼前2碼、第3碼為半形大寫 Z、第4-9碼為許可證號、第10-12碼為流水號 code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').all(code.matches('^[A-Z]{2}[Z].{6}[0-9]{3}$'))

This structure is derived from Medication

Summary

Mandatory: 2 elements(4 nested mandatory elements)
Must-Support: 11 elements
Fixed: 2 elements

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Medication.code.coding

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication C 0..* Medication Definition of a Medication
Constraints: med-self-1, med-self-2, med-self-3
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... code SΣ 1..1 CodeableConcept 健保代碼。[無健保代碼之藥品或特材,請依規定暫編碼並填寫對應代碼系統]
Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
.... Slices for coding SΣ 1..1 Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:nonNHIMedication SΣ 0..1 Coding 無健保代碼之藥品暫編碼
Binding: 自費藥物值集 (example): 值集僅提供參考,請依規定自行編碼。
...... system SΣ 1..1 uri 無健保代碼之藥品代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs
...... code SΣ 1..1 code 無健保代碼之藥品暫編碼。[如為主管機關核准發給之藥品,請參照「藥品許可證類別資料標準」填入許可證字號(共12~14碼);無上開藥品許可證字號,請以999999+流水號4碼(流水號由院所自訂)編碼 (共10碼)]
...... display SΣ 0..1 string 無健保代碼之藥品名稱
..... coding:nonNHIMaterial SΣ 0..1 Coding 無健保代碼之特材健保代碼暫編碼
Binding: 無健保代碼之特材值集 (example): 值集僅提供參考,請依規定自行編碼。
...... system SΣ 1..1 uri 無健保代碼之特材代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs
...... code SΣ 1..1 code 無健保代碼之特材暫編碼。[第 1-2 碼依現行特材代碼前 2 碼編碼原則 (2碼) + 第 3 碼為 半形大寫「 Z 」 (1 碼) + 第 4-9 碼為許可證號 (6 碼) + 第 10-12 碼為流水號 (3 碼)]
...... display SΣ 0..1 string 無健保代碼之特材名稱
.... text SΣ 0..1 string 健保代碼對應之品項名稱。[全民健保已收載及列項之特材,沿用本署全民健康保險藥物給付項目及支付標準特材中英文名稱,非健保已收載醫材,請填列醫療器材許可證中英文名稱]

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Medication.code Base example SNOMED CT Medication Codes 📍4.0.1 FHIR Std.
Medication.code.coding:nonNHIMedication Base example 自費藥物值集 📦0.2.1 This IG
Medication.code.coding:nonNHIMaterial Base example 無健保代碼之特材值集 📦0.2.1 This IG
Medication.status Base required Medication status codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Medication If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Medication 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 Medication 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 Medication If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Medication 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()
med-self-1 error Medication Medication-Self-EMPD至少應包含一組無健保代碼之藥品或無健保代碼之特材coding code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').exists() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').exists()
med-self-2 error Medication 無健保代碼之藥品暫編碼須符合編碼規則:藥品許可證字號長度為12~14碼,或999999+流水號4碼(共10碼) code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').all(code.matches('^999999[0-9]{4}$') or (code.length() >= 12 and code.length() <= 14))
med-self-3 error Medication 無健保代碼之特材暫編碼須符合編碼規則:共12碼,第1-2碼為特材代碼前2碼、第3碼為半形大寫 Z、第4-9碼為許可證號、第10-12碼為流水號 code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').all(code.matches('^[A-Z]{2}[Z].{6}[0-9]{3}$'))

Differential View

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication C 0..* Medication Definition of a Medication
Constraints: med-self-1, med-self-2, med-self-3
... code S 1..1 CodeableConcept 健保代碼。[無健保代碼之藥品或特材,請依規定暫編碼並填寫對應代碼系統]
.... Slices for coding S 1..1 Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:nonNHIMedication S 0..1 Coding 無健保代碼之藥品暫編碼
Binding: 自費藥物值集 (example): 值集僅提供參考,請依規定自行編碼。
...... system S 1..1 uri 無健保代碼之藥品代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs
...... code S 1..1 code 無健保代碼之藥品暫編碼。[如為主管機關核准發給之藥品,請參照「藥品許可證類別資料標準」填入許可證字號(共12~14碼);無上開藥品許可證字號,請以999999+流水號4碼(流水號由院所自訂)編碼 (共10碼)]
...... display S 0..1 string 無健保代碼之藥品名稱
..... coding:nonNHIMaterial S 0..1 Coding 無健保代碼之特材健保代碼暫編碼
Binding: 無健保代碼之特材值集 (example): 值集僅提供參考,請依規定自行編碼。
...... system S 1..1 uri 無健保代碼之特材代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs
...... code S 1..1 code 無健保代碼之特材暫編碼。[第 1-2 碼依現行特材代碼前 2 碼編碼原則 (2碼) + 第 3 碼為 半形大寫「 Z 」 (1 碼) + 第 4-9 碼為許可證號 (6 碼) + 第 10-12 碼為流水號 (3 碼)]
...... display S 0..1 string 無健保代碼之特材名稱
.... text S 0..1 string 健保代碼對應之品項名稱。[全民健保已收載及列項之特材,沿用本署全民健康保險藥物給付項目及支付標準特材中英文名稱,非健保已收載醫材,請填列醫療器材許可證中英文名稱]

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Medication.code.coding:nonNHIMedication Base example 自費藥物值集 📦0.2.1 This IG
Medication.code.coding:nonNHIMaterial Base example 無健保代碼之特材值集 📦0.2.1 This IG

Constraints

Id Grade Path(s) Description Expression
med-self-1 error Medication Medication-Self-EMPD至少應包含一組無健保代碼之藥品或無健保代碼之特材coding code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').exists() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').exists()
med-self-2 error Medication 無健保代碼之藥品暫編碼須符合編碼規則:藥品許可證字號長度為12~14碼,或999999+流水號4碼(共10碼) code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').all(code.matches('^999999[0-9]{4}$') or (code.length() >= 12 and code.length() <= 14))
med-self-3 error Medication 無健保代碼之特材暫編碼須符合編碼規則:共12碼,第1-2碼為特材代碼前2碼、第3碼為半形大寫 Z、第4-9碼為許可證號、第10-12碼為流水號 code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').all(code.matches('^[A-Z]{2}[Z].{6}[0-9]{3}$'))

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Medication C 0..* Medication Definition of a Medication
Constraints: med-self-1, med-self-2, med-self-3
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
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 Σ 0..* Identifier Business identifier for this medication
... code SΣ 1..1 CodeableConcept 健保代碼。[無健保代碼之藥品或特材,請依規定暫編碼並填寫對應代碼系統]
Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication.
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... Slices for coding SΣ 1..1 Coding Code defined by a terminology system
Slice: Unordered, Open by value:system
..... coding:nonNHIMedication SΣ 0..1 Coding 無健保代碼之藥品暫編碼
Binding: 自費藥物值集 (example): 值集僅提供參考,請依規定自行編碼。
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ 1..1 uri 無健保代碼之藥品代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs
...... version Σ 0..1 string Version of the system - if relevant
...... code SΣ 1..1 code 無健保代碼之藥品暫編碼。[如為主管機關核准發給之藥品,請參照「藥品許可證類別資料標準」填入許可證字號(共12~14碼);無上開藥品許可證字號,請以999999+流水號4碼(流水號由院所自訂)編碼 (共10碼)]
...... display SΣ 0..1 string 無健保代碼之藥品名稱
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... coding:nonNHIMaterial SΣ 0..1 Coding 無健保代碼之特材健保代碼暫編碼
Binding: 無健保代碼之特材值集 (example): 值集僅提供參考,請依規定自行編碼。
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ 1..1 uri 無健保代碼之特材代碼系統。[請固定填寫此代碼系統]
Fixed Value: https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs
...... version Σ 0..1 string Version of the system - if relevant
...... code SΣ 1..1 code 無健保代碼之特材暫編碼。[第 1-2 碼依現行特材代碼前 2 碼編碼原則 (2碼) + 第 3 碼為 半形大寫「 Z 」 (1 碼) + 第 4-9 碼為許可證號 (6 碼) + 第 10-12 碼為流水號 (3 碼)]
...... display SΣ 0..1 string 無健保代碼之特材名稱
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text SΣ 0..1 string 健保代碼對應之品項名稱。[全民健保已收載及列項之特材,沿用本署全民健康保險藥物給付項目及支付標準特材中英文名稱,非健保已收載醫材,請填列醫療器材許可證中英文名稱]
... status ?!Σ 0..1 code active | inactive | entered-in-error
Binding: Medication Status Codes (required): A coded concept defining if the medication is in active use.
... manufacturer Σ 0..1 Reference(Organization) Manufacturer of the item
... form 0..1 CodeableConcept powder | tablets | capsule +
Binding: SNOMEDCTFormCodes (example): A coded concept defining the form of a medication.
... amount Σ 0..1 Ratio Amount of drug in package
... ingredient 0..* BackboneElement Active or inactive ingredient
.... 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
.... item[x] 1..1 The actual ingredient or content
..... itemCodeableConcept CodeableConcept
..... itemReference Reference(Substance | Medication)
.... isActive 0..1 boolean Active ingredient indicator
.... strength 0..1 Ratio Quantity of ingredient present
... batch 0..1 BackboneElement Details about packaged medications
.... 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
.... lotNumber 0..1 string Identifier assigned to batch
.... expirationDate 0..1 dateTime When batch will expire

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Medication.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Medication.code Base example SNOMED CT Medication Codes 📍4.0.1 FHIR Std.
Medication.code.coding:nonNHIMedication Base example 自費藥物值集 📦0.2.1 This IG
Medication.code.coding:nonNHIMaterial Base example 無健保代碼之特材值集 📦0.2.1 This IG
Medication.status Base required Medication status codes 📍4.0.1 FHIR Std.
Medication.form Base example SNOMED CT Form Codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Medication If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Medication 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 Medication 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 Medication If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Medication 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()
med-self-1 error Medication Medication-Self-EMPD至少應包含一組無健保代碼之藥品或無健保代碼之特材coding code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').exists() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').exists()
med-self-2 error Medication 無健保代碼之藥品暫編碼須符合編碼規則:藥品許可證字號長度為12~14碼,或999999+流水號4碼(共10碼) code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMedication-cs').all(code.matches('^999999[0-9]{4}$') or (code.length() >= 12 and code.length() <= 14))
med-self-3 error Medication 無健保代碼之特材暫編碼須符合編碼規則:共12碼,第1-2碼為特材代碼前2碼、第3碼為半形大寫 Z、第4-9碼為許可證號、第10-12碼為流水號 code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').empty() or code.coding.where(system = 'https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs').all(code.matches('^[A-Z]{2}[Z].{6}[0-9]{3}$'))

This structure is derived from Medication

Summary

Mandatory: 2 elements(4 nested mandatory elements)
Must-Support: 11 elements
Fixed: 2 elements

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Medication.code.coding

 

Other representations of profile: CSV, Excel, Schematron