DSTU2 QA Preview

This page is part of the FHIR Specification (v1.0.0: DSTU 2 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

G.3.2.1 StructureDefinition: CQIF-Questionnaire

The official URL for this profile is:

http://hl7.org/fhir/StructureDefinition/cqif-questionnaire

A questionnaire with the ability to specify behavior associated with questions or groups of questions

This profile was published on Sat, May 30, 2015 00:00+1000 as a draft by Health Level Seven, Inc. - CDS WG.

G.3.2.1.1 Formal Views of Profile Content

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

This structure is derived from Questionnaire.

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*QuestionnaireA questionnaire with the ability to specify behavior associated with questions or groups of questions
... group 1..1BackboneElement
.... question 0..*BackboneElement
..... cqif-basic-expression 0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
Slice: Unordered, Open, by url
..... cqif-basic-expression 0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
.... cqif-basic-expression 0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
Slice: Unordered, Open, by url
... cqif-basic-content 0..*AttachmentAn attachment containing any logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-content
Slice: Unordered, Open, by url

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*QuestionnaireA questionnaire with the ability to specify behavior associated with questions or groups of questions
que-3: If root group must be "required"
que-2: The link ids for groups and questions must be unique within the questionnaire
... meta 0..1MetaMetadata about the resource
... implicitRules ?! 0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: IETF BCP-47 (required)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... cqif-basic-content 0..*AttachmentAn attachment containing any logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-content
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier 0..*IdentifierExternal Ids for this questionnaire
... version 0..1stringLogical id for this version of Questionnaire
... status ?! 1..1codedraft | published | retired
Binding: QuestionnaireStatus (required)
... date 0..1dateTimeDate this version was authored
... publisher 0..1stringOrganization/individual who designed the questionnaire
... telecom 0..*ContactPointContact information of the publisher
... subjectType 0..*codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required)
... group I1..1BackboneElementGrouped questions
que-1: Groups may either contain questions or groups but not both
.... cqif-basic-expression 0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... linkId 0..1stringTo link questionnaire with questionnaire response
.... title 0..1stringName to be displayed for group
.... concept 0..*CodingConcept that represents this section on a questionnaire
Binding: Questionnaire Question Codes (example)
.... text 0..1stringAdditional text for the group
.... required 0..1booleanMust group be included in data results?
.... repeats 0..1booleanWhether the group may repeat
.... group I0..*Nested questionnaire group
.... question I0..*BackboneElementQuestions in this group
que-4: A question must use either option or options, not both
..... cqif-basic-expression 0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
..... cqif-basic-expression 0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
..... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
..... linkId 0..1stringTo link questionnaire with questionnaire response
..... concept 0..*CodingConcept that represents this question on a questionnaire
Binding: Questionnaire Question Codes (example)
..... text 0..1stringText of the question as it is shown to the user
..... type 0..1codeboolean | decimal | integer | date | dateTime +
Binding: AnswerFormat (required)
..... required 0..1booleanMust question be answered in data results?
..... repeats 0..1booleanCan question have multiple answers?
..... options I0..1Reference(ValueSet)Valueset containing permitted answers
..... option I0..*CodingPermitted answer
Binding: Questionnaire Answer Codes (example)
..... group 0..*Nested questionnaire group

doco Documentation for this format

todo

This structure is derived from Questionnaire.

Differential View

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*QuestionnaireA questionnaire with the ability to specify behavior associated with questions or groups of questions
... group 1..1BackboneElement
.... question 0..*BackboneElement
..... cqif-basic-expression 0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
Slice: Unordered, Open, by url
..... cqif-basic-expression 0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
.... cqif-basic-expression 0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
Slice: Unordered, Open, by url
... cqif-basic-content 0..*AttachmentAn attachment containing any logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-content
Slice: Unordered, Open, by url

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*QuestionnaireA questionnaire with the ability to specify behavior associated with questions or groups of questions
que-3: If root group must be "required"
que-2: The link ids for groups and questions must be unique within the questionnaire
... meta 0..1MetaMetadata about the resource
... implicitRules ?! 0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: IETF BCP-47 (required)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... cqif-basic-content 0..*AttachmentAn attachment containing any logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-content
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier 0..*IdentifierExternal Ids for this questionnaire
... version 0..1stringLogical id for this version of Questionnaire
... status ?! 1..1codedraft | published | retired
Binding: QuestionnaireStatus (required)
... date 0..1dateTimeDate this version was authored
... publisher 0..1stringOrganization/individual who designed the questionnaire
... telecom 0..*ContactPointContact information of the publisher
... subjectType 0..*codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required)
... group I1..1BackboneElementGrouped questions
que-1: Groups may either contain questions or groups but not both
.... cqif-basic-expression 0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... linkId 0..1stringTo link questionnaire with questionnaire response
.... title 0..1stringName to be displayed for group
.... concept 0..*CodingConcept that represents this section on a questionnaire
Binding: Questionnaire Question Codes (example)
.... text 0..1stringAdditional text for the group
.... required 0..1booleanMust group be included in data results?
.... repeats 0..1booleanWhether the group may repeat
.... group I0..*Nested questionnaire group
.... question I0..*BackboneElementQuestions in this group
que-4: A question must use either option or options, not both
..... cqif-basic-expression 0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
..... cqif-basic-expression 0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-expression
..... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
..... linkId 0..1stringTo link questionnaire with questionnaire response
..... concept 0..*CodingConcept that represents this question on a questionnaire
Binding: Questionnaire Question Codes (example)
..... text 0..1stringText of the question as it is shown to the user
..... type 0..1codeboolean | decimal | integer | date | dateTime +
Binding: AnswerFormat (required)
..... required 0..1booleanMust question be answered in data results?
..... repeats 0..1booleanCan question have multiple answers?
..... options I0..1Reference(ValueSet)Valueset containing permitted answers
..... option I0..*CodingPermitted answer
Binding: Questionnaire Answer Codes (example)
..... group 0..*Nested questionnaire group

doco Documentation for this format

XML Template

JSON Template

todo

 

Other representations of profile: Schematron

G.3.2.1.2 Terminology Bindings

PathNameConformanceValueSet
Questionnaire.language?extrequiredhttp://tools.ietf.org/html/bcp47
Questionnaire.statusQuestionnaireStatusrequiredQuestionnaireStatus
Questionnaire.subjectTypeResourceTyperequiredResourceType
Questionnaire.group.conceptQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.group.question.conceptQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.group.question.typeAnswerFormatrequiredAnswerFormat
Questionnaire.group.question.optionQuestionnaire Answer CodesexampleQuestionnaire Answer Codes

G.3.2.1.3 Constraints

IdPathDetailsRequirements
que-3QuestionnaireIf root group must be "required"
XPath: f:group/f:required/@value='true'
que-2QuestionnaireThe link ids for groups and questions must be unique within the questionnaire
XPath: count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))
que-1Questionnaire.groupGroups may either contain questions or groups but not both
XPath: not(exists(f:group) and exists(f:question))
que-4Questionnaire.group.questionA question must use either option or options, not both
XPath: not(f:options and f:option)
.