FHIR Chat · Instant validator HAPI FHIR · implementers

Stream: implementers

Topic: Instant validator HAPI FHIR


view this post on Zulip Lumiere Mondo (Feb 22 2022 at 15:19):

Hi everyone,

I trust you are doing well.

I want to load a custom IG into HAPI-FHIR and test my bundles against the custom IG.

To explain further:
We have data coming from different users. Sometimes users will send data without certain properties and HAPI FHIR would valid them. We want to build our own IG (Fhir shorthand) and load this IG in Hapi Fhir that way when users send data Hap Fhir will not test the bundle against the default IG but against our own IG. as an example: https://github.com/jembi/instantohie-hapi-fhir-ig-importer

How do I achieve this? Even the GitHub link does not clarify it well for me. The HAPI FHIR docs is not clear at all.
I will appreciate your help and directions.

Thank you.

view this post on Zulip Jens Villadsen (Feb 22 2022 at 15:34):

Look at eg. https://github.com/medcomdk/FHIR-CareCommunication-demo-Java/blob/0a5a136c3751271ed9d0e87905f59af9ed3a5710/receiver/src/main/java/com/trifork/receiver/ReceiverApplication.java#L53

view this post on Zulip Jens Villadsen (Feb 22 2022 at 15:34):

Validator with IG is built here: https://github.com/medcomdk/FHIR-CareCommunication-demo-Java/blob/main/common/src/main/java/com/trifork/common/Validator.java

view this post on Zulip Jens Villadsen (Feb 22 2022 at 15:44):

@Lumiere Mondo That is, if you want an example of how to use the IG validation without spinning up a server

view this post on Zulip Lloyd McKenzie (Feb 22 2022 at 16:09):

Note that in an IG you can't loosen things beyond what the base specification allows. If something is mandatory in the core spec, an IG can't make those elements optional.

view this post on Zulip Lumiere Mondo (Feb 23 2022 at 12:14):

Thank you very much for your response

view this post on Zulip Lumiere Mondo (Feb 23 2022 at 12:15):

@Jens Villadsen I am going to try your approach from the links you sent and give you feedback.

view this post on Zulip Lumiere Mondo (Feb 23 2022 at 12:21):

@Lloyd McKenzie I have noted that. Thank you.


Last updated: Apr 12 2022 at 19:14 UTC