Stream: netherlands
Topic: Validating Questionnaire with validator_cli.jar
Piotr Chabot Stadhouders (Oct 11 2021 at 13:41):
When validating a questionnaire resource using validator_cli.jar
against the nictiz.fhir.nl.stu3.questionnaires-2.0.4.tgz implementation guide
Like this:
java -jar validator_cli.jar questionnaire.json -version 3.0.2 -sct nl -ig nictiz.fhir.nl.stu3.questionnaires-2.0.4.tgz
The validator throws the following exception:
“Exception in thread "main" org.hl7.fhir.exceptions.FHIRException: Unable to resolve package id nictiz.fhir.nl.stu3.zib2017#^2.0”
It seems like the validator has an issue with the ^2.0 version specification since it can and should load nictiz.fhir.nl.stu3.zib2017-2.1.6.
What am I doing wrong?
Pieter Edelman (Oct 12 2021 at 09:42):
Well, it seems like this notation is too elaborate for the Validator and not allowed for FHIR packages: https://confluence.hl7.org/pages/viewpage.action?pageId=35718629#NPMPackageSpecification-Versionreferences. Could you raise an issue on BITS for this?
It's weird though, if I extract the package and use the target directory as the parameter for -ig
, everything works just fine. Also, the Firely tool stack seems to be perfectly happy to support this notation.
I'm also actually a bit annoyed by this. New implementations using the Questionnaires package are best served by the latest (2.1.x) zib2017 package, but for older implementations using a 2.0 version there's absolutely no need to upgrade. It turns out there's no (machine-readable) way to communicate this.
Pieter Edelman (Oct 12 2021 at 09:42):
Oh, so for a workaround it seems that extracting the tarball and using the directory as the target for -ig
does the trick.
Piotr Chabot Stadhouders (Oct 12 2021 at 14:44):
:+1:
Piotr Chabot Stadhouders (Oct 12 2021 at 14:45):
I can confirm that extracting the tarball and using the directory as the target for -ig works
Piotr Chabot Stadhouders (Oct 12 2021 at 14:46):
We will raise an issue on BITS
Last updated: Apr 12 2022 at 19:14 UTC