openmrs/openmrs-module-fhir2 ? reverse-engineered prompt

Reverse engineered prompt

Build me the OpenMRS FHIR module as a clean, working REST API for FHIR R4, with the code organized the way the README describes.

I want the API layer to handle requests, pass them into reusable services, then use translators and data access code to map between FHIR objects and OpenMRS data. Please keep the OpenMRS service layer inside the DAO layer, avoid relying on Context unless you really have to, and make the pieces easy to override later if someone needs custom behavior.

Please also include the basic project setup, tests, and the usual support for running and validating the module in an OpenMRS environment. If anything in the latest OpenMRS or HAPI FHIR docs has changed, look it up online and use current best practices.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab