Stream: implementers
Topic: Instant validator HAPI FHIR
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.
Jens Villadsen (Feb 22 2022 at 15:34):
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
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
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.
Lumiere Mondo (Feb 23 2022 at 12:14):
Thank you very much for your response
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.
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