Finnish Base Profiles - Local Development build (v0.3.0). See the Directory of published versions
Official URL: http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4 | Version: 0.3.0 | |||
Draft as of 2021-02-22 | Computable Name: FIPHRSDQuestionnairesResponsesR4 |
Finnish PHR StructureDefinition for QuestionnaireResponse Resource.
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from QuestionnaireResponse
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
QuestionnaireResponse | 0..* | QuestionnaireResponse | Finnish PHR QuestionnaireResponse profile | |
meta | 1..1 | Meta | Metadata about the resource | |
Slices for profile | 1..* | canonical(StructureDefinition) | Profiles this resource claims to conform to Slice: Unordered, Open by value:$this | |
profile:fiphrProfile | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Fixed Value: http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4 | |
language | 1..1 | code | Language of the resource content Binding: CommonLanguages (required) | |
text | 1..1 | Narrative | Text summary of the resource, for human interpretation | |
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
creatingApplication | 0..* | (Complex) | Application identification URL: http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication | |
identifier | 1..1 | Identifier | Unique id for this set of answers | |
system | 1..1 | uri | The namespace for the identifier value Fixed Value: urn:ietf:rfc:3986 | |
value | 1..1 | string | The value that is unique | |
assigner | 0..0 | |||
basedOn | 0..* | Reference(Finnish PHR SelfCarePlan profile) {r} | Request fulfilled by this QuestionnaireResponse | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
partOf | 0..* | Reference(Observation) {r} | Part of this action | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
questionnaire | 1..1 | canonical(Finnish PHR Questionnaire profile) | Questionnaire being answered | |
status | 1..1 | code | Finnish PHR: in-progress | completed | amended | stopped | |
subject | 1..1 | Reference(Finnish PHR Patient profile) {r} | The subject of the questions | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
encounter | 0..0 | |||
authored | 1..1 | dateTime | Date the answers were gathered | |
author | 0..1 | Reference(Finnish PHR Patient profile) {r} | Person who received and recorded the answers | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
source | 1..1 | Reference(Finnish PHR Patient profile) {r} | Finnish PHR: The application user who answered the questions | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
item | 1..* | BackboneElement | Groups and questions | |
Documentation for this format |
Path | Conformance | ValueSet |
QuestionnaireResponse.language | required | CommonLanguages |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
QuestionnaireResponse | 0..* | QuestionnaireResponse | Finnish PHR QuestionnaireResponse profile | |
meta | Σ | 1..1 | Meta | Metadata about the resource |
Slices for profile | Σ | 1..* | canonical(StructureDefinition) | Profiles this resource claims to conform to Slice: Unordered, Open by value:$this |
profile:fiphrProfile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Fixed Value: http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4 |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language | 1..1 | code | Language of the resource content Binding: CommonLanguages (required) | |
text | 1..1 | Narrative | Text summary of the resource, for human interpretation | |
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
creatingApplication | 0..* | (Complex) | Application identification URL: http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 1..1 | Identifier | Unique id for this set of answers |
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
system | Σ | 1..1 | uri | The namespace for the identifier value Fixed Value: urn:ietf:rfc:3986 |
value | Σ | 1..1 | string | The value that is unique Example General: 123456 |
basedOn | Σ | 0..* | Reference(Finnish PHR SelfCarePlan profile) {r} | Request fulfilled by this QuestionnaireResponse |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
partOf | Σ | 0..* | Reference(Observation) {r} | Part of this action |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
questionnaire | Σ | 1..1 | canonical(Finnish PHR Questionnaire profile) | Questionnaire being answered |
status | ?!Σ | 1..1 | code | Finnish PHR: in-progress | completed | amended | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. |
subject | Σ | 1..1 | Reference(Finnish PHR Patient profile) {r} | The subject of the questions |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
authored | Σ | 1..1 | dateTime | Date the answers were gathered |
author | Σ | 0..1 | Reference(Finnish PHR Patient profile) {r} | Person who received and recorded the answers |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
source | Σ | 1..1 | Reference(Finnish PHR Patient profile) {r} | Finnish PHR: The application user who answered the questions |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
item | C | 1..* | BackboneElement | Groups and questions |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
linkId | 1..1 | string | Pointer to specific item from Questionnaire | |
Documentation for this format |
Path | Conformance | ValueSet |
QuestionnaireResponse.language | required | CommonLanguages |
QuestionnaireResponse.identifier.use | required | IdentifierUse |
QuestionnaireResponse.status | required | QuestionnaireResponseStatus |
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() |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
QuestionnaireResponse | 0..* | QuestionnaireResponse | Finnish PHR QuestionnaireResponse profile | |
id | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 1..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 |
Slices for profile | Σ | 1..* | canonical(StructureDefinition) | Profiles this resource claims to conform to Slice: Unordered, Open by value:$this |
profile:fiphrProfile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Fixed Value: http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4 |
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 |
language | 1..1 | code | Language of the resource content Binding: CommonLanguages (required) | |
text | 1..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 | |
creatingApplication | 0..* | (Complex) | Application identification URL: http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 1..1 | Identifier | Unique id for this set of 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 | |
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. |
system | Σ | 1..1 | uri | The namespace for the identifier value Fixed Value: urn:ietf:rfc:3986 |
value | Σ | 1..1 | string | The value that is unique Example General: 123456 |
period | Σ | 0..1 | Period | Time period when id is/was valid for use |
basedOn | Σ | 0..* | Reference(Finnish PHR SelfCarePlan profile) {r} | Request fulfilled by this QuestionnaireResponse |
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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
partOf | Σ | 0..* | Reference(Observation) {r} | Part of this action |
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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
questionnaire | Σ | 1..1 | canonical(Finnish PHR Questionnaire profile) | Questionnaire being answered |
status | ?!Σ | 1..1 | code | Finnish PHR: in-progress | completed | amended | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. |
subject | Σ | 1..1 | Reference(Finnish PHR Patient profile) {r} | The subject of the questions |
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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
authored | Σ | 1..1 | dateTime | Date the answers were gathered |
author | Σ | 0..1 | Reference(Finnish PHR Patient profile) {r} | 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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
source | Σ | 1..1 | Reference(Finnish PHR Patient profile) {r} | Finnish PHR: The application user who answered the questions |
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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
item | C | 1..* | BackboneElement | Groups and questions |
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 | 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 | |
extension | 0..* | Extension | Additional content defined by implementations | |
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(Resource) | |||
item | 0..* | See item (QuestionnaireResponse) | Nested groups and questions | |
item | 0..* | See item (QuestionnaireResponse) | Nested questionnaire response items | |
Documentation for this format |
Path | Conformance | ValueSet |
QuestionnaireResponse.meta.security | extensible | All Security Labels |
QuestionnaireResponse.meta.tag | example | CommonTags |
QuestionnaireResponse.language | required | CommonLanguages |
QuestionnaireResponse.identifier.use | required | IdentifierUse |
QuestionnaireResponse.identifier.type | extensible | Identifier Type Codes |
QuestionnaireResponse.basedOn.type | extensible | ResourceType |
QuestionnaireResponse.partOf.type | extensible | ResourceType |
QuestionnaireResponse.status | required | QuestionnaireResponseStatus |
QuestionnaireResponse.subject.type | extensible | ResourceType |
QuestionnaireResponse.author.type | extensible | ResourceType |
QuestionnaireResponse.source.type | extensible | ResourceType |
QuestionnaireResponse.item.answer.value[x] | example | QuestionnaireAnswerCodes (a valid code from SNOMED CT) |
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
qrs-1 | error | QuestionnaireResponse.item | Nested item can't be beneath both item and answer : (answer.exists() and item.exists()).not() |
This structure is derived from QuestionnaireResponse
Summary
Mandatory: 15 elements (3 nested mandatory elements)
Fixed Value: 2 elements
Prohibited: 2 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Slices
This structure defines the following Slices:
Differential View
This structure is derived from QuestionnaireResponse
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
QuestionnaireResponse | 0..* | QuestionnaireResponse | Finnish PHR QuestionnaireResponse profile | |
meta | 1..1 | Meta | Metadata about the resource | |
Slices for profile | 1..* | canonical(StructureDefinition) | Profiles this resource claims to conform to Slice: Unordered, Open by value:$this | |
profile:fiphrProfile | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Fixed Value: http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4 | |
language | 1..1 | code | Language of the resource content Binding: CommonLanguages (required) | |
text | 1..1 | Narrative | Text summary of the resource, for human interpretation | |
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
creatingApplication | 0..* | (Complex) | Application identification URL: http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication | |
identifier | 1..1 | Identifier | Unique id for this set of answers | |
system | 1..1 | uri | The namespace for the identifier value Fixed Value: urn:ietf:rfc:3986 | |
value | 1..1 | string | The value that is unique | |
assigner | 0..0 | |||
basedOn | 0..* | Reference(Finnish PHR SelfCarePlan profile) {r} | Request fulfilled by this QuestionnaireResponse | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
partOf | 0..* | Reference(Observation) {r} | Part of this action | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
questionnaire | 1..1 | canonical(Finnish PHR Questionnaire profile) | Questionnaire being answered | |
status | 1..1 | code | Finnish PHR: in-progress | completed | amended | stopped | |
subject | 1..1 | Reference(Finnish PHR Patient profile) {r} | The subject of the questions | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
encounter | 0..0 | |||
authored | 1..1 | dateTime | Date the answers were gathered | |
author | 0..1 | Reference(Finnish PHR Patient profile) {r} | Person who received and recorded the answers | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
source | 1..1 | Reference(Finnish PHR Patient profile) {r} | Finnish PHR: The application user who answered the questions | |
reference | 1..1 | string | Literal reference, Relative, internal or absolute URL | |
item | 1..* | BackboneElement | Groups and questions | |
Documentation for this format |
Path | Conformance | ValueSet |
QuestionnaireResponse.language | required | CommonLanguages |
Key Elements View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
QuestionnaireResponse | 0..* | QuestionnaireResponse | Finnish PHR QuestionnaireResponse profile | |
meta | Σ | 1..1 | Meta | Metadata about the resource |
Slices for profile | Σ | 1..* | canonical(StructureDefinition) | Profiles this resource claims to conform to Slice: Unordered, Open by value:$this |
profile:fiphrProfile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Fixed Value: http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4 |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language | 1..1 | code | Language of the resource content Binding: CommonLanguages (required) | |
text | 1..1 | Narrative | Text summary of the resource, for human interpretation | |
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
creatingApplication | 0..* | (Complex) | Application identification URL: http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 1..1 | Identifier | Unique id for this set of answers |
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
system | Σ | 1..1 | uri | The namespace for the identifier value Fixed Value: urn:ietf:rfc:3986 |
value | Σ | 1..1 | string | The value that is unique Example General: 123456 |
basedOn | Σ | 0..* | Reference(Finnish PHR SelfCarePlan profile) {r} | Request fulfilled by this QuestionnaireResponse |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
partOf | Σ | 0..* | Reference(Observation) {r} | Part of this action |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
questionnaire | Σ | 1..1 | canonical(Finnish PHR Questionnaire profile) | Questionnaire being answered |
status | ?!Σ | 1..1 | code | Finnish PHR: in-progress | completed | amended | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. |
subject | Σ | 1..1 | Reference(Finnish PHR Patient profile) {r} | The subject of the questions |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
authored | Σ | 1..1 | dateTime | Date the answers were gathered |
author | Σ | 0..1 | Reference(Finnish PHR Patient profile) {r} | Person who received and recorded the answers |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
source | Σ | 1..1 | Reference(Finnish PHR Patient profile) {r} | Finnish PHR: The application user who answered the questions |
reference | ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
item | C | 1..* | BackboneElement | Groups and questions |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
linkId | 1..1 | string | Pointer to specific item from Questionnaire | |
Documentation for this format |
Path | Conformance | ValueSet |
QuestionnaireResponse.language | required | CommonLanguages |
QuestionnaireResponse.identifier.use | required | IdentifierUse |
QuestionnaireResponse.status | required | QuestionnaireResponseStatus |
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() |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
QuestionnaireResponse | 0..* | QuestionnaireResponse | Finnish PHR QuestionnaireResponse profile | |
id | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 1..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 |
Slices for profile | Σ | 1..* | canonical(StructureDefinition) | Profiles this resource claims to conform to Slice: Unordered, Open by value:$this |
profile:fiphrProfile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Fixed Value: http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4 |
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 |
language | 1..1 | code | Language of the resource content Binding: CommonLanguages (required) | |
text | 1..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 | |
creatingApplication | 0..* | (Complex) | Application identification URL: http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 1..1 | Identifier | Unique id for this set of 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 | |
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. |
system | Σ | 1..1 | uri | The namespace for the identifier value Fixed Value: urn:ietf:rfc:3986 |
value | Σ | 1..1 | string | The value that is unique Example General: 123456 |
period | Σ | 0..1 | Period | Time period when id is/was valid for use |
basedOn | Σ | 0..* | Reference(Finnish PHR SelfCarePlan profile) {r} | Request fulfilled by this QuestionnaireResponse |
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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
partOf | Σ | 0..* | Reference(Observation) {r} | Part of this action |
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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
questionnaire | Σ | 1..1 | canonical(Finnish PHR Questionnaire profile) | Questionnaire being answered |
status | ?!Σ | 1..1 | code | Finnish PHR: in-progress | completed | amended | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. |
subject | Σ | 1..1 | Reference(Finnish PHR Patient profile) {r} | The subject of the questions |
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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
authored | Σ | 1..1 | dateTime | Date the answers were gathered |
author | Σ | 0..1 | Reference(Finnish PHR Patient profile) {r} | 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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
source | Σ | 1..1 | Reference(Finnish PHR Patient profile) {r} | Finnish PHR: The application user who answered the questions |
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 | 1..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource |
item | C | 1..* | BackboneElement | Groups and questions |
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 | 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 | |
extension | 0..* | Extension | Additional content defined by implementations | |
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(Resource) | |||
item | 0..* | See item (QuestionnaireResponse) | Nested groups and questions | |
item | 0..* | See item (QuestionnaireResponse) | Nested questionnaire response items | |
Documentation for this format |
Path | Conformance | ValueSet |
QuestionnaireResponse.meta.security | extensible | All Security Labels |
QuestionnaireResponse.meta.tag | example | CommonTags |
QuestionnaireResponse.language | required | CommonLanguages |
QuestionnaireResponse.identifier.use | required | IdentifierUse |
QuestionnaireResponse.identifier.type | extensible | Identifier Type Codes |
QuestionnaireResponse.basedOn.type | extensible | ResourceType |
QuestionnaireResponse.partOf.type | extensible | ResourceType |
QuestionnaireResponse.status | required | QuestionnaireResponseStatus |
QuestionnaireResponse.subject.type | extensible | ResourceType |
QuestionnaireResponse.author.type | extensible | ResourceType |
QuestionnaireResponse.source.type | extensible | ResourceType |
QuestionnaireResponse.item.answer.value[x] | example | QuestionnaireAnswerCodes (a valid code from SNOMED CT) |
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
qrs-1 | error | QuestionnaireResponse.item | Nested item can't be beneath both item and answer : (answer.exists() and item.exists()).not() |
This structure is derived from QuestionnaireResponse
Summary
Mandatory: 15 elements (3 nested mandatory elements)
Fixed Value: 2 elements
Prohibited: 2 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Slices
This structure defines the following Slices:
Other representations of profile: CSV, Excel, Schematron