FHIR Chat · Installing Validation Packager · implementers

Stream: implementers

Topic: Installing Validation Packager


view this post on Zulip Charlie Filkins (Aug 20 2020 at 16:02):

Is there a trick to getting the Validator to install packaged into the FHIR Cache? I have packages, but can't seem to get the new CI releases of CARIN or DaVinci to install. They validate against the validator.pack in the IG, but will not install.

Thanks ... Charlie

view this post on Zulip Grahame Grieve (Aug 20 2020 at 21:12):

what do you mean 'install'? in general, you just refer to the package and magic happens

view this post on Zulip Charlie Filkins (Aug 21 2020 at 19:13):

By install, I mean the magic that creates an entry in the FHIR Cache, ~/.fhir/packages in my case. I guess I've lost my magic touch.

view this post on Zulip Grahame Grieve (Aug 21 2020 at 22:14):

well, perhaps you could be specific about what you are doing, and what any error message is, if you get one

view this post on Zulip Charlie Filkins (Aug 28 2020 at 02:25):

Grahame, I have dowloaded the latest copy of the DaVinci PDEX Plan Net IG into a local directory. I can validate against it by running
java -jar org.hl7.fhir.validator.jar -version 4.0 [JSONFileName] -ig [pathToDavinciIG]/validator.pack.

I was expecting to see this versions of the implementation guide added to ~/.fhir/packages, but that just doesn't happen. I have other entries in the folder, but I can no longer say for sure how they got there. I feel like a just ran validation against a local copy of the "package", but don't have any empirical evidence to support that feeling.

view this post on Zulip Grahame Grieve (Aug 31 2020 at 00:57):

so the way you are validating avoids using the package cache because you are providing the validation source directly. The recommended way to validate is simply by doing:

java -jar org.hl7.fhir.validator.jar [JSONFileName] -ig hl7.fhir.us.davinci-[code]

view this post on Zulip Charlie Filkins (Aug 31 2020 at 21:43):

Grahame,

I tried using hl7.fhir.us.davinci-pdex-plan-net#current as the IG specification. I'm assuming that I have to use current because there isn't a published version number yet. I'm also assuming that when a version number is published I'll have to run the validation again, specifying the number to get the versioned package loaded. Are those assumptions correct.

Finally, does he #current version update automagically if I run it again in a few days?

If there is more detailed documentation on this, please send me a link and I'll stop bothering you. :)

Thanks ... Charlie

view this post on Zulip Grahame Grieve (Sep 01 2020 at 00:50):

There's one published version, so you could use hl7.fhir.us.davinci-pdex-plan-net#0.1.0. If you don't specify a version, you get the latest, which is 0.1.0.

hl7.fhir.us.davinci-pdex-plan-net#current is specifically a reference to the current build, rather than the latest published, and there's special logic to get a new one after there's a new build on the build.fhir.org


Last updated: Apr 12 2022 at 19:14 UTC