devsofttech_hms_ci4/env
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

140 lines
4.6 KiB
Plaintext

#--------------------------------------------------------------------
# Example Environment Configuration file
#
# This file can be used as a starting point for your own
# custom .env files, and contains most of the possible settings
# available in a default install.
#
# By default, all of the settings are commented out. If you want
# to override the setting, you must un-comment it by removing the '#'
# at the beginning of the line.
#--------------------------------------------------------------------
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------
# CI_ENVIRONMENT = production
#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------
# app.baseURL = ''
# If you have trouble with `.`, you could also use `_`.
# app_baseURL = ''
# Comma-separated or JSON array host allowlist (optional).
# app.allowedHostnames = localhost,100001.dhms.in
# app.allowedHostnames = ["localhost","100001.dhms.in"]
# app.forceGlobalSecureRequests = false
# app.CSPEnabled = false
#--------------------------------------------------------------------
# DATABASE
#--------------------------------------------------------------------
# database.default.hostname = localhost
# database.default.database = ci4
# database.default.username = root
# database.default.password = root
# database.default.DBDriver = MySQLi
# database.default.DBPrefix =
# database.default.port = 3306
# If you use MySQLi as tests, first update the values of Config\Database::$tests.
# database.tests.hostname = localhost
# database.tests.database = ci4_test
# database.tests.username = root
# database.tests.password = root
# database.tests.DBDriver = MySQLi
# database.tests.DBPrefix =
# database.tests.charset = utf8mb4
# database.tests.DBCollat = utf8mb4_general_ci
# database.tests.port = 3306
#--------------------------------------------------------------------
# ENCRYPTION
#--------------------------------------------------------------------
# encryption.key =
#--------------------------------------------------------------------
# SESSION
#--------------------------------------------------------------------
# session.driver = 'CodeIgniter\Session\Handlers\FileHandler'
# session.savePath = null
#--------------------------------------------------------------------
# LOGGER
#--------------------------------------------------------------------
# logger.threshold = 4
#--------------------------------------------------------------------
# ABDM / EKA CONNECTOR
#--------------------------------------------------------------------
# Use "eka" to route ABDM/NHCX queue events to Eka, "bridge" to keep legacy bridge route.
# ABDM_SYNC_PROVIDER = eka
# Optional global override for all queue events.
# BRIDGE_SYNC_PROVIDER = bridge
# Legacy bridge endpoint settings.
# BRIDGE_SYNC_URL =
# BRIDGE_SYNC_TOKEN =
# BRIDGE_SOURCE_CODE =
# Eka dispatch settings.
# EKA_BASE_URL = https://api.eka.care
# EKA_BEARER_TOKEN =
# EKA_API_KEY =
# EKA_CLIENT_ID =
# Optional JSON map to override default event->path mapping.
# Example: {"abdm.abha.validate":"/user-app/abdm-connect/abha/verify"}
# EKA_EVENT_ENDPOINTS_JSON =
# Webhook signature verification secret for callback endpoints.
# If empty, signature validation is skipped.
# EKA_WEBHOOK_SECRET =
#--------------------------------------------------------------------
# HEALTHPLIX INTEGRATION (OPTIONAL)
#--------------------------------------------------------------------
# Enable per hospital using Admin panel by default.
# These env keys can be used as deployment fallback defaults.
# HEALTHPLIX_ENABLED = 0
# HEALTHPLIX_BASE_URL =
# HEALTHPLIX_TENANT_HEADER_NAME = tenant_id
# HEALTHPLIX_TENANT_ID =
# HEALTHPLIX_TENANT_KEY =
# HEALTHPLIX_TOKEN_PATH =
# HEALTHPLIX_PATIENT_PATH =
# HEALTHPLIX_APPOINTMENT_PATH =
# HEALTHPLIX_DOCTOR_IDENTIFIER =
# HEALTHPLIX_DOCTOR_EMAIL =
# HEALTHPLIX_SERVICE_IDENTIFIER =
# HEALTHPLIX_SERVICE_NAME =
# Optional fallback secret used by POST /healthplix/fetch when hospital_setting has no value.
# HEALTHPLIX_FETCH_SECRET =
#--------------------------------------------------------------------
# SNOMED / CSNOTK TERMINOLOGY (OPTIONAL)
#--------------------------------------------------------------------
# Enable CSNOtk lookup support. HMS also auto-enables when a base URL is configured.
# snomed.csnotk.enabled = true
# Preferred key used in code.
# snomed.csnotk.baseUrl = https://csnotk.e-atria.in
# Backward-compatible alternative key.
# CSNOTK_BASE_URL = https://csnotk.e-atria.in
# Request timeout in seconds.
# snomed.csnotk.timeoutSec = 5