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

Resource Profile: QuestionnaireResponseSe

Official URL: https://fhir.cambio.se/StructureDefinition/QuestionnaireResponseSe/v1 Version: 1.3.0
Active as of 2025-10-13 Computable Name: QuestionnaireResponseSe

Introduction

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 Use

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.

Specific Rules and Limitations

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.

Statuses

FHIR status Status in COSMIC
in-progress Unsigned
completed Signed (when author is a PractitionerRole), Complete Not Signable (when author is the patient)

Versions

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.

APIs & Supported Operations

HTTP Method Description
POST Used to create a QuestionnaireResponse for a given patient. If successful, the operation will return id in response.

Supported Queries

  1. POST [baseURL]/QuestionnaireResponse

Error Codes

In 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

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponseCore A structured set of questions and their answers
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:hsaHierarchy 0..1 (Complex) Extension
URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1
.... extension:readOnly 0..1 boolean Use to define if the resource is readOnly
URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!Σ 1..1 code completed | entered-in-error | in-progress
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
... subject Σ 0..1 Reference(Patient) The subject of the questions
... authored Σ 1..1 dateTime Date the answers were gathered
... author Σ 1..1 Reference(PractitionerRoleLiteSe | Patient) Person who received and recorded the answers
.... type Σ 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).

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
From the FHIR Standard
QuestionnaireResponse.author.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorQuestionnaireResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorQuestionnaireResponseIf 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-4errorQuestionnaireResponseIf 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-5errorQuestionnaireResponseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceQuestionnaireResponseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from QuestionnaireResponseCore

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponseCore A structured set of questions and their answers
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:hsaHierarchy 0..1 (Complex) Extension
URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1
.... extension:readOnly 0..1 boolean Use to define if the resource is readOnly
URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1
... identifier 0..0
... basedOn 0..0
... questionnaire 1..1 canonical(QuestionnaireSe) Form being answered
... status 1..1 code completed | entered-in-error | in-progress
... subject 0..1 Reference(Patient) The subject of the questions
... authored 1..1 dateTime Date the answers were gathered
... author 1..1 Reference(PractitionerRoleLiteSe | Patient) Person who received and recorded the answers
.... type 1..1 uri Type the reference refers to (e.g. "Patient")
... source 0..0
... item
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:answerComment 0..1 string Free text comment on the answer/s.
URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-answerComment
.... answer
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:unsupportedAnswer 0..1 boolean Optional Extensions Element
URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-unsupportedAnswer
..... value[x] 0..1 Single-valued answer to the 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(ProcedureKVALite | ConditionDiagnosisSe | Observation)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponseCore 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
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... profile Σ 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... tag Σ 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".
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... 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
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:hsaHierarchy 0..1 (Complex) Extension
URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1
.... extension:readOnly 0..1 boolean Use to define if the resource is readOnly
URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... questionnaire Σ 1..1 canonical(QuestionnaireSe) Form being answered
... status ?!Σ 1..1 code completed | entered-in-error | in-progress
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
... subject Σ 0..1 Reference(Patient) The subject of the questions
... encounter Σ 0..1 Reference(Encounter) Encounter created as part of
... authored Σ 1..1 dateTime Date the answers were gathered
... author Σ 1..1 Reference(PractitionerRoleLiteSe | Patient) Person who received and recorded the answers
.... 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 ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 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).
.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... item C 0..* BackboneElement Groups and questions
Constraints: qrs-1
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:answerComment 0..1 string Free text comment on the answer/s.
URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-answerComment
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... linkId 1..1 string Pointer to specific item from Questionnaire
.... definition 0..1 uri ElementDefinition - details for the item
.... text 0..1 string Name for group or question text
.... answer 0..* BackboneElement The response(s) to the question
..... id 0..1 string Unique id for inter-element referencing
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:unsupportedAnswer 0..1 boolean Optional Extensions Element
URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-unsupportedAnswer
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... value[x] 0..1 Single-valued answer to the question
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(ProcedureKVALite | ConditionDiagnosisSe | Observation)
..... item 0..* See item (QuestionnaireResponse) Nested groups and questions
.... item 0..* See item (QuestionnaireResponse) Nested questionnaire response items

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
From the FHIR Standard
QuestionnaireResponse.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
From the FHIR Standard
QuestionnaireResponse.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
From the FHIR Standard
QuestionnaireResponse.author.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
QuestionnaireResponse.item.answer.value[x]exampleQuestionnaireAnswerCodes(a valid code from SNOMED CT)
http://hl7.org/fhir/ValueSet/questionnaire-answers
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorQuestionnaireResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorQuestionnaireResponseIf 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-4errorQuestionnaireResponseIf 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-5errorQuestionnaireResponseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceQuestionnaireResponseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
qrs-1errorQuestionnaireResponse.itemNested item can't be beneath both item and answer
: (answer.exists() and item.exists()).not()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponseCore A structured set of questions and their answers
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:hsaHierarchy 0..1 (Complex) Extension
URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1
.... extension:readOnly 0..1 boolean Use to define if the resource is readOnly
URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!Σ 1..1 code completed | entered-in-error | in-progress
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
... subject Σ 0..1 Reference(Patient) The subject of the questions
... authored Σ 1..1 dateTime Date the answers were gathered
... author Σ 1..1 Reference(PractitionerRoleLiteSe | Patient) Person who received and recorded the answers
.... type Σ 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).

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
From the FHIR Standard
QuestionnaireResponse.author.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorQuestionnaireResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorQuestionnaireResponseIf 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-4errorQuestionnaireResponseIf 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-5errorQuestionnaireResponseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceQuestionnaireResponseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Differential View

This structure is derived from QuestionnaireResponseCore

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponseCore A structured set of questions and their answers
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:hsaHierarchy 0..1 (Complex) Extension
URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1
.... extension:readOnly 0..1 boolean Use to define if the resource is readOnly
URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1
... identifier 0..0
... basedOn 0..0
... questionnaire 1..1 canonical(QuestionnaireSe) Form being answered
... status 1..1 code completed | entered-in-error | in-progress
... subject 0..1 Reference(Patient) The subject of the questions
... authored 1..1 dateTime Date the answers were gathered
... author 1..1 Reference(PractitionerRoleLiteSe | Patient) Person who received and recorded the answers
.... type 1..1 uri Type the reference refers to (e.g. "Patient")
... source 0..0
... item
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:answerComment 0..1 string Free text comment on the answer/s.
URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-answerComment
.... answer
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:unsupportedAnswer 0..1 boolean Optional Extensions Element
URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-unsupportedAnswer
..... value[x] 0..1 Single-valued answer to the 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(ProcedureKVALite | ConditionDiagnosisSe | Observation)

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponseCore 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
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... profile Σ 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... tag Σ 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".
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... 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
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:hsaHierarchy 0..1 (Complex) Extension
URL: https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1
.... extension:readOnly 0..1 boolean Use to define if the resource is readOnly
URL: https://fhir.cambio.se/StructureDefinition/common-readOnly/v1
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... questionnaire Σ 1..1 canonical(QuestionnaireSe) Form being answered
... status ?!Σ 1..1 code completed | entered-in-error | in-progress
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
... subject Σ 0..1 Reference(Patient) The subject of the questions
... encounter Σ 0..1 Reference(Encounter) Encounter created as part of
... authored Σ 1..1 dateTime Date the answers were gathered
... author Σ 1..1 Reference(PractitionerRoleLiteSe | Patient) Person who received and recorded the answers
.... 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 ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 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).
.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... item C 0..* BackboneElement Groups and questions
Constraints: qrs-1
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:answerComment 0..1 string Free text comment on the answer/s.
URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-answerComment
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... linkId 1..1 string Pointer to specific item from Questionnaire
.... definition 0..1 uri ElementDefinition - details for the item
.... text 0..1 string Name for group or question text
.... answer 0..* BackboneElement The response(s) to the question
..... id 0..1 string Unique id for inter-element referencing
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:unsupportedAnswer 0..1 boolean Optional Extensions Element
URL: https://fhir.cambio.se/StructureDefinition/questionnaireResponse-unsupportedAnswer
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... value[x] 0..1 Single-valued answer to the question
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(ProcedureKVALite | ConditionDiagnosisSe | Observation)
..... item 0..* See item (QuestionnaireResponse) Nested groups and questions
.... item 0..* See item (QuestionnaireResponse) Nested questionnaire response items

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
From the FHIR Standard
QuestionnaireResponse.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
From the FHIR Standard
QuestionnaireResponse.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
From the FHIR Standard
QuestionnaireResponse.author.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
QuestionnaireResponse.item.answer.value[x]exampleQuestionnaireAnswerCodes(a valid code from SNOMED CT)
http://hl7.org/fhir/ValueSet/questionnaire-answers
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorQuestionnaireResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorQuestionnaireResponseIf 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-4errorQuestionnaireResponseIf 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-5errorQuestionnaireResponseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceQuestionnaireResponseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
qrs-1errorQuestionnaireResponse.itemNested item can't be beneath both item and answer
: (answer.exists() and item.exists()).not()

 

Other representations of profile: CSV, Excel, Schematron