Example to illustrate a questionnaire response for a fitness for work survey

Table View

QuestionnaireResponse.id[0]UKCore-QuestionnaireResponse-FitnessForWork-Example
QuestionnaireResponse.questionnaire[0]https://example.com/base/Questionnaire/UKCore-Questionnaire-FitnessForWork-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-13T16:00: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]Assessment Date
QuestionnaireResponse.item[0].answer[0].value[0]2023-11-13
QuestionnaireResponse.item[1].linkId[0]Q2
QuestionnaireResponse.item[1].text[0]Condition(s)
QuestionnaireResponse.item[1].item[0].linkId[0]Q2g
QuestionnaireResponse.item[1].item[0].text[0]Condition (Coded)
QuestionnaireResponse.item[1].item[0].answer[0].value[0].system[0]http://snomed.info/sct
QuestionnaireResponse.item[1].item[0].answer[0].value[0].code[0]203082005
QuestionnaireResponse.item[1].item[0].answer[0].value[0].display[0]Fibromyalgia
QuestionnaireResponse.item[2].linkId[0]Q3
QuestionnaireResponse.item[2].text[0]I find you
QuestionnaireResponse.item[2].answer[0].value[0].system[0]http://snomed.info/sct
QuestionnaireResponse.item[2].answer[0].value[0].code[0]225891002
QuestionnaireResponse.item[2].answer[0].value[0].display[0]Fit for work with restrictions

XML View

<QuestionnaireResponse xmlns="http://hl7.org/fhir">
    <id value="UKCore-QuestionnaireResponse-FitnessForWork-Example" />
    <questionnaire value="https://example.com/base/Questionnaire/UKCore-Questionnaire-FitnessForWork-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-13T16:00: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="Assessment Date" />
        <answer>
            <valueDate value="2023-11-13" />
        </answer>
    </item>
    <item>
        <linkId value="Q2" />
        <text value="Condition(s)" />
        <item>
            <linkId value="Q2g" />
            <text value="Condition (Coded)" />
            <answer>
                <valueCoding>
                    <system value="http://snomed.info/sct" />
                    <code value="203082005" />
                    <display value="Fibromyalgia" />
                </valueCoding>
            </answer>
        </item>
    </item>
    <item>
        <linkId value="Q3" />
        <text value="I find you" />
        <answer>
            <valueCoding>
                <system value="http://snomed.info/sct" />
                <code value="225891002" />
                <display value="Fit for work with restrictions" />
            </valueCoding>
        </answer>
    </item>
</QuestionnaireResponse>

JSON View

{
    "resourceType": "QuestionnaireResponse",
    "id": "UKCore-QuestionnaireResponse-FitnessForWork-Example",
    "questionnaire": "https://example.com/base/Questionnaire/UKCore-Questionnaire-FitnessForWork-Example",
    "status": "completed",
    "subject": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example"
    },
    "encounter": {
        "reference": "Encounter/UKCore-Encounter-InpatientEncounter-Example"
    },
    "authored": "2023-11-13T16:00:00+00:00",
    "author": {
        "reference": "Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example"
    },
    "source": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example"
    },
    "item":  [
        {
            "linkId": "Q1",
            "text": "Assessment Date",
            "answer":  [
                {
                    "valueDate": "2023-11-13"
                }
            ]
        },
        {
            "linkId": "Q2",
            "text": "Condition(s)",
            "item":  [
                {
                    "linkId": "Q2g",
                    "text": "Condition (Coded)",
                    "answer":  [
                        {
                            "valueCoding": {
                                "system": "http://snomed.info/sct",
                                "code": "203082005",
                                "display": "Fibromyalgia"
                            }
                        }
                    ]
                }
            ]
        },
        {
            "linkId": "Q3",
            "text": "I find you",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "http://snomed.info/sct",
                        "code": "225891002",
                        "display": "Fit for work with restrictions"
                    }
                }
            ]
        }
    ]
}