Stream: implementers
Topic: questionnaireResponse Resource in epic
booma radhakrishnan (Jun 04 2021 at 15:09):
/api/FHIR/R4/QuestionnaireResponse/esDi55mOO8Xt4SKDkDE1vkQ3
<QuestionnaireResponse>
<subject>
<identifier>
<system value="1.2.840.114350.1.13.861.1.7.3.698084.8"/>
<value value="10000652929"/>
</identifier>
</subject>
<instantiatesCanonical value="Questionnaire/eWYNll5blHAhPi.ksDaG1YSwoiC7G1t-D2hudQj3j7FM3"/>
<authored value="2020-12-11T00:00:00+01:00"/>
<status value="completed"/>
<item>
<linkId value="185|2112"/>
<answer>
<valueInteger value="6"/>
</answer>
</item>
<item>
<linkId value="185|2120"/>
<answer>
<valueQuantity>
<value value="4"/>
<unit value="hours"/>
</valueQuantity>
</answer>
</item>
<item>
<linkId value="185|2150"/>
<answer>
<valueDate value="2019-08-09"/>
</answer>
</item>
<item>
<linkId value="185|2135"/>
<answer>
<valueString value="The pain is most severe in the morning."/>
</answer>
</item>
<item>
<linkId value="185|2149"/>
<answer>
<valueBoolean value="false"/>
</answer>
</item>
</QuestionnaireResponse>
As per the document
A pipe (|)-delimited string. The first part is the name of the ID type and the second part is the ID number
In the <linkId value="185|2112"/> , What is 185 and 2112 referring to and how to map the question for the question response. Please provide us with sample JSON.
Lloyd McKenzie (Jun 04 2021 at 15:17):
linkId is an arbitrary string assigned by the Questionnaire author. You'd need to go look at the Questionnaire and find the same linkId and that would tell you what question or group is being referred to.
booma radhakrishnan (Jun 04 2021 at 15:30):
Thnks Lloyd for quick response.
booma radhakrishnan (Jun 10 2021 at 14:33):
@Lloyd McKenzie Thanks for your suggestion. Please find attached QuestionnaireResponse FHIR resource. Which attributes of Observation resource can we use to accommodate our questions and answers. We
I will appreciate it if you could provide me with an example, using the attached questions and answers.
{
"resourceType": "QuestionnaireResponse",
"authored" : "2019-08-21T20:36:57.544Z",
"status" : "completed",
"subject" : {
"reference" : "Patient/4983264d-0ae3-4980-91cd-d2eea8c730a9"
},
"identifier": [
{
"system": "urn:oid:1.2.840.114350.1.13.861.1.7.2.728165",
"value": "50569"
}
],
"item": [{
"linkId": "1",
"item": [{
"linkId": "1.1",
"text": "Q1",
"answer": [{
"valueString": "Yes"
}]
}]
},
{
"linkId": "2",
"item": [{
"linkId": "2.1",
"text": "Q2?",
"answer": [{
"valueString": "Yes"
}]
}]
},
{
"linkId": "3",
"item": [{
"linkId": "3.1",
"text": "Q3?",
"answer": [{
"valueString": "Yes"
}]
}]
},
{
"linkId": "4",
"item": [{
"linkId": "4.1",
"text": "Q4?",
"answer": [{
"valueString": "Yes"
}]
}]
},
{
"linkId": "5",
"item": [{
"linkId": "5.1",
"text": "Q5?",
"answer": [{
"valueString": "Yes"
}]
}]
},
{
"linkId": "6",
"item": [{
"linkId": "6.1",
"text": "Q6?",
"answer": [{
"valueString": "Yes"
}]
}]
}
]
}
Lloyd McKenzie (Jun 10 2021 at 14:47):
See my response here: https://chat.fhir.org/#narrow/stream/179166-implementers/topic/QuestionnnaireREsponse
Lloyd McKenzie (Jun 10 2021 at 14:48):
Creating a full blown set of example Observations is a bit beyond the time expenditure you can expect for volunteers answering questions :)
Last updated: Apr 12 2022 at 19:14 UTC