Displaying images created in Legacy UI inside New UI – best practice

Hi everyone,

I have created and verified fundus photographs in OpenMRS using the Legacy (Reference Application) UI. The images are stored as Complex Observations (image/jpeg) and are correctly linked to patients and encounters. They are apparent and accessible in the Legacy UI, including via the obs/{uuid}/value endpoint.

Now, I would like to display the same fundus images in the new (microfrontend) UI. What is the recommended approach to display such images in New UI?

Any guidance or references would be greatly appreciated.

Thank you!

In which part of the new UI would you like to display them?

I should have this information in the patient dashboard, encounter section, but then I realized I should first fix FHIR.

Have you had any experience transferring images through FHIR? I have tried REST API, and it works, but regarding FHIR, I had this error that FHIR does not support image resources for transfer.

Yeah, there’s currently not support for images in the FHIR2 module and I don’t believe the attachments module provides a suitable setup.

1 Like

Thanks for your response.

So, if we would like to transfer the image to one AI from openmrs, the only appropriate way would be using a Rest API, am I getting it correctly?

Yes, that’s correct

1 Like

Thanks a lot.