devsofttech_hms_ci4/app/Database/Migrations
DevSoftTech Server 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
..
.gitkeep Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-06-000001_CreatePatientDuplicateLog.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-08-000001_CreateDocIpdFeeType.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-08-000002_AddGstAgreementToInsurance.php Make GST insurance migration idempotent for existing columns 2026-03-21 15:57:15 +05:30
2026-02-14-000002_CreateCheckItemRequestFunction.php Fix item request SQL function migration for binlog-safe settings 2026-03-21 15:59:22 +05:30
2026-02-17-000001_BackfillMedicalInvoiceCodes.php Harden medical invoice backfill migration for zero-date strict mode 2026-03-21 16:00:41 +05:30
2026-02-18-000001_CreateMedicalBankTables.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-18-000002_AddPharmacyStockReportIndexes.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-18-000003_CreateMedicalProductCategoryTable.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-18-000004_AlignMedicalProductCategoryTableSchema.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-21-000001_CreateClinicalAuditTrailTable.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-21-000002_CreateOpdFhirDocumentTable.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-21-000003_CreateComplaintsMasterTable.php Make complaints master migration idempotent for existing codes 2026-03-21 16:03:12 +05:30
2026-02-21-000004_CreateBridgeSyncQueueTable.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-21-000005_CreateLabAiExtractionTables.php feat: migrate OPD template flow to DB and apply related updates 2026-03-20 18:11:17 +05:30
2026-02-24-000001_AddDoctorRegistrationNoToDoctorMaster.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-24-000002_CreateOpdMedicineUserPreferenceTables.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-24-000003_AddDosageRestrictionToOpdMedMaster.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-02-24-000004_AddAiScanColumnsToFileUploadData.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
2026-03-01-000001_AddOpdPerformanceIndexes.php Add OPD performance indexes for appointment dashboard and list queries 2026-03-01 01:57:39 +05:30
2026-03-05-000003_CreateIpdNursingEntriesTable.php Add nursing scan-to-structured workflow and discharge UI polish 2026-03-09 00:12:04 +05:30
2026-03-06-000001_CreateNursingBedsideItemsInsuranceTable.php Add nursing scan-to-structured workflow and discharge UI polish 2026-03-09 00:12:04 +05:30
2026-03-07-000010_CreateIpdDischargeTemplatesTable.php Add report panel updates and related billing/discharge enhancements 2026-03-10 02:43:35 +05:30
2026-03-10-000011_CreateFinancePhase1Tables.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-10-000012_AddFinanceInvoiceMatchColumns.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-10-000013_CreateFinanceCashTables.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-10-000014_CreateFinanceDoctorPayoutTables.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-10-000015_CreateFinanceDepositAndPolicyTables.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-13-000016_AddDiagnosisHeadPrintSettings.php feat(diagnosis): add print templates with image upload and optimize PDF rendering 2026-03-15 06:50:44 +05:30
2026-03-14-000017_AddDiagnosisHeadMpdfBlocks.php feat(diagnosis): add print templates with image upload and optimize PDF rendering 2026-03-15 06:50:44 +05:30
2026-03-14-000018_AddDiagnosisPatientInfoHtml.php feat(diagnosis): add print templates with image upload and optimize PDF rendering 2026-03-15 06:50:44 +05:30
2026-03-14-000019_CreateDiagnosisPrintTemplates.php feat(diagnosis): add print templates with image upload and optimize PDF rendering 2026-03-15 06:50:44 +05:30
2026-03-15-000020_AddDiagnosisTemplateMarginsCm.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-15-000021_CreateDoctorDocumentTables.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-15-000022_AddDefaultPrintTypeToDocFormatMaster.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-15-000023_AddPrintMarginsToDocFormatMaster.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-15-000024_CreateDoctorDocumentPrintTemplates.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-17-000025_AddFinancePoDocumentColumns.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-17-000026_CreateFinancePoDocumentsTable.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-17-000027_CreateFinancePharmacyBillsTable.php Implement finance phase 2 pharmacy workflow and admin hospital/pharmacy profile settings 2026-03-17 04:05:02 +05:30
2026-03-25-000029_CreateAyushmanPackageMasterTable.php Add Ayushman package import, billing claim sheet, and reporting dashboards 2026-03-26 15:42:40 +05:30
2026-04-01-000030_CreateInvoiceItemUpdateTable.php Fix billing invoice balance/payment flow and deduction UI 2026-04-01 07:23:29 +05:30
2026-04-01-000031_AddInvestigationMasterFields.php Investigation Master: CRUD, favourites, specialization filter 2026-04-01 18:26:33 +05:30
2026-04-01-000032_CreateInvestigationProfileTables.php Investigation Profile Master: CRUD and consult integration 2026-04-01 18:44:52 +05:30
2026-04-02-000033_EnsureEchoChargeGroup.php Add Echo modality to diagnosis navigation and charge group setup 2026-04-02 05:12:08 +05:30
2026-04-02-000034_CreateHospitalStockModule.php feat(stock): add modular hospital stock management with dashboard, masters, indents, purchase and reports 2026-04-02 10:28:38 +05:30
2026-04-02-000035_EnhanceHospitalStockItems.php feat(stock): add modular hospital stock management with dashboard, masters, indents, purchase and reports 2026-04-02 10:28:38 +05:30
2026-04-04-000036_AddAbdmIdentityFields.php Implement ABDM identity storage and align OPD consult/medicine dose masters 2026-04-04 17:26:40 +05:30
2026-04-04-000037_SyncOpdDoseShedMaster.php Implement ABDM identity storage and align OPD consult/medicine dose masters 2026-04-04 17:26:40 +05:30
2026-04-04-000038_SyncOpdDoseWhenMaster.php Implement ABDM identity storage and align OPD consult/medicine dose masters 2026-04-04 17:26:40 +05:30
2026-04-05-000039_CreateAbdmCoreTables.php feat: Add ABDM Task Board module with ABHA workflow 2026-04-05 23:42:24 +05:30
2026-04-05-000040_AddAbdmWorkTasksTable.php feat: Add ABDM Task Board module with ABHA workflow 2026-04-05 23:42:24 +05:30
2026-04-08-000041_AddMedicineSearchIndexes.php Add medicine search DB indexes and prefix query optimization 2026-04-08 19:49:51 +05:30
2026-04-10-000042_AddOpdContPaperPrintToDoctorMaster.php db: Add opd_cont_paper_print column to doctor_master table 2026-04-10 13:28:03 +05:30
2026-04-18-000043_AddSortOrderToIpdItemType.php feat(ipd-charges): group delete, sort order, Up/Down buttons, foldable billing panels 2026-04-18 06:56:38 +05:30
2026-04-21-000044_AddCashSubmissionPeriodFields.php finance/storestock: implement cash submission audits, bank settlements, and opd payout tracking 2026-04-22 10:53:20 +05:30
2026-04-21-000045_CreateCashSubmissionItemsTable.php finance/storestock: implement cash submission audits, bank settlements, and opd payout tracking 2026-04-22 10:53:20 +05:30
2026-04-21-000046_AddCashSubmissionFieldsToPaymentHistory.php finance/storestock: implement cash submission audits, bank settlements, and opd payout tracking 2026-04-22 10:53:20 +05:30
2026-04-21-000047_CreateBankAuditTables.php finance/storestock: implement cash submission audits, bank settlements, and opd payout tracking 2026-04-22 10:53:20 +05:30
2026-04-21-000048_CreateBankReconciliationAuditTable.php finance/storestock: implement cash submission audits, bank settlements, and opd payout tracking 2026-04-22 10:53:20 +05:30
2026-04-21-000049_CreateBankSettlementEntriesTable.php finance/storestock: implement cash submission audits, bank settlements, and opd payout tracking 2026-04-22 10:53:20 +05:30
2026-04-21-000050_AddBankSettlementStatementMatchFields.php fix: use db->getFieldNames() instead of hasField() in migration for reliable column existence check 2026-04-25 09:11:15 +05:30
2026-04-22-000051_AddOpdPayoutTrackingFields.php finance/storestock: implement cash submission audits, bank settlements, and opd payout tracking 2026-04-22 10:53:20 +05:30
2026-04-27-000101_AddHealthplixDoctorIdentifierToDoctorMaster.php feat: add HealthPlix OPD sync flow with settings, diagnostics, and sync ID persistence 2026-04-27 08:32:51 +05:30
2026-04-27-000102_AddHealthplixSyncIdFields.php feat: add HealthPlix OPD sync flow with settings, diagnostics, and sync ID persistence 2026-04-27 08:32:51 +05:30
2026-04-28-000103_ChangeOpdAppointmentDateToDATETIME.php Add OPD appointment time capture and storage with date+time display 2026-04-28 07:59:47 +05:30
2026-04-28-000104_CreateUserSettingsTable.php Add user-based sidebar auto-hide setting, movable from hospital default 2026-04-28 13:47:46 +05:30
2026-04-30-000105_CreateFinanceMedicalPayoutWorkflowTables.php Implement medical store credit payout workflow and optimize payout pool DataTable grouping 2026-04-30 01:42:03 +05:30
2026-05-01-000201_AddInvoiceItemPayoutTrackingFields.php Finance: separate OPD Consult and Doctor Charges payout screens; compact dashboard cards; add IPD payout tracking migration 2026-05-01 21:02:57 +05:30
2026-05-12-000202_CreateSnomedCoreTables.php feat: ABDM OPD Queue + ABHA Register flow + patient ABHA search fix 2026-05-16 04:21:31 +05:30
2026-05-15-000203_AddAbdmPushFieldsToOpdAndPatient.php feat: ABDM OPD Queue + ABHA Register flow + patient ABHA search fix 2026-05-16 04:21:31 +05:30
2026-05-16-000204_CreateAbdmOpdTokensTable.php feat: ABDM OPD Queue + ABHA Register flow + patient ABHA search fix 2026-05-16 04:21:31 +05:30