Stream: hapi
Topic: QuestionnaireResponse validation
Michael Christensen (Jan 04 2017 at 13:22):
For Questionnaire and QuestionnaireResponse resources we are running two different HAPI servers. This means that the QuestionnaireResponse will contain a reference to a Questionnaire residing on a different server. This seems to get us in trouble with the FhirQuestionnaireResponseValidator inside HAPI-FHIR. Posts to the QuestionnaireResponse server result in:
{ "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>[Line[0] Col[0]]</td><td><pre>Reference could not be found: http://ot3dev.alexandra.dk:8082/questionnaire/Questionnaire/102</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": "Reference could not be found: http://ot3dev.alexandra.dk:8082/questionnaire/Questionnaire/102", "location": [ "Line[0] Col[0]" ] } ] }
@James Agnew Does the the QuestionnaireResponseValidator assume that responses reside on the same server as the Questionnaire? Is there any way to turn this off? We are already doing setAllowExternalReferences(true)
on DaoConfig to allow references to resources on remote urls, but it doesn't seem to have an effect in relation to QuestionnaireResponse.
Last updated: Apr 12 2022 at 19:14 UTC