Add User Details for Clinical Staff in t_visitdetails When a Patient Visits the Facility#219
Add User Details for Clinical Staff in t_visitdetails When a Patient Visits the Facility#219vanitha1822 wants to merge 18 commits into
Conversation
…cilityID first - Endpoint renamed from /getUserVanSpDetails to /getUserFacilityDetails - Login reads facilityID from m_UserServiceRoleMapping first - Van view as fallback for old users without role mapping Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…erral - UPTSU endpoint accepts facilityID directly - Old getWorklist(vanID) delegates to new getWorklistByFacilityID - Skips Van→Facility lookup for new users Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When UI sends servicePointID=293 but facilityID is missing from payload, derive facilityID from servicePointID so worklist query finds the record. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
facilityID present → use facilityID; else fall back to vanID (MMU/TM unchanged) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…worklist routing - IemrMmuLoginServiceImpl: route HWC users through facilityID login path; throw clear error if no facility mapped - FacilityLoginRepo: add queries to fetch facilityID from m_UserServiceRoleMapping - VanSpokeController: pass actual exception message to UI for facility mapping errors - BeneficiaryVisitDetail: add @transient facilityID field so nurse services can propagate it to generateVisitCode - CommonNurseServiceImpl: generateVisitCode uses facilityID over vanID; capture facilityID before save - All 10 nurse services + QuickConsultation: set facilityID on benVisitDetailsOBJ before save so generateVisitCode does not throw on null vanID Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add getUserFacilityOnlyDetails service method: checks facilityID only, throws error immediately if not mapped — no van fallback - VanSpokeController: getUserFacilityDetails calls new method - Old getUserVanSpDetails (with van fallback) retained for MMU/TM path only - If old user has both vanID and facilityID mapped, facilityID is used Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|


📋 Description
JIRA ID:
AMM-2015
✅ Type of Change