Repository navigation
BAH-5112 Migrate IPDMedicationAdministrationController to FHIR R4 — MedicationAdministration resource - #30
Open
lingeswaranTW wants to merge 4 commits into
Open
lingeswaranTW wants to merge 4 commits into
lingeswaranTW wants to merge 4 commits into
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.