Skip to content

BAH-5112 Migrate IPDMedicationAdministrationController to FHIR R4 — MedicationAdministration resource - #30

Open
lingeswaranTW wants to merge 4 commits into
mainfrom
BAH-5112
Open

lingeswaranTW wants to merge 4 commits into
mainfrom
BAH-5112

Conversation

@lingeswaranTW

Copy link
Copy Markdown
Contributor

No description provided.

- Add previous-note-id and amendment-reason extensions on MedicationAdministration.note
- Fix search param mapping so each handler receives its own parameter
- Fix DAO patient/status/performer filters and add @Authorized on search
- Add translator and search-param unit tests
The module compiled against fhir2 2.5.0 while the distro runs 4.3.0. BaseFhirDao changed its search hook from setupSearchParams(org.hibernate.Criteria, ...) to setupSearchParams(OpenmrsFhirCriteriaContext, ...), so the DAO override was never invoked and patient/context/status/performer filters were silently dropped (only COMMON_SEARCH_HANDLER ran).

- Bump openmrsFhir2Version 2.5.0 -> 4.3.0 so the override matches the runtime API
- Migrate the DAO to OpenmrsFhirCriteriaContext, getSearchQueryHelper() and JPA Predicate
- Keep @Authorized on the search entry points
dosage.dose.unit returned the concept id (e.g. "48256") instead of the unit name, so the frontend drug chart showed a numeric unit.

Mirror fhir2's DosageTranslatorImpl: write system/code/unit through MedicationQuantityCodingTranslatorImpl and resolve the concept from the quantity on read. Adds a round-trip translator test.

@ravinderkabli ravinderkabli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants