PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.core@1.8.0
    http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
description: Base StructureDefinition for QuestionnaireResponse Resource
package_name: hl7.fhir.core
derivation: specialization
name: QuestionnaireResponse
type: QuestionnaireResponse
elements:
  questionnaire:
    short: Form being answered
    refers: ['http://hl7.org/fhir/StructureDefinition/Questionnaire']
    type: Reference
    isSummary: true
    index: 3
  parent:
    short: Part of this action
    refers: ['http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/StructureDefinition/Procedure']
    comments: Composition of questionnaire responses will be handled by the parent questionnaire having answers that reference the child questionnaire.  For relationships to referrals, and other types of requests, use basedOn.
    type: Reference
    array: true
    isSummary: true
    index: 2
  item:
    constraint:
      qrs-1: {human: Nested item can't be beneath both item and answer, severity: error, expression: (answer.exists() and item.exists()).not()}
    short: Groups and questions
    comments: Groups cannot have answers and therefore must nest directly within item. When dealing with questions, nesting must occur within each answer because some questions may have multiple answers (and the nesting occurs for each answer).
    type: BackboneElement
    array: true
    index: 10
    elements:
      linkId: {short: Pointer to specific item from Questionnaire, type: string, index: 11}
      definition: {short: ElementDefinition - details for the item, comments: 'The ElementDefinition must be in a [StructureDefinition](structuredefinition.html) or a [DataElement](dataelement.html), and must have a fragment identifier that identifies the specific data element by it\''s id (Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x].', type: uri, index: 12}
      text: {short: Name for group or question text, type: string, index: 13}
      subject:
        short: The subject this group's answers are about
        refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
        type: Reference
        index: 14
      answer:
        short: The response(s) to the question
        comments: The value is nested because we cannot have a repeating structure that has variable type.
        type: BackboneElement
        array: true
        index: 15
        elements:
          valueReference:
            short: Single-valued answer to the question
            refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
            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: 30
          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: 26}
          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: 24}
          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: 19}
          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: 29}
          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: 17
          item:
            elementReference: ['http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', elements, item]
            short: Nested groups and questions
            array: true
            index: 31
          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: 25}
          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: 18}
          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: 23}
          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: 22}
          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: 21}
          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: 28}
          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: 20}
          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: 27}
      item:
        elementReference: ['http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', elements, item]
        short: Nested questionnaire response items
        array: true
        index: 32
    required: [linkId]
  source:
    short: The person who answered the questions
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    comments: If not specified, no inference can be made about who provided the data.
    type: Reference
    isSummary: true
    index: 9
  author:
    short: Person who received and recorded the answers
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    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: 7
  status: {isModifier: true, short: in-progress | completed | amended | entered-in-error, type: code, isSummary: true, index: 4}
  identifier: {short: Unique id for this set of answers, type: Identifier, isSummary: true, index: 0}
  context:
    short: Encounter or Episode during which questionnaire was completed
    refers: ['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare']
    comments: A questionnaire that was initiated during an encounter but not fully completed during the encounter would still generally be associated with the encounter.
    type: Reference
    isSummary: true
    index: 6
  basedOn:
    short: Request fulfilled by this QuestionnaireResponse
    refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/DiagnosticRequest', 'http://hl7.org/fhir/StructureDefinition/ReferralRequest']
    type: Reference
    array: true
    isSummary: true
    index: 1
  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: 8}
  subject:
    short: The subject of the questions
    refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
    comments: If the Questionnaire declared a subjectType, the resource pointed to by this element must be an instance of that type.
    type: Reference
    isSummary: true
    index: 5
package_version: 1.8.0
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: null
required: [status]