PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r2.core@1.0.2
    http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
description: Base StructureDefinition for QuestionnaireResponse Resource
package_name: hl7.fhir.r2.core
name: QuestionnaireResponse
type: null
elements:
  questionnaire: {short: Form being answered, type: Reference, isSummary: true, index: 1}
  group:
    constraint:
      qrs-1: {human: Groups may either contain questions or groups but not both, severity: error}
    short: Grouped questions
    name: group
    comments: The Questionnaire itself has one "root" group with the actual contents of the Questionnaire.
    type: BackboneElement
    index: 8
    elements:
      linkId: {type: string, short: Corresponding group within Questionnaire, index: 9}
      title: {short: Name for this group, comments: 'On the root group, this is the title of the questionnaire.', type: string, index: 10}
      text: {type: string, short: Additional text for the group, index: 11}
      subject: {type: Reference, short: The subject this group's answers are about, index: 12}
      group: {short: Nested questionnaire response group, nameReference: group, array: true, index: 13}
      question:
        short: Questions in this group
        type: BackboneElement
        array: true
        index: 14
        elements:
          linkId: {type: string, short: Corresponding question within Questionnaire, index: 15}
          text: {type: string, short: Text of the question as it is shown to the user, index: 16}
          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: 17
            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: 32}
              group: {short: Nested questionnaire group, nameReference: group, array: true, index: 33}
              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: 28}
              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: 26}
              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: 21}
              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: 31}
              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: 19
              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: 27}
              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: 20}
              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: 25}
              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: 24}
              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: 23}
              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: 30}
              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: 22}
              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: 29}
  encounter: {short: Primary encounter during which the answers were collected, type: Reference, isSummary: true, index: 7}
  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.0.2
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
version: null
required: [status]