2nd DSTU Draft For Comment

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

Profile: StructuredDataCaptureAnswers

The official URL for this profile is:

http://hl7.org/fhir/Profile/questionnaireanswers-sdc-structureddatacaptureanswers

. Defines how the questionnaire answers resource is used to reflect form data within the ONC's Structured Data Capture standard. : Structured Data Capture Data Capture

This profile was published on Mon, Apr 21, 2014 00:00+1000 as a draft by U.S. Office of the National Coordinator (ONC)'s Standards and Infrastructure (S&I) Structured Data Capture project.

Summary

Required/Prohibited Elements

  • The element QuestionnaireAnswers is required
  • The element QuestionnaireAnswers.questionnaire is required
  • The element QuestionnaireAnswers.status is required
  • The element QuestionnaireAnswers.subject is required
  • The element QuestionnaireAnswers.authored is required
  • The element QuestionnaireAnswers.group is required
  • The element QuestionnaireAnswers.group.linkId is required
  • The element QuestionnaireAnswers.group.question.linkId is required
  • The element QuestionnaireAnswers.group.question.text is required

Formal Views of Profile Content

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

Differential View

This structure is derived from QuestionnaireAnswers.

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireAnswers 1..1
... identifier S0..1Identifier
... questionnaire S1..1Questionnaire
... status S1..1code
... subject S1..1Patient
... author S0..1Practitioner, Patient, RelatedPerson
... authored S1..1dateTimeIdentifies when this version of the answer set was created. Changes whenever the answers are updated.
... source 0..1Patient, Practitioner, RelatedPerson
... encounter 0..1Encounter
... group S1..1
.... linkId S1..1
.... title S0..1string
.... text S0..1string
.... subject 0..1Any
.... group S0..*
.... question S0..*
..... linkId S1..1string
..... text S1..1string
..... answer S0..*
...... value[x] S0..*boolean, date, dateTime, time, instant, decimal, integer, string, Coding, Attachment, Any
..... group 0..*

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireAnswers 1..1A structured set of questions and their answers
... id 0..1idLogical id of this artefact
... meta 0..1MetaMetadata about the resource
... implicitRules M0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Language (required, not extensible)
... text I0..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 S Σ0..1IdentifierUnique id for this set of answers
... questionnaire S Σ1..1QuestionnaireForm being answered
... status M SΣ1..1codein-progress | completed | amended
Binding: QuestionnaireAnswersStatus (required, not extensible)
... subject S Σ1..1PatientThe subject of the questions
... author S Σ0..1Practitioner, Patient, RelatedPersonPerson who received and recorded the answers
... authored S Σ1..1dateTimeIdentifies when this version of the answer set was created. Changes whenever the answers are updated.
... source Σ0..1Patient, Practitioner, RelatedPersonThe person who answered the questions
... encounter Σ0..1EncounterPrimary encounter during which the answers were collected
... group S I1..1Grouped questions
qan-1: Groups may either contain questions or groups but not both
.... id 0..1idxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension 0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringCorresponding group within Questionnaire
.... title S0..1stringName for this group
.... text S0..1stringAdditional text for the group
.... subject 0..1AnyThe subject this group's answers are about
.... group S I0..*Nested questionnaire answers group
.... question S I0..*Questions in this group
..... id 0..1idxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension 0..*ExtensionExtensions that cannot be ignored
..... linkId S1..1stringCorresponding question within Questionnaire
..... text S1..1stringText of the question as it is shown to the user
..... answer S0..*The response(s) to the question
...... id 0..1idxml:id (or equivalent in JSON)
...... extension 0..*ExtensionAdditional Content defined by implementations
...... modifierExtension 0..*ExtensionExtensions that cannot be ignored
...... value[x] S0..*boolean, date, dateTime, time, instant, decimal, integer, string, Coding, Attachment, AnySingle-valued answer to the question
..... group 0..*Nested questionnaire group

XML Template

JSON Template

todo

Differential View

This structure is derived from QuestionnaireAnswers.

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireAnswers 1..1
... identifier S0..1Identifier
... questionnaire S1..1Questionnaire
... status S1..1code
... subject S1..1Patient
... author S0..1Practitioner, Patient, RelatedPerson
... authored S1..1dateTimeIdentifies when this version of the answer set was created. Changes whenever the answers are updated.
... source 0..1Patient, Practitioner, RelatedPerson
... encounter 0..1Encounter
... group S1..1
.... linkId S1..1
.... title S0..1string
.... text S0..1string
.... subject 0..1Any
.... group S0..*
.... question S0..*
..... linkId S1..1string
..... text S1..1string
..... answer S0..*
...... value[x] S0..*boolean, date, dateTime, time, instant, decimal, integer, string, Coding, Attachment, Any
..... group 0..*

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireAnswers 1..1A structured set of questions and their answers
... id 0..1idLogical id of this artefact
... meta 0..1MetaMetadata about the resource
... implicitRules M0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Language (required, not extensible)
... text I0..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 S Σ0..1IdentifierUnique id for this set of answers
... questionnaire S Σ1..1QuestionnaireForm being answered
... status M SΣ1..1codein-progress | completed | amended
Binding: QuestionnaireAnswersStatus (required, not extensible)
... subject S Σ1..1PatientThe subject of the questions
... author S Σ0..1Practitioner, Patient, RelatedPersonPerson who received and recorded the answers
... authored S Σ1..1dateTimeIdentifies when this version of the answer set was created. Changes whenever the answers are updated.
... source Σ0..1Patient, Practitioner, RelatedPersonThe person who answered the questions
... encounter Σ0..1EncounterPrimary encounter during which the answers were collected
... group S I1..1Grouped questions
qan-1: Groups may either contain questions or groups but not both
.... id 0..1idxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension 0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringCorresponding group within Questionnaire
.... title S0..1stringName for this group
.... text S0..1stringAdditional text for the group
.... subject 0..1AnyThe subject this group's answers are about
.... group S I0..*Nested questionnaire answers group
.... question S I0..*Questions in this group
..... id 0..1idxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension 0..*ExtensionExtensions that cannot be ignored
..... linkId S1..1stringCorresponding question within Questionnaire
..... text S1..1stringText of the question as it is shown to the user
..... answer S0..*The response(s) to the question
...... id 0..1idxml:id (or equivalent in JSON)
...... extension 0..*ExtensionAdditional Content defined by implementations
...... modifierExtension 0..*ExtensionExtensions that cannot be ignored
...... value[x] S0..*boolean, date, dateTime, time, instant, decimal, integer, string, Coding, Attachment, AnySingle-valued answer to the question
..... group 0..*Nested questionnaire group

XML Template

JSON Template

todo

 

Other definitions: (todo)

Terminology Bindings

PathNameConformanceValueSet
QuestionnaireAnswers.languageLanguagerequiredhttp://tools.ietf.org/html/bcp47
QuestionnaireAnswers.statusQuestionnaireAnswersStatusrequiredQuestionnaireAnswersStatus

Constraints

IdPathNameDetails
qan-1QuestionnaireAnswers.groupGroupHaveSubOrQuestionsGroups may either contain questions or groups but not both
XPath: not(exists(f:group) and exists(f:question))
.