android-fhir
android-fhir copied to clipboard
Loading implementationGuide (to SDK): Requirements
Research and design the pattern for deploying a FHIR Implementation Guide to the SDK.
Two structured approaches:
- Use Knowledge Repository: https://www.hl7.org/fhir/capabilitystatement-knowledge-repository.html
- npm package: Requires using the FHIR publisher. May not be flexible enough
User story: As an implementer I can deploy a published IG either from a FHIR Knowledge Repository or via npm package
Steps:
- Loading initial resources
- Getting updates via new versions
Open questions for the SDK:
- How do you know if there are updates (manual process)
- How do you support different versions
- How do you make it configurable
There are two distinct scenarios:
1. Server side deployment with sync
- Here a server would act as a knowledge repository OR there is a separate process to deploy an IG to the FHIR server - e.g. this thread on the FHIR chat
- The app would be set up to sync the latest resources using the SDK's sync approach
* Questions/issues:
- Are there challenges in managing meta-data assciated with a new deployment to a knowledge server .. is there anything the SDK/client-app needs to know?
- Should this be a separate 'sync' process i.e. definitinal resources are treated differently to patient level resources?
2. Loading resources into an app via an SDK enabled process
- Specify the IG package within the configuration as part of the build process
- This could either be a local file OR a URL
- The SDK would provide some methods for unpacking the contents and updating the resources in the db etc
- When building a release of an app, the contents of the package are incorporated into the application
- Could be set-up to check for new updates (during the build process)
Checking for updates
- Using this approach, a client application could instruct the SDK to load a new package e.g. it receives an updated configuration setting that indicates a new version OR the client application implements some listener for updates to registered packages (if using a URL based approach)
cc: @jingtang10 @pld @joiskash @brynrhodes
@kunjan8794 Can you use this current issue to start sharing out the requirements that you are working on? If you have a doc you can add a link here OR in the FHIR Chat group and we can request review/input there. How does that sound? Thanks