Stream: implementers
Topic: using validator_cli.jar
Jorn van de Beek (Jul 23 2020 at 12:08):
It seems validator_cli.jar has trouble resolving profiles under their canonical url. How do i add a bunch of profiles so the validator knows about them? Do i need to add -profile xyz.xml
for every profile i want to use? There are a lot of profiles i need to use https://github.com/Nictiz/Nictiz-STU3-Zib2017/tree/stable-1.x/Profiles%20-%20ZIB%202017
Jorn van de Beek (Jul 23 2020 at 12:10):
basically, i am missing the information under this header from the validation tutorial: https://confluence.hl7.org/display/FHIR/Using+the+FHIR+Validator#UsingtheFHIRValidator-ValidatingReferences
Jorn van de Beek (Jul 23 2020 at 12:15):
can i add simplifier or fhir.nl as a terminology server so the canonical urls will resolve?
Grahame Grieve (Jul 23 2020 at 12:47):
there's two different parameters:
-ig
[x] : tells the validator to load [x] into memory, where x can be a file name, a url, a directory name, or a package id-profile
: tells the validator to validate against the profile, assuming it is already loaded into scope using the -ig parameter
Grahame Grieve (Jul 23 2020 at 12:47):
have you tried using -ig?
Jorn van de Beek (Jul 24 2020 at 08:45):
it seems nictiz is not using implementation guide resources: https://simplifier.net/NictizSTU3-Zib2017/~resources?category=ImplementationGuide&fhirVersion=STU3&sortBy=RankScore_desc
they have a profile npm package on github (https://github.com/Nictiz/Nictiz-STU3-Zib2017), but I can't find information on using profile bundles with the java validator. I found a guide how to validate using simplifier but there is an open issue that generates some errors on validation on simplifier: https://github.com/FirelyTeam/fhir-net-api/issues/1305
It is unclear if the open issue prevents complete validation or that it is safe to ignore. I would like to use the java validator to check my understanding of validation.
Grahame Grieve (Jul 27 2020 at 21:15):
@Jorn van de Beek the validator parameter -ig nictiz.fhir.nl.stu3.zib2017#1.3.10 will load all the nictiz resources, and then you should be able to use the -profile parameter
Last updated: Apr 12 2022 at 19:14 UTC