FHIR Chat · Validation does not find contained ValueSet · hapi

Stream: hapi

Topic: Validation does not find contained ValueSet


view this post on Zulip Morten Ernebjerg (Dec 04 2020 at 13:27):

We're using HAPI to validate QuestionnaireResponse instances against their matching questionnaires. To do that, we wrote out own validation support that feeds in the questionnaire and overrides fetchResource to return them. We chain it with a PrePopulatedValidationSupport and when we feed the answer value sets used by the questionnaires into the latter, everything works great. However, if the answer value sets are contained in the Questionnaire itself, the validator does not find it - it does not validate the code and emits the warning: "ValueSet #valset not found by validator". Here is an example of a valid Questionnaire provoking this: test.json

Is that a known limitation or is there a way to get it to work?

view this post on Zulip Grahame Grieve (Dec 04 2020 at 20:27):

is this something that works in the standalone validator?

view this post on Zulip Morten Ernebjerg (Dec 07 2020 at 07:31):

Yes, it does. I just checked with the newest validator and this QuestionnairesResponsetest-response example and it correctly gives the error that the code is not in the options value set.

For validation, 'm chaining in DefaultProfileValidationSupport, InMemoryTerminologyServerValidationSupport, CommonCodeSystemsTerminologyService, and PrePopulatedValidationSupport, in addition to my custom Questionnaire validation support. I'm using HAPI 5.2.

view this post on Zulip Christian Nau (Apr 27 2021 at 14:31):

I would be interested in a solution for this as well :)


Last updated: Apr 12 2022 at 19:14 UTC