臺灣長期照顧實作指引(TW LTC IG)
1.0.0 - STU 1.0.0

臺灣長期照顧實作指引(TW LTC IG), published by 經濟部產業發展署. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/Lorex/TWLongTermCare_IG_Build/ and changes regularly. See the Directory of published versions

## Resource Profile: 長期照顧－問卷回覆

Official URL: http://ltc-ig.fhir.tw/StructureDefinition/LTCQuestionnaireResponse | Version: 1.0.0
Active as of 2026-03-01 | Computable Name: LTCQuestionnaireResponse

此 Profile 說明本 IG 如何進一步定義 FHIR 的 QuestionnaireResponse Resource，以呈現長期照顧情境中涉及之問卷或量表回覆內容。

Usages:

- Derived from this Profile: 長期照顧－AA01照顧計畫擬訂與服務連結問卷回應, 長期照顧－AA02照顧管理追蹤問卷回覆, 長期照護醫師意見書問卷回覆 (AA12), ADL 問卷回覆... Show 10 more, 照顧管理評估量表－主要照顧者負荷問卷回覆, 照顧管理評估量表－主要照顧者工作與支持, 照顧管理評估量表－個案溝通能力問卷回覆, 照顧管理評估量表－個案短期記憶力問卷回覆, 照顧管理評估量表－情緒及行為型態問卷回覆, 照顧管理評估量表－居家環境與社會參與問卷回覆, 照顧管理評估量表－特殊複雜照護需要問卷回覆, IADL 問卷回覆, 轉介單－照顧者問卷回覆 and 轉介單－衰弱評估問卷回覆
- Examples for this Profile: QuestionnaireResponse/ltc-questionnaire-response-example
- CapabilityStatements using this Profile: 臺灣長期照顧實作指引 - 用戶端能力聲明 and 臺灣長期照顧實作指引 - 伺服端能力聲明

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

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

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
questionnaire | S Σ | 0..1 | canonical(長期照顧－問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL]
status | ?!S Σ | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped] Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
subject | S Σ | 1..1 | Reference(長期照顧－住民基本資料) | 問卷回覆的適用主體
reference | S Σ C | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID]
authored | S Σ | 1..1 | dateTime | 問卷回覆的填寫日期
author | S Σ | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 問卷回覆的填寫者
reference | S Σ C | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
source | S Σ | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 誰提供了問卷回覆的資料，意即誰回答了這份問卷
reference | S Σ C | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
item | S C | 1..* | BackboneElement | 問卷回覆的內容 Constraints: qrs-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
linkId | S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號]
text | S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容]
answer | S | 0..* | BackboneElement | 問題或量表項目的回覆
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value[x] | S | 0..1 |  | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.
valueBoolean |  |  | boolean |
valueDecimal |  |  | decimal |
valueInteger |  |  | integer |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueTime |  |  | time |
valueString |  |  | string |
valueUri |  |  | uri |
valueAttachment |  |  | Attachment |
valueCoding |  |  | Coding |
valueQuantity |  |  | Quantity |
valueReference |  |  | Reference(Resource) |
item | S | 0..* | See item (QuestionnaireResponse) | 問卷的問題或量表項目（用於巢狀問卷）
Documentation for this format

#### Terminology Bindings

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.

#### Constraints

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()`
qrs-1 | error | QuestionnaireResponse.item | Nested item can't be beneath both item and answer | `(answer.exists() and item.exists()).not()`

This structure is derived from QuestionnaireResponse

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
QuestionnaireResponse |  |  | QuestionnaireResponse |
questionnaire | S | 0..1 | canonical(長期照顧－問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL]
status | S | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped]
subject | S | 1..1 | Reference(長期照顧－住民基本資料) | 問卷回覆的適用主體
reference | S | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID]
authored | S | 1..1 | dateTime | 問卷回覆的填寫日期
author | S | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 問卷回覆的填寫者
reference | S | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
source | S | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 誰提供了問卷回覆的資料，意即誰回答了這份問卷
reference | S | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
item | S | 1..* | BackboneElement | 問卷回覆的內容
linkId | S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號]
text | S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容]
answer | S | 0..* | BackboneElement | 問題或量表項目的回覆
value[x] | S | 0..1 | boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource) | 回覆的內容。[應填入回覆的內容]
item | S | 0..* |  | 問卷的問題或量表項目（用於巢狀問卷）
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 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
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..1 | Identifier | Unique id for this set of answers
basedOn | Σ | 0..* | Reference(CarePlan | ServiceRequest) | Request fulfilled by this QuestionnaireResponse
partOf | Σ | 0..* | Reference(Observation | Procedure) | Part of this action
questionnaire | S Σ | 0..1 | canonical(長期照顧－問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL]
status | ?!S Σ | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped] Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
subject | S Σ | 1..1 | Reference(長期照顧－住民基本資料) | 問卷回覆的適用主體
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID]
type | Σ | 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).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
authored | S Σ | 1..1 | dateTime | 問卷回覆的填寫日期
author | S Σ | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 問卷回覆的填寫者
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
type | Σ | 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).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
source | S Σ | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 誰提供了問卷回覆的資料，意即誰回答了這份問卷
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
type | Σ | 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).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
item | S C | 1..* | BackboneElement | 問卷回覆的內容 Constraints: qrs-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
linkId | S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號]
definition |  | 0..1 | uri | ElementDefinition - details for the item
text | S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容]
answer | S | 0..* | BackboneElement | 問題或量表項目的回覆
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value[x] | S | 0..1 |  | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.
valueBoolean |  |  | boolean |
valueDecimal |  |  | decimal |
valueInteger |  |  | integer |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueTime |  |  | time |
valueString |  |  | string |
valueUri |  |  | uri |
valueAttachment |  |  | Attachment |
valueCoding |  |  | Coding |
valueQuantity |  |  | Quantity |
valueReference |  |  | Reference(Resource) |
item |  | 0..* | See item (QuestionnaireResponse) | Nested groups and questions
item | S | 0..* | See item (QuestionnaireResponse) | 問卷的問題或量表項目（用於巢狀問卷）
Documentation for this format

#### Terminology Bindings

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.

#### Constraints

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()`
qrs-1 | error | QuestionnaireResponse.item | Nested item can't be beneath both item and answer | `(answer.exists() and item.exists()).not()`

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 4 elements(2 nested mandatory elements)
Must-Support: 15 elements

Structures

This structure refers to these other structures:

- 長期照顧－問卷 (http://ltc-ig.fhir.tw/StructureDefinition/LTCQuestionnaire)
- 長期照顧－住民基本資料 (http://ltc-ig.fhir.tw/StructureDefinition/LTCPatient)
- 長期照顧－照顧服務提供者 (http://ltc-ig.fhir.tw/StructureDefinition/LTCPractitioner)
- 長期照顧－關係人 (http://ltc-ig.fhir.tw/StructureDefinition/LTCRelatedPerson)
- 長期照顧－服務人員角色 (http://ltc-ig.fhir.tw/StructureDefinition/LTCPractitionerRole)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
questionnaire | S Σ | 0..1 | canonical(長期照顧－問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL]
status | ?!S Σ | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped] Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
subject | S Σ | 1..1 | Reference(長期照顧－住民基本資料) | 問卷回覆的適用主體
reference | S Σ C | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID]
authored | S Σ | 1..1 | dateTime | 問卷回覆的填寫日期
author | S Σ | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 問卷回覆的填寫者
reference | S Σ C | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
source | S Σ | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 誰提供了問卷回覆的資料，意即誰回答了這份問卷
reference | S Σ C | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
item | S C | 1..* | BackboneElement | 問卷回覆的內容 Constraints: qrs-1
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
linkId | S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號]
text | S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容]
answer | S | 0..* | BackboneElement | 問題或量表項目的回覆
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value[x] | S | 0..1 |  | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.
valueBoolean |  |  | boolean |
valueDecimal |  |  | decimal |
valueInteger |  |  | integer |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueTime |  |  | time |
valueString |  |  | string |
valueUri |  |  | uri |
valueAttachment |  |  | Attachment |
valueCoding |  |  | Coding |
valueQuantity |  |  | Quantity |
valueReference |  |  | Reference(Resource) |
item | S | 0..* | See item (QuestionnaireResponse) | 問卷的問題或量表項目（用於巢狀問卷）
Documentation for this format

#### Terminology Bindings

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.

#### Constraints

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()`
qrs-1 | error | QuestionnaireResponse.item | Nested item can't be beneath both item and answer | `(answer.exists() and item.exists()).not()`

Differential View

This structure is derived from QuestionnaireResponse

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
QuestionnaireResponse |  |  | QuestionnaireResponse |
questionnaire | S | 0..1 | canonical(長期照顧－問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL]
status | S | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped]
subject | S | 1..1 | Reference(長期照顧－住民基本資料) | 問卷回覆的適用主體
reference | S | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID]
authored | S | 1..1 | dateTime | 問卷回覆的填寫日期
author | S | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 問卷回覆的填寫者
reference | S | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
source | S | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 誰提供了問卷回覆的資料，意即誰回答了這份問卷
reference | S | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
item | S | 1..* | BackboneElement | 問卷回覆的內容
linkId | S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號]
text | S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容]
answer | S | 0..* | BackboneElement | 問題或量表項目的回覆
value[x] | S | 0..1 | boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource) | 回覆的內容。[應填入回覆的內容]
item | S | 0..* |  | 問卷的問題或量表項目（用於巢狀問卷）
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 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
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..1 | Identifier | Unique id for this set of answers
basedOn | Σ | 0..* | Reference(CarePlan | ServiceRequest) | Request fulfilled by this QuestionnaireResponse
partOf | Σ | 0..* | Reference(Observation | Procedure) | Part of this action
questionnaire | S Σ | 0..1 | canonical(長期照顧－問卷) | 這個問卷回覆所回答的問卷。[應填入問卷的 URL]
status | ?!S Σ | 1..1 | code | 問卷回覆的狀態。[應填入 in-progress / completed / amended / entered-in-error / stopped] Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
subject | S Σ | 1..1 | Reference(長期照顧－住民基本資料) | 問卷回覆的適用主體
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 問卷回覆的適用主體。[應輸入 Patient Resource ID]
type | Σ | 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).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
authored | S Σ | 1..1 | dateTime | 問卷回覆的填寫日期
author | S Σ | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 問卷回覆的填寫者
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 問卷回覆的填寫者。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
type | Σ | 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).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
source | S Σ | 0..1 | Reference(長期照顧－照顧服務提供者 | 長期照顧－關係人 | 長期照顧－住民基本資料 | 長期照顧－服務人員角色) | 誰提供了問卷回覆的資料，意即誰回答了這份問卷
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 誰提供了問卷回覆的資料。[應輸入 Practitioner / RelatedPerson / Patient / PractitionerRole Resource ID]
type | Σ | 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).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
item | S C | 1..* | BackboneElement | 問卷回覆的內容 Constraints: qrs-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
linkId | S | 1..1 | string | 問題或量表項目的唯一識別碼。[應填入獨立的編號]
definition |  | 0..1 | uri | ElementDefinition - details for the item
text | S | 0..1 | string | 問題或量表項目的內容描述。[應填入問題或量表項目的內容]
answer | S | 0..* | BackboneElement | 問題或量表項目的回覆
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value[x] | S | 0..1 |  | 回覆的內容。[應填入回覆的內容] Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.
valueBoolean |  |  | boolean |
valueDecimal |  |  | decimal |
valueInteger |  |  | integer |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueTime |  |  | time |
valueString |  |  | string |
valueUri |  |  | uri |
valueAttachment |  |  | Attachment |
valueCoding |  |  | Coding |
valueQuantity |  |  | Quantity |
valueReference |  |  | Reference(Resource) |
item |  | 0..* | See item (QuestionnaireResponse) | Nested groups and questions
item | S | 0..* | See item (QuestionnaireResponse) | 問卷的問題或量表項目（用於巢狀問卷）
Documentation for this format

#### Terminology Bindings

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.

#### Constraints

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()`
qrs-1 | error | QuestionnaireResponse.item | Nested item can't be beneath both item and answer | `(answer.exists() and item.exists()).not()`

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 4 elements(2 nested mandatory elements)
Must-Support: 15 elements

Structures

This structure refers to these other structures:

- 長期照顧－問卷 (http://ltc-ig.fhir.tw/StructureDefinition/LTCQuestionnaire)
- 長期照顧－住民基本資料 (http://ltc-ig.fhir.tw/StructureDefinition/LTCPatient)
- 長期照顧－照顧服務提供者 (http://ltc-ig.fhir.tw/StructureDefinition/LTCPractitioner)
- 長期照顧－關係人 (http://ltc-ig.fhir.tw/StructureDefinition/LTCRelatedPerson)
- 長期照顧－服務人員角色 (http://ltc-ig.fhir.tw/StructureDefinition/LTCPractitionerRole)

Other representations of profile: CSV, Excel, Schematron