國家級人體生物資料庫整合平台共同資料模式實作指引(NBCT Common Data Model IG)
0.1.0 - trial-use

Publication Build: This will be filled in by the publication tooling

## Resource Profile: Organization LABD、LAM-服務機構

Official URL: https://www.ghd.tw/cdm-fhir/fhir/StructureDefinition/OrganizationLABDM | Version: 0.1.0
Active as of 2024-09-01 | Computable Name: OrganizationLABDM

用於描述檢驗檢查資料檔每日格式(LABD)與檢驗檢查資料檔每月格式(LABM)中的服務機構

Usage:

- Use this Resource Profile: Bundle LABD and Bundle LABM
- Refer to this Resource Profile: Composition LABD and Composition LABM

### 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
--- | --- | --- | --- | ---
Organization | C | 0..* | TWCoreOrganization | 具有共同目的的一群人或機構 dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources 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-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-5: If a resource is contained in another resource, it SHALL NOT have a security label dom-6: A resource should have narrative for robust management org-1: The organization SHALL at least have a name or an identifier, and possibly more than one
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則 ele-1: All FHIR elements must have a @value or children
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
identifier | S Σ C | 1..1 | Identifier | 跨多個系統中識別此機構 ele-1: All FHIR elements must have a @value or children
use | ?!S Σ | 0..1 | code | usual ｜ official ｜ temp ｜ secondary ｜ old （如果知道） Binding: IdentifierUse (required): 如果已知，請說明此識別碼的目的；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
type | S | 1..1 | CodeableConceptTW | 機構識別碼（identifier）的型別說明 Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別，用於決定特定目的所適用的識別碼；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Binding: 醫事類別值集 (required): 醫事類別；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 ele-1: All FHIR elements must have a @value or children
code | S Σ | 1..1 | code | 醫事類別。[LABD.h3/LABM.h3] 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 | 醫事類別。[LABD.h3/LABM.h3] ele-1: All FHIR elements must have a @value or children
system | S Σ | 0..1 | uri | 機構識別碼（identifier）的命名空間（namespace），可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。 ele-1: All FHIR elements must have a @value or children Example General: http://www.acme.com/identifiers/patient
value | S Σ | 1..1 | string | 服務機構代號。[LABD.h2/LABM.h2] ele-1: All FHIR elements must have a @value or children Example General: 123456
active | ?!S Σ | 0..1 | boolean | 此機構的紀錄是否仍在使用中 ele-1: All FHIR elements must have a @value or children
type | S | 0..1 | CodeableConceptTW | 機構的型別 Binding: OrganizationType (example): 用於分類機構；可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。 ele-1: All FHIR elements must have a @value or children
name | S Σ C | 0..1 | string | 機構的名稱 ele-1: All FHIR elements must have a @value or children
telecom | S C | 0..* | ContactPoint | 此機構的詳細聯絡方式。 org-3：一個機構的通訊永遠不可能是「家用」，意即不可能使用「home」。 ele-1: All FHIR elements must have a @value or children org-3: The telecom of an organization can never be of use 'home'
system | S Σ C | 0..1 | code | phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
value | S Σ | 0..1 | string | 實際的聯絡方式之細節 ele-1: All FHIR elements must have a @value or children
use | ?!Σ | 0..1 | code | home | work | temp | old | mobile－此聯絡方式的用途 Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Organization.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` from the FHIR Standard
Organization.identifier.type | extensible | TWIdentifierType `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw`
Organization.identifier.type.coding | required | HospitalCategory (a valid code from 醫事類別) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/HospitalCategory` from this IG
Organization.type | example | OrganizationType `http://hl7.org/fhir/ValueSet/organization-type` from the FHIR Standard
Organization.telecom.system | required | ContactPointSystem `http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1` from the FHIR Standard
Organization.telecom.use | required | ContactPointUse `http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Organization | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Organization | 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 | Organization | 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 | Organization | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Organization | 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() |
org-1 | error | Organization | The organization SHALL at least have a name or an identifier, and possibly more than one : (identifier.count() + name.count()) > 0 |
org-3 | error | Organization.telecom | The telecom of an organization can never be of use 'home' : where(use = 'home').empty() |

This structure is derived from TWCoreOrganization

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Organization |  | 0..* | TWCoreOrganization | 具有共同目的的一群人或機構
identifier |  | 1..1 | Identifier | 跨多個系統中識別此機構
type |  | 1..1 | CodeableConceptTW | 機構識別碼（identifier）的型別說明
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Binding: 醫事類別值集 (required): 醫事類別；應填入所綁定值集中的其中一個代碼。
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別
code |  | 1..1 | code | 醫事類別。[LABD.h3/LABM.h3]
text |  | 0..1 | string | 醫事類別。[LABD.h3/LABM.h3]
value |  | 1..1 | string | 服務機構代號。[LABD.h2/LABM.h2]
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
Organization.identifier.type.coding | required | HospitalCategory (a valid code from 醫事類別) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/HospitalCategory` from this IG

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Organization | C | 0..* | TWCoreOrganization | 具有共同目的的一群人或機構 org-1: The organization SHALL at least have a name or an identifier, and possibly more than one
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的Organization紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此Organization Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述Organization Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | Organization Resource之內容摘要以供人閱讀
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ C | 1..1 | Identifier | 跨多個系統中識別此機構
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
use | ?!S Σ | 0..1 | code | usual ｜ official ｜ temp ｜ secondary ｜ old （如果知道） Binding: IdentifierUse (required): 如果已知，請說明此識別碼的目的；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | 機構識別碼（identifier）的型別說明 Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別，用於決定特定目的所適用的識別碼；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Binding: 醫事類別值集 (required): 醫事類別；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 醫事類別。[LABD.h3/LABM.h3]
display | S Σ | 0..1 | string | 由系統定義的表示法
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 醫事類別。[LABD.h3/LABM.h3]
system | S Σ | 0..1 | uri | 機構識別碼（identifier）的命名空間（namespace），可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。 Example General: http://www.acme.com/identifiers/patient
value | S Σ | 1..1 | string | 服務機構代號。[LABD.h2/LABM.h2] Example General: 123456
period | Σ | 0..1 | Period | 此機構識別碼（identifier）的使用效期
assigner | Σ | 0..1 | Reference(TW Core Organization) | 簽發identifier的機構（可以只是文字表述）
active | ?!S Σ | 0..1 | boolean | 此機構的紀錄是否仍在使用中
type | S | 0..1 | CodeableConceptTW | 機構的型別 Binding: OrganizationType (example): 用於分類機構；可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
name | S Σ C | 0..1 | string | 機構的名稱
alias |  | 0..* | string | 此機構目前或過去已知的其他（多個）名稱
telecom | S C | 0..* | ContactPoint | 此機構的詳細聯絡方式。 org-3：一個機構的通訊永遠不可能是「家用」，意即不可能使用「home」。 org-3: The telecom of an organization can never be of use 'home'
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ C | 0..1 | code | phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
value | S Σ | 0..1 | string | 實際的聯絡方式之細節
use | ?!Σ | 0..1 | code | home | work | temp | old | mobile－此聯絡方式的用途 Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
rank | Σ | 0..1 | positiveInt | 具體說明偏好的使用順序（1=最高優先順序）
period | Σ | 0..1 | Period | 此聯絡方式的使用效期
address | C | 0..* | AddressTW | 此機構的地址。 org-2：一個機構的地址永遠不可能是「家用」，意即不可能使用「home」。 org-2: An address of an organization can never be of use 'home'
partOf | Σ | 0..1 | Reference(TW Core Organization) | 此機構屬於哪個更高層次機構的一部分
contact |  | 0..* | BackboneElement | 某一用途的機構聯絡方式
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目
modifierExtension | ?!Σ | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
purpose |  | 0..1 | CodeableConceptTW | 聯絡的型別 Binding: ContactEntityType (extensible): 你所聯絡之聯絡人的聯絡方式用途；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
name |  | 0..1 | HumanName | 聯絡人名字
telecom |  | 0..* | ContactPoint | 聯絡人的詳細聯絡方式（例如：電話、電子郵件等）。
address |  | 0..1 | AddressTW | 聯絡人的到訪或郵政地址
endpoint |  | 0..* | Reference(Endpoint) | 存取此Organization的技術服務的終端（endpoints）
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Organization.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
Organization.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` from the FHIR Standard
Organization.identifier.type | extensible | TWIdentifierType `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw`
Organization.identifier.type.coding | required | HospitalCategory (a valid code from 醫事類別) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/HospitalCategory` from this IG
Organization.type | example | OrganizationType `http://hl7.org/fhir/ValueSet/organization-type` from the FHIR Standard
Organization.telecom.system | required | ContactPointSystem `http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1` from the FHIR Standard
Organization.telecom.use | required | ContactPointUse `http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1` from the FHIR Standard
Organization.contact.purpose | extensible | ContactEntityType `http://hl7.org/fhir/ValueSet/contactentity-type` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Organization | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Organization | 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 | Organization | 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 | Organization | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Organization | 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() |
org-1 | error | Organization | The organization SHALL at least have a name or an identifier, and possibly more than one : (identifier.count() + name.count()) > 0 |
org-2 | error | Organization.address | An address of an organization can never be of use 'home' : where(use = 'home').empty() |
org-3 | error | Organization.telecom | The telecom of an organization can never be of use 'home' : where(use = 'home').empty() |

This structure is derived from TWCoreOrganization

Summary

Mandatory: 6 elements

Key Elements View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Organization | C | 0..* | TWCoreOrganization | 具有共同目的的一群人或機構 dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources 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-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-5: If a resource is contained in another resource, it SHALL NOT have a security label dom-6: A resource should have narrative for robust management org-1: The organization SHALL at least have a name or an identifier, and possibly more than one
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則 ele-1: All FHIR elements must have a @value or children
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
identifier | S Σ C | 1..1 | Identifier | 跨多個系統中識別此機構 ele-1: All FHIR elements must have a @value or children
use | ?!S Σ | 0..1 | code | usual ｜ official ｜ temp ｜ secondary ｜ old （如果知道） Binding: IdentifierUse (required): 如果已知，請說明此識別碼的目的；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
type | S | 1..1 | CodeableConceptTW | 機構識別碼（identifier）的型別說明 Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別，用於決定特定目的所適用的識別碼；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Binding: 醫事類別值集 (required): 醫事類別；應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別 ele-1: All FHIR elements must have a @value or children
code | S Σ | 1..1 | code | 醫事類別。[LABD.h3/LABM.h3] 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 | 醫事類別。[LABD.h3/LABM.h3] ele-1: All FHIR elements must have a @value or children
system | S Σ | 0..1 | uri | 機構識別碼（identifier）的命名空間（namespace），可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。 ele-1: All FHIR elements must have a @value or children Example General: http://www.acme.com/identifiers/patient
value | S Σ | 1..1 | string | 服務機構代號。[LABD.h2/LABM.h2] ele-1: All FHIR elements must have a @value or children Example General: 123456
active | ?!S Σ | 0..1 | boolean | 此機構的紀錄是否仍在使用中 ele-1: All FHIR elements must have a @value or children
type | S | 0..1 | CodeableConceptTW | 機構的型別 Binding: OrganizationType (example): 用於分類機構；可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。 ele-1: All FHIR elements must have a @value or children
name | S Σ C | 0..1 | string | 機構的名稱 ele-1: All FHIR elements must have a @value or children
telecom | S C | 0..* | ContactPoint | 此機構的詳細聯絡方式。 org-3：一個機構的通訊永遠不可能是「家用」，意即不可能使用「home」。 ele-1: All FHIR elements must have a @value or children org-3: The telecom of an organization can never be of use 'home'
system | S Σ C | 0..1 | code | phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
value | S Σ | 0..1 | string | 實際的聯絡方式之細節 ele-1: All FHIR elements must have a @value or children
use | ?!Σ | 0..1 | code | home | work | temp | old | mobile－此聯絡方式的用途 Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。 ele-1: All FHIR elements must have a @value or children
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Organization.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` from the FHIR Standard
Organization.identifier.type | extensible | TWIdentifierType `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw`
Organization.identifier.type.coding | required | HospitalCategory (a valid code from 醫事類別) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/HospitalCategory` from this IG
Organization.type | example | OrganizationType `http://hl7.org/fhir/ValueSet/organization-type` from the FHIR Standard
Organization.telecom.system | required | ContactPointSystem `http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1` from the FHIR Standard
Organization.telecom.use | required | ContactPointUse `http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Organization | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Organization | 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 | Organization | 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 | Organization | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Organization | 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() |
org-1 | error | Organization | The organization SHALL at least have a name or an identifier, and possibly more than one : (identifier.count() + name.count()) > 0 |
org-3 | error | Organization.telecom | The telecom of an organization can never be of use 'home' : where(use = 'home').empty() |

Differential View

This structure is derived from TWCoreOrganization

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Organization |  | 0..* | TWCoreOrganization | 具有共同目的的一群人或機構
identifier |  | 1..1 | Identifier | 跨多個系統中識別此機構
type |  | 1..1 | CodeableConceptTW | 機構識別碼（identifier）的型別說明
coding |  | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Binding: 醫事類別值集 (required): 醫事類別；應填入所綁定值集中的其中一個代碼。
system |  | 1..1 | uri | 專門術語系統（terminology system）的識別
code |  | 1..1 | code | 醫事類別。[LABD.h3/LABM.h3]
text |  | 0..1 | string | 醫事類別。[LABD.h3/LABM.h3]
value |  | 1..1 | string | 服務機構代號。[LABD.h2/LABM.h2]
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
Organization.identifier.type.coding | required | HospitalCategory (a valid code from 醫事類別) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/HospitalCategory` from this IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Organization | C | 0..* | TWCoreOrganization | 具有共同目的的一群人或機構 org-1: The organization SHALL at least have a name or an identifier, and possibly more than one
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的Organization紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此Organization Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述Organization Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | Organization Resource之內容摘要以供人閱讀
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ C | 1..1 | Identifier | 跨多個系統中識別此機構
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
use | ?!S Σ | 0..1 | code | usual ｜ official ｜ temp ｜ secondary ｜ old （如果知道） Binding: IdentifierUse (required): 如果已知，請說明此識別碼的目的；應填入所綁定值集中的其中一個代碼。
type | S | 1..1 | CodeableConceptTW | 機構識別碼（identifier）的型別說明 Binding: IdentifierType + 臺灣衛福部資訊處識別碼類型值集 (extensible): 識別碼的型別，用於決定特定目的所適用的識別碼；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
coding | S | 1..* | CodingTW | 由專門術語系統（terminology system）定義的代碼 Binding: 醫事類別值集 (required): 醫事類別；應填入所綁定值集中的其中一個代碼。
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | 專門術語系統（terminology system）的識別
version | Σ | 0..1 | string | 系統的版本—如果相關的話
code | S Σ | 1..1 | code | 醫事類別。[LABD.h3/LABM.h3]
display | S Σ | 0..1 | string | 由系統定義的表示法
userSelected | Σ | 0..1 | boolean | 此編碼是否由使用者直接選擇？
text | S Σ | 0..1 | string | 醫事類別。[LABD.h3/LABM.h3]
system | S Σ | 0..1 | uri | 機構識別碼（identifier）的命名空間（namespace），可至[twTerminology](https://fhir.mohw.gov.tw/ts/namingsystem.jsp?status=active&amp;type=0)申請或查詢命名系統。 Example General: http://www.acme.com/identifiers/patient
value | S Σ | 1..1 | string | 服務機構代號。[LABD.h2/LABM.h2] Example General: 123456
period | Σ | 0..1 | Period | 此機構識別碼（identifier）的使用效期
assigner | Σ | 0..1 | Reference(TW Core Organization) | 簽發identifier的機構（可以只是文字表述）
active | ?!S Σ | 0..1 | boolean | 此機構的紀錄是否仍在使用中
type | S | 0..1 | CodeableConceptTW | 機構的型別 Binding: OrganizationType (example): 用於分類機構；可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
name | S Σ C | 0..1 | string | 機構的名稱
alias |  | 0..* | string | 此機構目前或過去已知的其他（多個）名稱
telecom | S C | 0..* | ContactPoint | 此機構的詳細聯絡方式。 org-3：一個機構的通訊永遠不可能是「家用」，意即不可能使用「home」。 org-3: The telecom of an organization can never be of use 'home'
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目 Slice: Unordered, Open by value:url
system | S Σ C | 0..1 | code | phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): 應填入所綁定值集中的其中一個代碼。
value | S Σ | 0..1 | string | 實際的聯絡方式之細節
use | ?!Σ | 0..1 | code | home | work | temp | old | mobile－此聯絡方式的用途 Binding: ContactPointUse (required): 應填入所綁定值集中的其中一個代碼。
rank | Σ | 0..1 | positiveInt | 具體說明偏好的使用順序（1=最高優先順序）
period | Σ | 0..1 | Period | 此聯絡方式的使用效期
address | C | 0..* | AddressTW | 此機構的地址。 org-2：一個機構的地址永遠不可能是「家用」，意即不可能使用「home」。 org-2: An address of an organization can never be of use 'home'
partOf | Σ | 0..1 | Reference(TW Core Organization) | 此機構屬於哪個更高層次機構的一部分
contact |  | 0..* | BackboneElement | 某一用途的機構聯絡方式
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目
modifierExtension | ?!Σ | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
purpose |  | 0..1 | CodeableConceptTW | 聯絡的型別 Binding: ContactEntityType (extensible): 你所聯絡之聯絡人的聯絡方式用途；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
name |  | 0..1 | HumanName | 聯絡人名字
telecom |  | 0..* | ContactPoint | 聯絡人的詳細聯絡方式（例如：電話、電子郵件等）。
address |  | 0..1 | AddressTW | 聯絡人的到訪或郵政地址
endpoint |  | 0..* | Reference(Endpoint) | 存取此Organization的技術服務的終端（endpoints）
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Organization.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
Organization.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` from the FHIR Standard
Organization.identifier.type | extensible | TWIdentifierType `https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw`
Organization.identifier.type.coding | required | HospitalCategory (a valid code from 醫事類別) `https://www.ghd.tw/cdm-fhir/fhir/ValueSet/HospitalCategory` from this IG
Organization.type | example | OrganizationType `http://hl7.org/fhir/ValueSet/organization-type` from the FHIR Standard
Organization.telecom.system | required | ContactPointSystem `http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1` from the FHIR Standard
Organization.telecom.use | required | ContactPointUse `http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1` from the FHIR Standard
Organization.contact.purpose | extensible | ContactEntityType `http://hl7.org/fhir/ValueSet/contactentity-type` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Organization | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Organization | 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 | Organization | 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 | Organization | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Organization | 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() |
org-1 | error | Organization | The organization SHALL at least have a name or an identifier, and possibly more than one : (identifier.count() + name.count()) > 0 |
org-2 | error | Organization.address | An address of an organization can never be of use 'home' : where(use = 'home').empty() |
org-3 | error | Organization.telecom | The telecom of an organization can never be of use 'home' : where(use = 'home').empty() |

This structure is derived from TWCoreOrganization

Summary

Mandatory: 6 elements

Other representations of profile: CSV, Excel, Schematron