Stream: implementers
Topic: Working example of validating QuestionnaireResponse?
Marc de Graauw (Jan 30 2017 at 13:10):
Does anyone have a working example of using the validator to validate a QuestionnaireResponse against a Questionnaire? I've tried referencing a contained Questionnaire, one on localhost, one on my server, tweaking the GCS example, but all I get is:
Information @ QuestionnaireResponse.questionnaire (line 76, col20) : Unable to determine type of target resource Warning @ QuestionnaireResponse (line 76, col20) : The questionnaire could not be resolved, so no validation can be performed against the base questionnaire
The referenced Questionnaire itself validates. Most likely I'm doing something wrong, but can't find it. (Using current build, though 1.8.0 gives the same results. Using the validator to validate other stuff works fine, so my setup should be right.)
Brian Postlethwaite (Feb 02 2017 at 23:53):
My DSTU2 server now has a fully functional Questionnaire/QuestionnaireResponse validator in it, as far as I know it covers all extensions for validation also.
(just not profiles)
Brian Postlethwaite (Feb 02 2017 at 23:53):
To use it just post your questionnaire to my server, then use the QR $validate operation to check your data.
Brian Postlethwaite (Feb 02 2017 at 23:54):
Currently the implementation of the validation is internal only, but considering publishing it in the fhir dotnet client.
It returns fully coded operationoutcomes for all the issues too.
Pascal Pfiffner (Feb 03 2017 at 11:53):
Has there been work on updating this validator to STU-3, Brian? I just made my ResearchKit bridge preserve the grouping, so am interested in testing the validator, but am on v1.8.
Marc de Graauw (Feb 03 2017 at 13:28):
Thanks, @Brian Postlethwaite . Unfortunately, like @Pascal Pfiffner I'm on 1.8.0 and Q/QR has changed substantially. HAPI does validation on Q/QR too, I was just hoping to get the validator to do that too. Nevertheless, glad there is support. I'll certainly use it once anything on the STU3 path is there.
Brian Postlethwaite (Feb 03 2017 at 17:21):
My STU3 server has some support, but its nowhere near my DSTU2 version.
Grahame Grieve (Feb 06 2017 at 06:24):
@Marc de Graauw can you create a task for this - I should get to it sometime this week
Last updated: Apr 12 2022 at 19:14 UTC