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

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

## Resource Profile: 電子處方箋-Composition

Official URL: https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-EMPD | Version: 0.1.0
Active as of 2023-10-30 | Computable Name: CompositionEMPD

用於表示電子處方箋資料集之文檔

Usages:

- Use this Profile: 電子處方箋-Bundle
- Examples for this Profile: Composition/com-ep
- 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
--- | --- | --- | --- | ---
Composition |  | 0..* | TWCoreComposition | 將一組resources組成一份連貫的臨床聲明，並附有臨床證明。
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
modifierExtension | ?! | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
identifier | S Σ | 0..1 | Identifier | 不分版本的臨床文件架構(Composition)識別碼。
status | ?!S Σ | 1..1 | code | registered | partial | preliminary | final | amended | corrected + Binding: CompositionStatus (required): Composition的工作流程/臨床狀態；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | Composition的種類（如果可能請使用LOINC） Binding: LOINC Code Document Type值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
subject | S Σ | 1..1 | Reference(Group | Device | Substance | TW Core Location | 電子處方箋-病人基本資料) | Composition是關於誰和/或什麼
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
encounter | S Σ | 1..1 | Reference(電子處方箋-門診基本資料) | Composition的情境
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
date | S Σ | 1..1 | dateTime | Composition的編輯時間。[處方箋有效日期]。日期格式為西元 YYYYMMDD
author | S Σ | 1..* | Reference(電子處方箋-醫事人員基本資料 | 電子處方箋-病人基本資料 | 電子處方箋-醫事機構基本資料) | 誰和/或什麼創建了這個Composition
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
title | S Σ | 1..1 | string | 人類可讀的名稱/標題
attester | S | 0..* | BackboneElement | 證明Composition的準確性
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
mode |  | 1..1 | code | personal | professional | legal | official Binding: CompositionAttestationMode (required): 認證者提供的認證類型；應填入所綁定值集中的其中一個代碼。
custodian | S Σ | 1..1 | Reference(電子處方箋-醫事機構基本資料) | 維護Composition的機構
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
Slices for section | S C | 3..* | BackboneElement | Composition被分成一個或數個小節 Slice: Unordered, Open by value:code.coding.code Constraints: cmp-1, cmp-2
section:All Slices |  |  |  | Content/Rules for all slices
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
entry | S C | 0..* | Reference(Resource) | 提供一個連結用於參照或查看支持此小節內容的資料
section:Coverage | S C | 1..* | BackboneElement | 就醫身分別 Constraints: cmp-1, cmp-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29762-2
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Social history Narrative
text | S Σ | 0..1 | string | 概念的文字表示法
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
entry | S C | 1..* | Reference(電子處方箋/調劑單張-就醫身分別) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:ObservationBodyWeight | S C | 0..1 | BackboneElement | 體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填。 Constraints: cmp-1, cmp-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 85353-1
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Vital signs, weight, height, head circumference, oxygen saturation and BMI panel
text | S Σ | 0..1 | string | 概念的文字表示法
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
entry | S C | 1..1 | Reference(電子處方箋-體重) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:Condition | S C | 1..* | BackboneElement | 診斷 Constraints: cmp-1, cmp-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29548-5
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Diagnosis Narrative
text | S Σ | 0..1 | string | 概念的文字表示法
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
entry | S C | 1..* | Reference(電子處方箋-診斷) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:MedicationPrescribed | S C | 1..* | BackboneElement | 處方內容 Constraints: cmp-1, cmp-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29551-9
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Medication prescribed Narrative
text | S Σ | 0..1 | string | 概念的文字表示法
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
Slices for entry | S C | 2..* | Reference(電子處方箋-藥物處方內容(Medication) | 電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料 Slice: Unordered, Open by profile:resolve()
entry:Medication | S C | 1..* | Reference(電子處方箋-藥物處方內容(Medication)) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
entry:MedicationRequest | S C | 1..* | Reference(電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Composition.status | required | CompositionStatus `http://hl7.org/fhir/ValueSet/composition-status|4.0.1` From the FHIR Standard
Composition.type | extensible | LOINCDocumentType `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-type-doc-code`
Composition.attester.mode | required | CompositionAttestationMode `http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1` From the FHIR Standard
Composition.section.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:Coverage.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:ObservationBodyWeight.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:Condition.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:MedicationPrescribed.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
cmp-1 | error | Composition.section, Composition.section:Coverage, Composition.section:ObservationBodyWeight, Composition.section:Condition, Composition.section:MedicationPrescribed | A section must contain at least one of text, entries, or sub-sections : text.exists() or entry.exists() or section.exists() |
cmp-2 | error | Composition.section, Composition.section:Coverage, Composition.section:ObservationBodyWeight, Composition.section:Condition, Composition.section:MedicationPrescribed | A section can only have an emptyReason if it is empty : emptyReason.empty() or entry.empty() |
dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Composition | 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 | Composition | 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 | Composition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Composition | 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() |

This structure is derived from TWCoreComposition

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Composition |  |  | TWCoreComposition |
subject |  | 1..1 | Reference(Group | Device | Substance | TW Core Location | 電子處方箋-病人基本資料) | Composition是關於誰和/或什麼
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
encounter | S | 1..1 | Reference(電子處方箋-門診基本資料) | Composition的情境
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
date |  | 1..1 | dateTime | Composition的編輯時間。[處方箋有效日期]。日期格式為西元 YYYYMMDD
author |  | 1..* | Reference(電子處方箋-醫事人員基本資料 | 電子處方箋-病人基本資料 | 電子處方箋-醫事機構基本資料) | 誰和/或什麼創建了這個Composition
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
custodian |  | 1..1 | Reference(電子處方箋-醫事機構基本資料) | 維護Composition的機構
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
Slices for section |  | 3..* | BackboneElement | Composition被分成一個或數個小節 Slice: Unordered, Open by value:code.coding.code
section:Coverage |  | 1..* | BackboneElement | 就醫身分別
code |  | 1..1 | CodeableConceptTW | 小節分類(建議)
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code |  | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29762-2
display |  | 0..1 | string | 由系統定義的表示法 Fixed Value: Social history Narrative
entry |  | 1..* | Reference(電子處方箋/調劑單張-就醫身分別) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:ObservationBodyWeight |  | 0..1 | BackboneElement | 體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填。
code |  | 1..1 | CodeableConceptTW | 小節分類(建議)
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code |  | 1..1 | code | 系統定義的語法之符號 Fixed Value: 85353-1
display |  | 0..1 | string | 由系統定義的表示法 Fixed Value: Vital signs, weight, height, head circumference, oxygen saturation and BMI panel
entry |  | 1..1 | Reference(電子處方箋-體重) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:Condition |  | 1..* | BackboneElement | 診斷
code |  | 1..1 | CodeableConceptTW | 小節分類(建議)
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code |  | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29548-5
display |  | 0..1 | string | 由系統定義的表示法 Fixed Value: Diagnosis Narrative
entry |  | 1..* | Reference(電子處方箋-診斷) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:MedicationPrescribed |  | 1..* | BackboneElement | 處方內容
code |  | 1..1 | CodeableConceptTW | 小節分類(建議)
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code |  | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29551-9
display |  | 0..1 | string | 由系統定義的表示法 Fixed Value: Medication prescribed Narrative
Slices for entry |  | 2..* | Reference(電子處方箋-藥物處方內容(Medication) | 電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料 Slice: Unordered, Open by profile:resolve()
entry:Medication |  | 1..* | Reference(電子處方箋-藥物處方內容(Medication)) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
entry:MedicationRequest |  | 1..* | Reference(電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Composition |  | 0..* | TWCoreComposition | 將一組resources組成一份連貫的臨床聲明，並附有臨床證明。
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的Composition紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此Composition Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述Composition Resource內容的語言 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | Composition Resource之內容摘要以供人閱讀 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | 內嵌的(contained)、行內的Resources
extension |  | 0..* | Extension | 擴充的資料項目
modifierExtension | ?! | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
identifier | S Σ | 0..1 | Identifier | 不分版本的臨床文件架構(Composition)識別碼。
status | ?!S Σ | 1..1 | code | registered | partial | preliminary | final | amended | corrected + Binding: CompositionStatus (required): Composition的工作流程/臨床狀態；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | Composition的種類（如果可能請使用LOINC） Binding: LOINC Code Document Type值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
category |  | 0..* | CodeableConceptTW | Composition的分類 Binding: LOINC Document Class值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
subject | S Σ | 1..1 | Reference(Group | Device | Substance | TW Core Location | 電子處方箋-病人基本資料) | Composition是關於誰和/或什麼
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | S Σ | 1..1 | Reference(電子處方箋-門診基本資料) | Composition的情境
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
date | S Σ | 1..1 | dateTime | Composition的編輯時間。[處方箋有效日期]。日期格式為西元 YYYYMMDD
author | S Σ | 1..* | Reference(電子處方箋-醫事人員基本資料 | 電子處方箋-病人基本資料 | 電子處方箋-醫事機構基本資料) | 誰和/或什麼創建了這個Composition
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
title | S Σ | 1..1 | string | 人類可讀的名稱/標題
confidentiality | Σ | 0..1 | code | 根據特定技術領域的定義 Binding: v3.ConfidentialityClassification (2014-03-26) (required): 應填入所綁定值集中的其中一個代碼。
attester | S | 0..* | BackboneElement | 證明Composition的準確性
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
mode |  | 1..1 | code | personal | professional | legal | official Binding: CompositionAttestationMode (required): 認證者提供的認證類型；應填入所綁定值集中的其中一個代碼。
time |  | 0..1 | dateTime | 此Composition被證明的時間
party |  | 0..1 | Reference(TW Core Patient | TW Core RelatedPerson | TW Core Practitioner | TW Core PractitionerRole | TW Core Organization) | 誰證明了此Composition
custodian | S Σ | 1..1 | Reference(電子處方箋-醫事機構基本資料) | 維護Composition的機構
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
relatesTo |  | 0..* | BackboneElement | 與其他Composition/文件之間的關係
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
code |  | 1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required): 檔案之間的關係型別；應填入所綁定值集中的其中一個代碼。
target[x] |  | 1..1 |  | 此關係的目標文件
targetIdentifier |  |  | Identifier |
targetReference |  |  | Reference(Composition) |
event | Σ | 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
code |  | 0..* | CodeableConceptTW | 此代碼表代表了正在被記錄的主要臨床行為 Binding: v3 Code System ActCode (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
period | Σ | 0..1 | Period | 文件所涵蓋的時間區間
detail | Σ | 0..* | Reference(Resource) | 在描述被記錄下來的事件，這些事件可以是以代碼的形式、參考資料的形式，或者兩者都有的形式來呈現。
Slices for section | S C | 3..* | BackboneElement | Composition被分成一個或數個小節 Slice: Unordered, Open by value:code.coding.code Constraints: cmp-1, cmp-2
section:All Slices |  |  |  | Content/Rules for all slices
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 0..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
entry | S C | 0..* | Reference(Resource) | 提供一個連結用於參照或查看支持此小節內容的資料
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
section:Coverage | S C | 1..* | BackboneElement | 就醫身分別 Constraints: cmp-1, cmp-2
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29762-2
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Social history Narrative
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 概念的文字表示法
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
entry | S C | 1..* | Reference(電子處方箋/調劑單張-就醫身分別) | 提供一個連結用於參照或查看支持此小節內容的資料
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
section:ObservationBodyWeight | S C | 0..1 | BackboneElement | 體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填。 Constraints: cmp-1, cmp-2
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 85353-1
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Vital signs, weight, height, head circumference, oxygen saturation and BMI panel
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 概念的文字表示法
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
entry | S C | 1..1 | Reference(電子處方箋-體重) | 提供一個連結用於參照或查看支持此小節內容的資料
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
section:Condition | S C | 1..* | BackboneElement | 診斷 Constraints: cmp-1, cmp-2
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29548-5
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Diagnosis Narrative
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 概念的文字表示法
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
entry | S C | 1..* | Reference(電子處方箋-診斷) | 提供一個連結用於參照或查看支持此小節內容的資料
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
section:MedicationPrescribed | S C | 1..* | BackboneElement | 處方內容 Constraints: cmp-1, cmp-2
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29551-9
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Medication prescribed Narrative
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 概念的文字表示法
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
Slices for entry | S C | 2..* | Reference(電子處方箋-藥物處方內容(Medication) | 電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料 Slice: Unordered, Open by profile:resolve()
entry:Medication | S C | 1..* | Reference(電子處方箋-藥物處方內容(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
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
entry:MedicationRequest | S C | 1..* | Reference(電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Composition.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
Composition.status | required | CompositionStatus `http://hl7.org/fhir/ValueSet/composition-status|4.0.1` From the FHIR Standard
Composition.type | extensible | LOINCDocumentType `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-type-doc-code`
Composition.category | extensible | LOINCDocumentClass `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-document-classcodes`
Composition.subject.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.encounter.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.author.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.confidentiality | required | v3.ConfidentialityClassification `http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26` From the FHIR Standard
Composition.attester.mode | required | CompositionAttestationMode `http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1` From the FHIR Standard
Composition.custodian.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.relatesTo.code | required | DocumentRelationshipType `http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1` From the FHIR Standard
Composition.event.code | example | ActCode `http://terminology.hl7.org/ValueSet/v3-ActCode`
Composition.section.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard
Composition.section:Coverage.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:Coverage.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section:Coverage.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section:Coverage.entry.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:Coverage.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard
Composition.section:ObservationBodyWeight.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:ObservationBodyWeight.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section:ObservationBodyWeight.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section:ObservationBodyWeight.entry.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:ObservationBodyWeight.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard
Composition.section:Condition.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:Condition.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section:Condition.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section:Condition.entry.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:Condition.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard
Composition.section:MedicationPrescribed.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:MedicationPrescribed.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section:MedicationPrescribed.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section:MedicationPrescribed.entry:Medication.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:MedicationPrescribed.entry:MedicationRequest.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:MedicationPrescribed.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
cmp-1 | error | Composition.section, Composition.section:Coverage, Composition.section:ObservationBodyWeight, Composition.section:Condition, Composition.section:MedicationPrescribed | A section must contain at least one of text, entries, or sub-sections : text.exists() or entry.exists() or section.exists() |
cmp-2 | error | Composition.section, Composition.section:Coverage, Composition.section:ObservationBodyWeight, Composition.section:Condition, Composition.section:MedicationPrescribed | A section can only have an emptyReason if it is empty : emptyReason.empty() or entry.empty() |
dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Composition | 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 | Composition | 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 | Composition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Composition | 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() |

This structure is derived from TWCoreComposition

Summary

Mandatory: 26 elements(6 nested mandatory elements)
Must-Support: 5 elements
Fixed: 12 elements

Structures

This structure refers to these other structures:

- TW Core Location (https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore)
- 電子處方箋-病人基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-EMPD)
- 電子處方箋-門診基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Encounter-EMPD)
- 電子處方箋-醫事人員基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-EMPD)
- 電子處方箋-醫事機構基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-EMPD)
- 電子處方箋/調劑單張-就醫身分別 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Coverage-EMR)
- 電子處方箋-體重 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Observation-EMPD-BodyWeight)
- 電子處方箋-診斷 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Condition-EMPD)
- 電子處方箋-藥物處方內容(Medication) (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD)
- 電子處方箋-處方內容(MedicationRequest) (https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD)

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the values of Composition.section
- The element 1 is sliced based on the values of Composition.section.entry

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Composition |  | 0..* | TWCoreComposition | 將一組resources組成一份連貫的臨床聲明，並附有臨床證明。
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
modifierExtension | ?! | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
identifier | S Σ | 0..1 | Identifier | 不分版本的臨床文件架構(Composition)識別碼。
status | ?!S Σ | 1..1 | code | registered | partial | preliminary | final | amended | corrected + Binding: CompositionStatus (required): Composition的工作流程/臨床狀態；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | Composition的種類（如果可能請使用LOINC） Binding: LOINC Code Document Type值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
subject | S Σ | 1..1 | Reference(Group | Device | Substance | TW Core Location | 電子處方箋-病人基本資料) | Composition是關於誰和/或什麼
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
encounter | S Σ | 1..1 | Reference(電子處方箋-門診基本資料) | Composition的情境
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
date | S Σ | 1..1 | dateTime | Composition的編輯時間。[處方箋有效日期]。日期格式為西元 YYYYMMDD
author | S Σ | 1..* | Reference(電子處方箋-醫事人員基本資料 | 電子處方箋-病人基本資料 | 電子處方箋-醫事機構基本資料) | 誰和/或什麼創建了這個Composition
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
title | S Σ | 1..1 | string | 人類可讀的名稱/標題
attester | S | 0..* | BackboneElement | 證明Composition的準確性
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
mode |  | 1..1 | code | personal | professional | legal | official Binding: CompositionAttestationMode (required): 認證者提供的認證類型；應填入所綁定值集中的其中一個代碼。
custodian | S Σ | 1..1 | Reference(電子處方箋-醫事機構基本資料) | 維護Composition的機構
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
Slices for section | S C | 3..* | BackboneElement | Composition被分成一個或數個小節 Slice: Unordered, Open by value:code.coding.code Constraints: cmp-1, cmp-2
section:All Slices |  |  |  | Content/Rules for all slices
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
entry | S C | 0..* | Reference(Resource) | 提供一個連結用於參照或查看支持此小節內容的資料
section:Coverage | S C | 1..* | BackboneElement | 就醫身分別 Constraints: cmp-1, cmp-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29762-2
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Social history Narrative
text | S Σ | 0..1 | string | 概念的文字表示法
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
entry | S C | 1..* | Reference(電子處方箋/調劑單張-就醫身分別) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:ObservationBodyWeight | S C | 0..1 | BackboneElement | 體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填。 Constraints: cmp-1, cmp-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 85353-1
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Vital signs, weight, height, head circumference, oxygen saturation and BMI panel
text | S Σ | 0..1 | string | 概念的文字表示法
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
entry | S C | 1..1 | Reference(電子處方箋-體重) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:Condition | S C | 1..* | BackboneElement | 診斷 Constraints: cmp-1, cmp-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29548-5
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Diagnosis Narrative
text | S Σ | 0..1 | string | 概念的文字表示法
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
entry | S C | 1..* | Reference(電子處方箋-診斷) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:MedicationPrescribed | S C | 1..* | BackboneElement | 處方內容 Constraints: cmp-1, cmp-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29551-9
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Medication prescribed Narrative
text | S Σ | 0..1 | string | 概念的文字表示法
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
Slices for entry | S C | 2..* | Reference(電子處方箋-藥物處方內容(Medication) | 電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料 Slice: Unordered, Open by profile:resolve()
entry:Medication | S C | 1..* | Reference(電子處方箋-藥物處方內容(Medication)) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
entry:MedicationRequest | S C | 1..* | Reference(電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Composition.status | required | CompositionStatus `http://hl7.org/fhir/ValueSet/composition-status|4.0.1` From the FHIR Standard
Composition.type | extensible | LOINCDocumentType `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-type-doc-code`
Composition.attester.mode | required | CompositionAttestationMode `http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1` From the FHIR Standard
Composition.section.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:Coverage.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:ObservationBodyWeight.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:Condition.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:MedicationPrescribed.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
cmp-1 | error | Composition.section, Composition.section:Coverage, Composition.section:ObservationBodyWeight, Composition.section:Condition, Composition.section:MedicationPrescribed | A section must contain at least one of text, entries, or sub-sections : text.exists() or entry.exists() or section.exists() |
cmp-2 | error | Composition.section, Composition.section:Coverage, Composition.section:ObservationBodyWeight, Composition.section:Condition, Composition.section:MedicationPrescribed | A section can only have an emptyReason if it is empty : emptyReason.empty() or entry.empty() |
dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Composition | 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 | Composition | 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 | Composition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Composition | 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() |

Differential View

This structure is derived from TWCoreComposition

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Composition |  |  | TWCoreComposition |
subject |  | 1..1 | Reference(Group | Device | Substance | TW Core Location | 電子處方箋-病人基本資料) | Composition是關於誰和/或什麼
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
encounter | S | 1..1 | Reference(電子處方箋-門診基本資料) | Composition的情境
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
date |  | 1..1 | dateTime | Composition的編輯時間。[處方箋有效日期]。日期格式為西元 YYYYMMDD
author |  | 1..* | Reference(電子處方箋-醫事人員基本資料 | 電子處方箋-病人基本資料 | 電子處方箋-醫事機構基本資料) | 誰和/或什麼創建了這個Composition
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
custodian |  | 1..1 | Reference(電子處方箋-醫事機構基本資料) | 維護Composition的機構
reference | S | 0..1 | string | Literal reference, Relative, internal or absolute URL
Slices for section |  | 3..* | BackboneElement | Composition被分成一個或數個小節 Slice: Unordered, Open by value:code.coding.code
section:Coverage |  | 1..* | BackboneElement | 就醫身分別
code |  | 1..1 | CodeableConceptTW | 小節分類(建議)
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code |  | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29762-2
display |  | 0..1 | string | 由系統定義的表示法 Fixed Value: Social history Narrative
entry |  | 1..* | Reference(電子處方箋/調劑單張-就醫身分別) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:ObservationBodyWeight |  | 0..1 | BackboneElement | 體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填。
code |  | 1..1 | CodeableConceptTW | 小節分類(建議)
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code |  | 1..1 | code | 系統定義的語法之符號 Fixed Value: 85353-1
display |  | 0..1 | string | 由系統定義的表示法 Fixed Value: Vital signs, weight, height, head circumference, oxygen saturation and BMI panel
entry |  | 1..1 | Reference(電子處方箋-體重) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:Condition |  | 1..* | BackboneElement | 診斷
code |  | 1..1 | CodeableConceptTW | 小節分類(建議)
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code |  | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29548-5
display |  | 0..1 | string | 由系統定義的表示法 Fixed Value: Diagnosis Narrative
entry |  | 1..* | Reference(電子處方箋-診斷) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
section:MedicationPrescribed |  | 1..* | BackboneElement | 處方內容
code |  | 1..1 | CodeableConceptTW | 小節分類(建議)
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
code |  | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29551-9
display |  | 0..1 | string | 由系統定義的表示法 Fixed Value: Medication prescribed Narrative
Slices for entry |  | 2..* | Reference(電子處方箋-藥物處方內容(Medication) | 電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料 Slice: Unordered, Open by profile:resolve()
entry:Medication |  | 1..* | Reference(電子處方箋-藥物處方內容(Medication)) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
entry:MedicationRequest |  | 1..* | Reference(電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料
reference |  | 1..1 | string | Literal reference, Relative, internal or absolute URL
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Composition |  | 0..* | TWCoreComposition | 將一組resources組成一份連貫的臨床聲明，並附有臨床證明。
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的Composition紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此Composition Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述Composition Resource內容的語言 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | Composition Resource之內容摘要以供人閱讀 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | 內嵌的(contained)、行內的Resources
extension |  | 0..* | Extension | 擴充的資料項目
modifierExtension | ?! | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
identifier | S Σ | 0..1 | Identifier | 不分版本的臨床文件架構(Composition)識別碼。
status | ?!S Σ | 1..1 | code | registered | partial | preliminary | final | amended | corrected + Binding: CompositionStatus (required): Composition的工作流程/臨床狀態；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | Composition的種類（如果可能請使用LOINC） Binding: LOINC Code Document Type值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
category |  | 0..* | CodeableConceptTW | Composition的分類 Binding: LOINC Document Class值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
subject | S Σ | 1..1 | Reference(Group | Device | Substance | TW Core Location | 電子處方箋-病人基本資料) | Composition是關於誰和/或什麼
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | S Σ | 1..1 | Reference(電子處方箋-門診基本資料) | Composition的情境
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
date | S Σ | 1..1 | dateTime | Composition的編輯時間。[處方箋有效日期]。日期格式為西元 YYYYMMDD
author | S Σ | 1..* | Reference(電子處方箋-醫事人員基本資料 | 電子處方箋-病人基本資料 | 電子處方箋-醫事機構基本資料) | 誰和/或什麼創建了這個Composition
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
title | S Σ | 1..1 | string | 人類可讀的名稱/標題
confidentiality | Σ | 0..1 | code | 根據特定技術領域的定義 Binding: v3.ConfidentialityClassification (2014-03-26) (required): 應填入所綁定值集中的其中一個代碼。
attester | S | 0..* | BackboneElement | 證明Composition的準確性
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
mode |  | 1..1 | code | personal | professional | legal | official Binding: CompositionAttestationMode (required): 認證者提供的認證類型；應填入所綁定值集中的其中一個代碼。
time |  | 0..1 | dateTime | 此Composition被證明的時間
party |  | 0..1 | Reference(TW Core Patient | TW Core RelatedPerson | TW Core Practitioner | TW Core PractitionerRole | TW Core Organization) | 誰證明了此Composition
custodian | S Σ | 1..1 | Reference(電子處方箋-醫事機構基本資料) | 維護Composition的機構
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
relatesTo |  | 0..* | BackboneElement | 與其他Composition/文件之間的關係
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
code |  | 1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required): 檔案之間的關係型別；應填入所綁定值集中的其中一個代碼。
target[x] |  | 1..1 |  | 此關係的目標文件
targetIdentifier |  |  | Identifier |
targetReference |  |  | Reference(Composition) |
event | Σ | 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
code |  | 0..* | CodeableConceptTW | 此代碼表代表了正在被記錄的主要臨床行為 Binding: v3 Code System ActCode (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
period | Σ | 0..1 | Period | 文件所涵蓋的時間區間
detail | Σ | 0..* | Reference(Resource) | 在描述被記錄下來的事件，這些事件可以是以代碼的形式、參考資料的形式，或者兩者都有的形式來呈現。
Slices for section | S C | 3..* | BackboneElement | Composition被分成一個或數個小節 Slice: Unordered, Open by value:code.coding.code Constraints: cmp-1, cmp-2
section:All Slices |  |  |  | Content/Rules for all slices
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 0..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
entry | S C | 0..* | Reference(Resource) | 提供一個連結用於參照或查看支持此小節內容的資料
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
section:Coverage | S C | 1..* | BackboneElement | 就醫身分別 Constraints: cmp-1, cmp-2
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29762-2
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Social history Narrative
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 概念的文字表示法
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
entry | S C | 1..* | Reference(電子處方箋/調劑單張-就醫身分別) | 提供一個連結用於參照或查看支持此小節內容的資料
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
section:ObservationBodyWeight | S C | 0..1 | BackboneElement | 體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填。 Constraints: cmp-1, cmp-2
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 85353-1
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Vital signs, weight, height, head circumference, oxygen saturation and BMI panel
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 概念的文字表示法
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
entry | S C | 1..1 | Reference(電子處方箋-體重) | 提供一個連結用於參照或查看支持此小節內容的資料
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
section:Condition | S C | 1..* | BackboneElement | 診斷 Constraints: cmp-1, cmp-2
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29548-5
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Diagnosis Narrative
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 概念的文字表示法
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
entry | S C | 1..* | Reference(電子處方箋-診斷) | 提供一個連結用於參照或查看支持此小節內容的資料
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
section:MedicationPrescribed | S C | 1..* | BackboneElement | 處方內容 Constraints: cmp-1, cmp-2
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
title |  | 0..1 | string | 小節標籤(例如：目錄ToC)
code | S | 1..1 | CodeableConceptTW | 小節分類(建議) Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 Fixed Value: http://loinc.org
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 系統定義的語法之符號 Fixed Value: 29551-9
display | S Σ | 0..1 | string | 由系統定義的表示法 Fixed Value: Medication prescribed Narrative
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 概念的文字表示法
author |  | 0..* | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) | 誰和/或什麼人撰寫了該小節
focus |  | 0..1 | Reference(Resource) | 當小節與composition描述的對象無關時，此小節是關於誰/什麼。
text | S C | 0..1 | Narrative | 將文件中特定小節的內容簡化成容易理解的文字形式，便於人類閱讀和解釋。 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
mode |  | 0..1 | code | 適用於此小節的處理模式 Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。
orderedBy |  | 0..1 | CodeableConceptTW | 小節條目的順序 Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
Slices for entry | S C | 2..* | Reference(電子處方箋-藥物處方內容(Medication) | 電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料 Slice: Unordered, Open by profile:resolve()
entry:Medication | S C | 1..* | Reference(電子處方箋-藥物處方內容(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
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
entry:MedicationRequest | S C | 1..* | Reference(電子處方箋-處方內容(MedicationRequest)) | 提供一個連結用於參照或查看支持此小節內容的資料
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
emptyReason |  | 0..1 | CodeableConceptTW | 為什麼此小節是空的原因 Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
section | C | 0..* | See section (Composition) | 嵌套的小節
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Composition.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
Composition.status | required | CompositionStatus `http://hl7.org/fhir/ValueSet/composition-status|4.0.1` From the FHIR Standard
Composition.type | extensible | LOINCDocumentType `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-type-doc-code`
Composition.category | extensible | LOINCDocumentClass `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-document-classcodes`
Composition.subject.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.encounter.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.author.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.confidentiality | required | v3.ConfidentialityClassification `http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26` From the FHIR Standard
Composition.attester.mode | required | CompositionAttestationMode `http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1` From the FHIR Standard
Composition.custodian.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.relatesTo.code | required | DocumentRelationshipType `http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1` From the FHIR Standard
Composition.event.code | example | ActCode `http://terminology.hl7.org/ValueSet/v3-ActCode`
Composition.section.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard
Composition.section:Coverage.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:Coverage.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section:Coverage.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section:Coverage.entry.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:Coverage.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard
Composition.section:ObservationBodyWeight.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:ObservationBodyWeight.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section:ObservationBodyWeight.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section:ObservationBodyWeight.entry.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:ObservationBodyWeight.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard
Composition.section:Condition.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:Condition.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section:Condition.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section:Condition.entry.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:Condition.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard
Composition.section:MedicationPrescribed.code | extensible | LOINCDocumentSection `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code`
Composition.section:MedicationPrescribed.mode | required | ListMode `http://hl7.org/fhir/ValueSet/list-mode|4.0.1` From the FHIR Standard
Composition.section:MedicationPrescribed.orderedBy | preferred | ListOrderCodes `http://hl7.org/fhir/ValueSet/list-order` From the FHIR Standard
Composition.section:MedicationPrescribed.entry:Medication.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:MedicationPrescribed.entry:MedicationRequest.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types|4.0.1` From the FHIR Standard
Composition.section:MedicationPrescribed.emptyReason | preferred | ListEmptyReasons `http://hl7.org/fhir/ValueSet/list-empty-reason` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
cmp-1 | error | Composition.section, Composition.section:Coverage, Composition.section:ObservationBodyWeight, Composition.section:Condition, Composition.section:MedicationPrescribed | A section must contain at least one of text, entries, or sub-sections : text.exists() or entry.exists() or section.exists() |
cmp-2 | error | Composition.section, Composition.section:Coverage, Composition.section:ObservationBodyWeight, Composition.section:Condition, Composition.section:MedicationPrescribed | A section can only have an emptyReason if it is empty : emptyReason.empty() or entry.empty() |
dom-2 | error | Composition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Composition | 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 | Composition | 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 | Composition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Composition | 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() |

This structure is derived from TWCoreComposition

Summary

Mandatory: 26 elements(6 nested mandatory elements)
Must-Support: 5 elements
Fixed: 12 elements

Structures

This structure refers to these other structures:

- TW Core Location (https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore)
- 電子處方箋-病人基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-EMPD)
- 電子處方箋-門診基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Encounter-EMPD)
- 電子處方箋-醫事人員基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-EMPD)
- 電子處方箋-醫事機構基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-EMPD)
- 電子處方箋/調劑單張-就醫身分別 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Coverage-EMR)
- 電子處方箋-體重 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Observation-EMPD-BodyWeight)
- 電子處方箋-診斷 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Condition-EMPD)
- 電子處方箋-藥物處方內容(Medication) (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD)
- 電子處方箋-處方內容(MedicationRequest) (https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD)

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the values of Composition.section
- The element 1 is sliced based on the values of Composition.section.entry

Other representations of profile: CSV, Excel, Schematron