Feature request - Web SDK

To help ensure the broader adoption OHS and allow us to grow the community in middle and upper income countries - I feel it would be good to prioritize the development of a web SDK. This would ideally leverage the multi-platform kotlin library work started by Jing.

The ideal would be able to replicate the core features of the SDK including data extraction, $apply, saving to the DB etc first. I think we could then tackle things like SDC. With SDC and things like building web views there may already be existing solutions so I think taking an SDK approach where the focus is ensuring FHIR resources are generated and managed in a consistent way (ideally using the same code) would be ideal.

Longer term - it would be awesome if you could build a reference FHIR app in say OpenSRP and be able to replicate that experience in Web. That can be more on the app builders. Getting the SDK for core features will enable that.

It seems like Kotlin Multi-platform could be an approach that would enable multi-platform clients (in particular iOS) to be developed. The lift to achieve this will be significant and would require additional resources.

In the near-term, two asks:

  1. What are the P0 user stories / use-cases that we would want to see?
  2. Can we do a quick analysis of the existing (open source) capabilities in the ecosystem for at least the Web SDK part

On #2, for example:

  • Aid box forms provides an open source implementation for authoring that includes extraction capabilities
  • CSIRO Smart Forms provides a renderer and ability to launch via Smart-on-FHIR apps (which could be used to populate from a FHIR server)