Skip to content

BAH-4714 | Add. stock location in immunization resource of consultation - #2

Closed
subhashydv wants to merge 2 commits into
mainfrom
BAH-4714
Closed

BAH-4714 | Add. stock location in immunization resource of consultation#2
subhashydv wants to merge 2 commits into
mainfrom
BAH-4714

Conversation

@subhashydv

@subhashydv subhashydv commented May 18, 2026

Copy link
Copy Markdown

BAH-4714

Summary

  • Adds a stockLocation field to the immunization resource so the pharmacy/location that stock the vaccine can be captured alongside the administration record.
  • Exposes the value over FHIR as an extension at http://fhir.bahmni.org/ext/immunization/stockLocation (valueString), with bidirectional
    translation between the FHIR Immunization resource and the OpenMRS entity.
  • Adds the underlying stock_location column on the immunization table via a Liquibase changeset.

Changes

  • ImmunizationModuleConstants.java: new FHIR_EXT_IMMUNIZATION_STOCK_LOCATION extension URL constant.
  • FhirImmunization.java: new stockLocation string property on the entity.
  • BahmniImmunizationTranslatorImpl.java: wires translateStockLocationToFhir / translateStockLocationToOpenmrs into both translation
    directions; extension is omitted when the value is null.
  • Immunization.hbm.xml: Hibernate mapping for the new stock_location column (varchar 255).
  • liquibase.xml: changeset add_stock_location_to_immunization_20260519 adds the column, guarded by tableExists + columnExists preconditions.
  • BahmniImmunizationTranslatorImplTest.java: four new tests covering present/null cases in both directions.
  • example-immunization-administered.json: sample payload updated to include the new extension.

@subhashydv
subhashydv requested a review from mohan-13 May 18, 2026 06:49
@sonarqubecloud

Copy link
Copy Markdown

@subhashydv subhashydv changed the title BAH-4714 | Add. dispense location in immunization resource of consultation BAH-4714 | Add. stock location in immunization resource of consultation May 19, 2026
@subhashydv subhashydv added the invalid This doesn't seem right label May 20, 2026
@subhashydv subhashydv closed this May 20, 2026
@subhashydv

Copy link
Copy Markdown
Author

NO LONGER NEEDED

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

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant