# Forms/Questionnaires in FHIR (including End Of Life Care)

**URL:** https://openhealthhub.org/t/forms-questionnaires-in-fhir-including-end-of-life-care/2038
**Category:** FHIR
**Created:** [29 March 2019 10:36 UTC](https://openhealthhub.org/t/forms-questionnaires-in-fhir-including-end-of-life-care/2038 "2019-03-29T10:36:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mayfield.g.kev](https://openhealthhub.org/user_avatar/openhealthhub.org/mayfield.g.kev/32/648_2.png) [@mayfield.g.kev](https://openhealthhub.org/u/mayfield.g.kev)
#### Post date: [29 March 2019 10:36 UTC](https://openhealthhub.org/t/forms-questionnaires-in-fhir-including-end-of-life-care/2038/1 "2019-03-29T10:36:04Z")

</div>

I’m not going to town on the why you would use it but some good reasons are here [questionnaire | Hay on FHIR](https://fhirblog.com/tag/questionnaire/) David Hay discusses many simple use cases.

The example I will use is the End Of Life Care API from NHSEngland/NHSDigital/Yorkshire Ambulance Service.  
This uses version 1.2 of this specification [Introduction to FHIR End of Life API | FHIR-END-OF-LIFE-API](https://developer.nhs.uk/apis/eol-alpha/index.html)

The SCCI 1580 has been turned into a FHIR Questionnaire and a set of profiles on FHIR resources. The Questionnaire can be found on this link: [FHIR Explorer](https://data.developer.nhs.uk/ccri/term/questionnaire/4)  
(or by using postman GET [https://data.developer.nhs.uk/ccri-fhir/STU3/Questionnaire/4](https://data.developer.nhs.uk/ccri-fhir/STU3/Questionnaire/4))

This Questionnaire defines how the FHIR QuestionnaireResponse should be built. So it doesn’t define how the form will look, it just defines how the system returns the information.

 ![52](https://new.openhealthhub.org/uploads/default/original/1X/b69f2085c5427664d7a45a58f14fa1054a1b8ebf.png)

An example QuestionnaireResponse conforming to these rules can be found by running this query  
GET [https://data.developer.nhs.uk/ccri-fhir/STU3/QuestionnaireResponse/6](https://data.developer.nhs.uk/ccri-fhir/STU3/QuestionnaireResponse/6)

If you run this query you can also validate it conforms to the questionnaire by using the validation service in the CCRI ([FHIR Explorer](https://data.developer.nhs.uk/ccri/term/validate)). If you try this you should find one issue (that’s a fault in the CCRI)  
[Note: the Questionnaire to validate against must be on the CCRI, the CCRI supports POST Questionnaire so you can add your own]

A rendered version of the EOLC QuestionnaireResponse can be found on the [HIE Portal](https://data.developer.nhs.uk/ccri/camel/cc-portal). First search for Patient ‘Kewn’ and when the summary record is displayed click on the EOLC button

 ![31](https://new.openhealthhub.org/uploads/default/original/1X/a93c30858e37d50fe3ea9398390354286dea149f.png)

The EOLC screen is designed to look like a clinical system, the layout matches the Questionnaire.  
The HIE doesn’t use the query mentioned above instead it asks the server for a response for the EOLC Questionniare (url = [https://fhir.nhs.uk/STU3/Questionnaire/CareConnect-EOLC-1](https://fhir.nhs.uk/STU3/Questionnaire/CareConnect-EOLC-1)) and also asks the server to return all resources referenced by the QuestionaireResponse. This results in the following query:

[https://data.developer.nhs.uk/ccri-fhir/STU3/QuestionnaireResponse?patient=1184&questionnaire=https://fhir.nhs.uk/STU3/Questionnaire/CareConnect-EOLC-1&\_include=\*&\_count=100](https://data.developer.nhs.uk/ccri-fhir/STU3/QuestionnaireResponse?patient=1184&questionnaire=https://fhir.nhs.uk/STU3/Questionnaire/CareConnect-EOLC-1&_include=*&_count=100)

The additional parameters select the patient and set the size of the result.

 ![30](https://new.openhealthhub.org/uploads/default/original/1X/0544e9aa832049703654ec1ae13204098bb8541d.png)

**Other Questionnaires**

EOLC is a quite heavy questionnaire, other examples may be easier to digest. Such as the [18 month questionnaire](https://data.developer.nhs.uk/ccri/term/questionnaire/6) or [NEWS2](https://data.developer.nhs.uk/ccri/term/questionnaire/5)

---

<div class="post-metadata">

### Author: ![pacharanero](https://openhealthhub.org/user_avatar/openhealthhub.org/pacharanero/32/1117_2.png) [@pacharanero](https://openhealthhub.org/u/pacharanero)
#### Post date: [29 March 2019 12:13 UTC](https://openhealthhub.org/t/forms-questionnaires-in-fhir-including-end-of-life-care/2038/2 "2019-03-29T12:13:20Z")

</div>

This is great stuff @mayfield.g.kev - you are rocking this forum right at the moment!

---

<div class="post-metadata">

### Author: ![mayfield.g.kev](https://openhealthhub.org/user_avatar/openhealthhub.org/mayfield.g.kev/32/648_2.png) [@mayfield.g.kev](https://openhealthhub.org/u/mayfield.g.kev)
#### Post date: [29 March 2019 12:15 UTC](https://openhealthhub.org/t/forms-questionnaires-in-fhir-including-end-of-life-care/2038/3 "2019-03-29T12:15:52Z")

</div>

thanks… I would be posting about SMART on FHIR but I can’t get the server stable ☹
