FHIR Chat · add example support to IPackageInstallerSvc · hapi

Stream: hapi

Topic: add example support to IPackageInstallerSvc


view this post on Zulip Patrick Werner (Mar 08 2021 at 08:04):

I have a customer who wants to pre-seed hapi/SMILE CDR Server with a package including examples. Currently the package loader seems to ignore the examples folder.

view this post on Zulip Patrick Werner (Mar 08 2021 at 08:05):

If you cheat and place the resources in the ROOT package folder it also doesn't work

view this post on Zulip Patrick Werner (Mar 08 2021 at 08:05):

Caused by: java.lang.UnsupportedOperationException: Resources in a package must have a url or identifier to be loaded by the package installer.

view this post on Zulip Patrick Werner (Mar 08 2021 at 08:08):

I really would like to see hapi/Smile supporting of pre-seeding examples/ Instances.
To avoid duplicates resources without a url entry should have id populated and be added like a PUT with id.

view this post on Zulip Patrick Werner (Mar 08 2021 at 08:08):

What do you think (@James Agnew )?

view this post on Zulip Jens Villadsen (Mar 09 2021 at 13:01):

sound like an configuration option to the starter project pr IG package

view this post on Zulip Jens Villadsen (Mar 09 2021 at 13:01):

its a bit related to https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/pipeline.20scripting

view this post on Zulip Patrick Werner (Mar 11 2021 at 15:18):

I agree, config in the starter, but also the package loader inside of hapi.core has to be modified


Last updated: Apr 12 2022 at 19:14 UTC