Seeking Guidance on Running O3 Modules (FDE) Within an O2 Development Environment

Hello OpenMRS Community,

Recent work has enabled the Fast-Data-Entry (FDE) app to support the react-form-engine. This improvement, however, introduces a limitation: FDE currently cannot render HTML Forms, which are still widely used by PIH, as these forms are not JSON-based.

I am exploring the possibility of further enhancing FDE so that it can support HTML Forms as well. My goal is to allow implementations that rely on legacy HTML Forms (likely within O2) to run Fast-Data-Entry in O2 in a manner similar to how modules like the Ward App are integrated.

My current blocker is that I have been unable to set up a development environment that allows me to run an O2 version of the Reference Application and concurrently run an O3 module (in this case, FDE) within O2.

I would greatly appreciate guidance, hints, or references to resources for:

  • Setting up an O2 development environment capable of hosting O3 modules

  • Running FDE or similar O3 modules within O2

Thank you in advance for any assistance or pointers.

CC: @ibacher , @dkigen , @samuel34 , @ball , @mseaton , @nethmi , @bistenes

Have you got any request from O2 users to run the fast data entry app?

@twiine if all you need is html forms, then you do not need an instance of O2. Just add the htmlformentry module to your O3 instance.

You’d need to install a version of the O3 frontend. There’s currently no support for running O3 frontend modules in development without having some kind of O3 frontend. This should be as simple as adding openmrs-module-spa and a built version of the frontend. This can be reproduced from the released versions, e.g.: https://openmrs.jfrog.io/artifactory/releases/org/openmrs/distro-emr-frontend/3.5.0/distro-emr-frontend-3.5.0.zip.

FWIW, I don’t think HFE is a great fit for FDE. Some of the functionality relies on being able to post-populate specific data into the form. With HFE, this is very likely to be a biggish lift.

1 Like

@dkayiwa, I wanna see it working for completeness of the Fast Data Entry support!

Thanks DK, Let me try it

Thanks Ian, given that I have the time to experiment and try out! Why not!