Stream: hapi
Topic: QuestionnaireResponse invalid reference?
Michael Christensen (Jan 03 2017 at 14:16):
Am posting a questionnaire that contains an identifier that looks like this:
"identifier": [
{
"use": "official",
"system": "1.2.208.184",
"value": "f1e1b21b-42dc-4b3f-9957-538f8ce37e71",
"assigner": {
"display": "MedCom"
}
}
And then I post a response that contains a reference to the questionnaire just created, looking like this:
"questionnaire": {
"reference": "http://fhirtest.uhn.ca/baseDstu2/Questionnaire/2081"
},
I get the answer:
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">fatal</td><td>[]</td><td><pre>Invalid reference 'null' - Does not identify resource type</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "fatal",
"code": "processing",
"diagnostics": "Invalid reference 'null' - Does not identify resource type"
}
]
}
If I remove the identiferpart from the questionnaire, post it anew and then post a QuestionnaireResponse (w. a reference formed liked the one above) everything works fine. Is there something I am not getting regarding the significance of the ´identifier´?
Last updated: Apr 12 2022 at 19:14 UTC