Hi community,
I’m working on integrating OpenMRS (legacy UI, RefApp 2.x) with an external AI image analysis service via a configuration platform.
Current setup:
- Created a complex concept with ImageHandler for patient images
- Images successfully uploaded/stored as ComplexObs
- Can GET images via REST API in Postman (`/ws/rest/v1/obs/{uuid}/value`)
After a new image is uploaded to the patient dashboard/form, automatically notify the platform.
The 3 proposed approaches:
1. HTML Form + JavaScript Webhook
2. Scheduler (5-10 min polling)
3. Event Listener(Real-time)
My questions:
1. Did I do it correctly to save the image as a complex obs?
2. Which approach is most common/recommended in production?
3. Has anyone implemented similar OpenMRS → external AI/image service integrations?
Thanks!