NGS IG
0.1.0 - ci-build

NGS IG - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: 基因定序檢測證明文件-Composition TWNGS

Official URL: https://www.ghd.tw/cdm-fhir/StructureDefinition/Composition-twngs Version: 0.1.0
Draft as of 2025-01-13 Computable Name: CompositionTWNGS

此基因定序檢測證明文件-Composition TWNGSS Profile說明本IG如何進一步定義FHIR的Condition Resource以呈現健保次世代基因定序檢測報告之證明文件

Usage:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition 0..* TWCoreComposition 將一組resources組成一份連貫的臨床聲明,並附有臨床證明。
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: 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
dom-6: A resource should have narrative for robust management
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
ele-1: All FHIR elements must have a @value or children
... modifierExtension ?!N 0..* Extension 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... identifier SΣN 0..1 Identifier 不分版本的臨床文件架構(Composition)識別碼。
ele-1: All FHIR elements must have a @value or children
... type SΣN 1..1 CodeableConceptTW 申報類別
Binding: NHI-申報類別值集 (required): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
.... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
..... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
..... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
..... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
.... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
... category SΣN 1..* CodeableConceptTW 案件分類
Binding: NHI-案件分類 (required): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
.... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
..... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
..... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
..... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
.... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
... subject SΣCN 1..1 Reference(TW Core Patient | Group | Device | Substance | TW Core Location) Composition是關於誰和/或什麼
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
... date SΣ 1..1 dateTime 申報日期
ele-1: All FHIR elements must have a @value or children
... author SΣCN 1..* Reference(醫事機構-Organization TWNGS) 誰和/或什麼創建了這個Composition
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
... title SΣ 1..1 string 人類可讀的名稱/標題
ele-1: All FHIR elements must have a @value or children
Required Pattern: 次世代基因定序檢測報告證明文件
... attester SN 0..* BackboneElement 證明Composition的準確性
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... mode 1..1 code personal | professional | legal | official
Binding: CompositionAttestationMode (required): 認證者提供的認證類型;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
... custodian SΣCN 0..1 Reference(TW Core Organization) 維護Composition的機構
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
... event ΣN 0..* BackboneElement 正在記錄的臨床服務
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... code ΣN 0..* CodeableConceptTW 此代碼表代表了正在被記錄的主要臨床行為
Binding: v3 Code System ActCode (example): 可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。


ele-1: All FHIR elements must have a @value or children
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
...... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
...... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
... section SCN 1..* BackboneElement Composition被分成一個或數個小節
ele-1: All FHIR elements must have a @value or children
cmp-1: A section must contain at least one of text, entries, or sub-sections
cmp-2: A section can only have an emptyReason if it is empty
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... code SN 0..1 CodeableConceptTW 小節分類(建議)
Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
...... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
...... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
.... text SCN 0..1 Narrative 將文件中特定小節的內容簡化成容易理解的文字形式,便於人類閱讀和解釋。
ele-1: All FHIR elements must have a @value or children
.... orderedBy N 0..1 CodeableConceptTW 小節條目的順序
Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。


ele-1: All FHIR elements must have a @value or children
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
...... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
...... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
.... Slices for entry SCN 3..* Reference(Resource) 提供一個連結用於參照或查看支持此小節內容的資料
Slice: Unordered, Open by profile:$this.resolve()
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:diagnosticReport SCN 1..1 Reference(基因定序檢測報告-DiagnosticReport TWNGS) 基因定序檢測報告-DiagnosticReport TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:condition SCN 1..1 Reference(基因定序檢測報告之疾病資訊-Condition TWNGS) 基因定序檢測報告之疾病資訊-Condition TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:gene-organization SCN 1..1 Reference(基因檢測機構-Organization Gene TWNGS) 基因檢測機構-Organization Gene TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:specimen SCN 0..* Reference(基因檢測檢體-Specimen TWNGS) 基因檢測檢體-Specimen TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:device SCN 0..* Reference(基因定序檢測裝置-Device TWNGS) 基因定序檢測裝置-Device TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:documentReference SCN 0..* Reference(基因報告-DocumentReference TWNGS) 基因報告-DocumentReference TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:observation SCN 0..* Reference(基因資訊-Observation TWNGS) 基因資訊-Observation TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:serviceRequest SCN 0..* Reference(基因定序檢測申請項目-ServiceRequest TWNGS) 基因定序檢測申請項目-ServiceRequest TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
.... emptyReason CN 0..1 CodeableConceptTW 為什麼此小節是空的原因
Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。


ele-1: All FHIR elements must have a @value or children
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
...... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
...... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|4.0.1
from the FHIR Standard
Composition.typerequiredNHIApplyType (a valid code from NHI-申報類別)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-apply-type
from this IG
Composition.categoryrequiredNHICaseClassification (a valid code from NHI-案件分類)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-case-classification
from this IG
Composition.attester.moderequiredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
from the FHIR Standard
Composition.event.codeexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.section.codeextensibleLOINCDocumentSection
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ref-1errorComposition.subject, Composition.author, Composition.custodian, Composition.section.entry, Composition.section.entry:diagnosticReport, Composition.section.entry:condition, Composition.section.entry:gene-organization, Composition.section.entry:specimen, Composition.section.entry:device, Composition.section.entry:documentReference, Composition.section.entry:observation, Composition.section.entry:serviceRequestSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

This structure is derived from TWCoreComposition

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition TWCoreComposition
... type 申報類別
Binding: NHI-申報類別值集 (required)
... category S 1.. 案件分類
Binding: NHI-案件分類 (required)
... subject 1..
... author Reference(醫事機構-Organization TWNGS)
... title Required Pattern: 次世代基因定序檢測報告證明文件
... section 1..
.... Slices for entry 3.. Slice: Unordered, Open by profile:$this.resolve()
..... entry:diagnosticReport 1..1 Reference(基因定序檢測報告-DiagnosticReport TWNGS) 基因定序檢測報告-DiagnosticReport TWNGS
..... entry:condition 1..1 Reference(基因定序檢測報告之疾病資訊-Condition TWNGS) 基因定序檢測報告之疾病資訊-Condition TWNGS
..... entry:gene-organization 1..1 Reference(基因檢測機構-Organization Gene TWNGS) 基因檢測機構-Organization Gene TWNGS
..... entry:specimen Reference(基因檢測檢體-Specimen TWNGS) 基因檢測檢體-Specimen TWNGS
..... entry:device Reference(基因定序檢測裝置-Device TWNGS) 基因定序檢測裝置-Device TWNGS
..... entry:documentReference Reference(基因報告-DocumentReference TWNGS) 基因報告-DocumentReference TWNGS
..... entry:observation Reference(基因資訊-Observation TWNGS) 基因資訊-Observation TWNGS
..... entry:serviceRequest Reference(基因定序檢測申請項目-ServiceRequest TWNGS) 基因定序檢測申請項目-ServiceRequest TWNGS

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Composition.typerequiredNHIApplyType (a valid code from NHI-申報類別)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-apply-type
from this IG
Composition.categoryrequiredNHICaseClassification (a valid code from NHI-案件分類)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-case-classification
from this IG
NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition 0..* TWCoreComposition 將一組resources組成一份連貫的臨床聲明,並附有臨床證明。
... id Σ 0..1 string 不重複的ID用以識別儲存在特定FHIR Server中的Composition紀錄,通常又稱為邏輯性ID。
... meta ΣN 0..1 Meta 此Composition Resource的metadata
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
... text N 0..1 Narrative Composition Resource之內容摘要以供人閱讀
... contained 0..* Resource 內嵌的(contained)、行內的Resources
... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
... modifierExtension ?!N 0..* Extension 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。
Slice: Unordered, Open by value:url
... identifier SΣN 0..1 Identifier 不分版本的臨床文件架構(Composition)識別碼。
... status ?!SΣ 1..1 code registered | partial | preliminary | final | amended | corrected +
Binding: CompositionStatus (required): Composition的工作流程/臨床狀態;應填入所綁定值集中的其中一個代碼。

... type SΣN 1..1 CodeableConceptTW 申報類別
Binding: NHI-申報類別值集 (required): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。

.... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
.... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
.... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
..... version Σ 0..1 string 系統的版本—如果相關的話
..... code SΣ 0..1 code 系統定義的語法之符號
..... display SΣ 0..1 string 由系統定義的表示法
..... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
.... text SΣ 0..1 string 概念的文字表示法
... category SΣN 1..* CodeableConceptTW 案件分類
Binding: NHI-案件分類 (required): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


.... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
.... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
.... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
..... version Σ 0..1 string 系統的版本—如果相關的話
..... code SΣ 0..1 code 系統定義的語法之符號
..... display SΣ 0..1 string 由系統定義的表示法
..... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
.... text SΣ 0..1 string 概念的文字表示法
... subject SΣCN 1..1 Reference(TW Core Patient | Group | Device | Substance | TW Core Location) Composition是關於誰和/或什麼
ref-1: SHALL have a contained resource if a local reference is provided
... encounter ΣCN 0..1 Reference(TW Core Encounter) Composition的情境
ref-1: SHALL have a contained resource if a local reference is provided
... date SΣ 1..1 dateTime 申報日期
... author SΣCN 1..* Reference(醫事機構-Organization TWNGS) 誰和/或什麼創建了這個Composition
ref-1: SHALL have a contained resource if a local reference is provided
... title SΣ 1..1 string 人類可讀的名稱/標題
Required Pattern: 次世代基因定序檢測報告證明文件
... confidentiality Σ 0..1 code 根據特定技術領域的定義
Binding: v3.ConfidentialityClassification (2014-03-26) (required): 應填入所綁定值集中的其中一個代碼。

... attester SN 0..* BackboneElement 證明Composition的準確性
.... id 0..1 string Unique id for inter-element referencing
.... extension N 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN 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 CN 0..1 Reference(TW Core Patient | TW Core RelatedPerson | TW Core Practitioner | TW Core PractitionerRole | TW Core Organization) 誰證明了此Composition
ref-1: SHALL have a contained resource if a local reference is provided
... custodian SΣCN 0..1 Reference(TW Core Organization) 維護Composition的機構
ref-1: SHALL have a contained resource if a local reference is provided
... relatesTo N 0..* BackboneElement 與其他Composition/文件之間的關係
.... id 0..1 string Unique id for inter-element referencing
.... extension N 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code 1..1 code replaces | transforms | signs | appends
Binding: DocumentRelationshipType (required): 檔案之間的關係型別;應填入所綁定值集中的其中一個代碼。

.... target[x] N 1..1 此關係的目標文件
..... targetIdentifier Identifier
..... targetReference Reference(Composition)
... event ΣN 0..* BackboneElement 正在記錄的臨床服務
.... id 0..1 string Unique id for inter-element referencing
.... extension N 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code ΣN 0..* CodeableConceptTW 此代碼表代表了正在被記錄的主要臨床行為
Binding: v3 Code System ActCode (example): 可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。


..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
...... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
...... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
...... version Σ 0..1 string 系統的版本—如果相關的話
...... code SΣ 0..1 code 系統定義的語法之符號
...... display SΣ 0..1 string 由系統定義的表示法
...... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
..... text SΣ 0..1 string 概念的文字表示法
.... period ΣCN 0..1 Period 文件所涵蓋的時間區間
per-1: If present, start SHALL have a lower value than end
.... detail ΣCN 0..* Reference(Resource) 在描述被記錄下來的事件,這些事件可以是以代碼的形式、參考資料的形式,或者兩者都有的形式來呈現。
ref-1: SHALL have a contained resource if a local reference is provided
... section SCN 1..* BackboneElement Composition被分成一個或數個小節
cmp-1: A section must contain at least one of text, entries, or sub-sections
cmp-2: A section can only have an emptyReason if it is empty
.... id 0..1 string Unique id for inter-element referencing
.... extension N 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
.... title 0..1 string 小節標籤(例如:目錄ToC)
.... code SN 0..1 CodeableConceptTW 小節分類(建議)
Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。

..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
...... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
...... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
...... version Σ 0..1 string 系統的版本—如果相關的話
...... code SΣ 0..1 code 系統定義的語法之符號
...... display SΣ 0..1 string 由系統定義的表示法
...... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
..... text SΣ 0..1 string 概念的文字表示法
.... author CN 0..* Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) 誰和/或什麼人撰寫了該小節
ref-1: SHALL have a contained resource if a local reference is provided
.... focus CN 0..1 Reference(Resource) 當小節與composition描述的對象無關時,此小節是關於誰/什麼。
ref-1: SHALL have a contained resource if a local reference is provided
.... text SCN 0..1 Narrative 將文件中特定小節的內容簡化成容易理解的文字形式,便於人類閱讀和解釋。
.... mode 0..1 code 適用於此小節的處理模式
Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。

.... orderedBy N 0..1 CodeableConceptTW 小節條目的順序
Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。

..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
...... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
...... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
...... version Σ 0..1 string 系統的版本—如果相關的話
...... code SΣ 0..1 code 系統定義的語法之符號
...... display SΣ 0..1 string 由系統定義的表示法
...... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
..... text SΣ 0..1 string 概念的文字表示法
.... Slices for entry SCN 3..* Reference(Resource) 提供一個連結用於參照或查看支持此小節內容的資料
Slice: Unordered, Open by profile:$this.resolve()
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:diagnosticReport SCN 1..1 Reference(基因定序檢測報告-DiagnosticReport TWNGS) 基因定序檢測報告-DiagnosticReport TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:condition SCN 1..1 Reference(基因定序檢測報告之疾病資訊-Condition TWNGS) 基因定序檢測報告之疾病資訊-Condition TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:gene-organization SCN 1..1 Reference(基因檢測機構-Organization Gene TWNGS) 基因檢測機構-Organization Gene TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:specimen SCN 0..* Reference(基因檢測檢體-Specimen TWNGS) 基因檢測檢體-Specimen TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:device SCN 0..* Reference(基因定序檢測裝置-Device TWNGS) 基因定序檢測裝置-Device TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:documentReference SCN 0..* Reference(基因報告-DocumentReference TWNGS) 基因報告-DocumentReference TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:observation SCN 0..* Reference(基因資訊-Observation TWNGS) 基因資訊-Observation TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:serviceRequest SCN 0..* Reference(基因定序檢測申請項目-ServiceRequest TWNGS) 基因定序檢測申請項目-ServiceRequest TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
.... emptyReason CN 0..1 CodeableConceptTW 為什麼此小節是空的原因
Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。

..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
...... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
...... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
...... version Σ 0..1 string 系統的版本—如果相關的話
...... code SΣ 0..1 code 系統定義的語法之符號
...... display SΣ 0..1 string 由系統定義的表示法
...... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
..... text SΣ 0..1 string 概念的文字表示法
.... section C 0..* See section (Composition) 嵌套的小節

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Composition.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|4.0.1
from the FHIR Standard
Composition.typerequiredNHIApplyType (a valid code from NHI-申報類別)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-apply-type
from this IG
Composition.categoryrequiredNHICaseClassification (a valid code from NHI-案件分類)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-case-classification
from this IG
Composition.confidentialityrequiredv3.ConfidentialityClassification
http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26
from the FHIR Standard
Composition.attester.moderequiredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
from the FHIR Standard
Composition.relatesTo.coderequiredDocumentRelationshipType
http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1
from the FHIR Standard
Composition.event.codeexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.section.codeextensibleLOINCDocumentSection
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code
Composition.section.moderequiredListMode
http://hl7.org/fhir/ValueSet/list-mode|4.0.1
from the FHIR Standard
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
per-1errorComposition.event.periodIf present, start SHALL have a lower value than end
: start.hasValue().not() or end.hasValue().not() or (start <= end)
ref-1errorComposition.subject, Composition.encounter, Composition.author, Composition.attester.party, Composition.custodian, Composition.event.detail, Composition.section.author, Composition.section.focus, Composition.section.entry, Composition.section.entry:diagnosticReport, Composition.section.entry:condition, Composition.section.entry:gene-organization, Composition.section.entry:specimen, Composition.section.entry:device, Composition.section.entry:documentReference, Composition.section.entry:observation, Composition.section.entry:serviceRequestSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition 0..* TWCoreComposition 將一組resources組成一份連貫的臨床聲明,並附有臨床證明。
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: 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
dom-6: A resource should have narrative for robust management
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
ele-1: All FHIR elements must have a @value or children
... modifierExtension ?!N 0..* Extension 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... identifier SΣN 0..1 Identifier 不分版本的臨床文件架構(Composition)識別碼。
ele-1: All FHIR elements must have a @value or children
... type SΣN 1..1 CodeableConceptTW 申報類別
Binding: NHI-申報類別值集 (required): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
.... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
..... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
..... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
..... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
.... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
... category SΣN 1..* CodeableConceptTW 案件分類
Binding: NHI-案件分類 (required): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
.... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
..... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
..... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
..... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
.... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
... subject SΣCN 1..1 Reference(TW Core Patient | Group | Device | Substance | TW Core Location) Composition是關於誰和/或什麼
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
... date SΣ 1..1 dateTime 申報日期
ele-1: All FHIR elements must have a @value or children
... author SΣCN 1..* Reference(醫事機構-Organization TWNGS) 誰和/或什麼創建了這個Composition
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
... title SΣ 1..1 string 人類可讀的名稱/標題
ele-1: All FHIR elements must have a @value or children
Required Pattern: 次世代基因定序檢測報告證明文件
... attester SN 0..* BackboneElement 證明Composition的準確性
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... mode 1..1 code personal | professional | legal | official
Binding: CompositionAttestationMode (required): 認證者提供的認證類型;應填入所綁定值集中的其中一個代碼。


ele-1: All FHIR elements must have a @value or children
... custodian SΣCN 0..1 Reference(TW Core Organization) 維護Composition的機構
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
... event ΣN 0..* BackboneElement 正在記錄的臨床服務
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... code ΣN 0..* CodeableConceptTW 此代碼表代表了正在被記錄的主要臨床行為
Binding: v3 Code System ActCode (example): 可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。


ele-1: All FHIR elements must have a @value or children
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
...... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
...... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
... section SCN 1..* BackboneElement Composition被分成一個或數個小節
ele-1: All FHIR elements must have a @value or children
cmp-1: A section must contain at least one of text, entries, or sub-sections
cmp-2: A section can only have an emptyReason if it is empty
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... code SN 0..1 CodeableConceptTW 小節分類(建議)
Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


ele-1: All FHIR elements must have a @value or children
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
...... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
...... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
.... text SCN 0..1 Narrative 將文件中特定小節的內容簡化成容易理解的文字形式,便於人類閱讀和解釋。
ele-1: All FHIR elements must have a @value or children
.... orderedBy N 0..1 CodeableConceptTW 小節條目的順序
Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。


ele-1: All FHIR elements must have a @value or children
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
...... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
...... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children
.... Slices for entry SCN 3..* Reference(Resource) 提供一個連結用於參照或查看支持此小節內容的資料
Slice: Unordered, Open by profile:$this.resolve()
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:diagnosticReport SCN 1..1 Reference(基因定序檢測報告-DiagnosticReport TWNGS) 基因定序檢測報告-DiagnosticReport TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:condition SCN 1..1 Reference(基因定序檢測報告之疾病資訊-Condition TWNGS) 基因定序檢測報告之疾病資訊-Condition TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:gene-organization SCN 1..1 Reference(基因檢測機構-Organization Gene TWNGS) 基因檢測機構-Organization Gene TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:specimen SCN 0..* Reference(基因檢測檢體-Specimen TWNGS) 基因檢測檢體-Specimen TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:device SCN 0..* Reference(基因定序檢測裝置-Device TWNGS) 基因定序檢測裝置-Device TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:documentReference SCN 0..* Reference(基因報告-DocumentReference TWNGS) 基因報告-DocumentReference TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:observation SCN 0..* Reference(基因資訊-Observation TWNGS) 基因資訊-Observation TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:serviceRequest SCN 0..* Reference(基因定序檢測申請項目-ServiceRequest TWNGS) 基因定序檢測申請項目-ServiceRequest TWNGS
ele-1: All FHIR elements must have a @value or children
ref-1: SHALL have a contained resource if a local reference is provided
.... emptyReason CN 0..1 CodeableConceptTW 為什麼此小節是空的原因
Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。


ele-1: All FHIR elements must have a @value or children
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
ele-1: All FHIR elements must have a @value or children
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
ele-1: All FHIR elements must have a @value or children
...... code SΣ 0..1 code 系統定義的語法之符號
ele-1: All FHIR elements must have a @value or children
...... display SΣ 0..1 string 由系統定義的表示法
ele-1: All FHIR elements must have a @value or children
..... text SΣ 0..1 string 概念的文字表示法
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|4.0.1
from the FHIR Standard
Composition.typerequiredNHIApplyType (a valid code from NHI-申報類別)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-apply-type
from this IG
Composition.categoryrequiredNHICaseClassification (a valid code from NHI-案件分類)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-case-classification
from this IG
Composition.attester.moderequiredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
from the FHIR Standard
Composition.event.codeexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.section.codeextensibleLOINCDocumentSection
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ref-1errorComposition.subject, Composition.author, Composition.custodian, Composition.section.entry, Composition.section.entry:diagnosticReport, Composition.section.entry:condition, Composition.section.entry:gene-organization, Composition.section.entry:specimen, Composition.section.entry:device, Composition.section.entry:documentReference, Composition.section.entry:observation, Composition.section.entry:serviceRequestSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

Differential View

This structure is derived from TWCoreComposition

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition TWCoreComposition
... type 申報類別
Binding: NHI-申報類別值集 (required)
... category S 1.. 案件分類
Binding: NHI-案件分類 (required)
... subject 1..
... author Reference(醫事機構-Organization TWNGS)
... title Required Pattern: 次世代基因定序檢測報告證明文件
... section 1..
.... Slices for entry 3.. Slice: Unordered, Open by profile:$this.resolve()
..... entry:diagnosticReport 1..1 Reference(基因定序檢測報告-DiagnosticReport TWNGS) 基因定序檢測報告-DiagnosticReport TWNGS
..... entry:condition 1..1 Reference(基因定序檢測報告之疾病資訊-Condition TWNGS) 基因定序檢測報告之疾病資訊-Condition TWNGS
..... entry:gene-organization 1..1 Reference(基因檢測機構-Organization Gene TWNGS) 基因檢測機構-Organization Gene TWNGS
..... entry:specimen Reference(基因檢測檢體-Specimen TWNGS) 基因檢測檢體-Specimen TWNGS
..... entry:device Reference(基因定序檢測裝置-Device TWNGS) 基因定序檢測裝置-Device TWNGS
..... entry:documentReference Reference(基因報告-DocumentReference TWNGS) 基因報告-DocumentReference TWNGS
..... entry:observation Reference(基因資訊-Observation TWNGS) 基因資訊-Observation TWNGS
..... entry:serviceRequest Reference(基因定序檢測申請項目-ServiceRequest TWNGS) 基因定序檢測申請項目-ServiceRequest TWNGS

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Composition.typerequiredNHIApplyType (a valid code from NHI-申報類別)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-apply-type
from this IG
Composition.categoryrequiredNHICaseClassification (a valid code from NHI-案件分類)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-case-classification
from this IG

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition 0..* TWCoreComposition 將一組resources組成一份連貫的臨床聲明,並附有臨床證明。
... id Σ 0..1 string 不重複的ID用以識別儲存在特定FHIR Server中的Composition紀錄,通常又稱為邏輯性ID。
... meta ΣN 0..1 Meta 此Composition Resource的metadata
... implicitRules ?!Σ 0..1 uri 創建此內容所依據的一組規則
... text N 0..1 Narrative Composition Resource之內容摘要以供人閱讀
... contained 0..* Resource 內嵌的(contained)、行內的Resources
... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
... modifierExtension ?!N 0..* Extension 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。
Slice: Unordered, Open by value:url
... identifier SΣN 0..1 Identifier 不分版本的臨床文件架構(Composition)識別碼。
... status ?!SΣ 1..1 code registered | partial | preliminary | final | amended | corrected +
Binding: CompositionStatus (required): Composition的工作流程/臨床狀態;應填入所綁定值集中的其中一個代碼。

... type SΣN 1..1 CodeableConceptTW 申報類別
Binding: NHI-申報類別值集 (required): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。

.... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
.... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
.... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
..... version Σ 0..1 string 系統的版本—如果相關的話
..... code SΣ 0..1 code 系統定義的語法之符號
..... display SΣ 0..1 string 由系統定義的表示法
..... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
.... text SΣ 0..1 string 概念的文字表示法
... category SΣN 1..* CodeableConceptTW 案件分類
Binding: NHI-案件分類 (required): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。


.... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
.... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
.... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
..... version Σ 0..1 string 系統的版本—如果相關的話
..... code SΣ 0..1 code 系統定義的語法之符號
..... display SΣ 0..1 string 由系統定義的表示法
..... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
.... text SΣ 0..1 string 概念的文字表示法
... subject SΣCN 1..1 Reference(TW Core Patient | Group | Device | Substance | TW Core Location) Composition是關於誰和/或什麼
ref-1: SHALL have a contained resource if a local reference is provided
... encounter ΣCN 0..1 Reference(TW Core Encounter) Composition的情境
ref-1: SHALL have a contained resource if a local reference is provided
... date SΣ 1..1 dateTime 申報日期
... author SΣCN 1..* Reference(醫事機構-Organization TWNGS) 誰和/或什麼創建了這個Composition
ref-1: SHALL have a contained resource if a local reference is provided
... title SΣ 1..1 string 人類可讀的名稱/標題
Required Pattern: 次世代基因定序檢測報告證明文件
... confidentiality Σ 0..1 code 根據特定技術領域的定義
Binding: v3.ConfidentialityClassification (2014-03-26) (required): 應填入所綁定值集中的其中一個代碼。

... attester SN 0..* BackboneElement 證明Composition的準確性
.... id 0..1 string Unique id for inter-element referencing
.... extension N 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN 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 CN 0..1 Reference(TW Core Patient | TW Core RelatedPerson | TW Core Practitioner | TW Core PractitionerRole | TW Core Organization) 誰證明了此Composition
ref-1: SHALL have a contained resource if a local reference is provided
... custodian SΣCN 0..1 Reference(TW Core Organization) 維護Composition的機構
ref-1: SHALL have a contained resource if a local reference is provided
... relatesTo N 0..* BackboneElement 與其他Composition/文件之間的關係
.... id 0..1 string Unique id for inter-element referencing
.... extension N 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code 1..1 code replaces | transforms | signs | appends
Binding: DocumentRelationshipType (required): 檔案之間的關係型別;應填入所綁定值集中的其中一個代碼。

.... target[x] N 1..1 此關係的目標文件
..... targetIdentifier Identifier
..... targetReference Reference(Composition)
... event ΣN 0..* BackboneElement 正在記錄的臨床服務
.... id 0..1 string Unique id for inter-element referencing
.... extension N 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code ΣN 0..* CodeableConceptTW 此代碼表代表了正在被記錄的主要臨床行為
Binding: v3 Code System ActCode (example): 可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。


..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
...... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
...... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
...... version Σ 0..1 string 系統的版本—如果相關的話
...... code SΣ 0..1 code 系統定義的語法之符號
...... display SΣ 0..1 string 由系統定義的表示法
...... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
..... text SΣ 0..1 string 概念的文字表示法
.... period ΣCN 0..1 Period 文件所涵蓋的時間區間
per-1: If present, start SHALL have a lower value than end
.... detail ΣCN 0..* Reference(Resource) 在描述被記錄下來的事件,這些事件可以是以代碼的形式、參考資料的形式,或者兩者都有的形式來呈現。
ref-1: SHALL have a contained resource if a local reference is provided
... section SCN 1..* BackboneElement Composition被分成一個或數個小節
cmp-1: A section must contain at least one of text, entries, or sub-sections
cmp-2: A section can only have an emptyReason if it is empty
.... id 0..1 string Unique id for inter-element referencing
.... extension N 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN 0..* Extension Extensions that cannot be ignored even if unrecognized
.... title 0..1 string 小節標籤(例如:目錄ToC)
.... code SN 0..1 CodeableConceptTW 小節分類(建議)
Binding: LOINC Code Document Section值集 (extensible): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。

..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
...... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
...... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
...... version Σ 0..1 string 系統的版本—如果相關的話
...... code SΣ 0..1 code 系統定義的語法之符號
...... display SΣ 0..1 string 由系統定義的表示法
...... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
..... text SΣ 0..1 string 概念的文字表示法
.... author CN 0..* Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core Patient | Device | TW Core RelatedPerson) 誰和/或什麼人撰寫了該小節
ref-1: SHALL have a contained resource if a local reference is provided
.... focus CN 0..1 Reference(Resource) 當小節與composition描述的對象無關時,此小節是關於誰/什麼。
ref-1: SHALL have a contained resource if a local reference is provided
.... text SCN 0..1 Narrative 將文件中特定小節的內容簡化成容易理解的文字形式,便於人類閱讀和解釋。
.... mode 0..1 code 適用於此小節的處理模式
Binding: ListMode (required): 應填入所綁定值集中的其中一個代碼。

.... orderedBy N 0..1 CodeableConceptTW 小節條目的順序
Binding: ListOrderCodes (preferred): 鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。

..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
...... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
...... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
...... version Σ 0..1 string 系統的版本—如果相關的話
...... code SΣ 0..1 code 系統定義的語法之符號
...... display SΣ 0..1 string 由系統定義的表示法
...... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
..... text SΣ 0..1 string 概念的文字表示法
.... Slices for entry SCN 3..* Reference(Resource) 提供一個連結用於參照或查看支持此小節內容的資料
Slice: Unordered, Open by profile:$this.resolve()
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:diagnosticReport SCN 1..1 Reference(基因定序檢測報告-DiagnosticReport TWNGS) 基因定序檢測報告-DiagnosticReport TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:condition SCN 1..1 Reference(基因定序檢測報告之疾病資訊-Condition TWNGS) 基因定序檢測報告之疾病資訊-Condition TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:gene-organization SCN 1..1 Reference(基因檢測機構-Organization Gene TWNGS) 基因檢測機構-Organization Gene TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:specimen SCN 0..* Reference(基因檢測檢體-Specimen TWNGS) 基因檢測檢體-Specimen TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:device SCN 0..* Reference(基因定序檢測裝置-Device TWNGS) 基因定序檢測裝置-Device TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:documentReference SCN 0..* Reference(基因報告-DocumentReference TWNGS) 基因報告-DocumentReference TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:observation SCN 0..* Reference(基因資訊-Observation TWNGS) 基因資訊-Observation TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
..... entry:serviceRequest SCN 0..* Reference(基因定序檢測申請項目-ServiceRequest TWNGS) 基因定序檢測申請項目-ServiceRequest TWNGS
ref-1: SHALL have a contained resource if a local reference is provided
.... emptyReason CN 0..1 CodeableConceptTW 為什麼此小節是空的原因
Binding: ListEmptyReasons (preferred): 鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。

..... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
..... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
..... coding SΣN 0..* CodingTW 由專門術語系統(terminology system)定義的代碼
...... id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
...... extension N 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
...... system SΣ 0..1 uri 專門術語系統(terminology system)的識別
...... version Σ 0..1 string 系統的版本—如果相關的話
...... code SΣ 0..1 code 系統定義的語法之符號
...... display SΣ 0..1 string 由系統定義的表示法
...... userSelected Σ 0..1 boolean 此編碼是否由使用者直接選擇?
..... text SΣ 0..1 string 概念的文字表示法
.... section C 0..* See section (Composition) 嵌套的小節

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Composition.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|4.0.1
from the FHIR Standard
Composition.typerequiredNHIApplyType (a valid code from NHI-申報類別)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-apply-type
from this IG
Composition.categoryrequiredNHICaseClassification (a valid code from NHI-案件分類)
https://www.ghd.tw/cdm-fhir/ValueSet/nhi-case-classification
from this IG
Composition.confidentialityrequiredv3.ConfidentialityClassification
http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26
from the FHIR Standard
Composition.attester.moderequiredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1
from the FHIR Standard
Composition.relatesTo.coderequiredDocumentRelationshipType
http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1
from the FHIR Standard
Composition.event.codeexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.section.codeextensibleLOINCDocumentSection
https://twcore.mohw.gov.tw/ig/twcore/ValueSet/loinc-doc-section-code
Composition.section.moderequiredListMode
http://hl7.org/fhir/ValueSet/list-mode|4.0.1
from the FHIR Standard
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.sectionA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.sectionA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
per-1errorComposition.event.periodIf present, start SHALL have a lower value than end
: start.hasValue().not() or end.hasValue().not() or (start <= end)
ref-1errorComposition.subject, Composition.encounter, Composition.author, Composition.attester.party, Composition.custodian, Composition.event.detail, Composition.section.author, Composition.section.focus, Composition.section.entry, Composition.section.entry:diagnosticReport, Composition.section.entry:condition, Composition.section.entry:gene-organization, Composition.section.entry:specimen, Composition.section.entry:device, Composition.section.entry:documentReference, Composition.section.entry:observation, Composition.section.entry:serviceRequestSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

 

Other representations of profile: CSV, Excel, Schematron