HL7中国FHIR Connectathon测试实施指南
2024.5.5 - release

本指南适用于HL7中国的FHIR Connectathon测试。

Resource Profile: 调查问卷应答结构定义

Defining URL:http://hl7.org.cn/fhir/StructureDefinition/profile-extractable-questionnaire-response
Version:2024.5.5
Name:ExtractableQuestionnaireResponse
Title:调查问卷应答结构定义
Status:Active as of 2024-05-05 21:11:47+0800
Definition:

支持数据提取的调查问卷应答资源本地化定义。

Publisher:HL7中国. HL7中国,
Source Resource:XML / JSON / Turtle

本定义的正式URL为:

http://hl7.org.cn/fhir/StructureDefinition/profile-extractable-questionnaire-response

定义内容的视图

关于定义、差异、快照以及如何解读这些表示法

这种结构源自 QuestionnaireResponse

Summary

Mandatory: 3 elements
Must-Support: 4 elements
Prohibited: 3 elements

Extensions

This structure refers to these extensions:

这种结构源自 QuestionnaireResponse

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse 0..*QuestionnaireResponseA structured set of questions and their answers
... questionnaire S1..1canonical(Questionnaire)指向调查问卷的全球唯一标识符
... status S1..1code该调查问卷应答的状态,默认值可以设为completed
... subject 1..1Reference(Person)调查对象。如果为匿名用户可以使用Reference.identifier记录居民的唯一标识符
... authored 1..1dateTime该调查问卷应答填报的时间
... author 0..0
... source 0..0
... item 1..*BackboneElement调查问卷应答中的条目
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... Extractable S0..1boolean该条目所填报的数据是否需要被提取分析.默认值为false
URL: http://hl7.org.cn/fhir/StructureDefinition/ext-extractable-observation
.... linkId 1..1string条目应答的唯一标识,与调查问卷中条目标识相对应。
.... answer S0..*BackboneElement条目的应答
..... value[x] 1..1boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, SimpleQuantity, Reference(Resource)条目应答的数据类型由调查问卷中的item.type决定

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse 0..*QuestionnaireResponseA structured set of questions and their answers
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierBusiness identifier for this set of answers
... basedOn Σ0..*Reference(CarePlan | ServiceRequest)Request fulfilled by this QuestionnaireResponse
... partOf Σ0..*Reference(Observation | Procedure)Part of referenced event
... questionnaire SΣ1..1canonical(Questionnaire)指向调查问卷的全球唯一标识符
... status ?!SΣ1..1code该调查问卷应答的状态,默认值可以设为completed
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.

... subject Σ1..1Reference(Person)调查对象。如果为匿名用户可以使用Reference.identifier记录居民的唯一标识符
... authored Σ1..1dateTime该调查问卷应答填报的时间
... item C1..*BackboneElement调查问卷应答中的条目
qrs-1: Item cannot contain both item and answer
qrs-2: Repeated answers are combined in the answers array of a single item
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... Extractable S0..1boolean该条目所填报的数据是否需要被提取分析.默认值为false
URL: http://hl7.org.cn/fhir/StructureDefinition/ext-extractable-observation
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... linkId C1..1string条目应答的唯一标识,与调查问卷中条目标识相对应。
.... definition 0..1uriElementDefinition - details for the item
.... text 0..1stringName for group or question text
.... answer SC0..*BackboneElement条目的应答
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] C1..1条目应答的数据类型由调查问卷中的item.type决定
Binding: QuestionnaireAnswerCodes (example): Binding this is problematic because one value set can't apply to both codes and quantities.

...... valueBooleanboolean
...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
...... valueUriuri
...... valueAttachmentAttachment
...... valueCodingCoding
...... valueQuantityQuantity(SimpleQuantity)
...... valueReferenceReference(Resource)
..... item 0..*See item (QuestionnaireResponse)Child items of question
.... item 0..*See item (QuestionnaireResponse)Child items of group item

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse 0..*QuestionnaireResponseA structured set of questions and their answers
... questionnaire Σ1..1canonical(Questionnaire)指向调查问卷的全球唯一标识符
... status ?!Σ1..1code该调查问卷应答的状态,默认值可以设为completed
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.

... item 1..*BackboneElement调查问卷应答中的条目
.... Extractable 0..1boolean该条目所填报的数据是否需要被提取分析.默认值为false
URL: http://hl7.org.cn/fhir/StructureDefinition/ext-extractable-observation
.... answer C0..*BackboneElement条目的应答

doco Documentation for this format

这种结构源自 QuestionnaireResponse

Summary

Mandatory: 3 elements
Must-Support: 4 elements
Prohibited: 3 elements

Extensions

This structure refers to these extensions:

差异视图

这种结构源自 QuestionnaireResponse

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse 0..*QuestionnaireResponseA structured set of questions and their answers
... questionnaire S1..1canonical(Questionnaire)指向调查问卷的全球唯一标识符
... status S1..1code该调查问卷应答的状态,默认值可以设为completed
... subject 1..1Reference(Person)调查对象。如果为匿名用户可以使用Reference.identifier记录居民的唯一标识符
... authored 1..1dateTime该调查问卷应答填报的时间
... author 0..0
... source 0..0
... item 1..*BackboneElement调查问卷应答中的条目
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... Extractable S0..1boolean该条目所填报的数据是否需要被提取分析.默认值为false
URL: http://hl7.org.cn/fhir/StructureDefinition/ext-extractable-observation
.... linkId 1..1string条目应答的唯一标识,与调查问卷中条目标识相对应。
.... answer S0..*BackboneElement条目的应答
..... value[x] 1..1boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, SimpleQuantity, Reference(Resource)条目应答的数据类型由调查问卷中的item.type决定

doco Documentation for this format

快照视图

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse 0..*QuestionnaireResponseA structured set of questions and their answers
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierBusiness identifier for this set of answers
... basedOn Σ0..*Reference(CarePlan | ServiceRequest)Request fulfilled by this QuestionnaireResponse
... partOf Σ0..*Reference(Observation | Procedure)Part of referenced event
... questionnaire SΣ1..1canonical(Questionnaire)指向调查问卷的全球唯一标识符
... status ?!SΣ1..1code该调查问卷应答的状态,默认值可以设为completed
Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.

... subject Σ1..1Reference(Person)调查对象。如果为匿名用户可以使用Reference.identifier记录居民的唯一标识符
... authored Σ1..1dateTime该调查问卷应答填报的时间
... item C1..*BackboneElement调查问卷应答中的条目
qrs-1: Item cannot contain both item and answer
qrs-2: Repeated answers are combined in the answers array of a single item
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... Extractable S0..1boolean该条目所填报的数据是否需要被提取分析.默认值为false
URL: http://hl7.org.cn/fhir/StructureDefinition/ext-extractable-observation
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... linkId C1..1string条目应答的唯一标识,与调查问卷中条目标识相对应。
.... definition 0..1uriElementDefinition - details for the item
.... text 0..1stringName for group or question text
.... answer SC0..*BackboneElement条目的应答
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] C1..1条目应答的数据类型由调查问卷中的item.type决定
Binding: QuestionnaireAnswerCodes (example): Binding this is problematic because one value set can't apply to both codes and quantities.

...... valueBooleanboolean
...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
...... valueUriuri
...... valueAttachmentAttachment
...... valueCodingCoding
...... valueQuantityQuantity(SimpleQuantity)
...... valueReferenceReference(Resource)
..... item 0..*See item (QuestionnaireResponse)Child items of question
.... item 0..*See item (QuestionnaireResponse)Child items of group item

doco Documentation for this format

 

本定义的其它表示法: Schematron

Terminology Bindings

PathConformanceValueSetURI
QuestionnaireResponse.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
QuestionnaireResponse.statusrequiredQuestionnaireResponseStatus
http://hl7.org/fhir/ValueSet/questionnaire-answers-status|5.0.0
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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(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.itemItem cannot contain both item and answer
: (answer.exists() and item.exists()).not()
qrs-2errorQuestionnaireResponse.itemRepeated answers are combined in the answers array of a single item
: repeat(answer|item).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()