FHIR Chat · Import NPM package on a JPA Server · implementers

Stream: implementers

Topic: Import NPM package on a JPA Server


view this post on Zulip NARASIMHA MURTHY (Mar 22 2021 at 13:18):

I have downloaded the NPM packages locally. Now I would like to import these NPM packages on to the running HAPI Fhir JPA server. Please let us know how to do that. THanks much in advance.

view this post on Zulip Joel Schneider (Mar 22 2021 at 22:53):

We've released some Python code to upload (JSON only) IG content from an IGPack tarfile (NPM package). The code has some limitations, but you may find it useful.

Joel Schneider said:

We (NMDP/CIBMTR) have created an igloader Python module and made the source code available under an Apache 2.0 license, here:
https://github.com/nmdp-bioinformatics/igloader

The module offers a client-orchestrated means to upload conformance resources from an IGPack tarfile to a FHIR server, so the server can use them when validating FHIR resources. For now, this is a simplistic IG uploader, with no handling of the IGPack's package.json file or server's CapabilityStatement.

If others find this module useful, we might take the additional step of publishing it on PyPI.

view this post on Zulip NARASIMHA MURTHY (Mar 23 2021 at 00:42):

Appreciate your response. I will give it a try and will let you know in case of any queries.

view this post on Zulip NARASIMHA MURTHY (Mar 23 2021 at 02:57):

Hi Joel,

Thanks for the program, it is very helpful.
I am able to load the us-core-v3.1.1-package.tgz. However, the program fails to load the us-carib-bb-v1.0.0 package tgz file because it did not have any ConceptMap in it (it had other resource types except ConceptMap). Kindly fix this issue so that we can load other packages as well.
Once again thanks in advance for your help. I am planning to load Davinci PlanNet package as well.

regards,
Narasimha Murthy

view this post on Zulip NARASIMHA MURTHY (Mar 23 2021 at 03:45):

us-carin-bb-v1.0.0-package.tgz
HI Joel,
I am loading this Carin-BB package tgz file.
This is for your information.

thanks,
Narasimha

view this post on Zulip Joel Schneider (Mar 23 2021 at 04:42):

@NARASIMHA MURTHY Thanks for your feedback. I've made a small code change that should fix the problem. Please give it another try.

view this post on Zulip NARASIMHA MURTHY (Mar 23 2021 at 23:19):

@Joel Schneider I am able to load the NPM packages for US core v3.1.1 , DavinciPLanNet and US Carin BB V1.0.0.
Thanks a lot for your help. Appreciate it.

view this post on Zulip Nicolas Riss | Arkhn (Apr 29 2021 at 12:43):

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

view this post on Zulip John Moehrke (Apr 29 2021 at 12:47):

recommend you ask on the #hapi stream

view this post on Zulip Nicolas Riss | Arkhn (Apr 29 2021 at 12:52):

Done here :)
https://chat.fhir.org/#narrow/stream/179167-hapi/topic/Import.20ig-package.20on.20JPA.20server/near/236667077

I wanted to avoid creating new topics


Last updated: Apr 12 2022 at 19:14 UTC