BAH-4714 | Add. stock location in immunization resource of consultation - #2
Closed
subhashydv wants to merge 2 commits into
Closed
BAH-4714 | Add. stock location in immunization resource of consultation#2subhashydv wants to merge 2 commits into
subhashydv wants to merge 2 commits into
Conversation
|
Author
|
NO LONGER NEEDED |
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.



BAH-4714
Summary
stockLocationfield to the immunization resource so the pharmacy/location that stock the vaccine can be captured alongside the administration record.http://fhir.bahmni.org/ext/immunization/stockLocation(valueString), with bidirectionaltranslation between the FHIR
Immunizationresource and the OpenMRS entity.stock_locationcolumn on theimmunizationtable via a Liquibase changeset.Changes
ImmunizationModuleConstants.java: newFHIR_EXT_IMMUNIZATION_STOCK_LOCATIONextension URL constant.FhirImmunization.java: newstockLocationstring property on the entity.BahmniImmunizationTranslatorImpl.java: wirestranslateStockLocationToFhir/translateStockLocationToOpenmrsinto both translationdirections; extension is omitted when the value is null.
Immunization.hbm.xml: Hibernate mapping for the newstock_locationcolumn (varchar 255).liquibase.xml: changesetadd_stock_location_to_immunization_20260519adds the column, guarded bytableExists+columnExistspreconditions.BahmniImmunizationTranslatorImplTest.java: four new tests covering present/null cases in both directions.example-immunization-administered.json: sample payload updated to include the new extension.