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.",
  "_filename": "QuestionnaireResponse.json",
  "package_name": "hl7.fhir.r4.id.core",
  "date": "2019-11-01T09:29:23+11:00",
  "derivation": "specialization",
  "meta": {
    "lastUpdated": "2022-01-10T03:15:24.944+00:00"
  },
  "publisher": "Health Level Seven International (FHIR Infrastructure)",
  "fhirVersion": "4.0.1",
  "purpose": "To support structured, hierarchical reporting of data gathered using digital forms and other questionnaires.",
  "name": "QuestionnaireResponse",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  } ],
  "abstract": false,
  "type": "QuestionnaireResponse",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.1.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
    "valueString": "Clinical.Diagnostics"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "trial-use"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 3
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode": "patient"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "fhir"
  } ],
  "status": "draft",
  "id": "3e1425ec-9b60-439f-bd54-7c32eb013ae5",
  "kind": "resource",
  "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/QuestionnaireResponse",
  "version": "4.0.1",
  "differential": {
    "element": [ {
      "id": "QuestionnaireResponse",
      "path": "QuestionnaireResponse",
      "alias": [ "Form", "QuestionnaireAnswers" ],
      "short": "A structured set of questions and their answers",
      "comment": "The QuestionnaireResponse contains enough information about the questions asked and their organization that it can be interpreted somewhat independently from the Questionnaire it is based on.  I.e. You don't need access to the Questionnaire in order to extract basic information from a QuestionnaireResponse.",
      "mapping": [ {
        "map": "Event",
        "identity": "workflow"
      }, {
        "map": "Observation[moodCode=EVN]",
        "identity": "rim"
      } ],
      "definition": "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."
    }, {
      "path": "QuestionnaireResponse.identifier",
      "requirements": "Used for tracking, registration and other business purposes.",
      "definition": "A business identifier assigned to a particular completed (or partially completed) questionnaire.",
      "short": "Unique id for this set of answers",
      "mapping": [ {
        "map": "Event.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "QuestionnaireResponse.identifier",
      "isSummary": true
    }, {
      "path": "QuestionnaireResponse.basedOn",
      "requirements": "Supports traceability of responsibility for the action and allows linkage of an action to the recommendations acted upon.",
      "definition": "The order, proposal or plan that is fulfilled in whole or in part by this QuestionnaireResponse.  For example, a ServiceRequest seeking an intake assessment or a decision support recommendation to assess for post-partum depression.",
      "short": "Request fulfilled by this QuestionnaireResponse",
      "mapping": [ {
        "map": "Event.basedOn",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/CarePlan", "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ]
      } ],
      "alias": [ "order" ],
      "id": "QuestionnaireResponse.basedOn",
      "isSummary": true
    }, {
      "id": "QuestionnaireResponse.partOf",
      "path": "QuestionnaireResponse.partOf",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Observation", "http://hl7.org/fhir/StructureDefinition/Procedure" ]
      } ],
      "short": "Part of this action",
      "comment": "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.",
      "mapping": [ {
        "map": "Event.partOf",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "A procedure or observation that this questionnaire was performed as part of the execution of.  For example, the surgery a checklist was executed as part of."
    }, {
      "path": "QuestionnaireResponse.questionnaire",
      "requirements": "Needed to allow editing of the questionnaire response in a manner that enforces the constraints of the original form.",
      "definition": "The Questionnaire that defines and organizes the questions for which answers are being provided.",
      "short": "Form being answered",
      "mapping": [ {
        "map": "Event.instantiates",
        "identity": "workflow"
      }, {
        "map": "./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "canonical",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Questionnaire" ]
      } ],
      "alias": [ "Form" ],
      "max": "1",
      "id": "QuestionnaireResponse.questionnaire",
      "comment": "If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.).",
      "isSummary": true
    }, {
      "path": "QuestionnaireResponse.status",
      "requirements": "The information on Questionnaire resources  may possibly be gathered during multiple sessions and altered after considered being finished.",
      "min": 1,
      "definition": "The position of the questionnaire response within its overall lifecycle.",
      "isModifier": true,
      "short": "in-progress | completed | amended | entered-in-error | stopped",
      "mapping": [ {
        "map": "Event.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "QuestionnaireResponseStatus"
        } ],
        "description": "Lifecycle status of the questionnaire response."
      },
      "max": "1",
      "id": "QuestionnaireResponse.status",
      "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "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
    }, {
      "path": "QuestionnaireResponse.subject",
      "requirements": "Allows linking the answers to the individual the answers describe.  May also affect access control.",
      "definition": "The subject of the questionnaire response.  This could be a patient, organization, practitioner, device, etc.  This is who/what the answers apply to, but is not necessarily the source of information.",
      "short": "The subject of the questions",
      "mapping": [ {
        "map": "Event.subject",
        "identity": "workflow"
      }, {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=SBJ].role",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "alias": [ "Patient", "Focus" ],
      "max": "1",
      "id": "QuestionnaireResponse.subject",
      "comment": "If the Questionnaire declared a subjectType, the resource pointed to by this element must be an instance of one of the listed types.",
      "isSummary": true
    }, {
      "path": "QuestionnaireResponse.encounter",
      "requirements": "Provides context for the information that was captured.  May also affect access control.",
      "definition": "The Encounter during which this questionnaire response was created or to which the creation of this record is tightly associated.",
      "short": "Encounter created as part of",
      "mapping": [ {
        "map": "Event.encounter",
        "identity": "workflow"
      }, {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ]
      } ],
      "max": "1",
      "id": "QuestionnaireResponse.encounter",
      "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. A questionnaire that was initiated during an encounter but not fully completed during the encounter would still generally be associated with the encounter.",
      "isSummary": true
    }, {
      "path": "QuestionnaireResponse.authored",
      "requirements": "Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers.",
      "definition": "The date and/or time that this set of answers were last changed.",
      "short": "Date the answers were gathered",
      "mapping": [ {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "alias": [ "Date Created", "Date published", "Date Issued", "Date updated" ],
      "max": "1",
      "id": "QuestionnaireResponse.authored",
      "comment": "May be different from the lastUpdateTime of the resource itself, because that reflects when the data was known to the server, not when the data was captured.\n\nThis element is optional to allow for systems that might not know the value, however it SHOULD be populated if possible.",
      "isSummary": true
    }, {
      "path": "QuestionnaireResponse.author",
      "requirements": "Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers.",
      "definition": "Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.",
      "short": "Person who received and recorded the answers",
      "mapping": [ {
        "map": "Event.performer",
        "identity": "workflow"
      }, {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "alias": [ "Laboratory", "Service", "Practitioner", "Department", "Company", "Performer" ],
      "max": "1",
      "id": "QuestionnaireResponse.author",
      "comment": "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.",
      "isSummary": true
    }, {
      "path": "QuestionnaireResponse.source",
      "requirements": "When answering questions about a subject that is minor, incapable of answering or an animal, another human source may answer the questions.",
      "definition": "The person who answered the questions about the subject.",
      "short": "The person who answered the questions",
      "mapping": [ {
        "map": "FiveWs.source",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=INF].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
      } ],
      "max": "1",
      "id": "QuestionnaireResponse.source",
      "comment": "If not specified, no inference can be made about who provided the data.",
      "isSummary": true
    }, {
      "id": "QuestionnaireResponse.item",
      "path": "QuestionnaireResponse.item",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Groups and questions",
      "comment": "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).",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]",
        "identity": "rim"
      } ],
      "constraint": [ {
        "key": "qrs-1",
        "human": "Nested item can't be beneath both item and answer",
        "xpath": "not(exists(f:answer) and exists(f:item))",
        "source": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
        "severity": "error",
        "expression": "(answer.exists() and item.exists()).not()"
      } ],
      "definition": "A group or question item from the original questionnaire for which answers are provided."
    }, {
      "path": "QuestionnaireResponse.item.linkId",
      "requirements": "Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.",
      "min": 1,
      "definition": "The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.",
      "short": "Pointer to specific item from Questionnaire",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "QuestionnaireResponse.item.linkId"
    }, {
      "path": "QuestionnaireResponse.item.definition",
      "requirements": "A common pattern is to define a set of data elements, and then build multiple different questionnaires for different circumstances to gather the data. This element provides traceability to the common definition.",
      "definition": "A reference to an [ElementDefinition](elementdefinition.html) that provides the details for the item.",
      "short": "ElementDefinition - details for the item",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "QuestionnaireResponse.item.definition",
      "comment": "The ElementDefinition must be in a [StructureDefinition](structuredefinition.html#), and must have a fragment identifier that identifies the specific data element by its id (Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x].\n\nThere is no need for this element if the item pointed to by the linkId has a definition listed."
    }, {
      "id": "QuestionnaireResponse.item.text",
      "max": "1",
      "path": "QuestionnaireResponse.item.text",
      "type": [ {
        "code": "string"
      } ],
      "short": "Name for group or question text",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "definition": "Text that is displayed above the contents of the group or as the text of the question being answered.",
      "requirements": "Allows the questionnaire response to be read without access to the questionnaire."
    }, {
      "id": "QuestionnaireResponse.item.answer",
      "path": "QuestionnaireResponse.item.answer",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "The response(s) to the question",
      "comment": "The value is nested because we cannot have a repeating structure that has variable type.",
      "mapping": [ {
        "map": ".value[type=LIST_ANY]",
        "identity": "rim"
      } ],
      "definition": "The respondent's answer(s) to the question."
    }, {
      "path": "QuestionnaireResponse.item.answer.value[x]",
      "requirements": "Ability to retain a single-valued answer to a question.",
      "definition": "The answer (or one of the answers) provided by the respondent to the question.",
      "short": "Single-valued answer to the question",
      "mapping": [ {
        "map": ".item",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      }, {
        "code": "decimal"
      }, {
        "code": "integer"
      }, {
        "code": "date"
      }, {
        "code": "dateTime"
      }, {
        "code": "time"
      }, {
        "code": "string"
      }, {
        "code": "uri"
      }, {
        "code": "Attachment"
      }, {
        "code": "Coding"
      }, {
        "code": "Quantity"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "QuestionnaireAnswer"
        } ],
        "description": "Code indicating the response provided for a question."
      },
      "max": "1",
      "id": "QuestionnaireResponse.item.answer.value[x]",
      "comment": "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. Must match the datatype specified by Questionnaire.item.type in the corresponding Questionnaire."
    }, {
      "path": "QuestionnaireResponse.item.answer.item",
      "requirements": "It is useful to have \"sub-questions\", questions which normally appear when certain answers are given and which collect additional details.",
      "min": 0,
      "definition": "Nested groups and/or questions found within this particular answer.",
      "short": "Nested groups and questions",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]",
        "identity": "rim"
      } ],
      "contentReference": "#QuestionnaireResponse.item",
      "max": "*",
      "id": "QuestionnaireResponse.item.answer.item"
    }, {
      "path": "QuestionnaireResponse.item.item",
      "requirements": "Reports can consist of complex nested groups.",
      "min": 0,
      "definition": "Questions or sub-groups nested beneath a question or group.",
      "short": "Nested questionnaire response items",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]",
        "identity": "rim"
      } ],
      "contentReference": "#QuestionnaireResponse.item",
      "max": "*",
      "id": "QuestionnaireResponse.item.item"
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/fhir",
      "system": "url"
    } ]
  }, {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}