PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r4.id.core@0.1.0
    https://fhir.kemkes.go.id/r4/StructureDefinition/QuestionnaireResponse
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.r4.id.core
derivation: specialization
name: QuestionnaireResponse
type: QuestionnaireResponse
elements:
  questionnaire: {short: Form being answered, type: canonical, isSummary: true, index: 3}
  encounter:
    short: Encounter created as part of
    refers: ['http://hl7.org/fhir/StructureDefinition/Encounter']
    type: Reference
    isSummary: true
    index: 6
  item:
    type: BackboneElement
    short: Groups and questions
    constraint:
      qrs-1: {human: Nested item can't be beneath both item and answer, source: 'http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', severity: error, expression: (answer.exists() and item.exists()).not()}
    index: 10
    elements:
      linkId: {short: Pointer to specific item from Questionnaire, type: string, index: 11}
      definition: {short: ElementDefinition - details for the item, type: uri, index: 12}
      text: {type: string, short: Name for group or question text, index: 13}
      answer:
        type: BackboneElement
        short: The response(s) to the question
        index: 14
        elements:
          valueReference:
            short: Single-valued answer to the question
            refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
            type: Reference
            choiceOf: value
            index: 28
          valueUri: {short: Single-valued answer to the question, type: uri, choiceOf: value, index: 24}
          valueTime: {short: Single-valued answer to the question, type: time, choiceOf: value, index: 22}
          valueDecimal: {short: Single-valued answer to the question, type: decimal, choiceOf: value, index: 18}
          valueQuantity: {short: Single-valued answer to the question, type: Quantity, choiceOf: value, index: 27}
          value:
            short: Single-valued answer to the question
            choices: [valueBoolean, valueDecimal, valueInteger, valueDate, valueDateTime, valueTime, valueString, valueUri, valueAttachment, valueCoding, valueQuantity, valueReference]
            index: 16
          item:
            elementReference: ['https://fhir.kemkes.go.id/r4/StructureDefinition/QuestionnaireResponse', elements, item]
            short: Nested groups and questions
            array: true
            index: 29
          valueString: {short: Single-valued answer to the question, type: string, choiceOf: value, index: 23}
          valueBoolean: {short: Single-valued answer to the question, type: boolean, choiceOf: value, index: 17}
          valueDateTime: {short: Single-valued answer to the question, type: dateTime, choiceOf: value, index: 21}
          valueDate: {short: Single-valued answer to the question, type: date, choiceOf: value, index: 20}
          valueCoding: {short: Single-valued answer to the question, type: Coding, choiceOf: value, index: 26}
          valueInteger: {short: Single-valued answer to the question, type: integer, choiceOf: value, index: 19}
          valueAttachment: {short: Single-valued answer to the question, type: Attachment, choiceOf: value, index: 25}
      item:
        elementReference: ['https://fhir.kemkes.go.id/r4/StructureDefinition/QuestionnaireResponse', elements, item]
        short: Nested questionnaire response items
        array: true
        index: 30
    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/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    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/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
    isSummary: true
    index: 8
  status:
    isModifier: true
    short: in-progress | completed | amended | entered-in-error | stopped
    type: code
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1'}
    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: {short: Unique id for this set of answers, type: Identifier, isSummary: true, index: 0}
  basedOn:
    short: Request fulfilled by this QuestionnaireResponse
    refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest']
    type: Reference
    isSummary: true
    index: 1
  authored: {short: Date the answers were gathered, type: dateTime, isSummary: true, index: 7}
  partOf:
    short: Part of this action
    refers: ['http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/StructureDefinition/Procedure']
    type: Reference
    isSummary: true
    index: 2
  subject:
    short: The subject of the questions
    refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
    type: Reference
    isSummary: true
    index: 5
package_version: 0.1.0
class: resource
kind: resource
url: https://fhir.kemkes.go.id/r4/StructureDefinition/QuestionnaireResponse
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: 4.0.1
required: [status]