臺灣長期照顧實作指引(TW LTC IG)
1.1.0 - STU 1.1.0
臺灣長期照顧實作指引(TW LTC IG) - Local Development build (v1.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://ltc-ig.fhir.tw/StructureDefinition/HAHAssessmentResponse | Version: 1.1.0 | |||
| Draft as of 2026-09-29 | Computable Name: HAHAssessmentResponse | |||
記錄評估依據、居家環境、照顧者支援與收案建議。
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | LTCQuestionnaireResponse | A structured set of questions and their answers Constraints: hah-assessment-completed, hah-assessment-reason |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
S | 1..1 | Reference(在宅急症-收案療程) | 在宅急症-療程關聯 URL: http://ltc-ig.fhir.tw/StructureDefinition/ExtHAHEpisode |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
SΣ | 1..1 | canonical(長期照顧-問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL] Required Pattern: http://ltc-ig.fhir.tw/Questionnaire/hah-intake-assessment|1.1.0 |
![]() ![]() |
?!SΣ | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped] Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. |
![]() ![]() |
SΣ | 1..1 | Reference(在宅急症-個案) | 問卷回覆的適用主體 |
![]() ![]() ![]() |
SΣC | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID] |
![]() ![]() |
SΣ | 1..1 | dateTime | 問卷回覆的填寫日期 |
![]() ![]() |
SΣ | 1..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-服務人員角色) | 問卷回覆的填寫者 |
![]() ![]() ![]() |
SΣC | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID] |
![]() ![]() |
SΣ | 0..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-關係人 | 長期照顧-住民基本資料 | 長期照顧-服務人員角色) | 誰提供了問卷回覆的資料,意即誰回答了這份問卷 |
![]() ![]() ![]() |
SΣC | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID] |
![]() ![]() |
SC | 4..* | BackboneElement | 問卷回覆的內容 Slice: Unordered, Closed by value:linkId Constraints: qrs-1 |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | |
![]() ![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() ![]() |
uri | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Attachment | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 評估所依據的計畫名稱與版本 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: criteria |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. |
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 居家環境與設備可行性評估 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: home-safety |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. |
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 照顧者支援與照護能力 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: caregiver-support |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. |
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 收案建議 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: decision |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | Coding | 回覆的內容。[應填入回覆的內容] Binding: 在宅急症-收案評估結果值集 (required) |
![]() ![]() ![]() |
SC | 0..1 | BackboneElement | 不建議收案或待確認的原因 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: reason |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.status | Base | required | QuestionnaireResponseStatus | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:criteria.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:homeSafety.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:caregiverSupport.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:decision.answer.value[x] | Base | required | 在宅急症-收案評估結果值集 | 📦1.1.0 | This IG |
| QuestionnaireResponse.item:reason.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | QuestionnaireResponse | 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 | QuestionnaireResponse | 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 | QuestionnaireResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | QuestionnaireResponse | 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()
|
| hah-assessment-completed | error | QuestionnaireResponse | 已完成或修訂的評估,四項必要題目都應有答案。 |
(status = 'completed' or status = 'amended') implies item.where(linkId = 'criteria' or linkId = 'home-safety' or linkId = 'caregiver-support' or linkId = 'decision').all(answer.value.exists())
|
| hah-assessment-reason | error | QuestionnaireResponse | 不建議收案或待確認時應填寫原因。 |
item.where(linkId='decision').answer.value.ofType(Coding).where(code='ineligible' or code='pending').exists() implies item.where(linkId='reason').answer.value.exists()
|
| qrs-1 | error | QuestionnaireResponse.item, QuestionnaireResponse.item:criteria, QuestionnaireResponse.item:homeSafety, QuestionnaireResponse.item:caregiverSupport, QuestionnaireResponse.item:decision, QuestionnaireResponse.item:reason | Nested item can't be beneath both item and answer |
(answer.exists() and item.exists()).not()
|
This structure is derived from LTCQuestionnaireResponse
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | LTCQuestionnaireResponse | A structured set of questions and their answers Constraints: hah-assessment-completed, hah-assessment-reason |
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
S | 1..1 | Reference(在宅急症-收案療程) | 在宅急症-療程關聯 URL: http://ltc-ig.fhir.tw/StructureDefinition/ExtHAHEpisode |
![]() ![]() |
1..1 | canonical(長期照顧-問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL] Required Pattern: http://ltc-ig.fhir.tw/Questionnaire/hah-intake-assessment|1.1.0 | |
![]() ![]() |
1..1 | Reference(在宅急症-個案) | 問卷回覆的適用主體 | |
![]() ![]() |
1..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-服務人員角色) | 問卷回覆的填寫者 | |
![]() ![]() |
4..* | BackboneElement | 問卷回覆的內容 Slice: Unordered, Closed by value:linkId | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..1 | BackboneElement | 問題或量表項目的回覆 | |
![]() ![]() ![]() ![]() ![]() |
0..0 | Nested groups and questions | ||
![]() ![]() ![]() ![]() |
0..0 | 問卷的問題或量表項目(用於巢狀問卷) | ||
![]() ![]() ![]() |
S | 1..1 | BackboneElement | 評估所依據的計畫名稱與版本 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: criteria | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | 回覆的內容。[應填入回覆的內容] | |
![]() ![]() ![]() |
S | 1..1 | BackboneElement | 居家環境與設備可行性評估 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: home-safety | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | 回覆的內容。[應填入回覆的內容] | |
![]() ![]() ![]() |
S | 1..1 | BackboneElement | 照顧者支援與照護能力 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: caregiver-support | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | 回覆的內容。[應填入回覆的內容] | |
![]() ![]() ![]() |
S | 1..1 | BackboneElement | 收案建議 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: decision | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | Coding | 回覆的內容。[應填入回覆的內容] Binding: 在宅急症-收案評估結果值集 (required) | |
![]() ![]() ![]() |
S | 0..1 | BackboneElement | 不建議收案或待確認的原因 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: reason | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | 回覆的內容。[應填入回覆的內容] | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.item:decision.answer.value[x] | Base | required | 在宅急症-收案評估結果值集 | 📦1.1.0 | This IG |
| Id | Grade | Path(s) | Description | Expression |
| hah-assessment-completed | error | QuestionnaireResponse | 已完成或修訂的評估,四項必要題目都應有答案。 |
(status = 'completed' or status = 'amended') implies item.where(linkId = 'criteria' or linkId = 'home-safety' or linkId = 'caregiver-support' or linkId = 'decision').all(answer.value.exists())
|
| hah-assessment-reason | error | QuestionnaireResponse | 不建議收案或待確認時應填寫原因。 |
item.where(linkId='decision').answer.value.ofType(Coding).where(code='ineligible' or code='pending').exists() implies item.where(linkId='reason').answer.value.exists()
|
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | LTCQuestionnaireResponse | A structured set of questions and their answers Constraints: hah-assessment-completed, hah-assessment-reason | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
S | 1..1 | Reference(在宅急症-收案療程) | 在宅急症-療程關聯 URL: http://ltc-ig.fhir.tw/StructureDefinition/ExtHAHEpisode | ||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
Σ | 0..1 | Identifier | Unique id for this set of answers | ||||
![]() ![]() |
Σ | 0..* | Reference(CarePlan | ServiceRequest) | Request fulfilled by this QuestionnaireResponse | ||||
![]() ![]() |
Σ | 0..* | Reference(Observation | Procedure) | Part of this action | ||||
![]() ![]() |
SΣ | 1..1 | canonical(長期照顧-問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL] Required Pattern: http://ltc-ig.fhir.tw/Questionnaire/hah-intake-assessment|1.1.0 | ||||
![]() ![]() |
?!SΣ | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped] Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. | ||||
![]() ![]() |
SΣ | 1..1 | Reference(在宅急症-個案) | 問卷回覆的適用主體 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID] | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | Reference(Encounter) | Encounter created as part of | ||||
![]() ![]() |
SΣ | 1..1 | dateTime | 問卷回覆的填寫日期 | ||||
![]() ![]() |
SΣ | 1..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-服務人員角色) | 問卷回覆的填寫者 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID] | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
SΣ | 0..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-關係人 | 長期照顧-住民基本資料 | 長期照顧-服務人員角色) | 誰提供了問卷回覆的資料,意即誰回答了這份問卷 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID] | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
SC | 4..* | BackboneElement | 問卷回覆的內容 Slice: Unordered, Closed by value:linkId Constraints: qrs-1 | ||||
![]() ![]() ![]() |
Content/Rules for all slices | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 評估所依據的計畫名稱與版本 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: criteria | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | ||||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 居家環境與設備可行性評估 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: home-safety | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | ||||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 照顧者支援與照護能力 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: caregiver-support | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | ||||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 收案建議 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: decision | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | Coding | 回覆的內容。[應填入回覆的內容] Binding: 在宅急症-收案評估結果值集 (required) | ||||
![]() ![]() ![]() |
SC | 0..1 | BackboneElement | 不建議收案或待確認的原因 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: reason | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.status | Base | required | QuestionnaireResponseStatus | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.subject.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.author.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.source.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:criteria.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:homeSafety.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:caregiverSupport.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:decision.answer.value[x] | Base | required | 在宅急症-收案評估結果值集 | 📦1.1.0 | This IG |
| QuestionnaireResponse.item:reason.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | QuestionnaireResponse | 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 | QuestionnaireResponse | 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 | QuestionnaireResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | QuestionnaireResponse | 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()
|
| hah-assessment-completed | error | QuestionnaireResponse | 已完成或修訂的評估,四項必要題目都應有答案。 |
(status = 'completed' or status = 'amended') implies item.where(linkId = 'criteria' or linkId = 'home-safety' or linkId = 'caregiver-support' or linkId = 'decision').all(answer.value.exists())
|
| hah-assessment-reason | error | QuestionnaireResponse | 不建議收案或待確認時應填寫原因。 |
item.where(linkId='decision').answer.value.ofType(Coding).where(code='ineligible' or code='pending').exists() implies item.where(linkId='reason').answer.value.exists()
|
| qrs-1 | error | QuestionnaireResponse.item, QuestionnaireResponse.item:criteria, QuestionnaireResponse.item:homeSafety, QuestionnaireResponse.item:caregiverSupport, QuestionnaireResponse.item:decision, QuestionnaireResponse.item:reason | Nested item can't be beneath both item and answer |
(answer.exists() and item.exists()).not()
|
This structure is derived from LTCQuestionnaireResponse
Summary
Mandatory: 8 elements
Must-Support: 6 elements
Prohibited: 2 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Slices
This structure defines the following Slices:
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | LTCQuestionnaireResponse | A structured set of questions and their answers Constraints: hah-assessment-completed, hah-assessment-reason |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
S | 1..1 | Reference(在宅急症-收案療程) | 在宅急症-療程關聯 URL: http://ltc-ig.fhir.tw/StructureDefinition/ExtHAHEpisode |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
SΣ | 1..1 | canonical(長期照顧-問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL] Required Pattern: http://ltc-ig.fhir.tw/Questionnaire/hah-intake-assessment|1.1.0 |
![]() ![]() |
?!SΣ | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped] Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. |
![]() ![]() |
SΣ | 1..1 | Reference(在宅急症-個案) | 問卷回覆的適用主體 |
![]() ![]() ![]() |
SΣC | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID] |
![]() ![]() |
SΣ | 1..1 | dateTime | 問卷回覆的填寫日期 |
![]() ![]() |
SΣ | 1..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-服務人員角色) | 問卷回覆的填寫者 |
![]() ![]() ![]() |
SΣC | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID] |
![]() ![]() |
SΣ | 0..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-關係人 | 長期照顧-住民基本資料 | 長期照顧-服務人員角色) | 誰提供了問卷回覆的資料,意即誰回答了這份問卷 |
![]() ![]() ![]() |
SΣC | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID] |
![]() ![]() |
SC | 4..* | BackboneElement | 問卷回覆的內容 Slice: Unordered, Closed by value:linkId Constraints: qrs-1 |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | |
![]() ![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() ![]() |
uri | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Attachment | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 評估所依據的計畫名稱與版本 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: criteria |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. |
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 居家環境與設備可行性評估 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: home-safety |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. |
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 照顧者支援與照護能力 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: caregiver-support |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. |
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 收案建議 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: decision |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | Coding | 回覆的內容。[應填入回覆的內容] Binding: 在宅急症-收案評估結果值集 (required) |
![]() ![]() ![]() |
SC | 0..1 | BackboneElement | 不建議收案或待確認的原因 Constraints: qrs-1 |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: reason |
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] |
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 |
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.status | Base | required | QuestionnaireResponseStatus | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:criteria.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:homeSafety.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:caregiverSupport.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:decision.answer.value[x] | Base | required | 在宅急症-收案評估結果值集 | 📦1.1.0 | This IG |
| QuestionnaireResponse.item:reason.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | QuestionnaireResponse | 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 | QuestionnaireResponse | 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 | QuestionnaireResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | QuestionnaireResponse | 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()
|
| hah-assessment-completed | error | QuestionnaireResponse | 已完成或修訂的評估,四項必要題目都應有答案。 |
(status = 'completed' or status = 'amended') implies item.where(linkId = 'criteria' or linkId = 'home-safety' or linkId = 'caregiver-support' or linkId = 'decision').all(answer.value.exists())
|
| hah-assessment-reason | error | QuestionnaireResponse | 不建議收案或待確認時應填寫原因。 |
item.where(linkId='decision').answer.value.ofType(Coding).where(code='ineligible' or code='pending').exists() implies item.where(linkId='reason').answer.value.exists()
|
| qrs-1 | error | QuestionnaireResponse.item, QuestionnaireResponse.item:criteria, QuestionnaireResponse.item:homeSafety, QuestionnaireResponse.item:caregiverSupport, QuestionnaireResponse.item:decision, QuestionnaireResponse.item:reason | Nested item can't be beneath both item and answer |
(answer.exists() and item.exists()).not()
|
Differential View
This structure is derived from LTCQuestionnaireResponse
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | LTCQuestionnaireResponse | A structured set of questions and their answers Constraints: hah-assessment-completed, hah-assessment-reason |
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
S | 1..1 | Reference(在宅急症-收案療程) | 在宅急症-療程關聯 URL: http://ltc-ig.fhir.tw/StructureDefinition/ExtHAHEpisode |
![]() ![]() |
1..1 | canonical(長期照顧-問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL] Required Pattern: http://ltc-ig.fhir.tw/Questionnaire/hah-intake-assessment|1.1.0 | |
![]() ![]() |
1..1 | Reference(在宅急症-個案) | 問卷回覆的適用主體 | |
![]() ![]() |
1..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-服務人員角色) | 問卷回覆的填寫者 | |
![]() ![]() |
4..* | BackboneElement | 問卷回覆的內容 Slice: Unordered, Closed by value:linkId | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..1 | BackboneElement | 問題或量表項目的回覆 | |
![]() ![]() ![]() ![]() ![]() |
0..0 | Nested groups and questions | ||
![]() ![]() ![]() ![]() |
0..0 | 問卷的問題或量表項目(用於巢狀問卷) | ||
![]() ![]() ![]() |
S | 1..1 | BackboneElement | 評估所依據的計畫名稱與版本 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: criteria | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | 回覆的內容。[應填入回覆的內容] | |
![]() ![]() ![]() |
S | 1..1 | BackboneElement | 居家環境與設備可行性評估 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: home-safety | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | 回覆的內容。[應填入回覆的內容] | |
![]() ![]() ![]() |
S | 1..1 | BackboneElement | 照顧者支援與照護能力 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: caregiver-support | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | 回覆的內容。[應填入回覆的內容] | |
![]() ![]() ![]() |
S | 1..1 | BackboneElement | 收案建議 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: decision | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | Coding | 回覆的內容。[應填入回覆的內容] Binding: 在宅急症-收案評估結果值集 (required) | |
![]() ![]() ![]() |
S | 0..1 | BackboneElement | 不建議收案或待確認的原因 |
![]() ![]() ![]() ![]() |
1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: reason | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | 回覆的內容。[應填入回覆的內容] | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.item:decision.answer.value[x] | Base | required | 在宅急症-收案評估結果值集 | 📦1.1.0 | This IG |
| Id | Grade | Path(s) | Description | Expression |
| hah-assessment-completed | error | QuestionnaireResponse | 已完成或修訂的評估,四項必要題目都應有答案。 |
(status = 'completed' or status = 'amended') implies item.where(linkId = 'criteria' or linkId = 'home-safety' or linkId = 'caregiver-support' or linkId = 'decision').all(answer.value.exists())
|
| hah-assessment-reason | error | QuestionnaireResponse | 不建議收案或待確認時應填寫原因。 |
item.where(linkId='decision').answer.value.ofType(Coding).where(code='ineligible' or code='pending').exists() implies item.where(linkId='reason').answer.value.exists()
|
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | LTCQuestionnaireResponse | A structured set of questions and their answers Constraints: hah-assessment-completed, hah-assessment-reason | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
S | 1..1 | Reference(在宅急症-收案療程) | 在宅急症-療程關聯 URL: http://ltc-ig.fhir.tw/StructureDefinition/ExtHAHEpisode | ||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
Σ | 0..1 | Identifier | Unique id for this set of answers | ||||
![]() ![]() |
Σ | 0..* | Reference(CarePlan | ServiceRequest) | Request fulfilled by this QuestionnaireResponse | ||||
![]() ![]() |
Σ | 0..* | Reference(Observation | Procedure) | Part of this action | ||||
![]() ![]() |
SΣ | 1..1 | canonical(長期照顧-問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL] Required Pattern: http://ltc-ig.fhir.tw/Questionnaire/hah-intake-assessment|1.1.0 | ||||
![]() ![]() |
?!SΣ | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped] Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. | ||||
![]() ![]() |
SΣ | 1..1 | Reference(在宅急症-個案) | 問卷回覆的適用主體 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID] | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | Reference(Encounter) | Encounter created as part of | ||||
![]() ![]() |
SΣ | 1..1 | dateTime | 問卷回覆的填寫日期 | ||||
![]() ![]() |
SΣ | 1..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-服務人員角色) | 問卷回覆的填寫者 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID] | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
SΣ | 0..1 | Reference(長期照顧-照顧服務提供者 | 長期照顧-關係人 | 長期照顧-住民基本資料 | 長期照顧-服務人員角色) | 誰提供了問卷回覆的資料,意即誰回答了這份問卷 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID] | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
SC | 4..* | BackboneElement | 問卷回覆的內容 Slice: Unordered, Closed by value:linkId Constraints: qrs-1 | ||||
![]() ![]() ![]() |
Content/Rules for all slices | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 評估所依據的計畫名稱與版本 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: criteria | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | ||||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 居家環境與設備可行性評估 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: home-safety | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | ||||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 照顧者支援與照護能力 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: caregiver-support | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | ||||
![]() ![]() ![]() |
SC | 1..1 | BackboneElement | 收案建議 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: decision | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | Coding | 回覆的內容。[應填入回覆的內容] Binding: 在宅急症-收案評估結果值集 (required) | ||||
![]() ![]() ![]() |
SC | 0..1 | BackboneElement | 不建議收案或待確認的原因 Constraints: qrs-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() |
S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號] Required Pattern: reason | ||||
![]() ![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容] | ||||
![]() ![]() ![]() ![]() |
S | 0..1 | BackboneElement | 問題或量表項目的回覆 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() ![]() |
S | 0..1 | string | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question. | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.status | Base | required | QuestionnaireResponseStatus | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.subject.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.author.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.source.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:criteria.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:homeSafety.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:caregiverSupport.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| QuestionnaireResponse.item:decision.answer.value[x] | Base | required | 在宅急症-收案評估結果值集 | 📦1.1.0 | This IG |
| QuestionnaireResponse.item:reason.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | QuestionnaireResponse | 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 | QuestionnaireResponse | 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 | QuestionnaireResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | QuestionnaireResponse | 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()
|
| hah-assessment-completed | error | QuestionnaireResponse | 已完成或修訂的評估,四項必要題目都應有答案。 |
(status = 'completed' or status = 'amended') implies item.where(linkId = 'criteria' or linkId = 'home-safety' or linkId = 'caregiver-support' or linkId = 'decision').all(answer.value.exists())
|
| hah-assessment-reason | error | QuestionnaireResponse | 不建議收案或待確認時應填寫原因。 |
item.where(linkId='decision').answer.value.ofType(Coding).where(code='ineligible' or code='pending').exists() implies item.where(linkId='reason').answer.value.exists()
|
| qrs-1 | error | QuestionnaireResponse.item, QuestionnaireResponse.item:criteria, QuestionnaireResponse.item:homeSafety, QuestionnaireResponse.item:caregiverSupport, QuestionnaireResponse.item:decision, QuestionnaireResponse.item:reason | Nested item can't be beneath both item and answer |
(answer.exists() and item.exists()).not()
|
This structure is derived from LTCQuestionnaireResponse
Summary
Mandatory: 8 elements
Must-Support: 6 elements
Prohibited: 2 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Slices
This structure defines the following Slices:
Other representations of profile: CSV, Excel, Schematron