PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.core@1.4.0
    http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
description: Base StructureDefinition for QuestionnaireResponse Resource
package_name: hl7.fhir.core
derivation: specialization
name: QuestionnaireResponse
type: null
elements:
  questionnaire: {short: Form being answered, type: Reference, isSummary: true, index: 1}
  encounter: {short: Primary encounter during which the answers were collected, type: Reference, isSummary: true, index: 7}
  item:
    type: BackboneElement
    short: Groups and questions
    array: true
    index: 8
    elements:
      linkId: {type: string, short: Corresponding item within Questionnaire, index: 9}
      text: {type: string, short: Name for group or question text, index: 10}
      subject: {type: Reference, short: The subject this group's answers are about, index: 11}
      answer:
        type: BackboneElement
        short: The response(s) to the question
        comments: The value is nested because we cannot have a repeating structure that has variable type.
        array: true
        index: 12
        elements:
          valueReference: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: Reference, choiceOf: value, index: 27}
          valueUri: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: uri, choiceOf: value, index: 23}
          valueTime: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: time, choiceOf: value, index: 21}
          valueDecimal: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: decimal, choiceOf: value, index: 16}
          valueQuantity: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: Quantity, choiceOf: value, index: 26}
          value:
            short: Single-valued answer to the question
            comments: More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.
            choices: [valueBoolean, valueDecimal, valueInteger, valueDate, valueDateTime, valueInstant, valueTime, valueString, valueUri, valueAttachment, valueCoding, valueQuantity, valueReference]
            index: 14
          item:
            short: Nested groups and questions
            elementReference: ['http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse']
            array: true
            index: 28
          valueString: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: string, choiceOf: value, index: 22}
          valueBoolean: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: boolean, choiceOf: value, index: 15}
          valueInstant: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: instant, choiceOf: value, index: 20}
          valueDateTime: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: dateTime, choiceOf: value, index: 19}
          valueDate: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: date, choiceOf: value, index: 18}
          valueCoding: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: Coding, choiceOf: value, index: 25}
          valueInteger: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: integer, choiceOf: value, index: 17}
          valueAttachment: {short: Single-valued answer to the question, comments: 'More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.', type: Attachment, choiceOf: value, index: 24}
      item:
        short: Nested questionnaire response items
        elementReference: ['http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse']
        array: true
        index: 29
  source: {short: The person who answered the questions, comments: 'If not specified, no inference can be made about who provided the data.', type: Reference, isSummary: true, index: 6}
  author: {short: Person who received and recorded the answers, comments: Mapping a subject's answers to multiple choice options and determining what to put in the textual answer is a matter of interpretation.  Authoring by device would indicate that some portion of the questionnaire had been auto-populated., type: Reference, isSummary: true, index: 4}
  status: {isModifier: true, short: in-progress | completed | amended, type: code, isSummary: true, index: 2}
  identifier: {short: Unique id for this set of answers, type: Identifier, isSummary: true, index: 0}
  authored: {short: Date this version was authored, comments: 'May be different from the update time of the resource itself, because that is the status of the collection and authoring.  This element is optional to allow for systems that may not know the value, however it SHOULD be populated if possible.', type: dateTime, isSummary: true, index: 5}
  subject: {short: The subject of the questions, type: Reference, isSummary: true, index: 3}
package_version: 1.4.0
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: null
required: [status]