FHIR Chat · Use of validation pack within a server · implementers

Stream: implementers

Topic: Use of validation pack within a server


view this post on Zulip Andy Gregorowicz (Sep 11 2018 at 14:45):

I'm creating a server that receives CDS Hook requests. Currently, I'm parsing the JSON from the hook request and then handing the appropriate portion to HAPI FHIR. I'd like to validate the resources with an IG validation pack, but it isn't clear how to do this from within a server process. There is a validator jar available, but I haven't been able to successfully dig up where this code comes from. Is there a way to use an IG validation pack in a java server process?

view this post on Zulip Grahame Grieve (Sep 11 2018 at 21:14):

I think you are asking a HAPI loading question here?

view this post on Zulip Grahame Grieve (Sep 11 2018 at 21:15):

the source for the validator jar is part of the fhir build at http://github.com/hl7/fhir - but it's also part of HAPI and so it would make sense to use the HAPI validation directly, which is integrated in the HAPI load cycle

view this post on Zulip Andy Gregorowicz (Sep 12 2018 at 17:20):

OK. It wasn't clear to me that this is part of HAPI. Thanks. I'm trying to find the part of HAPI that will load a pack as opposed to StructureDefinitions. I can dig more into the HAPI documentation or post in that stream. Is there somewhere to find documentation on the pack format?

view this post on Zulip Christiaan Knaap (Sep 12 2018 at 19:08):

IG Pack format documentation is here but it is very terse.
If you're not bound to Java you could have a go with Vonk and connect it to a Simplifier project containing all the conformance resources you need.

view this post on Zulip Grahame Grieve (Sep 12 2018 at 22:50):

for R3 only at the moment...?

view this post on Zulip Grahame Grieve (Sep 12 2018 at 22:51):

the pack loaders are in BaseContext

view this post on Zulip Christiaan Knaap (Sep 13 2018 at 05:01):

Yes, Vonk is R3 only at the moment.


Last updated: Apr 12 2022 at 19:14 UTC