KLChildren implementation guide, an implementation of FBU
2.1.0 - Release

This page is part of the KLChildren (v2.1.0: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Resource Profile: KLGatewayChildrenQuestionnaireResponse

Official URL: http://fhir.kl.dk/children/StructureDefinition/klgateway-children-questionnaire-response Version: 2.1.0
Active as of 2024-10-31 Computable Name: KLGatewayChildrenQuestionnaireResponse

Questionnaire response profile, for all questionaires in kl-children

Scope and usage

This QuestionnaireResponse is used to report all answers to questionnaires to KLGateway.

The QuestionnaireResponse refers the Questionnaire in QuestionnaireResponse.questionnaire using a canonical reference, which means that the Questionnaire itself does not have to be reported to KLGateway.

QuestionnaireResponse.subject is the citizen, who the Questionnaire is about.

This profile includes the extension findingInformer QuestionnaireResponse.extension:FindingInformer. It is an optional attribute, which may be used to describe who is answering the Questionnaire.

QuestionnaireResponse.authored holds the time that the questionnaire is answered.

Each item refers the appropriate linkId from the Questionnaire-definition in QuestionnaireResponse.item.linkId.

Answers can be given in QuestionnaireResponse.item.answer.value[x] using integer, boolean or string. These should follow the rules of the Questionnaire-definition. Note that strings are also limited a minimum of 1 character, and maximum of 30 characters.

Conversions between Danish information model and FHIR-profile

Nedenstående tabel oversætter mellem de attributter der er defineret i den fælleskommunale informationsmodel (FKI), definerer kort den enkelte attribut på dansk og specificerer hvilke af FHIR-profilens atributter der skal bruges til specifikation af indholdet.

FKI-attribut Definition FHIR
SpørgeskemaSvarSpørgeskemaDefinition Reference til definitionen på det spørgeskema der besvares. QuestionnaireResponse.questionnaire
SpørgeskemaSvarSubjekt Den borger, som spørgeskemasvaret omhandler QuestionnaireResponse.subject
SpørgeskemaSvarKilde Klasse der udtrykker kilden til spørgeskemasvaret dvs. den der reelt har besvaret spørgsmålene. QuestionnaireResponse.extension:FindingInformer
SpørgeskemaSvarTid Tidspunkt for spørgeskemabesvarelsen QuestionnaireResponse.authored
SpørgeskemaSvarPunktId Id for det enkelte punkt/spørgsmål i spørgeskemaet QuestionnaireResponse.item.linkId
SpørgeskemaSvarPunktSvar Svaret på det enkelte punkt/svar i spørgeskemaet QuestionnaireResponse.item.answer.value[x]

Usage:

Formal Views of Profile Content

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

This structure is derived from QuestionnaireResponse

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse QuestionnaireResponse
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... findingInformer Σ 0..1 (Complex) FindingInformer
URL: http://fhir.kl.dk/children/StructureDefinition/FindingInformer
..... value[x] 1..1 CodeableConcept [DK] SpørgeskemaSvarKilde
... identifier 0..0
... basedOn 0..0
... questionnaire 1..1 canonical(Questionnaire) [DK] SpørgeskemaSvarSpørgeskemaDefinition
... subject 1..1 Reference(KLGatewayChildrenCitizen) {b} [DK] SpørgeskemaSvarSubjekt
... encounter 0..0
... authored 1..1 dateTime [DK] SpørgeskemaSvarTid
... author 0..0
... source 0..0
... item 0..36 BackboneElement Groups and questions
.... linkId 1..1 string [DK] SpørgeskemaSvarPunktId
.... definition 0..0
.... text 0..0
.... answer 1..1 BackboneElement The response(s) to the question
..... Slices for value[x] 1..1 [DK] SpørgeskemaSvarPunktSvar
Slice: Unordered, Open by type:$this
...... valueBoolean boolean
...... valueInteger integer
...... valueString string
...... value[x]:valueString C 0..1 string Single-valued answer to the question
questionnaire-response-string-length: Answer given as string must be a minimum of 1 character, and maximum of 30 characters long
...... value[x]:valueInteger 0..1 integer Single-valued answer to the question
...... value[x]:valueBoolean 0..1 boolean Single-valued answer to the question
..... item 0..0
.... item 0..0

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
questionnaire-response-string-lengtherrorQuestionnaireResponse.item.answer.value[x]:valueStringAnswer given as string must be a minimum of 1 character, and maximum of 30 characters long
: matches('^.{1,30}$')
NameFlagsCard.TypeDescription & Constraintsdoco
.. 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
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... findingInformer Σ 0..1 (Complex) FindingInformer
URL: http://fhir.kl.dk/children/StructureDefinition/FindingInformer
..... extension 0..0
..... url 1..1 uri "http://fhir.kl.dk/children/StructureDefinition/FindingInformer"
..... value[x] 1..1 CodeableConcept [DK] SpørgeskemaSvarKilde
Binding: KildeTilOplysningKoder (required)
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!Σ 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.

... subject Σ 1..1 Reference(KLGatewayChildrenCitizen) {b} [DK] SpørgeskemaSvarSubjekt
... authored Σ 1..1 dateTime [DK] SpørgeskemaSvarTid
... item C 0..36 BackboneElement Groups and questions
qrs-1: Nested item can't be beneath both item and answer
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... linkId 1..1 string [DK] SpørgeskemaSvarPunktId
.... answer 1..1 BackboneElement The response(s) to the question
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... Slices for value[x] 1..1 [DK] SpørgeskemaSvarPunktSvar
Slice: Unordered, Closed by type:$this
Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.

...... valueBoolean boolean
...... valueInteger integer
...... valueString string
...... value[x]:valueString C 0..1 string Single-valued answer to the question
Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.


questionnaire-response-string-length: Answer given as string must be a minimum of 1 character, and maximum of 30 characters long
...... value[x]:valueInteger 0..1 integer Single-valued answer to the question
...... value[x]:valueBoolean 0..1 boolean Single-valued answer to the question

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.extension:findingInformer.value[x]requiredFindingInformerCodes
http://fhir.kl.dk/children/ValueSet/FindingInformerCodes
from this IG
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
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
QuestionnaireResponse.item.answer.value[x]:valueStringexampleQuestionnaireAnswerCodes (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()
questionnaire-response-string-lengtherrorQuestionnaireResponse.item.answer.value[x]:valueStringAnswer given as string must be a minimum of 1 character, and maximum of 30 characters long
: matches('^.{1,30}$')
NameFlagsCard.TypeDescription & Constraintsdoco
.. 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
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... findingInformer Σ 0..1 (Complex) FindingInformer
URL: http://fhir.kl.dk/children/StructureDefinition/FindingInformer
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "http://fhir.kl.dk/children/StructureDefinition/FindingInformer"
..... value[x] 1..1 CodeableConcept [DK] SpørgeskemaSvarKilde
Binding: KildeTilOplysningKoder (required)
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... questionnaire Σ 1..1 canonical(Questionnaire) [DK] SpørgeskemaSvarSpørgeskemaDefinition
... status ?!Σ 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.

... subject Σ 1..1 Reference(KLGatewayChildrenCitizen) {b} [DK] SpørgeskemaSvarSubjekt
... authored Σ 1..1 dateTime [DK] SpørgeskemaSvarTid
... item C 0..36 BackboneElement Groups and questions
qrs-1: Nested item can't be beneath both item and answer
.... 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 1..1 string [DK] SpørgeskemaSvarPunktId
.... answer 1..1 BackboneElement The response(s) to the question
..... 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
..... Slices for value[x] 1..1 [DK] SpørgeskemaSvarPunktSvar
Slice: Unordered, Closed by type:$this
Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.

...... valueBoolean boolean
...... valueInteger integer
...... valueString string
...... value[x]:valueString C 0..1 string Single-valued answer to the question
Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.


questionnaire-response-string-length: Answer given as string must be a minimum of 1 character, and maximum of 30 characters long
...... value[x]:valueInteger 0..1 integer Single-valued answer to the question
...... value[x]:valueBoolean 0..1 boolean Single-valued answer to the question

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
QuestionnaireResponse.extension:findingInformer.value[x]requiredFindingInformerCodes
http://fhir.kl.dk/children/ValueSet/FindingInformerCodes
from this IG
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
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
QuestionnaireResponse.item.answer.value[x]:valueStringexampleQuestionnaireAnswerCodes (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()
questionnaire-response-string-lengtherrorQuestionnaireResponse.item.answer.value[x]:valueStringAnswer given as string must be a minimum of 1 character, and maximum of 30 characters long
: matches('^.{1,30}$')

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 3 elements(2 nested mandatory elements)
Prohibited: 10 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of QuestionnaireResponse.item.answer.value[x]

Differential View

This structure is derived from QuestionnaireResponse

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse QuestionnaireResponse
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... findingInformer Σ 0..1 (Complex) FindingInformer
URL: http://fhir.kl.dk/children/StructureDefinition/FindingInformer
..... value[x] 1..1 CodeableConcept [DK] SpørgeskemaSvarKilde
... identifier 0..0
... basedOn 0..0
... questionnaire 1..1 canonical(Questionnaire) [DK] SpørgeskemaSvarSpørgeskemaDefinition
... subject 1..1 Reference(KLGatewayChildrenCitizen) {b} [DK] SpørgeskemaSvarSubjekt
... encounter 0..0
... authored 1..1 dateTime [DK] SpørgeskemaSvarTid
... author 0..0
... source 0..0
... item 0..36 BackboneElement Groups and questions
.... linkId 1..1 string [DK] SpørgeskemaSvarPunktId
.... definition 0..0
.... text 0..0
.... answer 1..1 BackboneElement The response(s) to the question
..... Slices for value[x] 1..1 [DK] SpørgeskemaSvarPunktSvar
Slice: Unordered, Open by type:$this
...... valueBoolean boolean
...... valueInteger integer
...... valueString string
...... value[x]:valueString C 0..1 string Single-valued answer to the question
questionnaire-response-string-length: Answer given as string must be a minimum of 1 character, and maximum of 30 characters long
...... value[x]:valueInteger 0..1 integer Single-valued answer to the question
...... value[x]:valueBoolean 0..1 boolean Single-valued answer to the question
..... item 0..0
.... item 0..0

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
questionnaire-response-string-lengtherrorQuestionnaireResponse.item.answer.value[x]:valueStringAnswer given as string must be a minimum of 1 character, and maximum of 30 characters long
: matches('^.{1,30}$')

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... findingInformer Σ 0..1 (Complex) FindingInformer
URL: http://fhir.kl.dk/children/StructureDefinition/FindingInformer
..... extension 0..0
..... url 1..1 uri "http://fhir.kl.dk/children/StructureDefinition/FindingInformer"
..... value[x] 1..1 CodeableConcept [DK] SpørgeskemaSvarKilde
Binding: KildeTilOplysningKoder (required)
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!Σ 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.

... subject Σ 1..1 Reference(KLGatewayChildrenCitizen) {b} [DK] SpørgeskemaSvarSubjekt
... authored Σ 1..1 dateTime [DK] SpørgeskemaSvarTid
... item C 0..36 BackboneElement Groups and questions
qrs-1: Nested item can't be beneath both item and answer
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... linkId 1..1 string [DK] SpørgeskemaSvarPunktId
.... answer 1..1 BackboneElement The response(s) to the question
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... Slices for value[x] 1..1 [DK] SpørgeskemaSvarPunktSvar
Slice: Unordered, Closed by type:$this
Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.

...... valueBoolean boolean
...... valueInteger integer
...... valueString string
...... value[x]:valueString C 0..1 string Single-valued answer to the question
Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.


questionnaire-response-string-length: Answer given as string must be a minimum of 1 character, and maximum of 30 characters long
...... value[x]:valueInteger 0..1 integer Single-valued answer to the question
...... value[x]:valueBoolean 0..1 boolean Single-valued answer to the question

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.extension:findingInformer.value[x]requiredFindingInformerCodes
http://fhir.kl.dk/children/ValueSet/FindingInformerCodes
from this IG
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
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
QuestionnaireResponse.item.answer.value[x]:valueStringexampleQuestionnaireAnswerCodes (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()
questionnaire-response-string-lengtherrorQuestionnaireResponse.item.answer.value[x]:valueStringAnswer given as string must be a minimum of 1 character, and maximum of 30 characters long
: matches('^.{1,30}$')

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... findingInformer Σ 0..1 (Complex) FindingInformer
URL: http://fhir.kl.dk/children/StructureDefinition/FindingInformer
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "http://fhir.kl.dk/children/StructureDefinition/FindingInformer"
..... value[x] 1..1 CodeableConcept [DK] SpørgeskemaSvarKilde
Binding: KildeTilOplysningKoder (required)
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... questionnaire Σ 1..1 canonical(Questionnaire) [DK] SpørgeskemaSvarSpørgeskemaDefinition
... status ?!Σ 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.

... subject Σ 1..1 Reference(KLGatewayChildrenCitizen) {b} [DK] SpørgeskemaSvarSubjekt
... authored Σ 1..1 dateTime [DK] SpørgeskemaSvarTid
... item C 0..36 BackboneElement Groups and questions
qrs-1: Nested item can't be beneath both item and answer
.... 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 1..1 string [DK] SpørgeskemaSvarPunktId
.... answer 1..1 BackboneElement The response(s) to the question
..... 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
..... Slices for value[x] 1..1 [DK] SpørgeskemaSvarPunktSvar
Slice: Unordered, Closed by type:$this
Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.

...... valueBoolean boolean
...... valueInteger integer
...... valueString string
...... value[x]:valueString C 0..1 string Single-valued answer to the question
Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.


questionnaire-response-string-length: Answer given as string must be a minimum of 1 character, and maximum of 30 characters long
...... value[x]:valueInteger 0..1 integer Single-valued answer to the question
...... value[x]:valueBoolean 0..1 boolean Single-valued answer to the question

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
QuestionnaireResponse.extension:findingInformer.value[x]requiredFindingInformerCodes
http://fhir.kl.dk/children/ValueSet/FindingInformerCodes
from this IG
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
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
QuestionnaireResponse.item.answer.value[x]:valueStringexampleQuestionnaireAnswerCodes (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()
questionnaire-response-string-lengtherrorQuestionnaireResponse.item.answer.value[x]:valueStringAnswer given as string must be a minimum of 1 character, and maximum of 30 characters long
: matches('^.{1,30}$')

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 3 elements(2 nested mandatory elements)
Prohibited: 10 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of QuestionnaireResponse.item.answer.value[x]

 

Other representations of profile: CSV, Excel, Schematron