臺灣健保署基礎實作指引
0.0.1 - ci-build

臺灣健保署基礎實作指引, published by 衛生福利部中央健康保險署. This guide is not an authorized publication; it is the continuous build for version 0.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TWNHIFHIR/base/ and changes regularly. See the Directory of published versions

## Resource Profile: 基因檢測檢體-Specimen TWNHIBASE

Official URL: https://nhicore.nhi.gov.tw/base/StructureDefinition/Specimen-twnhibase | Version: 0.0.1
Draft as of 2025-10-29 | Computable Name: SpecimenTWNHIBASE

此基因檢測檢體-Specimen TWNHIBASE Profile說明本IG如何進一步定義臺灣核心-檢體(TW Core Specimen) Profile以呈現健保署基礎基因資訊之檢測檢體相關內容

Usages:

- Refer to this Profile: 基因資訊-Observation Diagnostic TWNHIBASE
- Examples for this Profile: Specimen/spe-min

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
--- | --- | --- | --- | ---
Specimen |  | 0..* | TWCoreSpecimen | 用於分析的檢體
meta | Σ | 1..1 | Meta | 此Specimen Resource的metadata
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/base/StructureDefinition/Specimen-twnhibase
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ | 0..* | Identifier | 檢體的外部識別碼
status | ?!Σ | 0..1 | code | available | unavailable | unsatisfactory | entered-in-error Binding: SpecimenStatus (required): 檢體的可取得性；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | 基因檢測檢體類型 Binding: LOINC-健保署-基因檢測檢體類型值集 (required)
subject | S Σ | 1..1 | Reference(病人資訊-Patient TWNHIBASE) | 檢體取自哪邊？檢體的來源可能有幾種，它可能來自病人，來自某個地方（例如：從環境中取得的樣本），或者是對某種物質或設備的抽樣。
receivedTime | S Σ | 1..1 | dateTime | 基因檢測日期
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Specimen.status | Base | required | SpecimenStatus | 📍4.0.1 | FHIR Std.
Specimen.type | Base | required | LOINC-健保署-基因檢測檢體類型值集 | 📦0.0.1 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Specimen | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Specimen | 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 | Specimen | 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 | Specimen | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Specimen | 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 TWCoreSpecimen

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | TWCoreSpecimen | 用於分析的檢體
meta |  | 1..1 | Meta | 此Specimen Resource的metadata
profile |  | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/base/StructureDefinition/Specimen-twnhibase
type |  | 1..1 | CodeableConceptTW | 基因檢測檢體類型 Binding: LOINC-健保署-基因檢測檢體類型值集 (required)
subject |  | 1..1 | Reference(病人資訊-Patient TWNHIBASE) | 檢體取自哪邊？檢體的來源可能有幾種，它可能來自病人，來自某個地方（例如：從環境中取得的樣本），或者是對某種物質或設備的抽樣。
receivedTime | S | 1..1 | dateTime | 基因檢測日期
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Specimen.type | Base | required | LOINC-健保署-基因檢測檢體類型值集 | 📦0.0.1 | This IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | TWCoreSpecimen | 用於分析的檢體
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的Specimen紀錄，通常又稱為邏輯性ID。
meta | Σ | 1..1 | Meta | 此Specimen Resource的metadata
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | Σ | 0..1 | id | Version specific identifier
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/base/StructureDefinition/Specimen-twnhibase
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述Specimen Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | Specimen Resource之內容摘要以供人閱讀 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ | 0..* | Identifier | 檢體的外部識別碼
accessionIdentifier | Σ | 0..1 | Identifier | 實驗室指定的識別碼
status | ?!Σ | 0..1 | code | available | unavailable | unsatisfactory | entered-in-error Binding: SpecimenStatus (required): 檢體的可取得性；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | 基因檢測檢體類型 Binding: LOINC-健保署-基因檢測檢體類型值集 (required)
subject | S Σ | 1..1 | Reference(病人資訊-Patient TWNHIBASE) | 檢體取自哪邊？檢體的來源可能有幾種，它可能來自病人，來自某個地方（例如：從環境中取得的樣本），或者是對某種物質或設備的抽樣。
receivedTime | S Σ | 1..1 | dateTime | 基因檢測日期
parent |  | 0..* | Reference(TW Core Specimen) | 此檢體的來源檢體
request |  | 0..* | Reference(TW Core ServiceRequest) | 採集檢體的原因
collection |  | 0..1 | BackboneElement | 採集細節
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
collector | Σ | 0..1 | Reference(TW Core Practitioner | TW Core PractitionerRole) | 誰採集了檢體
collected[x] | Σ | 0..1 |  | 採集檢體的時間
collectedDateTime |  |  | dateTime |
collectedPeriod |  |  | Period |
duration | Σ | 0..1 | Duration | 採集檢體需要多長時間
quantity |  | 0..1 | SimpleQuantity | 採集檢體的數量
method |  | 0..1 | CodeableConceptTW | 用於執行檢體採集的技術 Binding: FHIRSpecimenCollectionMethod (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
bodySite |  | 0..1 | CodeableConceptTW | 解剖採集部位 Binding: SNOMEDCTBodyStructures (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
fastingStatus[x] | Σ | 0..1 |  | 病人是否禁食/禁飲料，或禁食/禁飲料多長時間 Binding: hl7VS-relevantClincialInformation (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
fastingStatusCodeableConcept |  |  | CodeableConcept(CodeableConceptTW) |
fastingStatusDuration |  |  | Duration |
processing |  | 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
description |  | 0..1 | string | 程序的文字描述
procedure |  | 0..1 | CodeableConceptTW | 表明應用於檢體的處理步驟 Binding: SpecimenProcessingProcedure (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
additive |  | 0..* | Reference(Substance) | 處理步驟中使用的物質
time[x] |  | 0..1 |  | 檢體處理的日期和時間
timeDateTime |  |  | dateTime |
timePeriod |  |  | Period |
container |  | 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
identifier | Σ | 0..* | Identifier | 容器的ID
description |  | 0..1 | string | 容器的文字說明
type |  | 0..1 | CodeableConceptTW | 與檢體直接相關的容器類型 Binding: SpecimenContainerType (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
capacity |  | 0..1 | SimpleQuantity | 容器的體積或大小
specimenQuantity |  | 0..1 | SimpleQuantity | 容器內的檢體量
Slices for additive[x] |  | 0..1 |  | 與容器相關的添加劑 Slice: Unordered, Open by type:$this Binding: hl7VS-additivePreservative (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
additiveCodeableConcept |  |  | CodeableConcept |
additiveReference |  |  | Reference(Substance) |
additive[x]:additiveCodeableConcept |  | 0..1 | CodeableConceptTW | 概念（Concept）— 參照一個專門術語或只是文字表述 Binding: hl7VS-additivePreservative (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
condition |  | 0..* | CodeableConceptTW | 檢體狀態 Binding: hl7VS-specimenCondition (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
note |  | 0..* | Annotation | 評論或意見
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Specimen.meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std.
Specimen.meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std.
Specimen.language | Base | preferred | Common Languages | 📦4.0.1 | FHIR Std.
Specimen.status | Base | required | SpecimenStatus | 📍4.0.1 | FHIR Std.
Specimen.type | Base | required | LOINC-健保署-基因檢測檢體類型值集 | 📦0.0.1 | This IG
Specimen.collection.​method | Base | extensible | FHIR Specimen Collection Method | 📦4.0.1 | FHIR Std.
Specimen.collection.​bodySite | Base | extensible | SNOMED CT Body Structures | 📦4.0.1 | FHIR Std.
Specimen.collection.​fastingStatus[x] | Base | extensible | hl7VS-relevantClincialInformation | 📦2.0.0 | THO v6.5
Specimen.processing.​procedure | Base | example | Specimen processing procedure | 📦4.0.1 | FHIR Std.
Specimen.container.type | Base | extensible | Specimen Container Type | 📦4.0.1 | FHIR Std.
Specimen.container.additive[x] | Base | example | hl7VS-additivePreservative | 📦2.0.0 | THO v6.5
Specimen.container.additive[x]:additiveCodeableConcept | Base | example | hl7VS-additivePreservative | 📦2.0.0 | THO v6.5
Specimen.condition | Base | extensible | hl7VS-specimenCondition | 📦2.0.0 | THO v6.5

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Specimen | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Specimen | 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 | Specimen | 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 | Specimen | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Specimen | 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 TWCoreSpecimen

Summary

Mandatory: 4 elements
Must-Support: 1 element

Structures

This structure refers to these other structures:

- 病人資訊-Patient TWNHIBASE (https://nhicore.nhi.gov.tw/base/StructureDefinition/Patient-twnhibase)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | TWCoreSpecimen | 用於分析的檢體
meta | Σ | 1..1 | Meta | 此Specimen Resource的metadata
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/base/StructureDefinition/Specimen-twnhibase
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ | 0..* | Identifier | 檢體的外部識別碼
status | ?!Σ | 0..1 | code | available | unavailable | unsatisfactory | entered-in-error Binding: SpecimenStatus (required): 檢體的可取得性；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | 基因檢測檢體類型 Binding: LOINC-健保署-基因檢測檢體類型值集 (required)
subject | S Σ | 1..1 | Reference(病人資訊-Patient TWNHIBASE) | 檢體取自哪邊？檢體的來源可能有幾種，它可能來自病人，來自某個地方（例如：從環境中取得的樣本），或者是對某種物質或設備的抽樣。
receivedTime | S Σ | 1..1 | dateTime | 基因檢測日期
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Specimen.status | Base | required | SpecimenStatus | 📍4.0.1 | FHIR Std.
Specimen.type | Base | required | LOINC-健保署-基因檢測檢體類型值集 | 📦0.0.1 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Specimen | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Specimen | 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 | Specimen | 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 | Specimen | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Specimen | 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 TWCoreSpecimen

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | TWCoreSpecimen | 用於分析的檢體
meta |  | 1..1 | Meta | 此Specimen Resource的metadata
profile |  | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/base/StructureDefinition/Specimen-twnhibase
type |  | 1..1 | CodeableConceptTW | 基因檢測檢體類型 Binding: LOINC-健保署-基因檢測檢體類型值集 (required)
subject |  | 1..1 | Reference(病人資訊-Patient TWNHIBASE) | 檢體取自哪邊？檢體的來源可能有幾種，它可能來自病人，來自某個地方（例如：從環境中取得的樣本），或者是對某種物質或設備的抽樣。
receivedTime | S | 1..1 | dateTime | 基因檢測日期
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Specimen.type | Base | required | LOINC-健保署-基因檢測檢體類型值集 | 📦0.0.1 | This IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | TWCoreSpecimen | 用於分析的檢體
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的Specimen紀錄，通常又稱為邏輯性ID。
meta | Σ | 1..1 | Meta | 此Specimen Resource的metadata
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | Σ | 0..1 | id | Version specific identifier
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/base/StructureDefinition/Specimen-twnhibase
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述Specimen Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | Specimen Resource之內容摘要以供人閱讀 This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ | 0..* | Identifier | 檢體的外部識別碼
accessionIdentifier | Σ | 0..1 | Identifier | 實驗室指定的識別碼
status | ?!Σ | 0..1 | code | available | unavailable | unsatisfactory | entered-in-error Binding: SpecimenStatus (required): 檢體的可取得性；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | 基因檢測檢體類型 Binding: LOINC-健保署-基因檢測檢體類型值集 (required)
subject | S Σ | 1..1 | Reference(病人資訊-Patient TWNHIBASE) | 檢體取自哪邊？檢體的來源可能有幾種，它可能來自病人，來自某個地方（例如：從環境中取得的樣本），或者是對某種物質或設備的抽樣。
receivedTime | S Σ | 1..1 | dateTime | 基因檢測日期
parent |  | 0..* | Reference(TW Core Specimen) | 此檢體的來源檢體
request |  | 0..* | Reference(TW Core ServiceRequest) | 採集檢體的原因
collection |  | 0..1 | BackboneElement | 採集細節
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
collector | Σ | 0..1 | Reference(TW Core Practitioner | TW Core PractitionerRole) | 誰採集了檢體
collected[x] | Σ | 0..1 |  | 採集檢體的時間
collectedDateTime |  |  | dateTime |
collectedPeriod |  |  | Period |
duration | Σ | 0..1 | Duration | 採集檢體需要多長時間
quantity |  | 0..1 | SimpleQuantity | 採集檢體的數量
method |  | 0..1 | CodeableConceptTW | 用於執行檢體採集的技術 Binding: FHIRSpecimenCollectionMethod (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
bodySite |  | 0..1 | CodeableConceptTW | 解剖採集部位 Binding: SNOMEDCTBodyStructures (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
fastingStatus[x] | Σ | 0..1 |  | 病人是否禁食/禁飲料，或禁食/禁飲料多長時間 Binding: hl7VS-relevantClincialInformation (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
fastingStatusCodeableConcept |  |  | CodeableConcept(CodeableConceptTW) |
fastingStatusDuration |  |  | Duration |
processing |  | 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
description |  | 0..1 | string | 程序的文字描述
procedure |  | 0..1 | CodeableConceptTW | 表明應用於檢體的處理步驟 Binding: SpecimenProcessingProcedure (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
additive |  | 0..* | Reference(Substance) | 處理步驟中使用的物質
time[x] |  | 0..1 |  | 檢體處理的日期和時間
timeDateTime |  |  | dateTime |
timePeriod |  |  | Period |
container |  | 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
identifier | Σ | 0..* | Identifier | 容器的ID
description |  | 0..1 | string | 容器的文字說明
type |  | 0..1 | CodeableConceptTW | 與檢體直接相關的容器類型 Binding: SpecimenContainerType (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
capacity |  | 0..1 | SimpleQuantity | 容器的體積或大小
specimenQuantity |  | 0..1 | SimpleQuantity | 容器內的檢體量
Slices for additive[x] |  | 0..1 |  | 與容器相關的添加劑 Slice: Unordered, Open by type:$this Binding: hl7VS-additivePreservative (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
additiveCodeableConcept |  |  | CodeableConcept |
additiveReference |  |  | Reference(Substance) |
additive[x]:additiveCodeableConcept |  | 0..1 | CodeableConceptTW | 概念（Concept）— 參照一個專門術語或只是文字表述 Binding: hl7VS-additivePreservative (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
condition |  | 0..* | CodeableConceptTW | 檢體狀態 Binding: hl7VS-specimenCondition (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
note |  | 0..* | Annotation | 評論或意見
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Specimen.meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std.
Specimen.meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std.
Specimen.language | Base | preferred | Common Languages | 📦4.0.1 | FHIR Std.
Specimen.status | Base | required | SpecimenStatus | 📍4.0.1 | FHIR Std.
Specimen.type | Base | required | LOINC-健保署-基因檢測檢體類型值集 | 📦0.0.1 | This IG
Specimen.collection.​method | Base | extensible | FHIR Specimen Collection Method | 📦4.0.1 | FHIR Std.
Specimen.collection.​bodySite | Base | extensible | SNOMED CT Body Structures | 📦4.0.1 | FHIR Std.
Specimen.collection.​fastingStatus[x] | Base | extensible | hl7VS-relevantClincialInformation | 📦2.0.0 | THO v6.5
Specimen.processing.​procedure | Base | example | Specimen processing procedure | 📦4.0.1 | FHIR Std.
Specimen.container.type | Base | extensible | Specimen Container Type | 📦4.0.1 | FHIR Std.
Specimen.container.additive[x] | Base | example | hl7VS-additivePreservative | 📦2.0.0 | THO v6.5
Specimen.container.additive[x]:additiveCodeableConcept | Base | example | hl7VS-additivePreservative | 📦2.0.0 | THO v6.5
Specimen.condition | Base | extensible | hl7VS-specimenCondition | 📦2.0.0 | THO v6.5

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Specimen | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Specimen | 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 | Specimen | 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 | Specimen | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Specimen | 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 TWCoreSpecimen

Summary

Mandatory: 4 elements
Must-Support: 1 element

Structures

This structure refers to these other structures:

- 病人資訊-Patient TWNHIBASE (https://nhicore.nhi.gov.tw/base/StructureDefinition/Patient-twnhibase)

Other representations of profile: CSV, Excel, Schematron