MadiroGlobalHealth / UVL-EMR

OpenMRS 3 repository for Ubuntu Village of Life in Burundi - Madiro's HealthTech Challenge 2024
http://uvl-emr.madiro.org
6 stars 14 forks source link

Add the Data Visualizer module from UgandaEMR #24

Closed michaelbontyes closed 3 weeks ago

michaelbontyes commented 2 months ago

Using the frontend (and backend if needed) configuration files for modules, add the Data visualizer module: https://github.com/METS-Programme/esm-ugandaemr-data-visualizer/tree/main

Example: Image

UVL frontend modules config: https://github.com/MadiroGlobalHealth/UVL-EMR/blob/main/distro/configs/openmrs/frontend_assembly/reference-application-spa-assemble-config.json

UVL backend modules config: https://github.com/MadiroGlobalHealth/UVL-EMR/blob/a8e776d7088e4fd3ae260b2aec49296b3c6d3853/distro/pom.xml#L29-L40

dancinoman commented 2 months ago

If I understand very well, I should add this module to distro level configuration? And should I integrate Data Visualizer files/folder inside of UVL-EMR project?

michaelbontyes commented 2 months ago

Hi @dancinoman , yes modules are configured at the distro level so that all sites will use the same version which simplifies maintenance

dancinoman commented 1 month ago

Here is my situation up-to-date:

  1. The configuration of the front-end "reference-application-spa-assemble-config.json" is exactly the same on the link above so no change has been made. The pom.xml contains the same line of code above as well hence no change has been made.
  2. When I run local host through './start.sh' command it runs normaly but the option Data vizualizer is not showing up in the option of dropdown in order to display on the left navigation bar.
  3. When I run local host through 'yarn start' command I can try to log as usual but it stops an throw this error in my browser 'An error has occurred. Please try reloading the page.'

Is there something that I am missing?

sherrif10 commented 1 month ago

Hello @dancinoman Did you add esm-data-visualizer under here L3 checkout how it was done here for lab order module

dancinoman commented 1 month ago

Image Like this and the option still not showing up. It worth to mention that I also did the modification also in the path that you brought.

dancinoman commented 1 month ago

Image What does it mean? and how can we fix it?

https://github.com/dancinoman/UVL-EMR

michaelbontyes commented 1 month ago

Here is the link to the frontend module on NPM: https://www.npmjs.com/package/@ugandaemr/esm-data-visualizer-app What to add in the config frontend: @ugandaemr/esm-data-visualizer-app

tendomart commented 1 month ago

@michaelbontyes was this done?

tendomart commented 1 month ago

I also noticed the Datav Visualizer is still in pre-release version.. so still waiting for METS feedback at https://talk.openmrs.org/t/ugandaemr-data-visualizer-and-reporting/43699

tendomart commented 1 month ago

@michaelbontyes I checkes the visualizer it's in pre-release state and teh METS team have not responded very well on the issue, can we just go ahead with it. because it looks like it's the only available esm option at the moment. The Sol Develo team (Pawel), too did some work but they' not responded back too.

dancinoman commented 1 month ago

I did miss that. How do you know it is in prerelease state? I have checked every where on the project they have made and did not notice that.

tendomart commented 1 month ago

Hi @dancinoman I think we have a green flag.

https://www.npmjs.com/package/@ugandaemr/esm-data-visualizer-app/v/1.0.1-pre.43?activeTab=versions

but even in that state i talked to Isaac, one of the developers and he told me they're using it in 184 facilities. Though still under development.

So we can go

dancinoman commented 1 month ago

Allright. Just want to say I haven't found a way to make it work so far. Tell me if you are experiencing issues with that module.

tendomart commented 1 month ago

Good news just keep going