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. package_name: hl7.fhir.r5.examples derivation: specialization name: QuestionnaireResponse type: QuestionnaireResponse elements: questionnaire: {isModifier: false, short: Form being answered, type: canonical, mustSupport: false, isSummary: true, index: 3} encounter: isModifier: false short: Encounter created as part of refers: ['http://hl7.org/fhir/StructureDefinition/Encounter'] type: Reference mustSupport: false isSummary: true index: 6 item: constraint: 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 type: BackboneElement mustSupport: false array: true elements: linkId: {isModifier: false, short: Pointer to specific item from Questionnaire, type: string, mustSupport: false, isSummary: false, index: 11} definition: {isModifier: false, short: ElementDefinition - details for the item, type: uri, mustSupport: false, isSummary: false, index: 12} text: {isModifier: false, short: Name for group or question text, type: string, mustSupport: false, isSummary: false, index: 13} answer: isModifier: false short: The response(s) to the question index: 14 type: BackboneElement mustSupport: false array: true elements: valueReference: isModifier: false short: Single-valued answer to the question index: 28 refers: ['http://hl7.org/fhir/StructureDefinition/Resource'] type: Reference mustSupport: false choiceOf: value isSummary: false valueUri: {isModifier: false, short: Single-valued answer to the question, type: uri, mustSupport: false, choiceOf: value, isSummary: false, index: 24} valueTime: {isModifier: false, short: Single-valued answer to the question, type: time, mustSupport: false, choiceOf: value, isSummary: false, index: 22} valueDecimal: {isModifier: false, short: Single-valued answer to the question, type: decimal, mustSupport: false, choiceOf: value, isSummary: false, index: 18} valueQuantity: {isModifier: false, short: Single-valued answer to the question, type: Quantity, mustSupport: false, choiceOf: value, isSummary: false, index: 27} value: isModifier: false short: Single-valued answer to the question mustSupport: false choices: [valueBoolean, valueDecimal, valueInteger, valueDate, valueDateTime, valueTime, valueString, valueUri, valueAttachment, valueCoding, valueQuantity, valueReference] 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: 29 valueString: {isModifier: false, short: Single-valued answer to the question, type: string, mustSupport: false, choiceOf: value, isSummary: false, index: 23} valueBoolean: {isModifier: false, short: Single-valued answer to the question, type: boolean, mustSupport: false, choiceOf: value, isSummary: false, index: 17} valueDateTime: {isModifier: false, short: Single-valued answer to the question, type: dateTime, mustSupport: false, choiceOf: value, isSummary: false, index: 21} valueDate: {isModifier: false, short: Single-valued answer to the question, type: date, mustSupport: false, choiceOf: value, isSummary: false, index: 20} valueCoding: {isModifier: false, short: Single-valued answer to the question, type: Coding, mustSupport: false, choiceOf: value, isSummary: false, index: 26} valueInteger: {isModifier: false, short: Single-valued answer to the question, type: integer, mustSupport: false, choiceOf: value, isSummary: false, index: 19} valueAttachment: {isModifier: false, short: Single-valued answer to the question, type: Attachment, mustSupport: false, choiceOf: value, isSummary: false, index: 25} required: [valueCoding, valueUri, valueString, valueReference, valueDecimal, valueAttachment, valueDateTime, value, valueBoolean, valueDate, valueTime, valueQuantity, valueInteger] isSummary: false 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: 30 required: [linkId] isSummary: false source: isModifier: false short: The individual or device that answered the questions refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] type: Reference mustSupport: false isSummary: true index: 9 author: isModifier: false short: The individual or device that received and recorded the answers refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] type: Reference mustSupport: false isSummary: true index: 8 status: isModifier: true short: in-progress | completed | amended | entered-in-error | stopped index: 4 type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/questionnaire-answers-status|5.0.0-snapshot1'} 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 identifier: {isModifier: false, short: Unique id for this set of answers, type: Identifier, mustSupport: false, array: true, isSummary: true, index: 0} basedOn: isModifier: false short: Request fulfilled by this QuestionnaireResponse refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest'] type: Reference mustSupport: false array: true isSummary: true index: 1 authored: {isModifier: false, short: Date the answers were gathered, type: dateTime, mustSupport: false, isSummary: true, index: 7} partOf: isModifier: false short: Part of this action refers: ['http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/StructureDefinition/Procedure'] type: Reference mustSupport: false array: true isSummary: true index: 2 subject: isModifier: false short: The subject of the questions refers: ['http://hl7.org/fhir/StructureDefinition/Resource'] type: Reference mustSupport: false isSummary: true index: 5 package_version: 5.0.0-snapshot1 class: resource kind: resource url: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse base: http://hl7.org/fhir/StructureDefinition/DomainResource version: 5.0.0-snapshot1 required: [status]