Example to illustrate a questionnaire response for an end of life survey

Table View

QuestionnaireResponse.id[0]UKCore-QuestionnaireResponse-EOLPlan-Example
QuestionnaireResponse.questionnaire[0]https://example.com/base/Questionnaire/UKCore-Questionnaire-EOLPlan-Example
QuestionnaireResponse.status[0]completed
QuestionnaireResponse.subject[0].reference[0]Patient/UKCore-Patient-RichardSmith-Example
QuestionnaireResponse.encounter[0].reference[0]Encounter/UKCore-Encounter-InpatientEncounter-Example
QuestionnaireResponse.authored[0]2023-11-14T08:07:00+00:00
QuestionnaireResponse.author[0].reference[0]Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example
QuestionnaireResponse.source[0].reference[0]Patient/UKCore-Patient-RichardSmith-Example
QuestionnaireResponse.item[0].linkId[0]Q1
QuestionnaireResponse.item[0].text[0]Advanced Treatment Preferences
QuestionnaireResponse.item[0].item[0].linkId[0]Q1.1
QuestionnaireResponse.item[0].item[0].text[0]Clinical Problems and Advised Interventions
QuestionnaireResponse.item[0].item[0].item[0].linkId[0]Q1.1g
QuestionnaireResponse.item[0].item[0].item[0].text[0]ATP Problems
QuestionnaireResponse.item[0].item[0].item[0].answer[0].value[0].system[0]http://snomed.info/sct
QuestionnaireResponse.item[0].item[0].item[0].answer[0].value[0].code[0]95417003
QuestionnaireResponse.item[0].item[0].item[0].answer[0].value[0].display[0]Primary fibromyalgia syndrome
QuestionnaireResponse.item[0].item[1].linkId[0]Q1.2
QuestionnaireResponse.item[0].item[1].text[0]Anticipatory medicines/just in case box issued
QuestionnaireResponse.item[0].item[1].answer[0].value[0]Yes
QuestionnaireResponse.item[0].item[2].linkId[0]Q1.3
QuestionnaireResponse.item[0].item[2].text[0]Advance Decision to Refuse Treatment
QuestionnaireResponse.item[0].item[2].answer[0].value[0]Yes
QuestionnaireResponse.item[1].linkId[0]Q2
QuestionnaireResponse.item[1].text[0]Consent
QuestionnaireResponse.item[1].item[0].linkId[0]Q2g
QuestionnaireResponse.item[1].item[0].text[0]Consent for Information Sharing
QuestionnaireResponse.item[1].item[0].answer[0].value[0]2023-11-13
QuestionnaireResponse.item[2].linkId[0]Q3
QuestionnaireResponse.item[2].text[0]EOL Register
QuestionnaireResponse.item[2].item[0].linkId[0]Q3g
QuestionnaireResponse.item[2].item[0].text[0]On End Of Life Register
QuestionnaireResponse.item[2].item[0].answer[0].value[0]2023-11-13T16:07:00+00:00

XML View

<QuestionnaireResponse xmlns="http://hl7.org/fhir">
    <id value="UKCore-QuestionnaireResponse-EOLPlan-Example" />
    <questionnaire value="https://example.com/base/Questionnaire/UKCore-Questionnaire-EOLPlan-Example" />
    <status value="completed" />
    <subject>
        <reference value="Patient/UKCore-Patient-RichardSmith-Example" />
    </subject>
    <encounter>
        <reference value="Encounter/UKCore-Encounter-InpatientEncounter-Example" />
    </encounter>
    <authored value="2023-11-14T08:07:00+00:00" />
    <author>
        <reference value="Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example" />
    </author>
    <source>
        <reference value="Patient/UKCore-Patient-RichardSmith-Example" />
    </source>
    <item>
        <linkId value="Q1" />
        <text value="Advanced Treatment Preferences" />
        <item>
            <linkId value="Q1.1" />
            <text value="Clinical Problems and Advised Interventions" />
            <item>
                <linkId value="Q1.1g" />
                <text value="ATP Problems" />
                <answer>
                    <valueCoding>
                        <system value="http://snomed.info/sct" />
                        <code value="95417003" />
                        <display value="Primary fibromyalgia syndrome" />
                    </valueCoding>
                </answer>
            </item>
        </item>
        <item>
            <linkId value="Q1.2" />
            <text value="Anticipatory medicines/just in case box issued" />
            <answer>
                <valueString value="Yes" />
            </answer>
        </item>
        <item>
            <linkId value="Q1.3" />
            <text value="Advance Decision to Refuse Treatment" />
            <answer>
                <valueString value="Yes" />
            </answer>
        </item>
    </item>
    <item>
        <linkId value="Q2" />
        <text value="Consent" />
        <item>
            <linkId value="Q2g" />
            <text value="Consent for Information Sharing" />
            <answer>
                <valueDate value="2023-11-13" />
            </answer>
        </item>
    </item>
    <item>
        <linkId value="Q3" />
        <text value="EOL Register" />
        <item>
            <linkId value="Q3g" />
            <text value="On End Of Life Register" />
            <answer>
                <valueDateTime value="2023-11-13T16:07:00+00:00" />
            </answer>
        </item>
    </item>
</QuestionnaireResponse>

JSON View

{
    "resourceType": "QuestionnaireResponse",
    "id": "UKCore-QuestionnaireResponse-EOLPlan-Example",
    "questionnaire": "https://example.com/base/Questionnaire/UKCore-Questionnaire-EOLPlan-Example",
    "status": "completed",
    "subject": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example"
    },
    "encounter": {
        "reference": "Encounter/UKCore-Encounter-InpatientEncounter-Example"
    },
    "authored": "2023-11-14T08:07:00+00:00",
    "author": {
        "reference": "Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example"
    },
    "source": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example"
    },
    "item":  [
        {
            "linkId": "Q1",
            "text": "Advanced Treatment Preferences",
            "item":  [
                {
                    "linkId": "Q1.1",
                    "text": "Clinical Problems and Advised Interventions",
                    "item":  [
                        {
                            "linkId": "Q1.1g",
                            "text": "ATP Problems",
                            "answer":  [
                                {
                                    "valueCoding": {
                                        "system": "http://snomed.info/sct",
                                        "code": "95417003",
                                        "display": "Primary fibromyalgia syndrome"
                                    }
                                }
                            ]
                        }
                    ]
                },
                {
                    "linkId": "Q1.2",
                    "text": "Anticipatory medicines/just in case box issued",
                    "answer":  [
                        {
                            "valueString": "Yes"
                        }
                    ]
                },
                {
                    "linkId": "Q1.3",
                    "text": "Advance Decision to Refuse Treatment",
                    "answer":  [
                        {
                            "valueString": "Yes"
                        }
                    ]
                }
            ]
        },
        {
            "linkId": "Q2",
            "text": "Consent",
            "item":  [
                {
                    "linkId": "Q2g",
                    "text": "Consent for Information Sharing",
                    "answer":  [
                        {
                            "valueDate": "2023-11-13"
                        }
                    ]
                }
            ]
        },
        {
            "linkId": "Q3",
            "text": "EOL Register",
            "item":  [
                {
                    "linkId": "Q3g",
                    "text": "On End Of Life Register",
                    "answer":  [
                        {
                            "valueDateTime": "2023-11-13T16:07:00+00:00"
                        }
                    ]
                }
            ]
        }
    ]
}