FHIR Chat · Load OpenHIE IGs into HAPI · OpenHIE

Stream: OpenHIE

Topic: Load OpenHIE IGs into HAPI


view this post on Zulip Richard Stanley (Apr 20 2021 at 15:13):

Hi folks. Do folks know the sleekest method to load IG resources into HAPI? HAPI has a way to load IGs on start, but I'm looking for the way to push an IG structure defs etc built by publisher the most easy way to HAPI.

view this post on Zulip Jose Costa Teixeira (Apr 20 2021 at 15:18):

What about a way to roll out a server and point to an IG so that when you do it you get the HAPI server with the IG content in it?

view this post on Zulip Jose Costa Teixeira (Apr 20 2021 at 15:21):

so, a way to load IG on server start, but automatic? :)

view this post on Zulip Jose Costa Teixeira (Apr 20 2021 at 15:22):

is that what you're after?

view this post on Zulip Richard Stanley (Apr 20 2021 at 15:25):

Yep. I see a config in HAPI that allows the server to load IGs on start. I can begin there. But, I'm also hoping there's some simple way beyond bash scripts - like an established workflow - to push IG structure defs etc into a FHIR server and maybe I'm just missing it.

view this post on Zulip Richard Stanley (Apr 20 2021 at 15:25):

Like, load an NPM FHIR package for the IG? Maybe that's the way to do it, but have not done it before.

view this post on Zulip Jose Costa Teixeira (Apr 20 2021 at 15:27):

https://github.com/hl7dk/dk-kl-fhir-starter

view this post on Zulip Richard Stanley (Apr 20 2021 at 15:29):

Interesting, but then I'm managing HAPI docker images, which I'd like to avoid. Hmm.

view this post on Zulip Jose Costa Teixeira (Apr 20 2021 at 15:32):

I think the trick is the yaml file there. the docker is just to run it

view this post on Zulip Richard Stanley (Apr 20 2021 at 15:40):

Possibly dumb follow-up: Where is the path in published IGs to bundles of the resources generated by publisher? In IGs I publish locally, there's stuff in output/.

view this post on Zulip Richard Stanley (Apr 20 2021 at 15:42):

I want to be able to GET from a published IG the bundle of resources that I push to HAPI.

view this post on Zulip Jose Costa Teixeira (Apr 20 2021 at 15:45):

<ig>/package.tgz e.g. https://openhie.github.io/case-reporting/package.tgz

view this post on Zulip Jose Costa Teixeira (Apr 20 2021 at 15:46):

the online publication is nothing but a copy of the output folder

view this post on Zulip Richard Stanley (Apr 20 2021 at 15:51):

You're a star, thanks @Jose Costa Teixeira

view this post on Zulip Richard Stanley (Apr 21 2021 at 05:09):

Ok, so I’m not seeing any existing tooling that can send an IG in NPM format to a running FHIR server. I can break out some Go or Python or Bash to do so, but it’s curious if it doesn’t exist. @Jose Costa Teixeira thoughts?

view this post on Zulip Richard Stanley (Apr 21 2021 at 05:10):

HAPI doesn’t seem have a tool to do so except to break out some Java.

view this post on Zulip John Moehrke (Apr 21 2021 at 11:58):

might want to ask on the #hapi stream

view this post on Zulip Richard Stanley (Apr 21 2021 at 13:33):

Thanks. I found out that SmileCDR has it, but not HAPI. Edit: What I should say is that it seems HAPI has classes/methods for it, but the REST API built on top is in Smile.

view this post on Zulip Jose Costa Teixeira (Apr 29 2021 at 13:51):

@Jens Villadsen may help here

view this post on Zulip Jens Villadsen (May 03 2021 at 18:15):

Sorry - haven't had the time to go into anything else but solving national COVID solutions for a while. See https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/9760e586b64da5a1d0195b5197b9febceccc9639/src/main/java/ca/uhn/fhir/jpa/starter/BaseJpaRestfulServer.java#L365 for an example loading an IG into HAPI FHIR @Richard Stanley


Last updated: Apr 12 2022 at 19:14 UTC