復健訓練量表實作指引 (Rehabilitation Training Scale Implementation Guide)
0.2.2 - ci-build

復健訓練量表實作指引 (Rehabilitation Training Scale Implementation Guide), published by Kimsber. This guide is not an authorized publication; it is the continuous build for version 0.2.2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/Rehabotics-Medical-Techology-Co/RTS-IG/ and changes regularly. See the Directory of published versions

Resource Profile: Encounter

Official URL: https://build.fhir.org/ig/Rehabotics-Medical-Techology-Co/RTS-IG/StructureDefinition/Encounter Version: 0.2.2
Draft as of 2026-10-08 Computable Name: Encounter

就醫事件的標準化定義。

Resource Encounter - 內容

涉及病人和健康照護服務提供者之間的互動,目的是為了提供健康照護服務或評估病人的健康狀況。

範圍與使用

病人的就醫事件根據發生的環境有所不同,包括門診、急診、家庭健康照護、住院和虛擬就醫。一次就醫事件涵蓋從入院前、實際的就醫事件(門診情況下)、入院、住院到出院的全過程(住院情況下)。期間,病人可能會接受不同健康照護服務提供者的照顧,並可能轉移至不同的地點。

由於就醫事件的範疇非常廣泛,不是所有資料項目在所有情況下都適用。因此,與入院/出院相關的資訊被分開存放在就醫事件的hospitalization。利用 class 資料項目來區分這些不同的就醫環境,進而指導相關的驗證和業務規則的應用。

不同的機構(以及不同的行政管轄區和國家)在決定哪些業務事件應該視為一個新的Encounter的開始,或者如何聚合 Encounter,存在著顯著的差異。例如:在住院期間,每一次醫生的看診可能會記錄為一個新的 Encounter 實例,但根據當地的實務和系統的不同,也可能會將這些看診聚合為整個住院期間的單一事件。在一些行政管轄區,出於財務或其他原因,可能會對就醫事件進行更多的聚合。可以使用Encounter.partOf資料項目將就醫事件聚合或分組於其他Encounter 之下。參考下方(below)提供的範例。

Encounter 實例也可能在實際就醫發生之前就已經存在,用來傳達入院前資訊,包括計劃的開始日期或預計的就醫地點。在這種情況下,Encounter.status資料項目會設定為planned

Encounter.hospitalization 旨在存儲與住院相關的更多資訊。這些資訊通常與就醫事件本身的期間相同。如果住院期間與Encounter期間有所不同時,則應使用另一個就醫事件實例來記錄這些資訊,並將其作為這個就醫事件實例的一部分。

Procedure和Encounter相互參照,這些參照應該指向不同的 Procedures。一種情況是指在 Encounter 期間進行的 Procedure,這會儲存在Encounter.reasonReference (Procedure),例如:為了解決之前Procedure出現的併發症而進行的後續Encounter。

狀態管理 (Status Management)

在一個就醫事件的生命週期內,它會經歷多個階段,這些階段通常是根據健康照護服務提供者的工作流程來排列的,比如「planned」、「in-progress」和「finished / cancelled」。這些階段資訊經常被用於其他目的,而且分析這些階段的歷史紀錄經常是必要的。這個分析可以透過檢查就醫事件的所有版本,確認每個版本的持續時間,然後進行一些後期的處理來完成。為了減輕這個負擔(或在系統不支援 resources 歷史紀錄的情況下),可善用 status 歷史紀錄元件(status history component)。

單靠Encounter.status欄位本身,我們無法直接判斷一次就醫事件是否被視為「已入院(admitted)」。就醫事件的具體情況和健康照護服務提供者的業務實務、政策、工作流程、類型都可能影響這一定義(例如:在急性照護機構、老人照護中心、門診診所、急診室或社區診所中)。「已到達(arrived)」、「已檢傷分類(triaged)」或「進行中(in progress)」等狀態可能被視為入院的開始,此時還會引入填寫Encounter.hospitalization。

「外出(onleave)」狀態可能被包含在入院階段內,也可能不被包含,例如:如果病人被允許在周末或一些其他外出事件期間回家。此外,Encounter.location.status 通常會被更新為「在場(active)」的狀態,如下範例。就如同在門診就醫的例子中,比如進行日間手術(如結腸鏡檢查),病人也可能被視為已入院,因此「已入院」的定義並不固定。但最起碼,我們認為當Encounter.status為「進行中(in-progres)」時,病人應被視為已入院。

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* TWCoreEncounter 提供病人服務的一種互動
Encounter.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri 創建此內容所依據的一組規則
Encounter.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Encounter.identifier This element must be supported. This element is included in summaries. 0..* Identifier 此就醫事件的識別碼
Encounter.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的用途;應填入所綁定值集中的其中一個代碼。
Encounter.identifier.system This element must be supported. This element is included in summaries. 1..1 uri 識別碼(identifier)的命名空間(namespace)
Example General: http://www.acme.com/identifiers/patient
Encounter.identifier.value This element must be supported. This element is included in summaries. 1..1 string 唯一值
Example General: 123456
Encounter.status This element is a modifier element. This element must be supported. This element is included in summaries. 1..1 code 狀態代碼,表示就醫事件的流轉狀態
Binding: EncounterStatus (required): 就醫現況的代碼;應填入所綁定值集中的其中一個代碼
Encounter.class This element must be supported. This element is included in summaries. 1..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 病人就醫的分類
Binding: ActEncounterCode (extensible): 就醫的分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.serviceType This element must be supported. This element is included in summaries. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 服務的特定型別
Binding: ServiceType (example): 對提供的服務進行廣泛分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.serviceType.Slices for coding This element must be supported. This element is included in summaries. 0..* CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Slice: Unordered, Open by pattern:system
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 對應至 SNOMED CT之就醫科別 + 診療科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: http://snomed.info/sct
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 無法對應至SNOMED CT之臺灣健保署就醫科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medical-consultation-department-nhi-tw
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 無法對應至SNOMED CT之臺灣健保署診療科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medical-treatment-department-nhi-tw
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.text This element must be supported. This element is included in summaries. 0..1 string 概念的文字表示法
Encounter.subject This element must be supported. This element is included in summaries. 1..1 Reference(TW Core Patient | Group) 在場就醫的病人或實體集合(Group)
Encounter.participant This element must be supported. This element is included in summaries. 0..* BackboneElement 參與就醫的健康照護服務提供者之名單
Encounter.participant.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.participant.type This element must be supported. This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 參與者在病人就醫事件中的角色
Binding: ParticipantType (extensible): 參與者在病人就醫事件中的角色;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.participant.period This element must be supported. 0..1 Period 參與者在病人就醫期間參與的時段
Encounter.participant.individual This element must be supported. This element is included in summaries. 0..1 Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core RelatedPerson) 除病人外,參與病人就醫事件的人。
Encounter.period This element must be supported. 1..1 Period 就醫的開始和結束時間
Encounter.reasonCode This element must be supported. This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 就醫發生的編碼原因
Binding: EncounterReasonCodes (preferred): 發生此就醫事件的原因;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.hospitalization This element must be supported. 0..1 BackboneElement 關於入院接受健康照護服務的細節
Encounter.hospitalization.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.hospitalization.dischargeDisposition This element must be supported. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 出院後的地點類別或種類
Binding: DischargeDisposition (example): 出院處置;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.location This element must be supported. 0..* BackboneElement 病人曾去過的一個或多個地點
Encounter.location.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.location.location This element must be supported. 1..1 Reference(TW Core Location) 就醫發生的地點
Encounter.serviceProvider This element must be supported. 0..1 Reference(TW Core Organization) 負責這次就醫的機構

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v7.4
Encounter.serviceType Base example Service type 📦4.0.1 FHIR Std.
Encounter.serviceType.​coding:TWMedicalDepartmentSCT Base required 對應至 SNOMED CT之就醫科別 + 診療科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.serviceType.​coding:TWMedicalConsultationDepartment Base required 無法對應至SNOMED CT之臺灣健保署就醫科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.serviceType.​coding:TWMedicalTreatmentDepartment Base required 無法對應至SNOMED CT之臺灣健保署診療科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.participant.​type Base extensible Participant type 📦4.0.1 FHIR Std.
Encounter.reasonCode Base preferred Encounter Reason Codes 📦4.0.1 FHIR Std.
Encounter.hospitalization.​dischargeDisposition Base example Discharge disposition 📦4.0.1 FHIR Std.

Constraints

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

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* TWCoreEncounter 提供病人服務的一種互動
Encounter.status 1..1 code 狀態代碼,表示就醫事件的流轉狀態
Encounter.subject 1..1 Reference(TW Core Patient | Group) 在場就醫的病人或實體集合(Group)
Encounter.period 1..1 Period 就醫的開始和結束時間

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* TWCoreEncounter 提供病人服務的一種互動
Encounter.id This element is included in summaries. 0..1 id 不重複的ID用以識別儲存在特定FHIR Server中的Encounter紀錄,通常又稱為邏輯性ID。
Encounter.meta This element is included in summaries. 0..1 Meta 此Encounter Resource的metadata
Encounter.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri 創建此內容所依據的一組規則
Encounter.language 0..1 code 用以表述Encounter Resource內容的語言。
Binding: CommonLanguages (preferred): 人類語言;鼓勵使用CommonLanguages代碼表中的代碼,但不強制一定要使用此代碼表,你也可使用其他代碼表的代碼或單純以文字表示。
Additional BindingsPurpose
AllLanguages Max Binding

Example Value: zh-TW
Encounter.text 0..1 Narrative Encounter Resource之內容摘要以供人閱讀
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
Encounter.contained 0..* Resource Contained, inline Resources
Encounter.extension 0..* Extension Additional content defined by implementations
Encounter.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Encounter.identifier This element must be supported. This element is included in summaries. 0..* Identifier 此就醫事件的識別碼
Encounter.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的用途;應填入所綁定值集中的其中一個代碼。
Encounter.identifier.type This element is included in summaries. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 識別碼(identifier)的型別說明
Binding: Identifier Type Codes (extensible): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.identifier.system This element must be supported. This element is included in summaries. 1..1 uri 識別碼(identifier)的命名空間(namespace)
Example General: http://www.acme.com/identifiers/patient
Encounter.identifier.value This element must be supported. This element is included in summaries. 1..1 string 唯一值
Example General: 123456
Encounter.identifier.period This element is included in summaries. 0..1 Period 此就醫事件識別碼(identifier)的使用效期
Encounter.identifier.assigner This element is included in summaries. 0..1 Reference(TW Core Organization) 簽發identifier的機構(可以只是文字表述)
Encounter.status This element is a modifier element. This element must be supported. This element is included in summaries. 1..1 code 狀態代碼,表示就醫事件的流轉狀態
Binding: EncounterStatus (required): 就醫現況的代碼;應填入所綁定值集中的其中一個代碼
Encounter.statusHistory 0..* BackboneElement 過去的就醫狀態清單
Encounter.statusHistory.id 0..1 string Unique id for inter-element referencing
Encounter.statusHistory.extension 0..* Extension Additional content defined by implementations
Encounter.statusHistory.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.statusHistory.status 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required): 就醫現狀的代碼;應填入所綁定值集中的其中一個代碼
Encounter.statusHistory.period 1..1 Period 該事件處於特定狀態的時間
Encounter.class This element must be supported. This element is included in summaries. 1..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 病人就醫的分類
Binding: ActEncounterCode (extensible): 就醫的分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.classHistory 0..* BackboneElement 過去就醫類別的列表
Encounter.classHistory.id 0..1 string Unique id for inter-element referencing
Encounter.classHistory.extension 0..* Extension Additional content defined by implementations
Encounter.classHistory.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.classHistory.class 1..1 Coding inpatient | outpatient | ambulatory | emergency +
Binding: ActEncounterCode (extensible): 就醫類別;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.classHistory.period 1..1 Period 此就醫事件處於特定類別的時間
Encounter.type This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 就醫的特定型別
Binding: EncounterType (example): 就醫的型別;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.serviceType This element must be supported. This element is included in summaries. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 服務的特定型別
Binding: ServiceType (example): 對提供的服務進行廣泛分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.serviceType.id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
Encounter.serviceType.extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
Encounter.serviceType.Slices for coding This element must be supported. This element is included in summaries. 0..* CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Slice: Unordered, Open by pattern:system
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 對應至 SNOMED CT之就醫科別 + 診療科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: http://snomed.info/sct
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.version This element is included in summaries. 0..1 string 系統的版本—如果相關的話
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.userSelected This element is included in summaries. 0..1 boolean 此編碼是否由使用者直接選擇?
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 無法對應至SNOMED CT之臺灣健保署就醫科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medical-consultation-department-nhi-tw
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.version This element is included in summaries. 0..1 string 系統的版本—如果相關的話
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.userSelected This element is included in summaries. 0..1 boolean 此編碼是否由使用者直接選擇?
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 無法對應至SNOMED CT之臺灣健保署診療科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medical-treatment-department-nhi-tw
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.version This element is included in summaries. 0..1 string 系統的版本—如果相關的話
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.userSelected This element is included in summaries. 0..1 boolean 此編碼是否由使用者直接選擇?
Encounter.serviceType.text This element must be supported. This element is included in summaries. 0..1 string 概念的文字表示法
Encounter.priority 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 表明就醫的急迫性
Binding: ActPriority (example): 表明就醫的迫切性;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.subject This element must be supported. This element is included in summaries. 1..1 Reference(TW Core Patient | Group) 在場就醫的病人或實體集合(Group)
Encounter.episodeOfCare This element is included in summaries. 0..* Reference(EpisodeOfCare) 此次就醫應記錄的照護事件
Encounter.basedOn 0..* Reference(TW Core ServiceRequest) 開始此次就醫的服務請求(ServiceRequest)
Encounter.participant This element must be supported. This element is included in summaries. 0..* BackboneElement 參與就醫的健康照護服務提供者之名單
Encounter.participant.id 0..1 string Unique id for inter-element referencing
Encounter.participant.extension 0..* Extension Additional content defined by implementations
Encounter.participant.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.participant.type This element must be supported. This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 參與者在病人就醫事件中的角色
Binding: ParticipantType (extensible): 參與者在病人就醫事件中的角色;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.participant.period This element must be supported. 0..1 Period 參與者在病人就醫期間參與的時段
Encounter.participant.individual This element must be supported. This element is included in summaries. 0..1 Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core RelatedPerson) 除病人外,參與病人就醫事件的人。
Encounter.appointment This element is included in summaries. 0..* Reference(Appointment) 這次就醫的預約紀錄
Encounter.period This element must be supported. 1..1 Period 就醫的開始和結束時間
Encounter.length 0..1 Duration 就醫持續的時間(扣除缺席時間)
Encounter.reasonCode This element must be supported. This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 就醫發生的編碼原因
Binding: EncounterReasonCodes (preferred): 發生此就醫事件的原因;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.reasonReference This element is included in summaries. 0..* Reference(TW Core Condition | TW Core Procedure | TW Core Observation Laboratory Result | ImmunizationRecommendation) 就醫發生的原因(參照)
Encounter.diagnosis This element is included in summaries. 0..* BackboneElement 與此就醫相關的診斷清單
Encounter.diagnosis.id 0..1 string Unique id for inter-element referencing
Encounter.diagnosis.extension 0..* Extension Additional content defined by implementations
Encounter.diagnosis.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.diagnosis.condition This element is included in summaries. 1..1 Reference(TW Core Condition | TW Core Procedure) 與就醫事件相關的診斷或處置
Encounter.diagnosis.use 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 此診斷在病人就醫事件中的作用(例如:住院、收費、出院...)。
Binding: DiagnosisRole (preferred): 此情況所代表的診斷型別;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.diagnosis.rank 0..1 positiveInt 診斷的排序(針對每個角色型別)
Encounter.account 0..* Reference(Account) 可用於為此病人就醫事件計費的一組帳戶
Encounter.hospitalization This element must be supported. 0..1 BackboneElement 關於入院接受健康照護服務的細節
Encounter.hospitalization.id 0..1 string Unique id for inter-element referencing
Encounter.hospitalization.extension 0..* Extension Additional content defined by implementations
Encounter.hospitalization.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.hospitalization.preAdmissionIdentifier 0..1 Identifier 住院前識別碼
Encounter.hospitalization.origin 0..1 Reference(TW Core Organization | TW Core Location) 病人住院前來自的地點/機構
Encounter.hospitalization.admitSource 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 病人從哪裡住院(醫生轉介、轉院)?
Binding: AdmitSource (preferred): 病人從哪裡住院;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.hospitalization.reAdmission 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 已發生的醫院再入院型別(如果有的話)。如果該值不存在,則不被認定為再入院。
Binding: hl7VS-re-admissionIndicator (example): 這次住院就醫的再入院原因;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.hospitalization.dietPreference 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 病人報告的飲食偏好
Binding: Diet (example): 醫療、文化或道德方面的食物偏好,以幫助滿足飲食要求;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.hospitalization.specialCourtesy 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 特別禮遇(貴賓、董事會成員)
Binding: SpecialCourtesy (preferred): 特別禮遇;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.hospitalization.specialArrangement 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 輪椅、翻譯人員、擔架等。
Binding: SpecialArrangements (preferred): 特殊安排;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.hospitalization.destination 0..1 Reference(TW Core Location | TW Core Organization) 病人出院地點/機構
Encounter.hospitalization.dischargeDisposition This element must be supported. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 出院後的地點類別或種類
Binding: DischargeDisposition (example): 出院處置;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.location This element must be supported. 0..* BackboneElement 病人曾去過的一個或多個地點
Encounter.location.id 0..1 string Unique id for inter-element referencing
Encounter.location.extension 0..* Extension Additional content defined by implementations
Encounter.location.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.location.location This element must be supported. 1..1 Reference(TW Core Location) 就醫發生的地點
Encounter.location.status 0..1 code planned | active | reserved | completed
Binding: EncounterLocationStatus (required): 就醫地點的狀態;應填入所綁定值集中的其中一個代碼。
Encounter.location.physicalType 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 地點的實體型別(通常是地點的層級—床位、房間、病房等)。
Binding: LocationType (example): 地點的實體型別;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.location.period 0..1 Period 病人出現在此地點的時段
Encounter.serviceProvider This element must be supported. 0..1 Reference(TW Core Organization) 負責這次就醫的機構
Encounter.partOf 0..1 Reference(TW Core Encounter) 此就醫是哪次就醫的一部份?

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.language Base preferred Common Languages 📦4.0.1 FHIR Std.
Encounter.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.identifier.​type Base extensible IdentifierType 📦4.0.1 FHIR Std.
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v7.4
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v7.4
Encounter.type Base example Encounter type 📦4.0.1 FHIR Std.
Encounter.serviceType Base example Service type 📦4.0.1 FHIR Std.
Encounter.serviceType.​coding:TWMedicalDepartmentSCT Base required 對應至 SNOMED CT之就醫科別 + 診療科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.serviceType.​coding:TWMedicalConsultationDepartment Base required 無法對應至SNOMED CT之臺灣健保署就醫科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.serviceType.​coding:TWMedicalTreatmentDepartment Base required 無法對應至SNOMED CT之臺灣健保署診療科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.priority Base example ActPriority 📦3.0.0 THO v7.4
Encounter.participant.​type Base extensible Participant type 📦4.0.1 FHIR Std.
Encounter.reasonCode Base preferred Encounter Reason Codes 📦4.0.1 FHIR Std.
Encounter.diagnosis.​use Base preferred DiagnosisRole 📦4.0.1 FHIR Std.
Encounter.hospitalization.​admitSource Base preferred Admit source 📦4.0.1 FHIR Std.
Encounter.hospitalization.​reAdmission Base example hl7VS-re-admissionIndicator 📦3.0.0 THO v7.4
Encounter.hospitalization.​dietPreference Base example Diet 📦4.0.1 FHIR Std.
Encounter.hospitalization.​specialCourtesy Base preferred Special courtesy 📦4.0.1 FHIR Std.
Encounter.hospitalization.​specialArrangement Base preferred Special arrangements 📦4.0.1 FHIR Std.
Encounter.hospitalization.​dischargeDisposition Base example Discharge disposition 📦4.0.1 FHIR Std.
Encounter.location.status Base required EncounterLocationStatus 📍4.0.1 FHIR Std.
Encounter.location.physicalType Base example Location type 📦4.0.1 FHIR Std.

Constraints

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

Summary

Mandatory: 2 elements

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* TWCoreEncounter 提供病人服務的一種互動
Encounter.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri 創建此內容所依據的一組規則
Encounter.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Encounter.identifier This element must be supported. This element is included in summaries. 0..* Identifier 此就醫事件的識別碼
Encounter.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的用途;應填入所綁定值集中的其中一個代碼。
Encounter.identifier.system This element must be supported. This element is included in summaries. 1..1 uri 識別碼(identifier)的命名空間(namespace)
Example General: http://www.acme.com/identifiers/patient
Encounter.identifier.value This element must be supported. This element is included in summaries. 1..1 string 唯一值
Example General: 123456
Encounter.status This element is a modifier element. This element must be supported. This element is included in summaries. 1..1 code 狀態代碼,表示就醫事件的流轉狀態
Binding: EncounterStatus (required): 就醫現況的代碼;應填入所綁定值集中的其中一個代碼
Encounter.class This element must be supported. This element is included in summaries. 1..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 病人就醫的分類
Binding: ActEncounterCode (extensible): 就醫的分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.serviceType This element must be supported. This element is included in summaries. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 服務的特定型別
Binding: ServiceType (example): 對提供的服務進行廣泛分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.serviceType.Slices for coding This element must be supported. This element is included in summaries. 0..* CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Slice: Unordered, Open by pattern:system
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 對應至 SNOMED CT之就醫科別 + 診療科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: http://snomed.info/sct
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 無法對應至SNOMED CT之臺灣健保署就醫科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medical-consultation-department-nhi-tw
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 無法對應至SNOMED CT之臺灣健保署診療科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medical-treatment-department-nhi-tw
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.text This element must be supported. This element is included in summaries. 0..1 string 概念的文字表示法
Encounter.subject This element must be supported. This element is included in summaries. 1..1 Reference(TW Core Patient | Group) 在場就醫的病人或實體集合(Group)
Encounter.participant This element must be supported. This element is included in summaries. 0..* BackboneElement 參與就醫的健康照護服務提供者之名單
Encounter.participant.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.participant.type This element must be supported. This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 參與者在病人就醫事件中的角色
Binding: ParticipantType (extensible): 參與者在病人就醫事件中的角色;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.participant.period This element must be supported. 0..1 Period 參與者在病人就醫期間參與的時段
Encounter.participant.individual This element must be supported. This element is included in summaries. 0..1 Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core RelatedPerson) 除病人外,參與病人就醫事件的人。
Encounter.period This element must be supported. 1..1 Period 就醫的開始和結束時間
Encounter.reasonCode This element must be supported. This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 就醫發生的編碼原因
Binding: EncounterReasonCodes (preferred): 發生此就醫事件的原因;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.hospitalization This element must be supported. 0..1 BackboneElement 關於入院接受健康照護服務的細節
Encounter.hospitalization.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.hospitalization.dischargeDisposition This element must be supported. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 出院後的地點類別或種類
Binding: DischargeDisposition (example): 出院處置;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.location This element must be supported. 0..* BackboneElement 病人曾去過的一個或多個地點
Encounter.location.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.location.location This element must be supported. 1..1 Reference(TW Core Location) 就醫發生的地點
Encounter.serviceProvider This element must be supported. 0..1 Reference(TW Core Organization) 負責這次就醫的機構

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v7.4
Encounter.serviceType Base example Service type 📦4.0.1 FHIR Std.
Encounter.serviceType.​coding:TWMedicalDepartmentSCT Base required 對應至 SNOMED CT之就醫科別 + 診療科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.serviceType.​coding:TWMedicalConsultationDepartment Base required 無法對應至SNOMED CT之臺灣健保署就醫科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.serviceType.​coding:TWMedicalTreatmentDepartment Base required 無法對應至SNOMED CT之臺灣健保署診療科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.participant.​type Base extensible Participant type 📦4.0.1 FHIR Std.
Encounter.reasonCode Base preferred Encounter Reason Codes 📦4.0.1 FHIR Std.
Encounter.hospitalization.​dischargeDisposition Base example Discharge disposition 📦4.0.1 FHIR Std.

Constraints

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

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* TWCoreEncounter 提供病人服務的一種互動
Encounter.status 1..1 code 狀態代碼,表示就醫事件的流轉狀態
Encounter.subject 1..1 Reference(TW Core Patient | Group) 在場就醫的病人或實體集合(Group)
Encounter.period 1..1 Period 就醫的開始和結束時間

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* TWCoreEncounter 提供病人服務的一種互動
Encounter.id This element is included in summaries. 0..1 id 不重複的ID用以識別儲存在特定FHIR Server中的Encounter紀錄,通常又稱為邏輯性ID。
Encounter.meta This element is included in summaries. 0..1 Meta 此Encounter Resource的metadata
Encounter.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri 創建此內容所依據的一組規則
Encounter.language 0..1 code 用以表述Encounter Resource內容的語言。
Binding: CommonLanguages (preferred): 人類語言;鼓勵使用CommonLanguages代碼表中的代碼,但不強制一定要使用此代碼表,你也可使用其他代碼表的代碼或單純以文字表示。
Additional BindingsPurpose
AllLanguages Max Binding

Example Value: zh-TW
Encounter.text 0..1 Narrative Encounter Resource之內容摘要以供人閱讀
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
Encounter.contained 0..* Resource Contained, inline Resources
Encounter.extension 0..* Extension Additional content defined by implementations
Encounter.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Encounter.identifier This element must be supported. This element is included in summaries. 0..* Identifier 此就醫事件的識別碼
Encounter.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (如果知道)
Binding: IdentifierUse (required): 如果知道,請說明此識別碼的用途;應填入所綁定值集中的其中一個代碼。
Encounter.identifier.type This element is included in summaries. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 識別碼(identifier)的型別說明
Binding: Identifier Type Codes (extensible): 應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.identifier.system This element must be supported. This element is included in summaries. 1..1 uri 識別碼(identifier)的命名空間(namespace)
Example General: http://www.acme.com/identifiers/patient
Encounter.identifier.value This element must be supported. This element is included in summaries. 1..1 string 唯一值
Example General: 123456
Encounter.identifier.period This element is included in summaries. 0..1 Period 此就醫事件識別碼(identifier)的使用效期
Encounter.identifier.assigner This element is included in summaries. 0..1 Reference(TW Core Organization) 簽發identifier的機構(可以只是文字表述)
Encounter.status This element is a modifier element. This element must be supported. This element is included in summaries. 1..1 code 狀態代碼,表示就醫事件的流轉狀態
Binding: EncounterStatus (required): 就醫現況的代碼;應填入所綁定值集中的其中一個代碼
Encounter.statusHistory 0..* BackboneElement 過去的就醫狀態清單
Encounter.statusHistory.id 0..1 string Unique id for inter-element referencing
Encounter.statusHistory.extension 0..* Extension Additional content defined by implementations
Encounter.statusHistory.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.statusHistory.status 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required): 就醫現狀的代碼;應填入所綁定值集中的其中一個代碼
Encounter.statusHistory.period 1..1 Period 該事件處於特定狀態的時間
Encounter.class This element must be supported. This element is included in summaries. 1..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 病人就醫的分類
Binding: ActEncounterCode (extensible): 就醫的分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.classHistory 0..* BackboneElement 過去就醫類別的列表
Encounter.classHistory.id 0..1 string Unique id for inter-element referencing
Encounter.classHistory.extension 0..* Extension Additional content defined by implementations
Encounter.classHistory.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.classHistory.class 1..1 Coding inpatient | outpatient | ambulatory | emergency +
Binding: ActEncounterCode (extensible): 就醫類別;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.classHistory.period 1..1 Period 此就醫事件處於特定類別的時間
Encounter.type This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 就醫的特定型別
Binding: EncounterType (example): 就醫的型別;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.serviceType This element must be supported. This element is included in summaries. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 服務的特定型別
Binding: ServiceType (example): 對提供的服務進行廣泛分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.serviceType.id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
Encounter.serviceType.extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
Encounter.serviceType.Slices for coding This element must be supported. This element is included in summaries. 0..* CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Slice: Unordered, Open by pattern:system
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 對應至 SNOMED CT之就醫科別 + 診療科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: http://snomed.info/sct
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.version This element is included in summaries. 0..1 string 系統的版本—如果相關的話
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalDepartmentSCT.userSelected This element is included in summaries. 0..1 boolean 此編碼是否由使用者直接選擇?
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 無法對應至SNOMED CT之臺灣健保署就醫科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medical-consultation-department-nhi-tw
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.version This element is included in summaries. 0..1 string 系統的版本—如果相關的話
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalConsultationDepartment.userSelected This element is included in summaries. 0..1 boolean 此編碼是否由使用者直接選擇?
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment This element must be supported. This element is included in summaries. 0..1 CodingTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 由專門術語系統(terminology system)定義的代碼
Binding: 無法對應至SNOMED CT之臺灣健保署診療科別值集 (required)
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.id 0..1 string 唯一可識別ID,以供資料項目間相互參照。
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.extension 0..* Extension 擴充的資料項目
Slice: Unordered, Open by value:url
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.system This element must be supported. This element is included in summaries. 1..1 uri 專門術語系統(terminology system)的識別
Required Pattern: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medical-treatment-department-nhi-tw
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.version This element is included in summaries. 0..1 string 系統的版本—如果相關的話
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.code This element must be supported. This element is included in summaries. 0..1 code 系統定義的語法之符號
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.display This element must be supported. This element is included in summaries. 0..1 string 由系統定義的表示法
Encounter.serviceType.Slices for coding.coding:TWMedicalTreatmentDepartment.userSelected This element is included in summaries. 0..1 boolean 此編碼是否由使用者直接選擇?
Encounter.serviceType.text This element must be supported. This element is included in summaries. 0..1 string 概念的文字表示法
Encounter.priority 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 表明就醫的急迫性
Binding: ActPriority (example): 表明就醫的迫切性;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.subject This element must be supported. This element is included in summaries. 1..1 Reference(TW Core Patient | Group) 在場就醫的病人或實體集合(Group)
Encounter.episodeOfCare This element is included in summaries. 0..* Reference(EpisodeOfCare) 此次就醫應記錄的照護事件
Encounter.basedOn 0..* Reference(TW Core ServiceRequest) 開始此次就醫的服務請求(ServiceRequest)
Encounter.participant This element must be supported. This element is included in summaries. 0..* BackboneElement 參與就醫的健康照護服務提供者之名單
Encounter.participant.id 0..1 string Unique id for inter-element referencing
Encounter.participant.extension 0..* Extension Additional content defined by implementations
Encounter.participant.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.participant.type This element must be supported. This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 參與者在病人就醫事件中的角色
Binding: ParticipantType (extensible): 參與者在病人就醫事件中的角色;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。
Encounter.participant.period This element must be supported. 0..1 Period 參與者在病人就醫期間參與的時段
Encounter.participant.individual This element must be supported. This element is included in summaries. 0..1 Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core RelatedPerson) 除病人外,參與病人就醫事件的人。
Encounter.appointment This element is included in summaries. 0..* Reference(Appointment) 這次就醫的預約紀錄
Encounter.period This element must be supported. 1..1 Period 就醫的開始和結束時間
Encounter.length 0..1 Duration 就醫持續的時間(扣除缺席時間)
Encounter.reasonCode This element must be supported. This element is included in summaries. 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 就醫發生的編碼原因
Binding: EncounterReasonCodes (preferred): 發生此就醫事件的原因;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.reasonReference This element is included in summaries. 0..* Reference(TW Core Condition | TW Core Procedure | TW Core Observation Laboratory Result | ImmunizationRecommendation) 就醫發生的原因(參照)
Encounter.diagnosis This element is included in summaries. 0..* BackboneElement 與此就醫相關的診斷清單
Encounter.diagnosis.id 0..1 string Unique id for inter-element referencing
Encounter.diagnosis.extension 0..* Extension Additional content defined by implementations
Encounter.diagnosis.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.diagnosis.condition This element is included in summaries. 1..1 Reference(TW Core Condition | TW Core Procedure) 與就醫事件相關的診斷或處置
Encounter.diagnosis.use 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 此診斷在病人就醫事件中的作用(例如:住院、收費、出院...)。
Binding: DiagnosisRole (preferred): 此情況所代表的診斷型別;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.diagnosis.rank 0..1 positiveInt 診斷的排序(針對每個角色型別)
Encounter.account 0..* Reference(Account) 可用於為此病人就醫事件計費的一組帳戶
Encounter.hospitalization This element must be supported. 0..1 BackboneElement 關於入院接受健康照護服務的細節
Encounter.hospitalization.id 0..1 string Unique id for inter-element referencing
Encounter.hospitalization.extension 0..* Extension Additional content defined by implementations
Encounter.hospitalization.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.hospitalization.preAdmissionIdentifier 0..1 Identifier 住院前識別碼
Encounter.hospitalization.origin 0..1 Reference(TW Core Organization | TW Core Location) 病人住院前來自的地點/機構
Encounter.hospitalization.admitSource 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 病人從哪裡住院(醫生轉介、轉院)?
Binding: AdmitSource (preferred): 病人從哪裡住院;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.hospitalization.reAdmission 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 已發生的醫院再入院型別(如果有的話)。如果該值不存在,則不被認定為再入院。
Binding: hl7VS-re-admissionIndicator (example): 這次住院就醫的再入院原因;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.hospitalization.dietPreference 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 病人報告的飲食偏好
Binding: Diet (example): 醫療、文化或道德方面的食物偏好,以幫助滿足飲食要求;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.hospitalization.specialCourtesy 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 特別禮遇(貴賓、董事會成員)
Binding: SpecialCourtesy (preferred): 特別禮遇;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.hospitalization.specialArrangement 0..* CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 輪椅、翻譯人員、擔架等。
Binding: SpecialArrangements (preferred): 特殊安排;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。
Encounter.hospitalization.destination 0..1 Reference(TW Core Location | TW Core Organization) 病人出院地點/機構
Encounter.hospitalization.dischargeDisposition This element must be supported. 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 出院後的地點類別或種類
Binding: DischargeDisposition (example): 出院處置;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.location This element must be supported. 0..* BackboneElement 病人曾去過的一個或多個地點
Encounter.location.id 0..1 string Unique id for inter-element referencing
Encounter.location.extension 0..* Extension Additional content defined by implementations
Encounter.location.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.location.location This element must be supported. 1..1 Reference(TW Core Location) 就醫發生的地點
Encounter.location.status 0..1 code planned | active | reserved | completed
Binding: EncounterLocationStatus (required): 就醫地點的狀態;應填入所綁定值集中的其中一個代碼。
Encounter.location.physicalType 0..1 CodeableConceptTW The snapshot does not say whether the constraints on the root of this type profile have been applied to this element, so assume they have not. Check the type profile directly as well 地點的實體型別(通常是地點的層級—床位、房間、病房等)。
Binding: LocationType (example): 地點的實體型別;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。
Encounter.location.period 0..1 Period 病人出現在此地點的時段
Encounter.serviceProvider This element must be supported. 0..1 Reference(TW Core Organization) 負責這次就醫的機構
Encounter.partOf 0..1 Reference(TW Core Encounter) 此就醫是哪次就醫的一部份?

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.language Base preferred Common Languages 📦4.0.1 FHIR Std.
Encounter.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.identifier.​type Base extensible IdentifierType 📦4.0.1 FHIR Std.
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v7.4
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v7.4
Encounter.type Base example Encounter type 📦4.0.1 FHIR Std.
Encounter.serviceType Base example Service type 📦4.0.1 FHIR Std.
Encounter.serviceType.​coding:TWMedicalDepartmentSCT Base required 對應至 SNOMED CT之就醫科別 + 診療科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.serviceType.​coding:TWMedicalConsultationDepartment Base required 無法對應至SNOMED CT之臺灣健保署就醫科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.serviceType.​coding:TWMedicalTreatmentDepartment Base required 無法對應至SNOMED CT之臺灣健保署診療科別值集 📦0.3.0 臺灣核心實作指引 v1.0
Encounter.priority Base example ActPriority 📦3.0.0 THO v7.4
Encounter.participant.​type Base extensible Participant type 📦4.0.1 FHIR Std.
Encounter.reasonCode Base preferred Encounter Reason Codes 📦4.0.1 FHIR Std.
Encounter.diagnosis.​use Base preferred DiagnosisRole 📦4.0.1 FHIR Std.
Encounter.hospitalization.​admitSource Base preferred Admit source 📦4.0.1 FHIR Std.
Encounter.hospitalization.​reAdmission Base example hl7VS-re-admissionIndicator 📦3.0.0 THO v7.4
Encounter.hospitalization.​dietPreference Base example Diet 📦4.0.1 FHIR Std.
Encounter.hospitalization.​specialCourtesy Base preferred Special courtesy 📦4.0.1 FHIR Std.
Encounter.hospitalization.​specialArrangement Base preferred Special arrangements 📦4.0.1 FHIR Std.
Encounter.hospitalization.​dischargeDisposition Base example Discharge disposition 📦4.0.1 FHIR Std.
Encounter.location.status Base required EncounterLocationStatus 📍4.0.1 FHIR Std.
Encounter.location.physicalType Base example Location type 📦4.0.1 FHIR Std.

Constraints

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

Summary

Mandatory: 2 elements

 

Other representations of profile: CSV, Excel, Schematron