http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|5.0.0

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 questionnaire being responded to.
description: 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 questionnaire being responded to.
derivation: specialization
name: QuestionnaireResponse
type: QuestionnaireResponse
elements:
  questionnaire: {isModifier: false, short: Canonical URL of Questionnaire being answered, mustSupport: false, isSummary: true, index: 3}
  encounter: {isModifier: false, short: Encounter the questionnaire response is part of, mustSupport: false, isSummary: true, index: 6}
  item:
    constraint:
      qrs-2: {human: Repeated answers are combined in the answers array of a single item, source: 'http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', severity: error, expression: repeat(answer|item).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()}
      qrs-1: {human: Item cannot contain both item and answer, source: 'http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', severity: error, expression: (answer.exists() and item.exists()).not()}
    isModifier: false
    short: Groups and questions
    index: 10
    mustSupport: false
    array: true
    elements:
      linkId: {isModifier: false, short: Pointer to specific item from Questionnaire, mustSupport: false, isSummary: false, index: 11}
      definition: {isModifier: false, short: ElementDefinition - details for the item, mustSupport: false, isSummary: false, index: 12}
      text: {isModifier: false, short: Name for group or question text, mustSupport: false, isSummary: false, index: 13}
      answer:
        isModifier: false
        short: The response(s) to the question
        mustSupport: false
        array: true
        isSummary: false
        index: 14
        elements:
          value:
            isModifier: false
            short: Single-valued answer to the question
            mustSupport: false
            choices: []
            isSummary: false
            index: 16
          item:
            elementReference: ['http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', elements, item]
            isModifier: false
            short: Child items of question
            mustSupport: false
            array: true
            isSummary: false
            index: 17
        required: [value]
      item:
        elementReference: ['http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', elements, item]
        isModifier: false
        short: Child items of group item
        mustSupport: false
        array: true
        isSummary: false
        index: 18
    required: [linkId]
    isSummary: false
  source: {isModifier: false, short: The individual or device that answered the questions, mustSupport: false, isSummary: true, index: 9}
  author: {isModifier: false, short: The individual or device that received and recorded the answers, mustSupport: false, isSummary: true, index: 8}
  status:
    isModifier: true
    short: in-progress | completed | amended | entered-in-error | stopped
    mustSupport: false
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/questionnaire-answers-status|5.0.0'}
    isModifierReason: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
    isSummary: true
    index: 4
  identifier: {isModifier: false, short: Business identifier for this set of answers, mustSupport: false, array: true, isSummary: true, index: 0}
  basedOn: {isModifier: false, short: Request fulfilled by this QuestionnaireResponse, mustSupport: false, array: true, isSummary: true, index: 1}
  authored: {isModifier: false, short: Date the answers were gathered, mustSupport: false, isSummary: true, index: 7}
  partOf: {isModifier: false, short: Part of referenced event, mustSupport: false, array: true, isSummary: true, index: 2}
  subject: {isModifier: false, short: The subject of the questions, mustSupport: false, isSummary: true, index: 5}
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: 5.0.0
required: [status, questionnaire]