XML View
<QuestionnaireResponse xmlns="http://hl7.org/fhir">
<id value="UKCore-QuestionnaireResponse-InpatientSurvey-Example" />
<identifier>
<value value="6d47d8c4-2f05-4dbb-93f8-6863e6d2975b" />
<assigner>
<reference value="Organization/UKCore-Organization-LeedsTeachingHospital-Example" />
</assigner>
</identifier>
<questionnaire value="https://example.com/base/Questionnaire/UKCore-Questionnaire-InpatientSurvey-Example" />
<status value="completed" />
<subject>
<reference value="Patient/UKCore-Patient-RichardSmith-Example" />
</subject>
<encounter>
<reference value="Encounter/UKCore-Encounter-InpatientEncounter-Example" />
</encounter>
<authored value="2021-03-18T00: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="1" />
<text value="Do you have allergies?" />
<answer>
<valueString value="I am allergic to amoxicillin." />
</answer>
</item>
<item>
<linkId value="2" />
<text value="General questions" />
<item>
<linkId value="2.1" />
<text value="What is your gender?" />
<answer>
<valueString value="male" />
</answer>
</item>
<item>
<linkId value="2.2" />
<text value="What is your date of birth?" />
<answer>
<valueDate value="1970-09-11" />
</answer>
</item>
<item>
<linkId value="2.3" />
<text value="What is your country of birth?" />
<answer>
<valueString value="The United Kingdom" />
</answer>
</item>
<item>
<linkId value="2.4" />
<text value="What is your marital status?" />
<answer>
<valueString value="married" />
</answer>
</item>
</item>
<item>
<linkId value="3" />
<text value="Intoxications" />
<item>
<linkId value="3.1" />
<text value="Do you smoke?" />
<answer>
<valueBoolean value="true" />
</answer>
</item>
<item>
<linkId value="3.2" />
<text value="Do you drink alchohol?" />
<answer>
<valueBoolean value="false" />
</answer>
</item>
</item>
</QuestionnaireResponse>
JSON View
{
"resourceType": "QuestionnaireResponse",
"id": "UKCore-QuestionnaireResponse-InpatientSurvey-Example",
"identifier": {
"value": "6d47d8c4-2f05-4dbb-93f8-6863e6d2975b",
"assigner": {
"reference": "Organization/UKCore-Organization-LeedsTeachingHospital-Example"
}
},
"questionnaire": "https://example.com/base/Questionnaire/UKCore-Questionnaire-InpatientSurvey-Example",
"status": "completed",
"subject": {
"reference": "Patient/UKCore-Patient-RichardSmith-Example"
},
"encounter": {
"reference": "Encounter/UKCore-Encounter-InpatientEncounter-Example"
},
"authored": "2021-03-18T00:00:00+00:00",
"author": {
"reference": "Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example"
},
"source": {
"reference": "Patient/UKCore-Patient-RichardSmith-Example"
},
"item": [
{
"linkId": "1",
"text": "Do you have allergies?",
"answer": [
{
"valueString": "I am allergic to amoxicillin."
}
]
},
{
"linkId": "2",
"text": "General questions",
"item": [
{
"linkId": "2.1",
"text": "What is your gender?",
"answer": [
{
"valueString": "male"
}
]
},
{
"linkId": "2.2",
"text": "What is your date of birth?",
"answer": [
{
"valueDate": "1970-09-11"
}
]
},
{
"linkId": "2.3",
"text": "What is your country of birth?",
"answer": [
{
"valueString": "The United Kingdom"
}
]
},
{
"linkId": "2.4",
"text": "What is your marital status?",
"answer": [
{
"valueString": "married"
}
]
}
]
},
{
"linkId": "3",
"text": "Intoxications",
"item": [
{
"linkId": "3.1",
"text": "Do you smoke?",
"answer": [
{
"valueBoolean": true
}
]
},
{
"linkId": "3.2",
"text": "Do you drink alchohol?",
"answer": [
{
"valueBoolean": false
}
]
}
]
}
]
}