Commit Graph

35 Commits

Author SHA1 Message Date
72922eefbe chore: remove test bridge push command 2026-10-08 14:09:18 +05:30
63cb6b810a fix(abdm): test doc step by step 2026-10-08 14:06:54 +05:30
13e4e0728b fix(abdm): use AbdmConnectorFactory::make 2026-10-08 14:04:27 +05:30
2a7eb6e034 feat(abdm): add test bridge push command 2026-10-08 14:04:05 +05:30
54b3fdf542 chore(abdm): add abdm:inspect-patient spark command 2026-10-08 12:58:38 +05:30
0939cb9ec1 fix(abdm): unify imaging lab types to RAD prefix, merge local record_links into linkedRefs, and prevent pending push queue starvation 2026-10-08 12:55:42 +05:30
dab7629dcd fix(abdm): only query health_records with existing bundle payload in pushPendingHealthRecords 2026-10-08 12:47:50 +05:30
18505968bd feat(abdm): add automatic invoice linking and syncOpenInvoices for OPD consultation fees and charge invoices 2026-10-08 12:46:12 +05:30
b3e7a2175f fix(abdm): make FHIR creation async local-only in web requests, auto-link every minute via cron, disable cooling delay 2026-10-08 12:30:47 +05:30
cb0a1967a4 fix(abdm): redact decrypted FHIR bundles from abdm_api_logs and increase memory limit in hiu-poll to prevent memory exhaustion 2026-10-08 11:27:32 +05:30
61206784f3 feat(abdm): implement care-context linking cooling window and timer reset on record modification
- Add cooling period configuration (60 min for OPD/Lab/Radiology/others, 24 hr for IPD Discharge) in AbdmConnector
- Add calculateCooling() logic in AbdmTaskBoardSyncService and skip automated linking during cooling window
- Touch and refresh work task timestamps on prescription save and IPD discharge summary save/print
- Update opd_fhir_documents on prescription edit rather than inserting duplicate bundles
- Enrich ABDM Task Board table and OPD consult list with active cooling badges, remaining minutes, and auto-link schedule
- Preserve manual 'Link Context' action on task board to allow immediate override anytime
- Update CLI commands (abdm:taskboard-sync, abdm:push-sync) with cooling counters and status logging
2026-09-28 18:29:50 +05:30
c3fc0d98f0 feat(abdm): automate ABDM Work Task Board care-context linking via cron job 2026-09-28 00:40:03 +05:30
0186e17f0f feat(abdm): implement automated deep-link SMS notify queue and Spark cron worker 2026-09-27 23:55:52 +05:30
2f6b346e25 fix(abdm): add concurrency lock, optimize hiu-poll query, and add composite indexes 2026-09-24 08:03:57 +05:30
68d256d9ba Retain ABDM audit trail 30 days and strip payloads after 2 2026-08-15 03:16:47 +05:30
00b949ad0a Push M2 records to gateway for NAT deployment and cover all 8 HI types 2026-08-15 03:16:32 +05:30
b4714270a9 Add combined ABDM log prune command and api log index 2026-08-14 13:14:13 +05:30
076b18de62 Prune abdm_api_logs and abdm_hiu_workflows to 2-day retention 2026-08-14 13:14:02 +05:30
d85b3f5998 Add 2-day retention pruning for abdm_hiu_workflows 2026-08-14 11:52:49 +05:30
3c6121a4ad Gate legacy bridge events by ABHA verification and add cleanup command 2026-07-30 14:30:34 +05:30
9f2460fed9 Remove obsolete one-off M3/M2 diagnostic scripts (root cause resolved) 2026-07-28 23:35:01 +05:30
fd0d571f9b Add diagnostic spark command abdm:hiu-reconcile-by-request to test consent_reconcile by consent_request_id 2026-07-28 23:14:20 +05:30
d2c25b9e38 Add spark command abdm:hiu-fetch-by-consent for manual data_fetch of a specific consent artifact id 2026-07-28 22:57:57 +05:30
6407db9dbc Update HIU workflow, patient view, and related assets 2026-07-07 01:13:28 +05:30
3d40642116 Add ABDM M3 HIU workflows, routes, UI, and runbook docs 2026-07-01 17:37:53 +05:30
ed48a447e5 ABDM M2: add push-sync outbox, worker, and FHIR generators 2026-06-27 01:53:44 +05:30
78c23af7e5 Checkpoint: pathology panel modal workflow, gateway component search, and ABDM-style component/print editors 2026-05-30 06:32:30 +05:30
a56e8a5776 feat: SNOMED background coding pipeline + ABDM Coding Panel
- Add opd_coding_queue + opd_snomed_suggestions migrations
- Add ProcessSnomedCoding spark command (cron: snomed:process-coding)
  Extracts clinical phrases, matches local SNOMED FULLTEXT, saves suggestions
- Add AbdmCodingPanel controller: index/review/confirm/reject/correct/mark_fhir_ready/tip_check
- Add coding_panel + coding_panel_review views (Bootstrap 5, AJAX actions)
- Inject queue trigger in opd_prescription_save (fail-open, ON DUPLICATE KEY)
- Add consult form tip badge: polls tip_check 4s after save, shows review link
- Add AbdmCodingPanel routes behind abdm permission filter
- Various ABDM gateway, FHIR, ABHA, SNOMED library updates
2026-05-19 20:40:27 +05:30
0628f8f813 feat: ABDM OPD Queue + ABHA Register flow + patient ABHA search fix
ABDM OPD Queue (today):
- New EAtriaBridgeConnector: opdQueueFetch/opdTokenCreate/opdTokenUpdateStatus + patch() helper
- New AbdmOpdQueue controller: index/list/fetchQueue/createToken/updateTokenStatus/processScannedToken
  - fetchQueue syncs gateway tokens into abdm_opd_tokens (local DB) and enriches with HMS patient data
  - processScannedToken auto-finds/creates patient_master record from ABHA scan data, marks token CALLED
- New migration: abdm_opd_tokens table (gateway_token_id, source, status, patient_id, opd_id, processed_at)
- New view: abdm/opd_queue.php - reception screen with auto-refresh 30s, HMS Patient column (green row when OPD registered)
- Sidebar: ABDM OPD Queue nav link added
- Routes: AbdmOpdQueue with abdmPermFilter

ABHA Register tab (earlier this session):
- New Abha controller: initiate/verifyOtp/communication/verifyCommOtp/validateAbha/card + autoCreateOrFindPatient
- New views: abha/card.php, partials/abha_create_panel.php, partials/abha_otp_modal.php
- Patient_V.php: ABHA Register tab with 4-method wizard (ABHA number, QR scan, facility QR, mobile OTP)

Patient ABHA search fix:
- Patient::search() now detects ABHA column (abha_id/abha_no/abha/abha_address) and searches by it

ABDM Bridge infrastructure:
- EAtriaBridgeConnector: new connector for e-atria.in ABDM bridge gateway
- AbdmConnectorFactory/Interface updated
- AbdmGatewaySettings controller + view
- SNOMED/CSNOTK terminology service skeleton
- Finance payout OPD consult views
- Migration: AddAbdmPushFieldsToOpdAndPatient, CreateSnomedCoreTables
- Docs: abdm/ API specs, architecture, gateway guides
2026-05-16 04:21:31 +05:30
ec872c984c Strengthen OPD autocomplete normalization for spacing and punctuation variants 2026-04-17 03:41:01 +05:30
47423a7d38 Normalize OPD autocomplete suggestions and add one-time cleanup command 2026-04-17 03:31:33 +05:30
46a22f6e02 OEM lab refresh: fix id=0 seed issue (NO_AUTO_VALUE_ON_ZERO) and add one-shot refresh command 2026-04-03 16:21:54 +05:30
1be7b51812 OEM: add spark command oem:export-lab-templates to regenerate seed files 2026-04-03 15:29:11 +05:30
911e7b50a7 Add Ayushman package import, billing claim sheet, and reporting dashboards 2026-03-26 15:42:40 +05:30
614713f76b Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30