You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the SimpleWorkerContext to load the npm package. The npm package currently has the Resources for the specific implementation guide without any of the core Resources.
Is the SimpleWorkerContext expected to load the dependencies ? if yes how is this provided?
If not, what is the suggested way to implement IWorkerContext / Extend SimpleWorkerContext to make sure that the dependencies are loaded too.
This is how we are loading the npm package in android for the implementation guide.
val immunizationIg =
"content/general/who-eir/packages/package.r4.tgz"
val contextR4 =
SimpleWorkerContext.fromPackage(
NpmPackage.fromPackage(
File(
ClassLoader.getSystemResource(immunizationIg).file
).inputStream()),true).apply {
setExpansionProfile(Parameters())
isCanRunWithoutTerminology = true
}
//We then use this context in the TransformSupportServices and StructureMapUtilities class
val transformSupportServices =
TransformSupportServicesMatchBox(
contextR4,
outputs
)
val structureMapUtilities =
org.hl7.fhir.r4.utils.StructureMapUtilities(contextR4, transformSupportServices)
Any transformation that involves a target that is a FHIR resrouce from base fhir core r4 and whose StructureDefinition is missing from the package.r4.tgz from the npm package of the specific IG throws an error.
We copied all the files from the home/.fhir/packages/hl7.fhir.r4.core#4.0.1/package/ into the package.r4 folder , compressed it and used it as above. The transformation then passed.
The text was updated successfully, but these errors were encountered:
joiskash
changed the title
SimpleWorkerContext in android environment does not load the dependencies
SimpleWorkerContext in android environment does not load the dependencies of a npm FHIR package built for an IG
Oct 9, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
We are currently using hapi version 5.6.36 .
We are using the SimpleWorkerContext to load the npm package. The npm package currently has the Resources for the specific implementation guide without any of the core Resources.
Is the SimpleWorkerContext expected to load the dependencies ? if yes how is this provided?
If not, what is the suggested way to implement IWorkerContext / Extend SimpleWorkerContext to make sure that the dependencies are loaded too.
This is how we are loading the npm package in android for the implementation guide.
Any transformation that involves a target that is a FHIR resrouce from base fhir core r4 and whose StructureDefinition is missing from the package.r4.tgz from the npm package of the specific IG throws an error.
We copied all the files from the home/.fhir/packages/hl7.fhir.r4.core#4.0.1/package/ into the package.r4 folder , compressed it and used it as above. The transformation then passed.
The text was updated successfully, but these errors were encountered: