FHIR Package Installation
The module stores its FHIR definitions, such as extensions, custom resources, and search parameters, in the io.healthsamurai.e-prescription package.
On every start, before it serves requests, the module uploads its version of the package if the installed version differs, and deletes the other versions of the package.
Fix a Failed Package Check
If the module log reports that the installed package fails the check, you need to delete all package versions from Aidbox:
-
List the installed versions of
io.healthsamurai.e-prescription, for example in the Artifact Registry web interface. -
Call the
$fhir-package-uninstalloperation with admin credentials, such as therootclient. The module'sePrescription-appclient gets403 Forbidden. Pass each version as its ownpackageparameter in the<name>@<version>format:POST /fhir/$fhir-package-uninstall Content-Type: application/json { "resourceType": "Parameters", "parameter": [ { "name": "package", "valueString": "io.healthsamurai.e-prescription@0.16.19" }, { "name": "package", "valueString": "io.healthsamurai.e-prescription@0.16.20" } ] } -
Check that the response reports
status: deletedfor every version. A call that passes only the package name, without a version, returns200withresult: falseand deletes nothing. -
Restart the module. It installs its version of the package from scratch.
You can delete the versions in the Artifact Registry web interface instead.