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

Restore functionality of the SDC-IDE

Open projkov opened this issue 1 year ago • 0 comments

Description

Changes were added in the separated branch:

  1. https://github.com/beda-software/sdc-ide/tree/use-fhir-questionnaire

As part of these GitHub issues:

  1. https://github.com/beda-software/sdc-ide/issues/66
  2. https://github.com/beda-software/sdc-ide/issues/67

What was done:

  1. Remove the package sdc-qrf usage and reuse code from the fhir-questionnaire package.
  2. Use already existing form widgets.
  3. Add an ability to use any form renderer.

What should be done:

  1. [x] Check that the application does not use' sdc-qrf'. If it exists, please use functions from fhir-questionnaire.
  2. [x] Remove all usages of the "react-final-form" package from the application; ensure that the functionality of the application remains the same. If not, please fix it.
  3. [ ] Check the behavior of existing widgets. Ensure that the functionality of all widgets remains the same as with the "react-final-form" version.

Develop instructions

How to start

  1. Setup local beda-emr
  2. Comment sdc-ide service in the compose file of the beda-emr
  3. Setup local sdc-ide, branch use-fhir-questionnaire
  4. Change server.port to 3001 in the vite.config.ts
  5. Run beda-emr
  6. Run sdc-ide
  7. Go to http://localhost:3000/questionnaires and find Inputs demonstration questionnaire in the list. Click Edit in SDC IDE button.
  8. It should open you local sdc-ide. You can develop

You need to replicate the behavior of the form from the current production version of SDC IDE (https://sdc.beda.software/demonstrate-inputs)

Sources

  1. What is SDC and why we need it
  2. beda-emr repo
  3. sdc-ide repo
  4. fhir-questionnaire repo

Other

If you have any questions please ask @projkov

projkov avatar Jun 04 '24 11:06 projkov