fhir-sdc icon indicating copy to clipboard operation
fhir-sdc copied to clipboard

TS implementation discussion (fhir-sdc v2)

Open ruscoder opened this issue 1 year ago • 2 comments

I think we need to re-implement this library in TS in order to make some parts of code reusable between frontend and backend.

For example, this issue is related for both repositories https://github.com/beda-software/sdc-qrf/issues/15 and there are many other things that might be implemented in the common codebase.

Another point for the TS implementation is using fhirpath JS - in that case we can trust the expressions because they will be evaluated using the same engine.

ruscoder avatar Oct 24 '24 12:10 ruscoder

@ir4y what do you think?

ruscoder avatar Oct 24 '24 12:10 ruscoder

@ruscoder

  1. https://github.com/aehrc/smart-forms goes this way. It implements populate as a part of frontend.
  2. Since https://github.com/beda-software/FHIRPathMappingLanguage has TS implementation we can move all SDC workflow on the frontend.

However I still see some value in server-side populate and extract implementation.

ir4y avatar Oct 25 '24 00:10 ir4y