DSTU2 STU 3 Ballot
This page is part of the FHIR Specification (v1.0.2: DSTU 2). The current version which supercedes this version is

This page is part of the FHIR Specification (v1.6.0: STU 3 Ballot 4). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see the Directory of published versions . For a full list of available versions, see the Directory of published versions . Page versions: . Page versions: R5 R4B R4 R3 R2

4.27 2.30 Resource QuestionnaireResponse - Content Resource QuestionnaireResponse - Content

A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
Patient Care Patient Care Work Group Work Group Maturity Level : 2 Maturity Level : 2 Compartments : : Device , , Encounter , , Patient , , Practitioner , , RelatedPerson

A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.

4.27.1 Scope and Usage 2.30.1 Scope and Usage

QuestionnaireResponse provides a complete or partial list of answers to a set of questions filled when responding to a questionnaire. The questions may be included directly or by reference to a provides a complete or partial list of answers to a set of questions filled when responding to a questionnaire. The questions may be included directly or by reference to a Questionnaire resource that defines the questions as well as the constraints on the allowed answers. In some cases, both formal rules for editing the questionnaire (via link to resource that defines the questions as well as the constraints on the allowed answers. In some cases, both formal rules for editing the questionnaire (via link to Questionnaire ) as well as sufficient local information to allow rendering of the questionnaire may be provided. Each time a questionnaire is completed for a different subject or at a different time, a distinct QuestionnaireResponse is generated, though it may be possible for a previously entered set of answers to be edited or updated. Questionnaires cover the need to communicate data originating from forms used in medical history examinations, research questionnaires and sometimes full clinical specialty records. In many systems this data is collected using user-defined screens and forms. Questionnaires record specifics about data capture - exactly what questions were asked, in what order, what choices for answers were, etc. Each of these questions is part of the Questionnaire, and as such the Questionnaire is a separately identifiable Resource, whereas the individual questions are not. Examples of Questionnaires include: Past medical history (PMH) Family diseases Social history Research questionnaires and Case report forms (CRFs) Quality and evaluation forms Patient intake form (e.g. clipboard) Insurance claim form ) as well as sufficient local information to allow rendering of the questionnaire may be provided.

Each time a questionnaire is completed for a different subject or at a different time, a distinct QuestionnaireResponse is generated, though it may be possible for a previously entered set of answers to be edited or updated.

Questionnaires cover the need to communicate data originating from forms used in medical history examinations, research questionnaires and sometimes full clinical specialty records. In many systems this data is collected using user-defined screens and forms. Questionnaires record specifics about data capture - exactly what questions were asked, in what order, what choices for answers were, etc. Each of these questions is part of the Questionnaire, and as such the Questionnaire is a separately identifiable Resource, whereas the individual questions are not.

Examples of Questionnaires include:

  • Past medical history (PMH)
  • Family diseases
  • Social history
  • Research questionnaires and Case report forms (CRFs)
  • Quality and evaluation forms
  • Patient intake form (e.g. clipboard)
  • Insurance claim form

QuestionnaireResponse resources can be validated against their corresponding resources can be validated against their corresponding Questionnaire to verify that required groups and questions are answered and that answers fit constraints in terms of cardinality, data type, etc. to verify that required groups and questions are answered and that answers fit constraints in terms of cardinality, data type, etc.

4.27.2 Boundaries and Relationships 2.30.2 Boundaries and Relationships The

The QuestionnaireResponse resource captures the responses to a questionnaire, while resource captures the responses to a questionnaire, while Questionnaire represents the definition of the questionnaire form, including what questions are asked, how they're organized and the constraints on the allowed answers. While represents the definition of the questionnaire form, including what questions are asked, how they're organized and the constraints on the allowed answers.

While Observation , with its nested , with its nested relatedObservation structure, can create complex hierarchies of questions and answers, the focus is different. First, structure, can create complex hierarchies of questions and answers, the focus is different. First, Observation is used primarily for capturing data elements that are "true" observations - lab measurements, vital signs, social assessments, etc. On the other hand, is used primarily for capturing data elements that are "true" observations - lab measurements, vital signs, social assessments, etc. On the other hand, QuestionnaireResponse can be used to capture any types of data, including data that would typically map to other resources ( can be used to capture any types of data, including data that would typically map to other resources ( Procedure , , Patient , , MedicationStatement , etc.) In addition, the focus of , etc.) In addition, the focus of QuestionnaireResponse includes the specific phrasing and organization of the questions. All data must be explicitly captured as a question. With includes the specific phrasing and organization of the questions. All data must be explicitly captured as a question. With Observation , the focus is only on the meaning of the answer, not what question was asked (assuming a question was even asked at all). Additional information such as normal ranges, interpretation, date, etc. may also be captured. This resource is referenced by , the focus is only on the meaning of the answer, not what question was asked (assuming a question was even asked at all). Additional information such as normal ranges, interpretation, date, etc. may also be captured.

PLANNED CHANGE:

QuestionnaireResponse is one of the Event resources in the FHIR Workflow specification. As such, it is expected to be adjusted to align with the event workflow pattern. Any concerns about performing such alignment are welcome as ballot comments and/or tracker items.

This resource is referenced by ClinicalImpression , , Consent , Contract and and Observation

4.27.3 Resource Content 2.30.3 Resource Content

Structure

I I
Name Flags Card. Type Description & Constraints Description & Constraints doco
. . QuestionnaireResponse DomainResource A structured set of questions and their answers A structured set of questions and their answers
. . . identifier Σ 0..1 Identifier Unique id for this set of answers Unique id for this set of answers
. . questionnaire . basedOn Σ 0..1 0..* Reference ( Questionnaire DiagnosticRequest | ReferralRequest | CarePlan ) Form being answered status ?! Σ 1..1 code in-progress | completed | amended QuestionnaireResponseStatus ( Required ) Request fulfilled by this Questionnaire
. . subject . parent Σ 0..1 0..* Reference ( Any Observation | Procedure ) The subject of the questions Part of this action
. . author . questionnaire Σ 0..1 Reference ( Device | Practitioner | Patient | RelatedPerson Questionnaire ) Person who received and recorded the answers Form being answered
. . authored . status ?! Σ 0..1 1..1 dateTime code Date this version was authored in-progress | completed | amended
QuestionnaireResponseStatus ( Required )
. . source . subject Σ 0..1 Reference ( Patient | Practitioner | RelatedPerson Any ) The person who answered the questions The subject of the questions
. . encounter . context Σ 0..1 Reference ( Encounter | EpisodeOfCare ) Primary encounter during which the answers were collected Encounter or Episode during which questionnaire was completed
. . group . author I Σ 0..1 BackboneElement Reference ( Device | Practitioner | Patient | RelatedPerson ) Grouped questions Groups may either contain questions or groups but not both Person who received and recorded the answers
. linkId . . authored 0..1 string Corresponding group within Questionnaire title Σ 0..1 string dateTime Name for this group Date this version was authored
. text . . source 0..1 string Additional text for the group subject Σ 0..1 Reference ( Any Patient | Practitioner | RelatedPerson ) The subject this group's answers are about The person who answered the questions
. . group . item 0..* see group BackboneElement Nested questionnaire response group Groups and questions
. . . question . linkId 0..* 0..1 BackboneElement string Questions in this group Corresponding item within Questionnaire
. . . linkId . text 0..1 string Corresponding question within Questionnaire Name for group or question text
. . . text . subject 0..1 string Reference ( Any ) Text of the question as it is shown to the user The subject this group's answers are about
. . . . answer 0..* BackboneElement The response(s) to the question The response(s) to the question
. . . . . value[x] 0..1 Single-valued answer to the question Single-valued answer to the question
. . . . . . valueBoolean boolean
. . . . . . valueDecimal decimal
. . . . . . valueInteger integer
. . . . . . valueDate date
. . . . . . valueDateTime dateTime
. . . . . . valueInstant instant
. . . . . . valueTime time
. . . . . . valueString string
. . . . . . valueUri uri
. . . . . . valueAttachment Attachment
. . . . . . valueCoding Coding
. . . . . . valueQuantity Quantity
. . . . . valueReference . valueReference Reference ( Any )
. . . . . item group 0..* see item Nested groups and questions
.... item 0..* see group see item Nested questionnaire group Nested questionnaire response items

Documentation for this format doco Documentation for this format

UML Diagram UML Diagram ( Legend )

QuestionnaireResponse ( ( DomainResource ) A business identifier assigned to a particular completed (or partially completed) questionnaire A business identifier assigned to a particular completed (or partially completed) questionnaire identifier : : Identifier [0..1] Identifies the order, proposal or plan that is fulfilled in whole or in part by this Questionnaire basedOn : Reference [0..*] « DiagnosticRequest [0..1] | ReferralRequest | CarePlan » Identifies a procedure or observation that this questionnaire was performed as part of the execution of parent : Reference [0..*] « Observation | Procedure » Indicates the Questionnaire resource that defines the form for which answers are being provided Indicates the Questionnaire resource that defines the form for which answers are being provided questionnaire : : Reference [0..1] « [0..1] « Questionnaire » » The lifecycle status of the questionnaire response as a whole (this element modifies the meaning of other elements) The lifecycle status of the questionnaire response as a whole (this element modifies the meaning of other elements) status : : code [1..1] « [1..1] « Lifecycle status of the questionnaire response. (Strength=Required) Lifecycle status of the questionnaire response. (Strength=Required) QuestionnaireResponseStatus ! » ! » The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information subject : : Reference [0..1] « [0..1] « Any » The encounter or episode of care with primary association to the questionnaire context : Reference [0..1] « Encounter » | EpisodeOfCare » Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system author : : Reference [0..1] « [0..1] « Device | Practitioner | Patient | RelatedPerson » » The date and/or time that this version of the questionnaire response was authored The date and/or time that this version of the questionnaire response was authored authored : : dateTime [0..1] [0..1] The person who answered the questions about the subject The person who answered the questions about the subject source : : Reference [0..1] « [0..1] « Patient | Practitioner | RelatedPerson » Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers encounter : Reference [0..1] « Encounter » » Group Item Identifies the group from the Questionnaire that corresponds to this group in the QuestionnaireResponse resource Identifies the item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource linkId : string [0..1] Text that is displayed above the contents of the group title : : string [0..1] [0..1] Additional text for the group, used for display purposes Text that is displayed above the contents of the group or as the text of the question being answered text : : string [0..1] [0..1] More specific subject this section's answers are about, details the subject given in QuestionnaireResponse More specific subject this section's answers are about, details the subject given in QuestionnaireResponse subject : : Reference [0..1] « [0..1] « Any » Question Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource linkId : string [0..1] The actual question as shown to the user to prompt them for an answer text : string [0..1] » Answer The answer (or one of the answers) provided by the respondent to the question The answer (or one of the answers) provided by the respondent to the question value[x] : : Type [0..1] « [0..1] « boolean | decimal | integer | date | dateTime | instant | time | string | uri | Attachment | Coding | Quantity | Reference ( Any ) » ) » A sub-group within a group. The ordering of groups within this group is relevant Nested groups and/or questions found within this particular answer group item [0..*] Nested group, containing nested question for this question. The order of groups within the question is relevant The respondent's answer(s) to the question group answer [0..*] The respondent's answer(s) to the question answer [0..*] Set of questions within this group. The order of questions within the group is relevant Questions or sub-groups nested beneath a question or group question item [0..*] A group of questions to a possibly similarly grouped set of questions in the questionnaire response Corresponds to a group or question item from the original questionnaire group item [0..1] [0..*]

XML Template XML Template <

<QuestionnaireResponse xmlns="http://hl7.org/fhir"> doco

 <!-- from Resource: id, meta, implicitRules, and language -->
 <!-- from DomainResource: text, contained, extension, and modifierExtension -->
 <</identifier>
 <</questionnaire>
 <
 <</subject>
 <</author>
 <
 <</source>
 <</encounter>
 <
  <
  <
  <
  <</subject>
  <</group>
  <
   <
   <
   <
    <|
      </value[x]>
    <</group>
   </answer>
  </question>
 </group>

 <identifier><!-- 0..1 Identifier Unique id for this set of answers --></identifier>
 <basedOn><!-- 0..* Reference(DiagnosticRequest|ReferralRequest|CarePlan) Request fulfilled by this Questionnaire --></basedOn>
 <parent><!-- 0..* Reference(Observation|Procedure) Part of this action --></parent>
 <questionnaire><!-- 0..1 Reference(Questionnaire) Form being answered --></questionnaire>
 <status value="[code]"/><!-- 1..1 in-progress | completed | amended -->
 <subject><!-- 0..1 Reference(Any) The subject of the questions --></subject>
 <context><!-- 0..1 Reference(Encounter|EpisodeOfCare) Encounter or Episode during which questionnaire was completed --></context>
 <author><!-- 0..1 Reference(Device|Practitioner|Patient|RelatedPerson) Person who received and recorded the answers --></author>
 <authored value="[dateTime]"/><!-- 0..1 Date this version was authored -->
 <source><!-- 0..1 Reference(Patient|Practitioner|RelatedPerson) The person who answered the questions --></source>
 <item>  <!-- 0..* Groups and questions -->
  <linkId value="[string]"/><!-- 0..1 Corresponding item within Questionnaire -->
  <text value="[string]"/><!-- 0..1 Name for group or question text -->
  <subject><!-- 0..1 Reference(Any) The subject this group's answers are about --></subject>
  <answer>  <!-- 0..* The response(s) to the question -->
   <value[x]><!-- 0..1 boolean|decimal|integer|date|dateTime|instant|time|string|
     uri|Attachment|Coding|Quantity|Reference(Any) Single-valued answer to the question --></value[x]>

   <item><!-- 0..* Content as for QuestionnaireResponse.item Nested groups and questions --></item>
  </answer>
  <item><!-- 0..* Content as for QuestionnaireResponse.item Nested questionnaire response items --></item>
 </item>

</QuestionnaireResponse>

JSON Template JSON Template { "resourceType" : "",

{doco
  "resourceType" : "QuestionnaireResponse",

  // from Resource: id, meta, implicitRules, and language
  // from DomainResource: text, contained, extension, and modifierExtension
  "
  "
  "
  "
  "
  "
  "
  "
  "
    "
    "
    "
    "
    "
    "
      "
      "
      "
        
        ">,
        ">,
        ">,
        ">",
        ">",
        ">",
        ">",
        ">",
        ">",
        " },
        " },
        " },
        " },
        "
      }]
    }]
  }

  "identifier" : { Identifier }, // Unique id for this set of answers
  "basedOn" : [{ Reference(DiagnosticRequest|ReferralRequest|CarePlan) }], // Request fulfilled by this Questionnaire
  "parent" : [{ Reference(Observation|Procedure) }], // Part of this action
  "questionnaire" : { Reference(Questionnaire) }, // Form being answered
  "status" : "<code>", // R!  in-progress | completed | amended
  "subject" : { Reference(Any) }, // The subject of the questions
  "context" : { Reference(Encounter|EpisodeOfCare) }, // Encounter or Episode during which questionnaire was completed
  "author" : { Reference(Device|Practitioner|Patient|RelatedPerson) }, // Person who received and recorded the answers
  "authored" : "<dateTime>", // Date this version was authored
  "source" : { Reference(Patient|Practitioner|RelatedPerson) }, // The person who answered the questions
  "item" : [{ // Groups and questions
    "linkId" : "<string>", // Corresponding item within Questionnaire
    "text" : "<string>", // Name for group or question text
    "subject" : { Reference(Any) }, // The subject this group's answers are about
    "answer" : [{ // The response(s) to the question
      // value[x]: Single-valued answer to the question. One of these 13:

      "valueBoolean" : <boolean>,
      "valueDecimal" : <decimal>,
      "valueInteger" : <integer>,
      "valueDate" : "<date>",
      "valueDateTime" : "<dateTime>",
      "valueInstant" : "<instant>",
      "valueTime" : "<time>",
      "valueString" : "<string>",
      "valueUri" : "<uri>",
      "valueAttachment" : { Attachment },
      "valueCoding" : { Coding },
      "valueQuantity" : { Quantity },
      "valueReference" : { Reference(Any) },
      "item" : [{ Content as for QuestionnaireResponse.item }] // Nested groups and questions
    }],
    "item" : [{ Content as for QuestionnaireResponse.item }] // Nested questionnaire response items
  }]

}

Turtle Template


@prefix fhir: <http://hl7.org/fhir/> .doco


[ a fhir:QuestionnaireResponse;
  fhir:nodeRole fhir:treeRoot; # if this is the parser root

  # from Resource: .id, .meta, .implicitRules, and .language
  # from DomainResource: .text, .contained, .extension, and .modifierExtension
  fhir:QuestionnaireResponse.identifier [ Identifier ]; # 0..1 Unique id for this set of answers
  fhir:QuestionnaireResponse.basedOn [ Reference(DiagnosticRequest|ReferralRequest|CarePlan) ], ... ; # 0..* Request fulfilled by this Questionnaire
  fhir:QuestionnaireResponse.parent [ Reference(Observation|Procedure) ], ... ; # 0..* Part of this action
  fhir:QuestionnaireResponse.questionnaire [ Reference(Questionnaire) ]; # 0..1 Form being answered
  fhir:QuestionnaireResponse.status [ code ]; # 1..1 in-progress | completed | amended
  fhir:QuestionnaireResponse.subject [ Reference(Any) ]; # 0..1 The subject of the questions
  fhir:QuestionnaireResponse.context [ Reference(Encounter|EpisodeOfCare) ]; # 0..1 Encounter or Episode during which questionnaire was completed
  fhir:QuestionnaireResponse.author [ Reference(Device|Practitioner|Patient|RelatedPerson) ]; # 0..1 Person who received and recorded the answers
  fhir:QuestionnaireResponse.authored [ dateTime ]; # 0..1 Date this version was authored
  fhir:QuestionnaireResponse.source [ Reference(Patient|Practitioner|RelatedPerson) ]; # 0..1 The person who answered the questions
  fhir:QuestionnaireResponse.item [ # 0..* Groups and questions
    fhir:QuestionnaireResponse.item.linkId [ string ]; # 0..1 Corresponding item within Questionnaire
    fhir:QuestionnaireResponse.item.text [ string ]; # 0..1 Name for group or question text
    fhir:QuestionnaireResponse.item.subject [ Reference(Any) ]; # 0..1 The subject this group's answers are about
    fhir:QuestionnaireResponse.item.answer [ # 0..* The response(s) to the question
      # QuestionnaireResponse.item.answer.value[x] : 0..1 Single-valued answer to the question. One of these 13
        fhir:QuestionnaireResponse.item.answer.valueBoolean [ boolean ]
        fhir:QuestionnaireResponse.item.answer.valueDecimal [ decimal ]
        fhir:QuestionnaireResponse.item.answer.valueInteger [ integer ]
        fhir:QuestionnaireResponse.item.answer.valueDate [ date ]
        fhir:QuestionnaireResponse.item.answer.valueDateTime [ dateTime ]
        fhir:QuestionnaireResponse.item.answer.valueInstant [ instant ]
        fhir:QuestionnaireResponse.item.answer.valueTime [ time ]
        fhir:QuestionnaireResponse.item.answer.valueString [ string ]
        fhir:QuestionnaireResponse.item.answer.valueUri [ uri ]
        fhir:QuestionnaireResponse.item.answer.valueAttachment [ Attachment ]
        fhir:QuestionnaireResponse.item.answer.valueCoding [ Coding ]
        fhir:QuestionnaireResponse.item.answer.valueQuantity [ Quantity ]
        fhir:QuestionnaireResponse.item.answer.valueReference [ Reference(Any) ]
      fhir:QuestionnaireResponse.item.answer.item [ See QuestionnaireResponse.item ], ... ; # 0..* Nested groups and questions
    ], ...;
    fhir:QuestionnaireResponse.item.item [ See QuestionnaireResponse.item ], ... ; # 0..* Nested questionnaire response items
  ], ...;
]

Changes since DSTU2

QuestionnaireResponse
QuestionnaireResponse.basedOn added
QuestionnaireResponse.parent added
QuestionnaireResponse.context Renamed from encounter to context
Add Reference(EpisodeOfCare)
QuestionnaireResponse.item Renamed from group to item
Max Cardinality changed from 1 to *
QuestionnaireResponse.item.answer added
QuestionnaireResponse.item.answer.value[x] added
QuestionnaireResponse.item.answer.item added
QuestionnaireResponse.item.item added
QuestionnaireResponse.group.title deleted
QuestionnaireResponse.group.group deleted
QuestionnaireResponse.group.question deleted

See the Full Difference for further information

Structure

I I
Name Flags Card. Type Description & Constraints Description & Constraints doco
. . QuestionnaireResponse DomainResource A structured set of questions and their answers A structured set of questions and their answers
. . . identifier Σ 0..1 Identifier Unique id for this set of answers Unique id for this set of answers
. . questionnaire . basedOn Σ 0..1 0..* Reference ( Questionnaire DiagnosticRequest | ReferralRequest | CarePlan ) Form being answered status ?! Σ 1..1 code in-progress | completed | amended QuestionnaireResponseStatus ( Required ) Request fulfilled by this Questionnaire
. . subject . parent Σ 0..1 0..* Reference ( Any Observation | Procedure ) The subject of the questions Part of this action
. . author . questionnaire Σ 0..1 Reference ( Device | Practitioner | Patient | RelatedPerson Questionnaire ) Person who received and recorded the answers Form being answered
. . authored . status ?! Σ 0..1 1..1 dateTime code Date this version was authored in-progress | completed | amended
QuestionnaireResponseStatus ( Required )
. . source . subject Σ 0..1 Reference ( Patient | Practitioner | RelatedPerson Any ) The person who answered the questions The subject of the questions
. . encounter . context Σ 0..1 Reference ( Encounter | EpisodeOfCare ) Primary encounter during which the answers were collected Encounter or Episode during which questionnaire was completed
. . group . author I Σ 0..1 BackboneElement Reference ( Device | Practitioner | Patient | RelatedPerson ) Grouped questions Groups may either contain questions or groups but not both Person who received and recorded the answers
. linkId . . authored 0..1 string Corresponding group within Questionnaire title Σ 0..1 string dateTime Name for this group Date this version was authored
. text . . source 0..1 string Additional text for the group subject Σ 0..1 Reference ( Any Patient | Practitioner | RelatedPerson ) The subject this group's answers are about The person who answered the questions
. . group . item 0..* see group BackboneElement Nested questionnaire response group Groups and questions
. . . question . linkId 0..* 0..1 BackboneElement string Questions in this group Corresponding item within Questionnaire
. . . linkId . text 0..1 string Corresponding question within Questionnaire Name for group or question text
. . . text . subject 0..1 string Reference ( Any ) Text of the question as it is shown to the user The subject this group's answers are about
. . . . answer 0..* BackboneElement The response(s) to the question The response(s) to the question
. . . . . value[x] 0..1 Single-valued answer to the question Single-valued answer to the question
. . . . . . valueBoolean boolean
. . . . . . valueDecimal decimal
. . . . . . valueInteger integer
. . . . . . valueDate date
. . . . . . valueDateTime dateTime
. . . . . . valueInstant instant
. . . . . . valueTime time
. . . . . . valueString string
. . . . . . valueUri uri
. . . . . . valueAttachment Attachment
. . . . . . valueCoding Coding
. . . . . . valueQuantity Quantity
. . . . . valueReference . valueReference Reference ( Any )
. . . . . item group 0..* see item Nested groups and questions
.... item 0..* see group see item Nested questionnaire group Nested questionnaire response items

Documentation for this format doco Documentation for this format

UML Diagram UML Diagram ( Legend )

QuestionnaireResponse ( ( DomainResource ) A business identifier assigned to a particular completed (or partially completed) questionnaire A business identifier assigned to a particular completed (or partially completed) questionnaire identifier : : Identifier [0..1] Identifies the order, proposal or plan that is fulfilled in whole or in part by this Questionnaire basedOn : Reference [0..*] « DiagnosticRequest [0..1] | ReferralRequest | CarePlan » Identifies a procedure or observation that this questionnaire was performed as part of the execution of parent : Reference [0..*] « Observation | Procedure » Indicates the Questionnaire resource that defines the form for which answers are being provided Indicates the Questionnaire resource that defines the form for which answers are being provided questionnaire : : Reference [0..1] « [0..1] « Questionnaire » » The lifecycle status of the questionnaire response as a whole (this element modifies the meaning of other elements) The lifecycle status of the questionnaire response as a whole (this element modifies the meaning of other elements) status : : code [1..1] « [1..1] « Lifecycle status of the questionnaire response. (Strength=Required) Lifecycle status of the questionnaire response. (Strength=Required) QuestionnaireResponseStatus ! » ! » The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information subject : : Reference [0..1] « [0..1] « Any » The encounter or episode of care with primary association to the questionnaire context : Reference [0..1] « Encounter » | EpisodeOfCare » Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system author : : Reference [0..1] « [0..1] « Device | Practitioner | Patient | RelatedPerson » » The date and/or time that this version of the questionnaire response was authored The date and/or time that this version of the questionnaire response was authored authored : : dateTime [0..1] [0..1] The person who answered the questions about the subject The person who answered the questions about the subject source : : Reference [0..1] « [0..1] « Patient | Practitioner | RelatedPerson » Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers encounter : Reference [0..1] « Encounter » » Group Item Identifies the group from the Questionnaire that corresponds to this group in the QuestionnaireResponse resource Identifies the item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource linkId : string [0..1] Text that is displayed above the contents of the group title : : string [0..1] [0..1] Additional text for the group, used for display purposes Text that is displayed above the contents of the group or as the text of the question being answered text : : string [0..1] [0..1] More specific subject this section's answers are about, details the subject given in QuestionnaireResponse More specific subject this section's answers are about, details the subject given in QuestionnaireResponse subject : : Reference [0..1] « [0..1] « Any » Question Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource linkId : string [0..1] The actual question as shown to the user to prompt them for an answer text : string [0..1] » Answer The answer (or one of the answers) provided by the respondent to the question The answer (or one of the answers) provided by the respondent to the question value[x] : : Type [0..1] « [0..1] « boolean | decimal | integer | date | dateTime | instant | time | string | uri | Attachment | Coding | Quantity | Reference ( Any ) » ) » A sub-group within a group. The ordering of groups within this group is relevant Nested groups and/or questions found within this particular answer group item [0..*] Nested group, containing nested question for this question. The order of groups within the question is relevant The respondent's answer(s) to the question group answer [0..*] The respondent's answer(s) to the question answer [0..*] Set of questions within this group. The order of questions within the group is relevant Questions or sub-groups nested beneath a question or group question item [0..*] A group of questions to a possibly similarly grouped set of questions in the questionnaire response Corresponds to a group or question item from the original questionnaire group item [0..1] [0..*]

XML Template XML Template <

<QuestionnaireResponse xmlns="http://hl7.org/fhir"> doco

 <!-- from Resource: id, meta, implicitRules, and language -->
 <!-- from DomainResource: text, contained, extension, and modifierExtension -->
 <</identifier>
 <</questionnaire>
 <
 <</subject>
 <</author>
 <
 <</source>
 <</encounter>
 <
  <
  <
  <
  <</subject>
  <</group>
  <
   <
   <
   <
    <|
      </value[x]>
    <</group>
   </answer>
  </question>
 </group>

 <identifier><!-- 0..1 Identifier Unique id for this set of answers --></identifier>
 <basedOn><!-- 0..* Reference(DiagnosticRequest|ReferralRequest|CarePlan) Request fulfilled by this Questionnaire --></basedOn>
 <parent><!-- 0..* Reference(Observation|Procedure) Part of this action --></parent>
 <questionnaire><!-- 0..1 Reference(Questionnaire) Form being answered --></questionnaire>
 <status value="[code]"/><!-- 1..1 in-progress | completed | amended -->
 <subject><!-- 0..1 Reference(Any) The subject of the questions --></subject>
 <context><!-- 0..1 Reference(Encounter|EpisodeOfCare) Encounter or Episode during which questionnaire was completed --></context>
 <author><!-- 0..1 Reference(Device|Practitioner|Patient|RelatedPerson) Person who received and recorded the answers --></author>
 <authored value="[dateTime]"/><!-- 0..1 Date this version was authored -->
 <source><!-- 0..1 Reference(Patient|Practitioner|RelatedPerson) The person who answered the questions --></source>
 <item>  <!-- 0..* Groups and questions -->
  <linkId value="[string]"/><!-- 0..1 Corresponding item within Questionnaire -->
  <text value="[string]"/><!-- 0..1 Name for group or question text -->
  <subject><!-- 0..1 Reference(Any) The subject this group's answers are about --></subject>
  <answer>  <!-- 0..* The response(s) to the question -->
   <value[x]><!-- 0..1 boolean|decimal|integer|date|dateTime|instant|time|string|
     uri|Attachment|Coding|Quantity|Reference(Any) Single-valued answer to the question --></value[x]>

   <item><!-- 0..* Content as for QuestionnaireResponse.item Nested groups and questions --></item>
  </answer>
  <item><!-- 0..* Content as for QuestionnaireResponse.item Nested questionnaire response items --></item>
 </item>

</QuestionnaireResponse>

JSON Template JSON Template { "resourceType" : "",

{doco
  "resourceType" : "QuestionnaireResponse",

  // from Resource: id, meta, implicitRules, and language
  // from DomainResource: text, contained, extension, and modifierExtension
  "
  "
  "
  "
  "
  "
  "
  "
  "
    "
    "
    "
    "
    "
    "
      "
      "
      "
        
        ">,
        ">,
        ">,
        ">",
        ">",
        ">",
        ">",
        ">",
        ">",
        " },
        " },
        " },
        " },
        "
      }]
    }]
  }

  "identifier" : { Identifier }, // Unique id for this set of answers
  "basedOn" : [{ Reference(DiagnosticRequest|ReferralRequest|CarePlan) }], // Request fulfilled by this Questionnaire
  "parent" : [{ Reference(Observation|Procedure) }], // Part of this action
  "questionnaire" : { Reference(Questionnaire) }, // Form being answered
  "status" : "<code>", // R!  in-progress | completed | amended
  "subject" : { Reference(Any) }, // The subject of the questions
  "context" : { Reference(Encounter|EpisodeOfCare) }, // Encounter or Episode during which questionnaire was completed
  "author" : { Reference(Device|Practitioner|Patient|RelatedPerson) }, // Person who received and recorded the answers
  "authored" : "<dateTime>", // Date this version was authored
  "source" : { Reference(Patient|Practitioner|RelatedPerson) }, // The person who answered the questions
  "item" : [{ // Groups and questions
    "linkId" : "<string>", // Corresponding item within Questionnaire
    "text" : "<string>", // Name for group or question text
    "subject" : { Reference(Any) }, // The subject this group's answers are about
    "answer" : [{ // The response(s) to the question
      // value[x]: Single-valued answer to the question. One of these 13:

      "valueBoolean" : <boolean>,
      "valueDecimal" : <decimal>,
      "valueInteger" : <integer>,
      "valueDate" : "<date>",
      "valueDateTime" : "<dateTime>",
      "valueInstant" : "<instant>",
      "valueTime" : "<time>",
      "valueString" : "<string>",
      "valueUri" : "<uri>",
      "valueAttachment" : { Attachment },
      "valueCoding" : { Coding },
      "valueQuantity" : { Quantity },
      "valueReference" : { Reference(Any) },
      "item" : [{ Content as for QuestionnaireResponse.item }] // Nested groups and questions
    }],
    "item" : [{ Content as for QuestionnaireResponse.item }] // Nested questionnaire response items
  }]

}
 
Alternate
definitions:

Turtle Template


@prefix fhir: <http://hl7.org/fhir/> .doco


[ a fhir:QuestionnaireResponse;
  fhir:nodeRole fhir:treeRoot; # if this is the parser root

  # from Resource: .id, .meta, .implicitRules, and .language
  # from DomainResource: .text, .contained, .extension, and .modifierExtension
  fhir:QuestionnaireResponse.identifier [ Identifier ]; # 0..1 Unique id for this set of answers
  fhir:QuestionnaireResponse.basedOn [ Reference(DiagnosticRequest|ReferralRequest|CarePlan) ], ... ; # 0..* Request fulfilled by this Questionnaire
  fhir:QuestionnaireResponse.parent [ Reference(Observation|Procedure) ], ... ; # 0..* Part of this action
  fhir:QuestionnaireResponse.questionnaire [ Reference(Questionnaire) ]; # 0..1 Form being answered
  fhir:QuestionnaireResponse.status [ code ]; # 1..1 in-progress | completed | amended
  fhir:QuestionnaireResponse.subject [ Reference(Any) ]; # 0..1 The subject of the questions
  fhir:QuestionnaireResponse.context [ Reference(Encounter|EpisodeOfCare) ]; # 0..1 Encounter or Episode during which questionnaire was completed
  fhir:QuestionnaireResponse.author [ Reference(Device|Practitioner|Patient|RelatedPerson) ]; # 0..1 Person who received and recorded the answers
  fhir:QuestionnaireResponse.authored [ dateTime ]; # 0..1 Date this version was authored
  fhir:QuestionnaireResponse.source [ Reference(Patient|Practitioner|RelatedPerson) ]; # 0..1 The person who answered the questions
  fhir:QuestionnaireResponse.item [ # 0..* Groups and questions
    fhir:QuestionnaireResponse.item.linkId [ string ]; # 0..1 Corresponding item within Questionnaire
    fhir:QuestionnaireResponse.item.text [ string ]; # 0..1 Name for group or question text
    fhir:QuestionnaireResponse.item.subject [ Reference(Any) ]; # 0..1 The subject this group's answers are about
    fhir:QuestionnaireResponse.item.answer [ # 0..* The response(s) to the question
      # QuestionnaireResponse.item.answer.value[x] : 0..1 Single-valued answer to the question. One of these 13
        fhir:QuestionnaireResponse.item.answer.valueBoolean [ boolean ]
        fhir:QuestionnaireResponse.item.answer.valueDecimal [ decimal ]
        fhir:QuestionnaireResponse.item.answer.valueInteger [ integer ]
        fhir:QuestionnaireResponse.item.answer.valueDate [ date ]
        fhir:QuestionnaireResponse.item.answer.valueDateTime [ dateTime ]
        fhir:QuestionnaireResponse.item.answer.valueInstant [ instant ]
        fhir:QuestionnaireResponse.item.answer.valueTime [ time ]
        fhir:QuestionnaireResponse.item.answer.valueString [ string ]
        fhir:QuestionnaireResponse.item.answer.valueUri [ uri ]
        fhir:QuestionnaireResponse.item.answer.valueAttachment [ Attachment ]
        fhir:QuestionnaireResponse.item.answer.valueCoding [ Coding ]
        fhir:QuestionnaireResponse.item.answer.valueQuantity [ Quantity ]
        fhir:QuestionnaireResponse.item.answer.valueReference [ Reference(Any) ]
      fhir:QuestionnaireResponse.item.answer.item [ See QuestionnaireResponse.item ], ... ; # 0..* Nested groups and questions
    ], ...;
    fhir:QuestionnaireResponse.item.item [ See QuestionnaireResponse.item ], ... ; # 0..* Nested questionnaire response items
  ], ...;
]

Changes since DSTU2

QuestionnaireResponse
QuestionnaireResponse.basedOn added
QuestionnaireResponse.parent added
QuestionnaireResponse.context Renamed from encounter to context
Add Reference(EpisodeOfCare)
QuestionnaireResponse.item Renamed from group to item
Max Cardinality changed from 1 to *
QuestionnaireResponse.item.answer added
QuestionnaireResponse.item.answer.value[x] added
QuestionnaireResponse.item.answer.item added
QuestionnaireResponse.item.item added
QuestionnaireResponse.group.title deleted
QuestionnaireResponse.group.group deleted
QuestionnaireResponse.group.question deleted

See the Full Difference for further information

 

Alternate definitions: Master Definition ( XML , JSON ), XML Schema / Schematron , Resource Profile ( XML , (for ) + JSON Schema , ShEx (for Turtle ), Questionnaire )

4.27.3.1 Terminology Bindings 2.30.3.1 Terminology Bindings

QuestionnaireResponse.status QuestionnaireResponse.group.question.answer.value[x]
Path Definition Type Reference
QuestionnaireResponse.status Lifecycle status of the questionnaire response. Lifecycle status of the questionnaire response. Required QuestionnaireResponseStatus
QuestionnaireResponse.item.answer.value[x] Code indicating the response provided for a question. Code indicating the response provided for a question. Unknown No details provided yet 4.27.3.2 Constraints qrs-1 : On QuestionnaireResponse.group: Groups may either contain questions or groups but not both (xpath on f:QuestionnaireResponse/f:group: not(exists(f:group) and exists(f:question)) ) No details provided yet

4.27.4 Notes 2.30.4 Notes Questionnaires can be authored by clinicians, the patient himself/herself or a patient's relatives (or even the owner in the case of animals). Clinicians may author questionnaires, where the answers are provided by others on behalf of the patient himself/herself. Additionally, information gathered for the purpose of a patient may be about the patient's relatives (e.g. in family anamnesis). Therefore, Questionnaire makes a distinction between the author, the subject and the source of information. A QuestionnaireResponse may be stand-alone or may point to the form that defines the questions in

Refer to additional guidance provided in the Questionnaire resource dealing with designs of questionnaires. resource dealing with the design of questionnaires.

4.27.5 Security 2.30.5 Security QuestionnaireResponse resources can have answers with values of type Attachment. These attachments will typically be selected by the user answering the questionnaire and this selection may be done in an uncontrolled environment. Systems should ensure that the attachment is of the desired type and should take precautions before rendering or executing any attached content.

QuestionnaireResponse resources can have answers with values of type Attachment. These attachments will typically be selected by the user answering the questionnaire and this selection may be done in an uncontrolled environment. Systems should ensure that the attachment is of the desired type and should take precautions before rendering or executing any attached content.

4.27.6 Access Control 2.30.6 Access Control For most resources, the type of information that can be conveyed in the resource is determined by the resource, and the key attributes that determine the sensitivity level of the information are also known; e.g., drug, observation type, clinical trial randomization status, etc. However, for QuestionnaireResponse, the sensitivity of an instance is dependent on what type of Questionnaire it is associated with. And the data elements that determine that sensitivity could be the answers to any of the questions. This makes automatically enforcing access control rules more challenging. Designers should take these challenges into account and may need to place stricter access controls around QuestionnaireResponse to ensure that access to information is not granted improperly.

For most resources, the type of information that can be conveyed in the resource is determined by the resource, and the key attributes that determine the sensitivity level of the information are also known; e.g., drug, observation type, clinical trial randomization status, etc. However, for QuestionnaireResponse, the sensitivity of an instance is dependent on what type of Questionnaire it is associated with. And the data elements that determine that sensitivity could be the answers to any of the questions. This makes automatically enforcing access control rules more challenging. Designers should take these challenges into account and may need to place stricter access controls around QuestionnaireResponse to ensure that access to information is not granted improperly.

4.27.7 Search Parameters 2.30.7 Search Parameters Search parameters for this resource. The common parameters also apply. See

Search parameters for this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services. for more information about searching in REST, messaging, and services.

© HL7.org 2011+. FHIR DSTU2 (v1.0.2-7202) generated on Sat, Oct 24, 2015 07:44+1100. Links: Search | Version History | Table of Contents | Compare to DSTU1
Name Type Description Paths
author reference The author of the questionnaire The author of the questionnaire QuestionnaireResponse.author
( Device , Patient , Practitioner , , Device , Patient , RelatedPerson )
authored date When the questionnaire was authored When the questionnaire was authored QuestionnaireResponse.authored
encounter based-on reference Encounter during which questionnaire was authored Plan/proposal/order fulfilled by this questionnaire response QuestionnaireResponse.encounter QuestionnaireResponse.basedOn
( ReferralRequest , CarePlan , DiagnosticRequest )
context reference Encounter or episode during which questionnaire was authored QuestionnaireResponse.context
( EpisodeOfCare , Encounter )
patient identifier token The unique identifier for the questionnaire response QuestionnaireResponse.identifier
parent reference The Procedure or observation this questionnaire response is part of QuestionnaireResponse.parent
( Observation , Procedure )
patient that is the subject of the questionnaire reference The patient that is the subject of the questionnaire QuestionnaireResponse.subject
( Patient )
questionnaire reference The questionnaire the answers are provided for The questionnaire the answers are provided for QuestionnaireResponse.questionnaire
( Questionnaire )
source reference The person who answered the questions The person who answered the questions QuestionnaireResponse.source
( Patient , Practitioner , , Patient , RelatedPerson )
status token The status of the questionnaire response The status of the questionnaire response QuestionnaireResponse.status
subject reference The subject of the questionnaire The subject of the questionnaire QuestionnaireResponse.subject
(Any)