This base image, intended to be directly extended with your own data files, provides a simple web UI for bootstrapping a freshly booted FHIR server by:
- Presenting your Markdown-formatted instructions or tutorial.
- Loading a preset sequence of FHIR bundles to a given FHIR server in order.
- Providing ordered resource links to guide the user through initial usage.
- Deleting of all records en masse, if supported by the server driver. Currently this is only supported by the HAPI driver that relies on a HAPI-specific "$expunge" operation.
The stack controller operates purely in-browser and makes all FHIR API calls via REST. There are no other server-side API calls.
When the stack controller loads, must be provided a configuration file either by:
- Overwriting the
stack.json
file in the base image at image boot time, or - Using a
url
query string parmater at page load time that points to a valid alternative configuration file, such as?url=http://your.example.com/stack.json
.
See https://github.com/asushares/stack for a working example of how to use this image. The general steps are:
- Put your JSON FHIR bundle files in the
/public
directory. Everything you place here will be copied into the image and downloadable from the root/
path. - Create a
stack.json
file defining the controller name, data file load order, and other metadata. - Build it! Once running, it can be used as an entrypoint UI for building a tutorial of using your application stack with built-in FHIR data bundle loading and FHIR server resets. Note: "Expunging" data requires your FHIR server to support the "$expunge" operation.
See stack.schema.json for the JSON schema.
Provide under the Apache 2.0 license. Copyright © 2024 Preston Lee. All rights reserved.