Stream: hapi
Topic: Import ig-package on JPA server
Nicolas Riss | Arkhn (Apr 29 2021 at 12:51):
Hello Everyone!
I would like to import a package with profiles, searchparameters... in an hapifhir JPA server.
Is there a function that has been implemented on hapi to import a npm package ?
I saw a log mentioning FHIR NPM Package import on 08.2020 but I didn't find any information on the documentation
https://hapifhir.io/hapi-fhir/blog/20200813_hapi_fhir_5_1_0
I also found that on smile cdr doc but it is not clear of how to use it in hapifhir server:
https://smilecdr.com/docs/validation_and_conformance/packages_and_igs.html
Thanks!
Nicolas
Joel Schneider (Apr 29 2021 at 13:03):
If you are interested in a client-orchestrated upload of IG resources, you may find this (Python code) useful:
https://github.com/nmdp-bioinformatics/igloader
Joel Schneider (Apr 29 2021 at 13:08):
Oh, I see you already found the related thread about that on #implementers. My understanding is that the hapi npm import feature runs at server startup, and requires the server to have access to a download url for the npm package. (But I haven't actually tried it yet.)
Nicolas Riss | Arkhn (Apr 29 2021 at 15:32):
Okayy, cool thanks for your reply, I will look at your repo :)
Jens Villadsen (May 03 2021 at 18:16):
@Nicolas Riss | Arkhn Look at eg. https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/9760e586b64da5a1d0195b5197b9febceccc9639/src/main/java/ca/uhn/fhir/jpa/starter/BaseJpaRestfulServer.java#L365 for loading an IG into HAPI FHIR
Last updated: Apr 12 2022 at 19:14 UTC