An example to illustrate a questionnaire response regarding a baby patient survey

Table View

QuestionnaireResponse.id[0]UKCore-QuestionnaireResponse-BabyPatientSurvey-Example
QuestionnaireResponse.identifier[0].value[0]51f09892-d552-4265-8734-db6c7adbf4a4
QuestionnaireResponse.identifier[0].assigner[0].reference[0]Organization/UKCore-Organization-LeedsTeachingHospital-Example
QuestionnaireResponse.status[0]completed
QuestionnaireResponse.subject[0].reference[0]Patient/UKCore-Patient-BabyPatient-Example
QuestionnaireResponse.subject[0].type[0]Patient
QuestionnaireResponse.authored[0]2021-04-16T12:15:00+00:00
QuestionnaireResponse.author[0].reference[0]UKCore-Practitioner-DoctorPaulRastall-Example
QuestionnaireResponse.author[0].type[0]Practitioner
QuestionnaireResponse.item[0].linkId[0]birthDetails
QuestionnaireResponse.item[0].text[0]Birth details - To be completed by health professional
QuestionnaireResponse.item[0].item[0].linkId[0]name
QuestionnaireResponse.item[0].item[0].item[0].linkId[0]nameOfChild
QuestionnaireResponse.item[0].item[0].item[0].text[0]Name of child
QuestionnaireResponse.item[0].item[0].item[0].answer[0].value[0]Melanie Jones
QuestionnaireResponse.item[0].item[0].item[1].linkId[0]gender
QuestionnaireResponse.item[0].item[0].item[1].text[0]Gender
QuestionnaireResponse.item[0].item[0].item[1].answer[0].value[0].code[0]female
QuestionnaireResponse.item[0].item[1].linkId[0]neonatalInformation
QuestionnaireResponse.item[0].item[1].text[0]Neonatal Information
QuestionnaireResponse.item[0].item[1].item[0].linkId[0]birthWeight
QuestionnaireResponse.item[0].item[1].item[0].text[0]Birth weight (kg)
QuestionnaireResponse.item[0].item[1].item[0].answer[0].value[0]3.15
QuestionnaireResponse.item[0].item[1].item[1].linkId[0]birthLength
QuestionnaireResponse.item[0].item[1].item[1].text[0]Birth length (cm)
QuestionnaireResponse.item[0].item[1].item[1].answer[0].value[0]42.4
QuestionnaireResponse.item[0].item[1].item[2].linkId[0]vitaminKgiven
QuestionnaireResponse.item[0].item[1].item[2].text[0]Vitamin K given
QuestionnaireResponse.item[0].item[1].item[2].answer[0].value[0]True
QuestionnaireResponse.item[0].item[1].item[2].answer[0].item[0].linkId[0]vitaminKgivenDoses
QuestionnaireResponse.item[0].item[1].item[2].answer[0].item[0].item[0].linkId[0]vitaminKDose1
QuestionnaireResponse.item[0].item[1].item[2].answer[0].item[0].item[0].text[0]1st dose
QuestionnaireResponse.item[0].item[1].item[2].answer[0].item[0].item[0].answer[0].value[0]2021-02-11
QuestionnaireResponse.item[0].item[1].item[2].answer[0].item[0].item[1].linkId[0]vitaminKDose2
QuestionnaireResponse.item[0].item[1].item[2].answer[0].item[0].item[1].text[0]2nd dose
QuestionnaireResponse.item[0].item[1].item[2].answer[0].item[0].item[1].answer[0].value[0]2021-03-12
QuestionnaireResponse.item[0].item[1].item[3].linkId[0]6in1Given
QuestionnaireResponse.item[0].item[1].item[3].text[0]6-in-1 vaccine given
QuestionnaireResponse.item[0].item[1].item[3].answer[0].value[0]True
QuestionnaireResponse.item[0].item[1].item[3].answer[0].item[0].linkId[0]6in1givenDate
QuestionnaireResponse.item[0].item[1].item[3].answer[0].item[0].text[0]Date given
QuestionnaireResponse.item[0].item[1].item[3].answer[0].item[0].answer[0].value[0]2021-04-12
QuestionnaireResponse.item[0].item[1].item[4].linkId[0]abnormalitiesAtBirth
QuestionnaireResponse.item[0].item[1].item[4].text[0]Abnormalities noted at birth
QuestionnaireResponse.item[0].item[1].item[4].answer[0].value[0]None

XML View

<QuestionnaireResponse xmlns="http://hl7.org/fhir">
    <id value="UKCore-QuestionnaireResponse-BabyPatientSurvey-Example" />
    <identifier>
        <value value="51f09892-d552-4265-8734-db6c7adbf4a4" />
        <assigner>
            <reference value="Organization/UKCore-Organization-LeedsTeachingHospital-Example" />
        </assigner>
    </identifier>
    <status value="completed" />
    <subject>
        <reference value="Patient/UKCore-Patient-BabyPatient-Example" />
        <type value="Patient" />
    </subject>
    <authored value="2021-04-16T12:15:00+00:00" />
    <author>
        <reference value="UKCore-Practitioner-DoctorPaulRastall-Example" />
        <type value="Practitioner" />
    </author>
    <item>
        <linkId value="birthDetails" />
        <text value="Birth details - To be completed by health professional" />
        <item>
            <linkId value="name" />
            <item>
                <linkId value="nameOfChild" />
                <text value="Name of child" />
                <answer>
                    <valueString value="Melanie Jones" />
                </answer>
            </item>
            <item>
                <linkId value="gender" />
                <text value="Gender" />
                <answer>
                    <valueCoding>
                        <code value="female" />
                    </valueCoding>
                </answer>
            </item>
        </item>
        <item>
            <linkId value="neonatalInformation" />
            <text value="Neonatal Information" />
            <item>
                <linkId value="birthWeight" />
                <text value="Birth weight (kg)" />
                <answer>
                    <valueDecimal value="3.15" />
                </answer>
            </item>
            <item>
                <linkId value="birthLength" />
                <text value="Birth length (cm)" />
                <answer>
                    <valueDecimal value="42.4" />
                </answer>
            </item>
            <item>
                <linkId value="vitaminKgiven" />
                <text value="Vitamin K given" />
                <answer>
                    <valueBoolean value="true" />
                    <item>
                        <linkId value="vitaminKgivenDoses" />
                        <item>
                            <linkId value="vitaminKDose1" />
                            <text value="1st dose" />
                            <answer>
                                <valueDate value="2021-02-11" />
                            </answer>
                        </item>
                        <item>
                            <linkId value="vitaminKDose2" />
                            <text value="2nd dose" />
                            <answer>
                                <valueDate value="2021-03-12" />
                            </answer>
                        </item>
                    </item>
                </answer>
            </item>
            <item>
                <linkId value="6in1Given" />
                <text value="6-in-1 vaccine given" />
                <answer>
                    <valueBoolean value="true" />
                    <item>
                        <linkId value="6in1givenDate" />
                        <text value="Date given" />
                        <answer>
                            <valueDate value="2021-04-12" />
                        </answer>
                    </item>
                </answer>
            </item>
            <item>
                <linkId value="abnormalitiesAtBirth" />
                <text value="Abnormalities noted at birth" />
                <answer>
                    <valueString value="None" />
                </answer>
            </item>
        </item>
    </item>
</QuestionnaireResponse>

JSON View

{
    "resourceType": "QuestionnaireResponse",
    "id": "UKCore-QuestionnaireResponse-BabyPatientSurvey-Example",
    "identifier": {
        "value": "51f09892-d552-4265-8734-db6c7adbf4a4",
        "assigner": {
            "reference": "Organization/UKCore-Organization-LeedsTeachingHospital-Example"
        }
    },
    "status": "completed",
    "subject": {
        "reference": "Patient/UKCore-Patient-BabyPatient-Example",
        "type": "Patient"
    },
    "authored": "2021-04-16T12:15:00+00:00",
    "author": {
        "reference": "UKCore-Practitioner-DoctorPaulRastall-Example",
        "type": "Practitioner"
    },
    "item":  [
        {
            "linkId": "birthDetails",
            "text": "Birth details - To be completed by health professional",
            "item":  [
                {
                    "linkId": "name",
                    "item":  [
                        {
                            "linkId": "nameOfChild",
                            "text": "Name of child",
                            "answer":  [
                                {
                                    "valueString": "Melanie Jones"
                                }
                            ]
                        },
                        {
                            "linkId": "gender",
                            "text": "Gender",
                            "answer":  [
                                {
                                    "valueCoding": {
                                        "code": "female"
                                    }
                                }
                            ]
                        }
                    ]
                },
                {
                    "linkId": "neonatalInformation",
                    "text": "Neonatal Information",
                    "item":  [
                        {
                            "linkId": "birthWeight",
                            "text": "Birth weight (kg)",
                            "answer":  [
                                {
                                    "valueDecimal": 3.15
                                }
                            ]
                        },
                        {
                            "linkId": "birthLength",
                            "text": "Birth length (cm)",
                            "answer":  [
                                {
                                    "valueDecimal": 42.4
                                }
                            ]
                        },
                        {
                            "linkId": "vitaminKgiven",
                            "text": "Vitamin K given",
                            "answer":  [
                                {
                                    "valueBoolean": true,
                                    "item":  [
                                        {
                                            "linkId": "vitaminKgivenDoses",
                                            "item":  [
                                                {
                                                    "linkId": "vitaminKDose1",
                                                    "text": "1st dose",
                                                    "answer":  [
                                                        {
                                                            "valueDate": "2021-02-11"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "linkId": "vitaminKDose2",
                                                    "text": "2nd dose",
                                                    "answer":  [
                                                        {
                                                            "valueDate": "2021-03-12"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        {
                            "linkId": "6in1Given",
                            "text": "6-in-1 vaccine given",
                            "answer":  [
                                {
                                    "valueBoolean": true,
                                    "item":  [
                                        {
                                            "linkId": "6in1givenDate",
                                            "text": "Date given",
                                            "answer":  [
                                                {
                                                    "valueDate": "2021-04-12"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        {
                            "linkId": "abnormalitiesAtBirth",
                            "text": "Abnormalities noted at birth",
                            "answer":  [
                                {
                                    "valueString": "None"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}

back to top