QuestionnaireResponse - FHIR Resource (stu3)


Resource Attributes

AttributeField is listTypeDescription
authorfalseReference Person who received and recorded the answers
authoredfalsedateTime Date the answers were gathered
basedOntrueReference Request fulfilled by this QuestionnaireResponse
contextfalseReference Encounter or Episode during which questionnaire was completed
identifierfalseIdentifier Unique id for this set of answers
itemtrueData Type Groups and questions
parenttrueReference Part of this action
questionnairefalseReference Form being answered
sourcefalseReference The person who answered the questions
statusfalsecode in-progress | completed | amended | entered-in-error | stopped
subjectfalseReference The subject of the questions

QuestionnaireResponse Example

{
  "status": "completed",
  "parent": [
    {
      "reference": "Procedure/f201"
    }
  ],
  "author": {
    "reference": "#questauth"
  },
  "resourceType": "QuestionnaireResponse",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <pre>\n            Comorbidity? YES\n              Cardial Comorbidity? YES\n                Angina? YES\n                MI? NO\n              Vascular Comorbidity?\n                (no answers)\n              ...\n            Histopathology\n              Abdominal\n                pT category: 1a\n              ...\n          </pre>\n    </div>"
  },
  "basedOn": [
    {
      "reference": "#order"
    }
  ],
  "item": [
    {
      "linkId": "1",
      "item": [
        {
          "answer": [
            {
              "item": [
                {
                  "linkId": "1.1.1",
                  "item": [
                    {
                      "answer": [
                        {
                          "valueCoding": {
                            "code": "1",
                            "system": "http://cancer.questionnaire.org/system/code/yesno"
                          }
                        }
                      ],
                      "linkId": "1.1.1.1"
                    },
                    {
                      "answer": [
                        {
                          "valueCoding": {
                            "code": "1",
                            "system": "http://cancer.questionnaire.org/system/code/yesno"
                          }
                        }
                      ],
                      "linkId": "1.1.1.2"
                    },
                    {
                      "answer": [
                        {
                          "valueCoding": {
                            "code": "0",
                            "system": "http://cancer.questionnaire.org/system/code/yesno"
                          }
                        }
                      ],
                      "linkId": "1.1.1.3"
                    }
                  ]
                }
              ],
              "valueCoding": {
                "code": "1",
                "system": "http://cancer.questionnaire.org/system/code/yesno",
                "display": "Yes"
              }
            }
          ],
          "linkId": "1.1"
        }
      ]
    }
  ],
  "contained": [
    {
      "resourceType": "Patient",
      "gender": "male",
      "identifier": [
        {
          "system": "http://cancer.questionnaire.org/systems/id/patientnr",
          "value": "A34442332"
        },
        {
          "type": {
            "text": "Dutch BSN"
          },
          "system": "urn:oid:2.16.840.1.113883.2.4.6.3",
          "value": "188912345"
        }
      ],
      "id": "patsub",
      "birthDate": "1972-11-30"
    },
    {
      "status": "unknown",
      "resourceType": "ReferralRequest",
      "intent": "order",
      "requester": {
        "agent": {
          "reference": "Practitioner/example"
        }
      },
      "id": "order",
      "subject": {
        "reference": "#patsub"
      }
    },
    {
      "resourceType": "Practitioner",
      "identifier": [
        {
          "type": {
            "text": "AUMC, Den Helder"
          },
          "system": "http://cancer.questionnaire.org/systems/id/org",
          "value": "AUMC"
        }
      ],
      "id": "questauth"
    }
  ],
  "context": {
    "reference": "Encounter/example"
  },
  "identifier": {
    "system": "http://example.org/fhir/NamingSystem/questionnaire-ids",
    "value": "Q12349876"
  },
  "id": "3141",
  "authored": "2013-02-19T14:15:00-05:00",
  "subject": {
    "reference": "#patsub"
  }
}

QuestionnaireResponse Structure


  
{
  "resourceType" : "QuestionnaireResponse",
  // from Resource: id, meta, implicitRules, and language
  // from DomainResource: text, contained, extension, and modifierExtension
  "identifier" : { Identifier }, // Unique id for this set of answers
  "basedOn" : [{ Reference(ReferralRequest|CarePlan|ProcedureRequest) }], // Request fulfilled by this QuestionnaireResponse
  "parent" : [{ Reference(Observation|Procedure) }], // Part of this action
  "questionnaire" : { Reference(Questionnaire) }, // Form being answered
  "status" : "<code>", // R!  in-progress | completed | amended | entered-in-error | stopped
  "subject" : { Reference(Any) }, // The subject of the questions
  "context" : { Reference(Encounter|EpisodeOfCare) }, // Encounter or Episode during which questionnaire was completed
  "authored" : "<dateTime>", // Date the answers were gathered
  "author" : { Reference(Device|Practitioner|Patient|RelatedPerson) }, // Person who received and recorded the answers
  "source" : { Reference(Patient|Practitioner|RelatedPerson) }, // The person who answered the questions
  "item" : [{ // Groups and questions
    "linkId" : "<string>", // R!  Pointer to specific item from Questionnaire
    "definition" : "<uri>", // ElementDefinition - details for the item
    "text" : "<string>", // Name for group or question text
    "subject" : { Reference(Any) }, // The subject this group's answers are about
    "answer" : [{ // The response(s) to the question
      // value[x]: Single-valued answer to the question. One of these 12:
      "valueBoolean" : <boolean>,
      "valueDecimal" : <decimal>,
      "valueInteger" : <integer>,
      "valueDate" : "<date>",
      "valueDateTime" : "<dateTime>",
      "valueTime" : "<time>",
      "valueString" : "<string>",
      "valueUri" : "<uri>",
      "valueAttachment" : { Attachment },
      "valueCoding" : { Coding },
      "valueQuantity" : { Quantity },
      "valueReference" : { Reference(Any) },
      "item" : [{ Content as for QuestionnaireResponse.item }] // Nested groups and questions
    }],
    "item" : [{ Content as for QuestionnaireResponse.item }] // Nested questionnaire response items
  }]
}


 

QuestionnaireResponse Search Parameters

The following search parameters can be used to query QuestionnaireResponse resources. Just submit the like so:

https://api.1up.health/fhir/stu3/QuestionnaireResponse?query-param=queryvalue
Search ParameterField TypeResource Fields Searched
authorreferenceauthor
authoreddateauthored
based-onreferencebasedOn
contextreferencecontext
identifiertextidentifier
parentreferenceparent
patientreferencesubject
questionnairereferencequestionnaire
sourcereferencesource
statustextstatus
subjectreferencesubject