Automatically Creating Observations from OT Appointments (No Codebase Changes)

Hello everyone,

Bahmni currently does not expose Operation Theatre (OT) appointments from the Operation Theatre module via FHIR. In the long run, introducing a proper FHIR Appointment resource would be the preferred solution, but we are currently looking for a short-term workaround.

Our idea is to use a custom Observation Form, which is available through FHIR as an Observation resource. We would like to automatically transfer the data from an OT appointment into this Observation Form. In other words: after an OT appointment is created in the OT Scheduler, a new Observation (via a form) should be automatically created for the corresponding patient and pre-filled with the appointment details.

Is there any mechanism or recommended way to automatically populate an Observation Form with data from the Operation Theatre module?

We are looking for approaches that do not require modifying the Bahmni or OpenMRS core codebase. For example:

  • configuration-based solutions within Bahmni/OpenMRS
  • using existing OpenMRS/Bahmni mechanisms
  • an external script or integration process that uses REST/FHIR APIs
  • any trigger/listener mechanism that can be enabled without custom module development

Any guidance or experiences would be very much appreciated.

Thank you in advance! If you know anything related to this use case, please let us know.