[06-Nov-2026 08:39:40 UTC] Migration 245: seeded branchtbl with 51 row(s) — stores
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded warehouse with 53 row(s) — warehouses behind those stores
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded towns with 77 row(s) — Kenyan towns
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded languages with 28 row(s) — languages
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded locum_v2_types with 6 row(s) — locum engagement types
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded cssd_instrument_sets with 3 row(s) — CSSD instrument sets
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded drug_safety_profiles with 30 row(s) — dose-safety CDS profiles
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded patient_education with 5 row(s) — patient education leaflets
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded fiscal_years with 1 row(s) — current fiscal year
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded qms_settings with 1 row(s) — queue-management defaults
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded receipt_settings with 1 row(s) — receipt field toggles
[06-Nov-2026 08:39:40 UTC] Migration 245: seeded theme_settings with 1 row(s) — default theme
[06-Nov-2026 08:40:18 UTC] [MigrationRunner] Applied: 262_schema_convergence_2 — Same tables and columns on every installation (second pass)
[06-Nov-2026 08:40:18 UTC] [MigrationRunner] Applied: 263_schema_convergence_3 — Same tables and columns on every installation (final fixes)
[06-Nov-2026 08:40:18 UTC] [MigrationRunner] Applied: 264_sha_biometric_consent — SHA biometric consent log
[06-Nov-2026 08:40:18 UTC] [MigrationRunner] Applied: 265_creditnote_writeoff — Credit note write-off mode
[06-Nov-2026 08:40:18 UTC] [MigrationRunner] Applied: 266_creditnote_width_and_identified_names — Credit note column width + identified patient names
[06-Nov-2026 08:40:18 UTC] [MigrationRunner] Applied: 267_creditnote_writeoff_line_repair — Repair write-off credit note lines
[06-Nov-2026 08:40:18 UTC] [MigrationRunner] Applied: 268_mwavuli_consent_documents — Mwavuli 360: consent and document status per encounter
[06-Nov-2026 08:40:18 UTC] [MigrationRunner] Applied: 269_mwavuli_preauth — Mwavuli 360: pre-authorisation status per encounter
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 270_fhir_api — FHIR API: clients, tokens, request log, LOINC map
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 271_discharge_med_approval — Discharge medicines: pharmacist approval
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 272_theatre_flow — Theatre billing flow: estimate, funding gate, charges at completion, fee schedule
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 273_ai_training — AfryxMed AI: training progress per staff member
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 274_dha_field_test — Break-glass emergency access grants + upload integrity hashes
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 275_discharge_death_details — Discharge tracking: date, time and cause of death
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 276_fp_register — Family planning register (MOH 512)
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 277_clinic_templates_missing — Assessment templates for specialist clinics without one
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 278_ct_referrals — CT scan referrals and referral commission
[06-Nov-2026 08:40:19 UTC] [MigrationRunner] Applied: 279_mar_order_link — MAR lines linked to Order Board medication orders; paused order status
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 280_newborn_immunization_to_kepi — Copy maternity-hub immunization doses into the KEPI register
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 281_pmtct_final_status — PMTCT outcome: one set of values (ongoing / not infected / infected / LTFU / transferred / died)
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 282_immunization_age_limits — KEPI vaccines: maximum age for each dose
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 283_consent_signatures — Patient consent: signer, witness and clinician signatures
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 284_visit_transfers — Visit transfers between clinics and OPD consultation
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 285_postnatal_register — Postnatal register: clinic-fed lines, delivery mode, EPDS
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 286_clinic_doses_to_kepi — MCH immunization list (Rota 3, IPV 2, TCV) + clinic doses to the KEPI register
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 287_stock_costs_in_cost_of_sales — Consumables issued + stock losses classified as Cost of Sales
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 288_classify_register_and_unclassified_ledgers — Classify till ledgers as cash; unclassified expenses as administrative
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 289_items_revenue_ledger_repair — Items with a missing / invalid revenue ledger mapped to their category ledger
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 290_lab_referrals — Referred-out laboratory tests: partners, test set-up, referrals
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 291_qms_daily_ticket — Queue: daily ticket per patient, derived stations, stale tickets expired
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 292_dama_referral_summaries — DAMA / referral discharge summaries: exit_details on the discharge tracker
[06-Nov-2026 11:40:19 Africa/Nairobi] [mig 293] no Expense ledger named "Consumables Issued..." / "Consumables..." on this site — consumables_expense left unset
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 293_consumables_expense_ledger — Seed consumables_expense ledger config by ledger name
[06-Nov-2026 11:40:19 Africa/Nairobi] [mig 294] idx_le_refno added
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 294_ledgerentries_refno_index — Index ledgerentries.refno
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 295_ipd_package_billing — IPD package billing: package row kinds + tempbill package tags
[06-Nov-2026 11:40:19 Africa/Nairobi] [MigrationRunner] Applied: 296_ipd_package_revenue_sha — IPD package billing: tempbill.rev_posted + ipd_packages.sha_code
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 297_lab_result_flags — Lab result flags: labrequests flag/critical/ack columns + labtestcomponents critical limits
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 298_admission_request_decline — Admission request decline: newprescription adm_declined_by/at/reason
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 299_theatre_unbilled_review — Unbilled surgeries: theatre_unbilled_review table + theatre_schedule (status, schedule_date) index
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 300_patient_export — Patient Export: access code 5285 (Admin/Director/Records) + returns(prescid) index
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 301_sha_visit_pending — SHA go-live readiness: hie_visit_pending (SHA visits that could not be opened)
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 302_unknown_patient_case — Unidentified patient case file: triage, condition, incident/police details, belongings log
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 303_leave_public_holiday — Leave requests for a named public holiday (leaves.holiday_id / holiday_name, PH leave type)
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 304_radiology_referral_scope — Referral commission: all radiology exams, on/off switch, referring facility
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 305_sales_date_normalise — sales.Date stored as yyyy/mm/dd (from Stamp) for old mixed-format rows
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 306_items_max_dispense — items.max_dispense_qty (hard cap per dispense line)
[06-Nov-2026 11:40:20 Africa/Nairobi] [MigrationRunner] Applied: 307_receipts_bill_list — receipts.bill_list (bills settled by one receipt, for faithful reprints)
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 308_stock_numeric_columns — items / stockbalances / stocktrack stock quantities as DECIMAL
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 309_hie_claim_tracking — HIE: elective auth_guid, adjudication status, automatic documents
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 310_hie_otp_whitelist — HIE: OTP whitelisting requests log
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 311_items_dha_generic_code — Items: national generic-product code (DHA eRx)
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 312_audit_retention_20y — Audit retention 20 years (LN 76/2025 reg. 12(c)(ii))
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 313_hie_callbacks_shr — HIE: status-callback inbox + SHR visits
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 314_biometric_log_zkteco — Fingerprint log: ZKTeco on-PC match events
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 315_ipd_discharge_agreements — Discharge on agreement (security held, payment plan)
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 316_remittance_lump_sums — Insurance remittance lump sums (unallocated receipts)
[06-Nov-2026 11:40:21 Africa/Nairobi] [MigrationRunner] Applied: 317_dhcf_safety_gaps — CDS alert log, pharmacovigilance, IDSR rumour log, allergy status, user soft delete
[06-Nov-2026 11:40:56 Africa/Nairobi] [MigrationRunner] Applied: 318_icd11_flag_unknown_codes — Flag diagnoses whose code is not in the ICD-11 MMS list
[06-Nov-2026 11:40:56 Africa/Nairobi] [MigrationRunner] Applied: 319_drug_side_effects — Side-effect information for prescribers (DHCF 4e)
[06-Nov-2026 11:40:56 Africa/Nairobi] [MigrationRunner] Applied: 320_clinical_profile — Problem list, diagnosis master deactivation, risk factors, family history, lifestyle (DHCF 1e/1g/1i/1n/1o/1v)
[06-Nov-2026 11:40:56 Africa/Nairobi] [MigrationRunner] Applied: 322_orders_prescribing_dhcf — Prescription form/generic/instructions, order specimen + e-signature, preferred drugs (DHCF 3.1-3.3)
[06-Nov-2026 11:40:56 Africa/Nairobi] [MigrationRunner] Applied: 324_dhcf_point_of_care — Clinic numbers, mother-child links, preventive reminders, MFL facilities (DHCF 1c/1l/1m/1u/4h)
[06-Nov-2026 11:40:56 Africa/Nairobi] [MigrationRunner] Applied: 325_growth_who_zscores — WHO z-scores on existing growth measurements (DHCF 1m)
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 326_dhcf_admin_security — Account expiry, unique usernames, clinical DB audit triggers, saved reports (DHCF 2c/2i/2n/5f)
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 327_interop_quality — Interoperability exchange log, external records, quality-measure imports (DHCF 6a / CQM)
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 328_lab_loinc_urinalysis — LOINC codes for the urinalysis panel and its items
[06-Nov-2026 11:40:57 Africa/Nairobi] [migration 329] CompletedAt back-fill: stamped 0, left open/skipped 0
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 329_opd_visit_completed_backfill — Back-fill CompletedAt on outpatient visits that finished before 5.6.41
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 330_sales_refno_index — Index sales.RefNo for request paid-lookups
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 331_cr_link_ichi — Client Registry id on patients; ICHI codes on procedure masters
[06-Nov-2026 11:40:57 Africa/Nairobi] [migration 332] dosage: 16 duplicate rows removed; route: 13 duplicate rows removed; patients: 0 SHA members given scheme 'SHIF'; sales: 0 unpaid lab/rad lines flagged to the insurer
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 332_walkthrough_repairs — Dedupe dosage/route; SHA scheme on CR patients; insurance flag on unpaid lab/rad lines of insurance visits
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 333_sha_uhc_scheme — UHC scheme under the SHA debtor
[06-Nov-2026 11:40:57 Africa/Nairobi] [migration 334] pharm_returns.status: enum('pending','approved','completed','rejected') -> confirmed added; blank statuses repaired
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 334_returns_queue_storekeeper — pharm_returns.status accepts confirmed; Returns Queue access for store keepers
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 335_loinc_cbc_malaria — LOINC codes for full blood count names/components and the malaria slide
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 336_patient_paytype_cash_drift — Cash patients whose paytype still said Insurance
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 337_employee_hwr — Health Worker Registry verification on the employee record
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 338_dha_terminology — National terminology (Investigations/LOINC, HPT, SHA interventions, ICHI) and codes on items
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 339_hie_intervention_cache — Per-member cache of the SHA package list for the Activate Visit card
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 340_hie_bio_reason — Biometrics authorisation: SHA reason and notes
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 341_optical_clinic — Optical Clinic (specialist clinic for the Optical module)
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 342_optical_clinic_icon — Optical Clinic icon name
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 343_optical_items — Optical services in the item master
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 344_route_ophthalmic — Ophthalmic drug route
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 345_hie_visits_moved_from — hie_visits.moved_from
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 346_assets_photo — assets.photo
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 347_labrequests_report_file — labrequests.report_file
[06-Nov-2026 11:40:57 Africa/Nairobi] [MigrationRunner] Applied: 348_fp_services — family planning services on the price list
[06-Nov-2026 11:40:57 Africa/Nairobi] [dbconn] Auto-applied migrations: 262_schema_convergence_2, 263_schema_convergence_3, 264_sha_biometric_consent, 265_creditnote_writeoff, 266_creditnote_width_and_identified_names, 267_creditnote_writeoff_line_repair, 268_mwavuli_consent_documents, 269_mwavuli_preauth, 270_fhir_api, 271_discharge_med_approval, 272_theatre_flow, 273_ai_training, 274_dha_field_test, 275_discharge_death_details, 276_fp_register, 277_clinic_templates_missing, 278_ct_referrals, 279_mar_order_link, 280_newborn_immunization_to_kepi, 281_pmtct_final_status, 282_immunization_age_limits, 283_consent_signatures, 284_visit_transfers, 285_postnatal_register, 286_clinic_doses_to_kepi, 287_stock_costs_in_cost_of_sales, 288_classify_register_and_unclassified_ledgers, 289_items_revenue_ledger_repair, 290_lab_referrals, 291_qms_daily_ticket, 292_dama_referral_summaries, 293_consumables_expense_ledger, 294_ledgerentries_refno_index, 295_ipd_package_billing, 296_ipd_package_revenue_sha, 297_lab_result_flags, 298_admission_request_decline, 299_theatre_unbilled_review, 300_patient_export, 301_sha_visit_pending, 302_unknown_patient_case, 303_leave_public_holiday, 304_radiology_referral_scope, 305_sales_date_normalise, 306_items_max_dispense, 307_receipts_bill_list, 308_stock_numeric_columns, 309_hie_claim_tracking, 310_hie_otp_whitelist, 311_items_dha_generic_code, 312_audit_retention_20y, 313_hie_callbacks_shr, 314_biometric_log_zkteco, 315_ipd_discharge_agreements, 316_remittance_lump_sums, 317_dhcf_safety_gaps, 318_icd11_flag_unknown_codes, 319_drug_side_effects, 320_clinical_profile, 322_orders_prescribing_dhcf, 324_dhcf_point_of_care, 325_growth_who_zscores, 326_dhcf_admin_security, 327_interop_quality, 328_lab_loinc_urinalysis, 329_opd_visit_completed_backfill, 330_sales_refno_index, 331_cr_link_ichi, 332_walkthrough_repairs, 333_sha_uhc_scheme, 334_returns_queue_storekeeper, 335_loinc_cbc_malaria, 336_patient_paytype_cash_drift, 337_employee_hwr, 338_dha_terminology, 339_hie_intervention_cache, 340_hie_bio_reason, 341_optical_clinic, 342_optical_clinic_icon, 343_optical_items, 344_route_ophthalmic, 345_hie_visits_moved_from, 346_assets_photo, 347_labrequests_report_file, 348_fp_services
[06-Nov-2026 11:40:57 Africa/Nairobi] [AfyaMed] License gate refused request: not_activated
[06-Nov-2026 08:45:15 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-06 08:45:15","metrics":{"trial_balance":{"dr":0,"cr":0,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"0","worst":null},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-11-06 08:45:15","alert_count":0}
[06-Nov-2026 11:45:15 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-06 11:45:15","tomorrow":"2026-11-07","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-06 11:45:15"}
[06-Nov-2026 11:45:15 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-06 11:45:15","mode":"shutdown_hook","date":"2026-11-06","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-06 11:45:15"}
[06-Nov-2026 11:45:15 Africa/Nairobi] [cron_pharm_abandoned_dispense] {"run_id":"AB-20261106114515-22e11a","mode":"apply","grace_days":7,"candidates":0,"reversed":0,"skipped":0,"errors":[]}
[06-Nov-2026 10:43:25 UTC] [AfyaMed] License gate refused request: wrong_domain
[06-Nov-2026 10:43:26 UTC] [AfyaMed] License gate refused request: wrong_domain
[06-Nov-2026 14:36:12 UTC] [AfyaMed] License gate refused request: wrong_domain
[06-Nov-2026 14:36:24 UTC] [AfyaMed] License gate refused request: wrong_domain
[06-Nov-2026 20:00:11 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-06 20:00:11","date":"2026-11-06","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[07-Nov-2026 00:00:11 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-07 00:00:11","metrics":{"trial_balance":{"dr":0,"cr":0,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"0","worst":null},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-11-07 00:00:11","alert_count":0}
[07-Nov-2026 03:00:12 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-07 03:00:12","tomorrow":"2026-11-08","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-07 03:00:12"}
[07-Nov-2026 03:00:12 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[07-Nov-2026 03:00:12 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[07-Nov-2026 10:00:09 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-07 10:00:09","mode":"shutdown_hook","date":"2026-11-07","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-07 10:00:09"}
[07-Nov-2026 17:23:05 Africa/Nairobi] [NEW VISIT] regn=IDS-000002 pattype=0 sendto=GENERAL CONSULTATIONS nofee_raw='0' nofee_int=0 services_len=120
[07-Nov-2026 17:23:24 Africa/Nairobi] DB Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'portion FROM sales WHERE RcptNo IN ('6543') AND (Status=0 OR (Status=2 AND CO...' at line 1 | SQL: SELECT TransNo, (CASE WHEN Status=2 THEN COALESCE(Balance,0) ELSE COALESCE(TotalPrice,0) END) AS portion FROM sales WHERE RcptNo IN ('6543') AND (Status=0 OR (Status=2 AND COALESCE(AmountPaid,0)>0 AND COALESCE(Balance,0)
[07-Nov-2026 17:23:24 Africa/Nairobi] [LEDGER IMBALANCE] Journal rcptno=JV-2026-0001: debits=500, credits=0, diff=500.00 context=case12 receipt RCT-2026-0001 strict=
[07-Nov-2026 17:33:11 Africa/Nairobi] [ACCT WARNING] Inventory (lid=630) Asset cache now -363898.82 after Debit of 3600. Journal: Stock Adjustment GAIN-ZULU MR TABS [575]-Variance No:1
[07-Nov-2026 17:33:32 Africa/Nairobi] [ACCT WARNING] Inventory (lid=630) Asset cache now -364618.82 after Credit of 720. Journal: COGS-ZULU MR TABS x20 [575]{q:20} for LAWRENCE MWANGI WACHIRA
[07-Nov-2026 17:34:22 Africa/Nairobi] DB Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'portion FROM sales WHERE RcptNo IN ('6545') AND (Status=0 OR (Status=2 AND CO...' at line 1 | SQL: SELECT TransNo, (CASE WHEN Status=2 THEN COALESCE(Balance,0) ELSE COALESCE(TotalPrice,0) END) AS portion FROM sales WHERE RcptNo IN ('6545') AND (Status=0 OR (Status=2 AND COALESCE(AmountPaid,0)>0 AND COALESCE(Balance,0)
[07-Nov-2026 17:34:22 Africa/Nairobi] [LEDGER IMBALANCE] Journal rcptno=JV-2026-0004: debits=1200, credits=0, diff=1,200.00 context=case12 receipt RCT-2026-0002 strict=
[07-Nov-2026 14:36:38 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:38 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:38 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:38 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:38 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:38 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:45 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:51 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:52 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:52 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:52 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:52 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:36:53 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:36 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:36 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:36 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:36 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:37 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:37 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:43 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:43 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:43 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:43 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:43 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:43 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:43 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:43 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 35
[07-Nov-2026 14:53:44 UTC] PHP Warning:  Undefined variable $keyOk in /home2/afryxmedcke/index.afryxmed.co.ke/afm_hie_callback.php on line 59
[07-Nov-2026 15:28:28 UTC] [AfyaMed] License gate refused request: wrong_domain
[07-Nov-2026 20:00:10 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-07 20:00:10","date":"2026-11-07","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[07-Nov-2026 20:00:10 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[07-Nov-2026 20:00:10 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[08-Nov-2026 00:00:11 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-08 00:00:10","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-08 00:00:11","alert_count":2}
[08-Nov-2026 03:00:11 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-08 03:00:11","tomorrow":"2026-11-09","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-08 03:00:11"}
[08-Nov-2026 10:00:08 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-08 10:00:08","mode":"shutdown_hook","date":"2026-11-08","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-08 10:00:08"}
[08-Nov-2026 11:27:40 UTC] [AfyaMed] License gate refused request: wrong_domain
[08-Nov-2026 20:00:14 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-08 20:00:14","date":"2026-11-08","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[08-Nov-2026 20:00:14 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[08-Nov-2026 20:00:14 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[08-Nov-2026 18:54:38 UTC] [AfyaMed] License gate refused request: wrong_domain
[09-Nov-2026 00:00:07 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-09 00:00:07","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-09 00:00:07","alert_count":2}
[09-Nov-2026 03:00:07 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-09 03:00:07","tomorrow":"2026-11-10","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-09 03:00:07"}
[09-Nov-2026 10:00:11 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-09 10:00:11","mode":"shutdown_hook","date":"2026-11-09","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-09 10:00:11"}
[09-Nov-2026 07:37:16 UTC] [migration 351] returns access granted to pharmacy roles
[09-Nov-2026 08:38:50 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:38:50: Connection refused
[09-Nov-2026 08:38:52 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:38:52: 
[09-Nov-2026 08:38:52 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:38:52: 
[09-Nov-2026 08:39:22 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:22: Connection refused
[09-Nov-2026 08:39:26 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:26: 
[09-Nov-2026 08:39:32 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:32: 
[09-Nov-2026 08:39:50 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:50: Connection refused
[09-Nov-2026 08:39:51 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:51: 
[09-Nov-2026 08:39:52 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:52: 
[09-Nov-2026 08:39:52 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:52: 
[09-Nov-2026 08:39:52 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:52: 
[09-Nov-2026 08:39:57 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:57: 
[09-Nov-2026 08:39:57 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:39:57: 
[09-Nov-2026 08:40:11 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:40:11: Connection refused
[09-Nov-2026 08:40:31 UTC] [AfyaMed] DB connection failed at 2026-11-09 08:40:31: Connection refused
[09-Nov-2026 20:00:12 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-09 20:00:12","date":"2026-11-09","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[10-Nov-2026 00:00:10 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-10 00:00:10","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-10 00:00:10","alert_count":2}
[10-Nov-2026 03:00:10 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-10 03:00:10","tomorrow":"2026-11-11","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-10 03:00:10"}
[10-Nov-2026 10:00:12 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-10 10:00:12","mode":"shutdown_hook","date":"2026-11-10","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-10 10:00:12"}
[10-Nov-2026 12:31:45 UTC] [AfyaMed] License gate refused request: wrong_domain
[10-Nov-2026 20:00:11 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-10 20:00:11","date":"2026-11-10","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[11-Nov-2026 00:00:11 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-11 00:00:11","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-11 00:00:11","alert_count":2}
[11-Nov-2026 03:00:11 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-11 03:00:11","tomorrow":"2026-11-12","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-11 03:00:11"}
[11-Nov-2026 10:00:13 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-11 10:00:13","mode":"shutdown_hook","date":"2026-11-11","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-11 10:00:13"}
[11-Nov-2026 20:00:10 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-11 20:00:10","date":"2026-11-11","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[12-Nov-2026 00:00:14 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-12 00:00:14","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-12 00:00:14","alert_count":2}
[12-Nov-2026 03:00:14 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-12 03:00:14","tomorrow":"2026-11-13","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-12 03:00:14"}
[12-Nov-2026 10:00:13 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-12 10:00:13","mode":"shutdown_hook","date":"2026-11-12","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-12 10:00:13"}
[12-Nov-2026 16:22:30 UTC] [migration 356] linked 0 birth(s) to existing patients
[12-Nov-2026 20:00:09 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-12 20:00:09","date":"2026-11-12","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[12-Nov-2026 21:29:11 UTC] [migration 357] ICD-11 residual codes added 5374, already present 0, names fixed 30
[12-Nov-2026 21:38:35 UTC] [migration 358] ICD-11 WHO links set on 18505 rows
[13-Nov-2026 00:00:08 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-13 00:00:08","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-13 00:00:08","alert_count":2}
[13-Nov-2026 03:00:09 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-13 03:00:09","tomorrow":"2026-11-14","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-13 03:00:09"}
[13-Nov-2026 10:00:09 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-13 10:00:09","mode":"shutdown_hook","date":"2026-11-13","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-13 10:00:09"}
[13-Nov-2026 08:44:20 UTC] [migration 360] oncology cycles repaired: 0 administered, 0 planned
[13-Nov-2026 12:27:05 UTC] [AfyaMed] License gate refused request: wrong_domain
[13-Nov-2026 20:00:09 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-13 20:00:09","date":"2026-11-13","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[14-Nov-2026 00:00:09 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-14 00:00:09","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-14 00:00:09","alert_count":2}
[14-Nov-2026 03:00:09 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-14 03:00:09","tomorrow":"2026-11-15","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-14 03:00:09"}
[14-Nov-2026 10:00:11 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-14 10:00:11","mode":"shutdown_hook","date":"2026-11-14","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-14 10:00:11"}
[14-Nov-2026 20:00:11 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-14 20:00:11","date":"2026-11-14","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[15-Nov-2026 00:00:09 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-15 00:00:09","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-15 00:00:09","alert_count":2}
[15-Nov-2026 03:00:09 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-15 03:00:09","tomorrow":"2026-11-16","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-15 03:00:09"}
[15-Nov-2026 10:00:07 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-15 10:00:07","mode":"shutdown_hook","date":"2026-11-15","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-15 10:00:07"}
[15-Nov-2026 20:00:09 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-15 20:00:09","date":"2026-11-15","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[16-Nov-2026 00:00:08 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-16 00:00:08","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-16 00:00:08","alert_count":2}
[16-Nov-2026 03:00:08 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-16 03:00:08","tomorrow":"2026-11-17","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-16 03:00:08"}
[16-Nov-2026 10:00:08 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-16 10:00:08","mode":"shutdown_hook","date":"2026-11-16","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-16 10:00:08"}
[16-Nov-2026 20:00:10 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-16 20:00:10","date":"2026-11-16","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[17-Nov-2026 00:00:11 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-17 00:00:11","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-17 00:00:11","alert_count":2}
[17-Nov-2026 03:00:11 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-17 03:00:11","tomorrow":"2026-11-18","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-17 03:00:11"}
[17-Nov-2026 10:00:10 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-17 10:00:10","mode":"shutdown_hook","date":"2026-11-17","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-17 10:00:10"}
[17-Nov-2026 10:32:24 UTC] [AfyaMed] DB connection failed at 2026-11-17 10:32:24: Connection refused
[17-Nov-2026 10:34:22 UTC] [AfyaMed] DB connection failed at 2026-11-17 10:34:22: Connection refused
[17-Nov-2026 10:34:41 UTC] [AfyaMed] DB connection failed at 2026-11-17 10:34:41: 
[17-Nov-2026 10:35:22 UTC] [AfyaMed] DB connection failed at 2026-11-17 10:35:22: Connection refused
[17-Nov-2026 12:06:46 UTC] [AfyaMed] License gate refused request: wrong_domain
[17-Nov-2026 20:00:12 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-17 20:00:12","date":"2026-11-17","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[18-Nov-2026 00:00:09 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-18 00:00:09","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-18 00:00:09","alert_count":2}
[18-Nov-2026 03:00:10 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-18 03:00:10","tomorrow":"2026-11-19","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-18 03:00:10"}
[18-Nov-2026 03:00:10 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[18-Nov-2026 03:00:10 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[18-Nov-2026 10:00:12 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-18 10:00:12","mode":"shutdown_hook","date":"2026-11-18","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-18 10:00:12"}
[18-Nov-2026 20:00:15 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-18 20:00:15","date":"2026-11-18","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[19-Nov-2026 00:00:09 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-19 00:00:09","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-19 00:00:09","alert_count":2}
[19-Nov-2026 03:00:10 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-19 03:00:10","tomorrow":"2026-11-20","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-19 03:00:10"}
[19-Nov-2026 03:00:10 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[19-Nov-2026 03:00:10 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[19-Nov-2026 10:00:20 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-19 10:00:20","mode":"shutdown_hook","date":"2026-11-19","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-19 10:00:20"}
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE patient_cr_mapping ADD COLUMN IF NOT EXISTS biometric_template MEDIUMBLOB DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE patient_cr_mapping ADD COLUMN IF NOT EXISTS biometric_format VARCHAR(30) DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE patient_cr_mapping ADD COLUMN IF NOT EXISTS biometric_quality TINYINT DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE patient_cr_mapping ADD COLUMN IF NOT EXISTS finger_position VARCHAR(20) DEFAULT 'RIGHT_INDEX'
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE patient_cr_mapping ADD COLUMN IF NOT EXISTS enrolled_at DATETIME DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE patient_cr_mapping ADD COLUMN IF NOT EXISTS enrolled_by VARCHAR(100) DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE patient_cr_mapping ADD COLUMN IF NOT EXISTS device_serial VARCHAR(80) DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE ipd_pre_auth ADD COLUMN IF NOT EXISTS biometric_method ENUM('FINGERPRINT','OTP','MANUAL','NONE') DEFAULT 'NO
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE ipd_pre_auth ADD COLUMN IF NOT EXISTS biometric_token VARCHAR(200) DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE ipd_pre_auth ADD COLUMN IF NOT EXISTS biometric_verified_at DATETIME DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE ipd_pre_auth ADD COLUMN IF NOT EXISTS biometric_verified_by VARCHAR(100) DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE insurance_claims ADD COLUMN IF NOT EXISTS biometric_method ENUM('FINGERPRINT','OTP','MANUAL','NONE') DEFAULT
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE insurance_claims ADD COLUMN IF NOT EXISTS biometric_token VARCHAR(200) DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE insurance_claims ADD COLUMN IF NOT EXISTS biometric_verified_at DATETIME DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE newprescription ADD COLUMN IF NOT EXISTS biometric_method ENUM('FINGERPRINT','OTP','MANUAL','NONE') DEFAULT 
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE newprescription ADD COLUMN IF NOT EXISTS biometric_token VARCHAR(200) DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE newprescription ADD COLUMN IF NOT EXISTS biometric_verified_at DATETIME DEFAULT NULL
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE schemes ADD COLUMN IF NOT EXISTS requires_biometric_at_visit   TINYINT(1) DEFAULT 0
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE schemes ADD COLUMN IF NOT EXISTS requires_biometric_at_preauth TINYINT(1) DEFAULT 0
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: ALTER TABLE schemes ADD COLUMN IF NOT EXISTS requires_biometric_at_claim   TINYINT(1) DEFAULT 0
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: UPDATE schemes SET requires_biometric_at_visit=1, requires_biometric_at_preauth=1, requires_biometric_at_claim=1
       
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: CREATE TABLE IF NOT EXISTS patient_biometric_log (
            id INT AUTO_INCREMENT PRIMARY KEY,
            patid VARC
[19-Nov-2026 10:15:22 UTC] [mig 086] MySQL server has gone away :: CREATE TABLE IF NOT EXISTS patient_otp_codes (
            id INT AUTO_INCREMENT PRIMARY KEY,
            patid VARCHAR(
[19-Nov-2026 10:15:22 UTC] [mig 087] MySQL server has gone away
[19-Nov-2026 10:15:22 UTC] [mig 087] MySQL server has gone away
[19-Nov-2026 10:15:22 UTC] [mig 087] MySQL server has gone away
[19-Nov-2026 10:15:22 UTC] [mig 087] MySQL server has gone away
[19-Nov-2026 10:15:22 UTC] [mig 087] MySQL server has gone away
[19-Nov-2026 10:15:24 UTC] [AfyaMed] DB connection failed at 2026-11-19 10:15:24: Connection refused
[19-Nov-2026 10:15:31 UTC] [AfyaMed] DB connection failed at 2026-11-19 10:15:31: 
[19-Nov-2026 20:00:12 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-19 20:00:12","date":"2026-11-19","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[20-Nov-2026 00:00:16 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-20 00:00:16","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-20 00:00:16","alert_count":2}
[20-Nov-2026 03:00:16 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-20 03:00:16","tomorrow":"2026-11-21","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-20 03:00:16"}
[20-Nov-2026 10:00:14 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-20 10:00:14","mode":"shutdown_hook","date":"2026-11-20","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-20 10:00:14"}
[20-Nov-2026 20:00:12 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-20 20:00:12","date":"2026-11-20","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[21-Nov-2026 00:00:13 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-21 00:00:13","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-21 00:00:13","alert_count":2}
[21-Nov-2026 03:00:14 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-21 03:00:14","tomorrow":"2026-11-22","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-21 03:00:14"}
[21-Nov-2026 10:00:09 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-21 10:00:09","mode":"shutdown_hook","date":"2026-11-21","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-21 10:00:09"}
[21-Nov-2026 20:00:14 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-21 20:00:14","date":"2026-11-21","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[22-Nov-2026 00:00:11 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-22 00:00:11","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-22 00:00:11","alert_count":2}
[22-Nov-2026 03:00:11 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-22 03:00:11","tomorrow":"2026-11-23","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-22 03:00:11"}
[22-Nov-2026 10:00:12 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-22 10:00:12","mode":"shutdown_hook","date":"2026-11-22","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-22 10:00:12"}
[22-Nov-2026 11:55:20 UTC] [AfyaMed] License gate refused request: wrong_domain
[22-Nov-2026 11:55:20 UTC] [AfyaMed] License gate refused request: wrong_domain
[22-Nov-2026 11:55:20 UTC] [AfyaMed] License gate refused request: wrong_domain
[22-Nov-2026 20:00:12 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-22 20:00:12","date":"2026-11-22","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[23-Nov-2026 00:00:09 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-23 00:00:09","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-23 00:00:09","alert_count":2}
[23-Nov-2026 03:00:10 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-23 03:00:10","tomorrow":"2026-11-24","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-23 03:00:10"}
[23-Nov-2026 10:00:11 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-23 10:00:11","mode":"shutdown_hook","date":"2026-11-23","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-23 10:00:11"}
[23-Nov-2026 10:00:11 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[23-Nov-2026 10:00:11 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[23-Nov-2026 20:00:16 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-23 20:00:16","date":"2026-11-23","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[24-Nov-2026 00:00:12 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-24 00:00:12","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-24 00:00:12","alert_count":2}
[24-Nov-2026 03:00:13 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-24 03:00:13","tomorrow":"2026-11-25","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-24 03:00:13"}
[24-Nov-2026 10:00:15 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-24 10:00:15","mode":"shutdown_hook","date":"2026-11-24","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-24 10:00:15"}
[24-Nov-2026 20:00:14 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-24 20:00:14","date":"2026-11-24","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[25-Nov-2026 00:00:10 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-25 00:00:10","metrics":{"trial_balance":{"dr":6020,"cr":4320,"diff":1700},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"2"}},"alerts":[{"severity":"CRITICAL","metric":"trial_balance","amount":1700,"details":"Trial balance off by KES 1,700.00 (DR 6020, CR 4320)"},{"severity":"HIGH","metric":"unbalanced_journals","amount":0,"details":"2 individual journal(s) have DR \u2260 CR by > KES 1. Inspect via \/dbstream.php?id=bal_check"}],"completed_at":"2026-11-25 00:00:10","alert_count":2}
[25-Nov-2026 03:00:11 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-25 03:00:11","tomorrow":"2026-11-26","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-25 03:00:11"}
[25-Nov-2026 10:00:19 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-25 10:00:19","mode":"shutdown_hook","date":"2026-11-25","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-25 10:00:19"}
[25-Nov-2026 10:00:19 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[25-Nov-2026 10:00:19 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[25-Nov-2026 20:00:15 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-25 20:00:15","date":"2026-11-25","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[26-Nov-2026 00:00:11 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-26 00:00:11","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-11-26 00:00:11","alert_count":0}
[26-Nov-2026 03:00:11 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-26 03:00:11","tomorrow":"2026-11-27","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-26 03:00:11"}
[26-Nov-2026 10:30:11 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-26 10:30:11","mode":"shutdown_hook","date":"2026-11-26","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-26 10:30:11"}
[26-Nov-2026 10:30:11 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[26-Nov-2026 10:30:11 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[26-Nov-2026 09:25:51 UTC] [mig 401] payer flag restored: 0 insurance / SHA, 0 cash
[26-Nov-2026 20:00:11 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-26 20:00:11","date":"2026-11-26","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[27-Nov-2026 00:00:09 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-27 00:00:09","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-11-27 00:00:09","alert_count":0}
[27-Nov-2026 03:00:10 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-27 03:00:10","tomorrow":"2026-11-28","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-27 03:00:10"}
[27-Nov-2026 10:00:09 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-27 10:00:09","mode":"shutdown_hook","date":"2026-11-27","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-27 10:00:09"}
[27-Nov-2026 20:00:09 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-27 20:00:09","date":"2026-11-27","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[27-Nov-2026 17:55:09 UTC] [AfyaMed] License gate refused request: wrong_domain
[28-Nov-2026 00:00:09 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-28 00:00:09","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-11-28 00:00:09","alert_count":0}
[28-Nov-2026 03:00:09 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-28 03:00:09","tomorrow":"2026-11-29","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-28 03:00:09"}
[28-Nov-2026 10:00:11 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-28 10:00:11","mode":"shutdown_hook","date":"2026-11-28","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-28 10:00:11"}
[28-Nov-2026 10:00:11 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[28-Nov-2026 10:00:11 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[28-Nov-2026 20:00:11 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-28 20:00:11","date":"2026-11-28","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[29-Nov-2026 00:00:11 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-29 00:00:10","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-11-29 00:00:11","alert_count":0}
[29-Nov-2026 03:00:11 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-29 03:00:11","tomorrow":"2026-11-30","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-29 03:00:11"}
[29-Nov-2026 10:00:08 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-29 10:00:08","mode":"shutdown_hook","date":"2026-11-29","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-29 10:00:08"}
[29-Nov-2026 10:00:08 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[29-Nov-2026 10:00:08 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[29-Nov-2026 20:00:08 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-29 20:00:08","date":"2026-11-29","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[30-Nov-2026 00:00:08 UTC] [ACCT HEALTH CRON] {"started_at":"2026-11-30 00:00:08","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-11-30 00:00:08","alert_count":0}
[30-Nov-2026 03:00:08 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-11-30 03:00:08","tomorrow":"2026-12-01","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-11-30 03:00:08"}
[30-Nov-2026 10:00:09 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-11-30 10:00:09","mode":"shutdown_hook","date":"2026-11-30","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-11-30 10:00:09"}
[30-Nov-2026 20:00:07 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-11-30 20:00:07","date":"2026-11-30","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[01-Dec-2026 00:00:08 UTC] [ACCT HEALTH CRON] {"started_at":"2026-12-01 00:00:08","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-12-01 00:00:08","alert_count":0}
[01-Dec-2026 03:00:09 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-12-01 03:00:09","tomorrow":"2026-12-02","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-12-01 03:00:09"}
[01-Dec-2026 10:00:08 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-12-01 10:00:08","mode":"shutdown_hook","date":"2026-12-01","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-12-01 10:00:08"}
[01-Dec-2026 10:00:08 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[01-Dec-2026 10:00:08 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[01-Dec-2026 20:00:08 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-12-01 20:00:08","date":"2026-12-01","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[01-Dec-2026 23:12:38 UTC] [migration 484] Healthcare Integration opened to reception, cashiers, accounts and claims
[02-Dec-2026 00:00:07 UTC] [ACCT HEALTH CRON] {"started_at":"2026-12-02 00:00:07","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-12-02 00:00:07","alert_count":0}
[02-Dec-2026 03:00:08 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-12-02 03:00:08","tomorrow":"2026-12-03","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-12-02 03:00:08"}
[02-Dec-2026 10:00:09 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-12-02 10:00:08","mode":"shutdown_hook","date":"2026-12-02","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-12-02 10:00:09"}
[02-Dec-2026 10:00:09 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[02-Dec-2026 10:00:09 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[02-Dec-2026 08:00:13 UTC] [MigrationRunner] Applied: 485_transfusion_hourly_observations — Blood transfusion chart: hourly observations (RR, volume, rate, reaction signs)
[02-Dec-2026 08:00:13 UTC] [dbconn] Auto-applied migrations: 485_transfusion_hourly_observations
[02-Dec-2026 09:15:11 UTC] [MigrationRunner] Applied: 451_rx_panel_order_type — Order Board orders from the prescription panel are medication orders
[02-Dec-2026 09:15:11 UTC] [MigrationRunner] Applied: 452_receipt_refund_from_credit — Receipts: refund paid out of credit from elsewhere
[02-Dec-2026 09:15:11 UTC] [MigrationRunner] Applied: 460_stock_cost_notes — Stock cost notes: cost true-ups done and stock that still has no cost
[02-Dec-2026 09:15:11 UTC] [MigrationRunner] Applied: 470_stock_control_rules — Stock control: one adjustment rule, count at the moment of counting, transfer shortages, lot change history, store levels
[02-Dec-2026 09:15:11 UTC] [MigrationRunner] Applied: 480_ledger_audit_columns — Journal lines: entered by and entered at
[02-Dec-2026 09:15:11 UTC] [MigrationRunner] Applied: 481_bank_recon_months — Bank reconciliation: monthly record with sign-off, several ledger lines per statement line
[02-Dec-2026 09:15:11 UTC] [MigrationRunner] Applied: 482_fixed_assets_books — Fixed assets: monthly depreciation run record, disposal record, ledger roles
[02-Dec-2026 09:15:11 UTC] [dbconn] Auto-applied migrations: 451_rx_panel_order_type, 452_receipt_refund_from_credit, 460_stock_cost_notes, 470_stock_control_rules, 480_ledger_audit_columns, 481_bank_recon_months, 482_fixed_assets_books
[02-Dec-2026 11:23:49 UTC] [migration 486] hospital fingerprint switched off for 2 SHA scheme(s)
[02-Dec-2026 11:23:49 UTC] [MigrationRunner] Applied: 486_sha_schemes_no_hospital_fingerprint — SHA schemes: the hospital fingerprint check is no longer compulsory (SHA consent covers it)
[02-Dec-2026 20:00:08 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-12-02 20:00:08","date":"2026-12-02","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[02-Dec-2026 20:37:20 UTC] [migration 487] SHA mappings corrected: 28, confirmed as right: 12
[02-Dec-2026 20:37:20 UTC] [MigrationRunner] Applied: 487_sha_mapping_corrections — SHA mapping corrections: services on a package they do not fit (orthoses, consultations, reviews, surgery)
[02-Dec-2026 20:51:47 UTC] [migration 488] SHA Level 5 schedule amounts loaded: 689
[02-Dec-2026 20:51:47 UTC] [MigrationRunner] Applied: 488_sha_level5_tariffs — SHA Level 5 schedule amounts (sha_level_tariffs)
[02-Dec-2026 20:51:47 UTC] [migration 489] SHA mappings corrected: 0, confirmed as right: 0
[02-Dec-2026 20:51:47 UTC] [MigrationRunner] Applied: 489_sha_mapping_corrections_sites — SHA mapping corrections: each site's own mis-mapped consultations, reviews, lab and therapy
[02-Dec-2026 21:24:00 UTC] [migration 491] SHA Covered set on 0 schedule services; SHA codes for Code mapping: 1268; services mapped by exact name: 0; pre-authorisation flags: {"checked":2215,"set_need":19,"set_none":1,"unknown":0,"kept_always":0}
[02-Dec-2026 21:24:04 UTC] [migration 492] ICHI for SHA schedule procedures: 0 coded, 0 listed for review
[02-Dec-2026 21:27:05 UTC] [migration 493] DHA investigation codes for SHA schedule services: 0 coded, 0 listed for review
[03-Dec-2026 00:00:10 UTC] [ACCT HEALTH CRON] {"started_at":"2026-12-03 00:00:10","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-12-03 00:00:10","alert_count":0}
[03-Dec-2026 03:00:10 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-12-03 03:00:10","tomorrow":"2026-12-04","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-12-03 03:00:10"}
[03-Dec-2026 05:40:58 UTC] [migration 494] dialysis package parts linked to stock items: 3
[03-Dec-2026 05:40:58 UTC] [migration 495] AV fistula needles item created 5839, parts linked 1, duplicate packages switched off: none
[03-Dec-2026 05:40:58 UTC] [migration 496] unused dialysis packages removed: none
[03-Dec-2026 05:40:58 UTC] [migration 494] dialysis package parts linked to stock items: 0
[03-Dec-2026 05:40:58 UTC] [migration 495] AV fistula needles item not created (exists or not needed), parts linked 0, duplicate packages switched off: none
[03-Dec-2026 05:40:58 UTC] [migration 498] dialysis package not created (exists or no dialysis service)
[03-Dec-2026 05:46:38 UTC] [migration 494] dialysis package parts linked to stock items: 0
[03-Dec-2026 05:46:38 UTC] [migration 499] EPO unlinked 0; package #1 ACTIVE
[03-Dec-2026 11:00:13 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-12-03 11:00:12","mode":"shutdown_hook","date":"2026-12-03","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-12-03 11:00:13"}
[03-Dec-2026 11:00:14 Africa/Nairobi] [cron_sha_claim_watch] pre-auths checked 0, changed 0
[03-Dec-2026 11:00:14 Africa/Nairobi] [cron_sha_claim_watch] checked 0, received 0, not received 0, re-sent 0, decided by the payer 0
[03-Dec-2026 20:00:10 Africa/Nairobi] [DAILY SUMMARY] {"started_at":"2026-12-03 20:00:10","date":"2026-12-03","to":"info@afryxmed.co.ke","sent":false,"detail":"Email settings not configured."}
[04-Dec-2026 00:00:09 UTC] [ACCT HEALTH CRON] {"started_at":"2026-12-04 00:00:09","metrics":{"trial_balance":{"dr":6020,"cr":6020,"diff":0},"group_ledger_postings":{"group_lids":"0","rcount":"0","tot":null},"orphan_ledger_entries":{"orphan_lids":"0","rcount":"0","net_abs":null},"wrong_sign_ledgers":{"cnt":"1","worst":"3600.00"},"unbalanced_journals":{"cnt":"0"}},"alerts":[],"completed_at":"2026-12-04 00:00:09","alert_count":0}
[04-Dec-2026 03:00:10 Africa/Nairobi] [APPT REMINDERS] {"started_at":"2026-12-04 03:00:10","tomorrow":"2026-12-05","candidates":0,"sent":0,"failed":0,"failures":[],"completed_at":"2026-12-04 03:00:10"}
[04-Dec-2026 01:11:34 UTC] [AfyaMed] License gate refused request: wrong_domain
[04-Dec-2026 10:00:12 Africa/Nairobi] [COURSE REMINDERS] {"started_at":"2026-12-04 10:00:12","mode":"shutdown_hook","date":"2026-12-04","candidates":0,"sent":0,"skipped":0,"failed":0,"failures":[],"completed_at":"2026-12-04 10:00:12"}
