devsofttech_hms_ci4/app/Libraries
DevSoftTech Server 016c0fdf2f Fix duplicate ABDM document rows: dedup on bundle_id + care_context_reference, not transaction_id/consent_ref
Confirmed empirically: the SAME clinical document (identical FHIR Bundle.id) gets re-delivered by the bridge under a DIFFERENT transaction_id/consent_ref every time it is re-fetched (e.g. via the by-ABHA-address historical fetch, which returns every past consent session for the patient). The old dedup hash included transaction_id+consent_ref, so every re-fetch created a brand-new duplicate row instead of updating the existing one -- observed as literal duplicate rows in the OPD ABDM Fetched Data list (same date/title appearing 2-3x). bundle_id is set once by the HIP and is stable across re-fetches/consents, so pair it with care_context_reference to uniquely identify a document instead.
2026-07-29 02:44:14 +05:30
..
Abdm Fix duplicate ABDM document rows: dedup on bundle_id + care_context_reference, not transaction_id/consent_ref 2026-07-29 02:44:14 +05:30
.gitkeep Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
AbdmAuditService.php feat(abdm): implement M2 gateway contract endpoints and live test tooling 2026-06-24 04:50:03 +05:30
AbdmWorkTaskService.php feat: Add ABDM Task Board module with ABHA workflow 2026-04-05 23:42:24 +05:30
BridgeSyncService.php feat: ABDM OPD Queue + ABHA Register flow + patient ABHA search fix 2026-05-16 04:21:31 +05:30
ClinicalAuditTrail.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
CsnotkTerminologyService.php Implement ABDM bridge health record flows 2026-07-20 03:02:09 +05:30
FhirEncryptionService.php feat: SNOMED background coding pipeline + ABDM Coding Panel 2026-05-19 20:40:27 +05:30
FhirR4Builder.php ABDM records/push: treat 201/409 as submitted, persist record IDs, and update OPD UI state 2026-07-21 01:32:30 +05:30
HealthplixService.php feat: add HealthPlix OPD sync flow with settings, diagnostics, and sync ID persistence 2026-04-27 08:32:51 +05:30
ImmunizationMasterSyncService.php Add E-Atria immunization master sync 2026-07-19 01:00:43 +05:30
ImmunizationScheduleService.php Add patient immunization module 2026-07-19 00:41:12 +05:30
NursingScanExtractionService.php Add nursing scan-to-structured workflow and discharge UI polish 2026-03-09 00:12:04 +05:30