1.0.0 - release
            
          
CambioOpenServicesIG - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: https://fhir.cambio.se/StructureDefinition/QuestionnaireResponseSe/v1 | Version: 1.3.0 | |||
| Active as of 2025-10-13 | Computable Name: QuestionnaireResponseSe | |||
The QuestionnaireResponseSe profile includes the answers to the questions in the QuestionnaireSe profile. The QuestionnaireSe profile also defines the logic which the QuestionnaireResponse should follow. QuestionnaireResponseSe is profiled for the Swedish market.
Intended user of the API is a healthcare professional with a specified HSA ID. The healthcare professional should have their assignment and be connected to the specified unit. Unit should also be specified with HSA ID. Intended use in is that the API is used within the same caregiver.
The user and specified unit should exist in COSMIC and be the same in the external system. Only signed notes should be sent from the external system.
It is recommended to implement the API for real time synchronization, due to the patient risk with not having the latest information in COSMIC.
In cases where the patient is the author, the extension common-hsaHierarchy is used to specify to which care provider and unit responsible care unit the QuestionnaireResponse belongs.
A QuestionnaireResponse sent through this API can only reference a Questionnaire which exists in COSMIC. This means that it is a prerequisite to also implement QuestionnaireSeLite and QuestionnaireSe to retrieve an applicable Questionnaire id.
Medical record notes created through this API will be read-only and cannot be updated in the external system. The reason is to avoid differences in documentation between different systems. If the external system has its own storage it should be considered the information owner and every change/update of the information should be done from the external system to guarantee the correctness of the information.
| Type | Description | 
|---|---|
| Rule | The API should not be used to transfer data between care givers. | 
| Rule | If a created QuestionnaireResponse is re-signed/updated in the external system it should invalidated and re-created through this API and Provenance API, as there is no support for updating in the current version of COS. | 
| Rule | The API does not support scenarios concerning reviewing medical record notes, meaning that the healthcare professional (user) can sign themselves without needing review from others. | 
| Rule | Caregivers who use this API must themselves develop routines for how imported information is to be paid attention to. | 
| Rule | A date is required. Format for date should be YYYY-MM-DD. If the date is the 1st of respective month, time must also be provided. | 
| Rule | Medical record notes created through this API will be read-only and cannot be updated in the external system. | 
| Rule | The extension 'answerComment' will only be possible to use if the corresponding QuestionnaireSe resource allows for it. | 
| Limitation | COSMIC only supports statuses 'completed', 'entered-in-error' and 'in-progress'. | 
| Limitation | Only Condition, Procedure and Observation are supported as answer references. | 
| FHIR status | Status in COSMIC | 
|---|---|
| in-progress | Unsigned | 
| completed | Signed (when author is a PractitionerRole), Complete Not Signable (when author is the patient) | 
| COS version | Profile version | Required COSMIC version | Date | Description | 
|---|---|---|---|---|
| 2.4.0 | 1.0.0 | R8.3.04 | Feb 2022 | Initial version, support for POST. | 
| 4.2.0 | 1.1.0 | 3.10.0 | Apr 2024 | Support for status 'in-progress'. | 
| 4.5.0 | 1.2.0 | 3.10.0 | Sep 2024 | readOnly extension added. | 
| 4.15.0 | 1.3.0 | 3.10.0 | Sep 2025 | Added the possibility to include Observations as answer references and added new extension answerComment. | 
| HTTP Method | Description | 
|---|---|
| POST | Used to create a QuestionnaireResponse for a given patient. If successful, the operation will return id in response. | 
POST [baseURL]/QuestionnaireResponseIn below table, a few error messages specific for QuestionnaireResponse are listed.
| Code | Description | Comment | 
|---|---|---|
| 400 | Invalid payloads | 
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:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
0..* | QuestionnaireResponseCore | A structured set of questions and their answers | |
![]() ![]()  | 
?!Σ | 0..1 | uri | A set of rules under which this content was created | 
![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |
![]() ![]() ![]()  | 
0..1 | (Complex) | Extension URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1  | |
![]() ![]() ![]()  | 
0..1 | boolean | Use to define if the resource is readOnly URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1  | |
![]() ![]()  | 
?! | 0..* | Extension | Extensions that cannot be ignored | 
![]() ![]()  | 
Σ | 1..1 | canonical(QuestionnaireSe) | Form being answered | 
![]() ![]()  | 
?!Σ | 1..1 | code | completed | entered-in-error | in-progress Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.  | 
![]() ![]()  | 
Σ | 0..1 | Reference(Patient) | The subject of the questions | 
![]() ![]()  | 
Σ | 1..1 | dateTime | Date the answers were gathered | 
![]() ![]()  | 
Σ | 1..1 | Reference(PractitionerRoleLiteSe | Patient) | Person who received and recorded the answers | 
![]() ![]() ![]()  | 
Σ | 1..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).  | 
  Documentation for this format | ||||
| Path | Conformance | ValueSet | URI | 
| QuestionnaireResponse.status | required | QuestionnaireResponseStatushttp://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1From the FHIR Standard  | |
| QuestionnaireResponse.author.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-typesFrom the FHIR Standard  | 
| Id | Grade | Path(s) | Details | Requirements | 
| 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()  | 
This structure is derived from QuestionnaireResponseCore
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
0..* | QuestionnaireResponseCore | A structured set of questions and their answers | |
![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |
![]() ![]() ![]()  | 
0..1 | (Complex) | Extension URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1  | |
![]() ![]() ![]()  | 
0..1 | boolean | Use to define if the resource is readOnly URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1  | |
![]() ![]()  | 
0..0 | |||
![]() ![]()  | 
0..0 | |||
![]() ![]()  | 
0..0 | |||
![]() ![]()  | 
1..1 | canonical(QuestionnaireSe) | Form being answered | |
![]() ![]()  | 
1..1 | code | completed | entered-in-error | in-progress | |
![]() ![]()  | 
0..1 | Reference(Patient) | The subject of the questions | |
![]() ![]()  | 
1..1 | dateTime | Date the answers were gathered | |
![]() ![]()  | 
1..1 | Reference(PractitionerRoleLiteSe | Patient) | Person who received and recorded the answers | |
![]() ![]() ![]()  | 
1..1 | uri | Type the reference refers to (e.g. "Patient") | |
![]() ![]()  | 
0..0 | |||
![]() ![]()  | 
||||
![]() ![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |
![]() ![]() ![]() ![]()  | 
0..1 | string | Free text comment on the answer/s. URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-answerComment  | |
![]() ![]() ![]()  | 
||||
![]() ![]() ![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |
![]() ![]() ![]() ![]() ![]()  | 
0..1 | boolean | Optional Extensions Element URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-unsupportedAnswer  | |
![]() ![]() ![]() ![]()  | 
0..1 | Single-valued answer to the question | ||
![]() ![]() ![]() ![]() ![]()  | 
boolean | |||
![]() ![]() ![]() ![]() ![]()  | 
decimal | |||
![]() ![]() ![]() ![]() ![]()  | 
integer | |||
![]() ![]() ![]() ![]() ![]()  | 
date | |||
![]() ![]() ![]() ![]() ![]()  | 
dateTime | |||
![]() ![]() ![]() ![]() ![]()  | 
time | |||
![]() ![]() ![]() ![]() ![]()  | 
string | |||
![]() ![]() ![]() ![]() ![]()  | 
uri | |||
![]() ![]() ![]() ![]() ![]()  | 
Attachment | |||
![]() ![]() ![]() ![]() ![]()  | 
Coding | |||
![]() ![]() ![]() ![]() ![]()  | 
Quantity | |||
![]() ![]() ![]() ![]() ![]()  | 
Reference(ProcedureKVALite | ConditionDiagnosisSe | Observation) | |||
  Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | ||||
|---|---|---|---|---|---|---|---|---|
![]()  | 
0..* | QuestionnaireResponseCore | A structured set of questions and their answers | |||||
![]() ![]()  | 
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]()  | 
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]()  | 
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]()  | 
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]()  | 
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]()  | 
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]()  | 
Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]()  | 
Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.  | ||||
![]() ![]() ![]()  | 
Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".  | ||||
![]() ![]()  | 
?!Σ | 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 | |||||
![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]()  | 
0..1 | (Complex) | Extension URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1  | |||||
![]() ![]() ![]()  | 
0..1 | boolean | Use to define if the resource is readOnly URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1  | |||||
![]() ![]()  | 
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]()  | 
Σ | 1..1 | canonical(QuestionnaireSe) | Form being answered | ||||
![]() ![]()  | 
?!Σ | 1..1 | code | completed | entered-in-error | in-progress Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.  | ||||
![]() ![]()  | 
Σ | 0..1 | Reference(Patient) | The subject of the questions | ||||
![]() ![]()  | 
Σ | 0..1 | Reference(Encounter) | Encounter created as part of | ||||
![]() ![]()  | 
Σ | 1..1 | dateTime | Date the answers were gathered | ||||
![]() ![]()  | 
Σ | 1..1 | Reference(PractitionerRoleLiteSe | Patient) | Person who received and recorded the answers | ||||
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]()  | 
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]()  | 
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]()  | 
Σ | 1..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 | ||||
![]() ![]()  | 
C | 0..* | BackboneElement | Groups and questions Constraints: qrs-1  | ||||
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]() ![]()  | 
0..1 | string | Free text comment on the answer/s. URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-answerComment  | |||||
![]() ![]() ![]()  | 
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]()  | 
1..1 | string | Pointer to specific item from Questionnaire | |||||
![]() ![]() ![]()  | 
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]()  | 
0..1 | string | Name for group or question text | |||||
![]() ![]() ![]()  | 
0..* | BackboneElement | The response(s) to the question | |||||
![]() ![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]() ![]() ![]()  | 
0..1 | boolean | Optional Extensions Element URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-unsupportedAnswer  | |||||
![]() ![]() ![]() ![]()  | 
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]()  | 
0..1 | Single-valued answer to the question Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.  | ||||||
![]() ![]() ![]() ![]() ![]()  | 
boolean | |||||||
![]() ![]() ![]() ![]() ![]()  | 
decimal | |||||||
![]() ![]() ![]() ![]() ![]()  | 
integer | |||||||
![]() ![]() ![]() ![]() ![]()  | 
date | |||||||
![]() ![]() ![]() ![]() ![]()  | 
dateTime | |||||||
![]() ![]() ![]() ![]() ![]()  | 
time | |||||||
![]() ![]() ![]() ![]() ![]()  | 
string | |||||||
![]() ![]() ![]() ![]() ![]()  | 
uri | |||||||
![]() ![]() ![]() ![]() ![]()  | 
Attachment | |||||||
![]() ![]() ![]() ![]() ![]()  | 
Coding | |||||||
![]() ![]() ![]() ![]() ![]()  | 
Quantity | |||||||
![]() ![]() ![]() ![]() ![]()  | 
Reference(ProcedureKVALite | ConditionDiagnosisSe | Observation) | |||||||
![]() ![]() ![]() ![]()  | 
0..* | See item (QuestionnaireResponse) | Nested groups and questions | |||||
![]() ![]() ![]()  | 
0..* | See item (QuestionnaireResponse) | Nested questionnaire response items | |||||
  Documentation for this format | ||||||||
| Path | Conformance | ValueSet | URI | |||
| QuestionnaireResponse.meta.security | extensible | All Security Labelshttp://hl7.org/fhir/ValueSet/security-labelsFrom the FHIR Standard  | ||||
| QuestionnaireResponse.meta.tag | example | CommonTagshttp://hl7.org/fhir/ValueSet/common-tagsFrom the FHIR Standard  | ||||
| QuestionnaireResponse.language | preferred | CommonLanguageshttp://hl7.org/fhir/ValueSet/languagesFrom the FHIR Standard 
  | ||||
| QuestionnaireResponse.status | required | QuestionnaireResponseStatushttp://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1From the FHIR Standard  | ||||
| QuestionnaireResponse.author.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-typesFrom the FHIR Standard  | ||||
| QuestionnaireResponse.item.answer.value[x] | example | QuestionnaireAnswerCodes(a valid code from SNOMED CT)http://hl7.org/fhir/ValueSet/questionnaire-answersFrom the FHIR Standard  | 
| Id | Grade | Path(s) | Details | Requirements | 
| 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 QuestionnaireResponseCore
Summary
Mandatory: 2 elements
 Prohibited: 4 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
0..* | QuestionnaireResponseCore | A structured set of questions and their answers | |
![]() ![]()  | 
?!Σ | 0..1 | uri | A set of rules under which this content was created | 
![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |
![]() ![]() ![]()  | 
0..1 | (Complex) | Extension URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1  | |
![]() ![]() ![]()  | 
0..1 | boolean | Use to define if the resource is readOnly URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1  | |
![]() ![]()  | 
?! | 0..* | Extension | Extensions that cannot be ignored | 
![]() ![]()  | 
Σ | 1..1 | canonical(QuestionnaireSe) | Form being answered | 
![]() ![]()  | 
?!Σ | 1..1 | code | completed | entered-in-error | in-progress Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.  | 
![]() ![]()  | 
Σ | 0..1 | Reference(Patient) | The subject of the questions | 
![]() ![]()  | 
Σ | 1..1 | dateTime | Date the answers were gathered | 
![]() ![]()  | 
Σ | 1..1 | Reference(PractitionerRoleLiteSe | Patient) | Person who received and recorded the answers | 
![]() ![]() ![]()  | 
Σ | 1..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).  | 
  Documentation for this format | ||||
| Path | Conformance | ValueSet | URI | 
| QuestionnaireResponse.status | required | QuestionnaireResponseStatushttp://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1From the FHIR Standard  | |
| QuestionnaireResponse.author.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-typesFrom the FHIR Standard  | 
| Id | Grade | Path(s) | Details | Requirements | 
| 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()  | 
Differential View
This structure is derived from QuestionnaireResponseCore
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
0..* | QuestionnaireResponseCore | A structured set of questions and their answers | |
![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |
![]() ![]() ![]()  | 
0..1 | (Complex) | Extension URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1  | |
![]() ![]() ![]()  | 
0..1 | boolean | Use to define if the resource is readOnly URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1  | |
![]() ![]()  | 
0..0 | |||
![]() ![]()  | 
0..0 | |||
![]() ![]()  | 
0..0 | |||
![]() ![]()  | 
1..1 | canonical(QuestionnaireSe) | Form being answered | |
![]() ![]()  | 
1..1 | code | completed | entered-in-error | in-progress | |
![]() ![]()  | 
0..1 | Reference(Patient) | The subject of the questions | |
![]() ![]()  | 
1..1 | dateTime | Date the answers were gathered | |
![]() ![]()  | 
1..1 | Reference(PractitionerRoleLiteSe | Patient) | Person who received and recorded the answers | |
![]() ![]() ![]()  | 
1..1 | uri | Type the reference refers to (e.g. "Patient") | |
![]() ![]()  | 
0..0 | |||
![]() ![]()  | 
||||
![]() ![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |
![]() ![]() ![]() ![]()  | 
0..1 | string | Free text comment on the answer/s. URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-answerComment  | |
![]() ![]() ![]()  | 
||||
![]() ![]() ![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |
![]() ![]() ![]() ![]() ![]()  | 
0..1 | boolean | Optional Extensions Element URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-unsupportedAnswer  | |
![]() ![]() ![]() ![]()  | 
0..1 | Single-valued answer to the question | ||
![]() ![]() ![]() ![]() ![]()  | 
boolean | |||
![]() ![]() ![]() ![]() ![]()  | 
decimal | |||
![]() ![]() ![]() ![]() ![]()  | 
integer | |||
![]() ![]() ![]() ![]() ![]()  | 
date | |||
![]() ![]() ![]() ![]() ![]()  | 
dateTime | |||
![]() ![]() ![]() ![]() ![]()  | 
time | |||
![]() ![]() ![]() ![]() ![]()  | 
string | |||
![]() ![]() ![]() ![]() ![]()  | 
uri | |||
![]() ![]() ![]() ![]() ![]()  | 
Attachment | |||
![]() ![]() ![]() ![]() ![]()  | 
Coding | |||
![]() ![]() ![]() ![]() ![]()  | 
Quantity | |||
![]() ![]() ![]() ![]() ![]()  | 
Reference(ProcedureKVALite | ConditionDiagnosisSe | Observation) | |||
  Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | ||||
|---|---|---|---|---|---|---|---|---|
![]()  | 
0..* | QuestionnaireResponseCore | A structured set of questions and their answers | |||||
![]() ![]()  | 
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]()  | 
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]()  | 
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]()  | 
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]()  | 
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]()  | 
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]()  | 
Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]()  | 
Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.  | ||||
![]() ![]() ![]()  | 
Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".  | ||||
![]() ![]()  | 
?!Σ | 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 | |||||
![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]()  | 
0..1 | (Complex) | Extension URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1  | |||||
![]() ![]() ![]()  | 
0..1 | boolean | Use to define if the resource is readOnly URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1  | |||||
![]() ![]()  | 
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]()  | 
Σ | 1..1 | canonical(QuestionnaireSe) | Form being answered | ||||
![]() ![]()  | 
?!Σ | 1..1 | code | completed | entered-in-error | in-progress Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.  | ||||
![]() ![]()  | 
Σ | 0..1 | Reference(Patient) | The subject of the questions | ||||
![]() ![]()  | 
Σ | 0..1 | Reference(Encounter) | Encounter created as part of | ||||
![]() ![]()  | 
Σ | 1..1 | dateTime | Date the answers were gathered | ||||
![]() ![]()  | 
Σ | 1..1 | Reference(PractitionerRoleLiteSe | Patient) | Person who received and recorded the answers | ||||
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]()  | 
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]()  | 
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]()  | 
Σ | 1..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 | ||||
![]() ![]()  | 
C | 0..* | BackboneElement | Groups and questions Constraints: qrs-1  | ||||
![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]() ![]()  | 
0..1 | string | Free text comment on the answer/s. URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-answerComment  | |||||
![]() ![]() ![]()  | 
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]()  | 
1..1 | string | Pointer to specific item from Questionnaire | |||||
![]() ![]() ![]()  | 
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]()  | 
0..1 | string | Name for group or question text | |||||
![]() ![]() ![]()  | 
0..* | BackboneElement | The response(s) to the question | |||||
![]() ![]() ![]() ![]()  | 
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]()  | 
0..* | Extension | Extension Slice: Unordered, Open by value:url  | |||||
![]() ![]() ![]() ![]() ![]()  | 
0..1 | boolean | Optional Extensions Element URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-unsupportedAnswer  | |||||
![]() ![]() ![]() ![]()  | 
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]()  | 
0..1 | Single-valued answer to the question Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.  | ||||||
![]() ![]() ![]() ![]() ![]()  | 
boolean | |||||||
![]() ![]() ![]() ![]() ![]()  | 
decimal | |||||||
![]() ![]() ![]() ![]() ![]()  | 
integer | |||||||
![]() ![]() ![]() ![]() ![]()  | 
date | |||||||
![]() ![]() ![]() ![]() ![]()  | 
dateTime | |||||||
![]() ![]() ![]() ![]() ![]()  | 
time | |||||||
![]() ![]() ![]() ![]() ![]()  | 
string | |||||||
![]() ![]() ![]() ![]() ![]()  | 
uri | |||||||
![]() ![]() ![]() ![]() ![]()  | 
Attachment | |||||||
![]() ![]() ![]() ![]() ![]()  | 
Coding | |||||||
![]() ![]() ![]() ![]() ![]()  | 
Quantity | |||||||
![]() ![]() ![]() ![]() ![]()  | 
Reference(ProcedureKVALite | ConditionDiagnosisSe | Observation) | |||||||
![]() ![]() ![]() ![]()  | 
0..* | See item (QuestionnaireResponse) | Nested groups and questions | |||||
![]() ![]() ![]()  | 
0..* | See item (QuestionnaireResponse) | Nested questionnaire response items | |||||
  Documentation for this format | ||||||||
| Path | Conformance | ValueSet | URI | |||
| QuestionnaireResponse.meta.security | extensible | All Security Labelshttp://hl7.org/fhir/ValueSet/security-labelsFrom the FHIR Standard  | ||||
| QuestionnaireResponse.meta.tag | example | CommonTagshttp://hl7.org/fhir/ValueSet/common-tagsFrom the FHIR Standard  | ||||
| QuestionnaireResponse.language | preferred | CommonLanguageshttp://hl7.org/fhir/ValueSet/languagesFrom the FHIR Standard 
  | ||||
| QuestionnaireResponse.status | required | QuestionnaireResponseStatushttp://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1From the FHIR Standard  | ||||
| QuestionnaireResponse.author.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-typesFrom the FHIR Standard  | ||||
| QuestionnaireResponse.item.answer.value[x] | example | QuestionnaireAnswerCodes(a valid code from SNOMED CT)http://hl7.org/fhir/ValueSet/questionnaire-answersFrom the FHIR Standard  | 
| Id | Grade | Path(s) | Details | Requirements | 
| 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 QuestionnaireResponseCore
Summary
Mandatory: 2 elements
 Prohibited: 4 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Other representations of profile: CSV, Excel, Schematron