Shifa One â€” Medical Platform Feature List

## Platform Foundation

Modules: MedOrganization Â· MedRegistry â€” Phase 1 (commit 50fbdd8)

Feature | Details | Status
--- | --- | ---
Business-type setup wizard | 10 presets (Hospital, Polyclinic, Single-Specialty Clinic, BioClinic, Laboratory, Imaging Center, Pharmacy, Dialysis, Physiotherapy, Diagnostic Center) + Custom â€” pick type â†’ confirm modules â†’ install (`/med-setup`) | LIVE
Module registry & catalog | All 83+ platform modules catalogued with medical metadata (category, dependencies, installable per tenant/facility/department) | LIVE
Per-facility module control | Enable / disable / soft-lock any module per tenant, branch or department; dependency auto-resolution (e.g. ICU â‡’ Inpatient + Beds) | LIVE
Schema-driven module settings | Per-module settings forms auto-generated from a JSON schema (e.g. Dental: online booking, X-ray integration) | LIVE
Facility profiles & hierarchy | Branch typing (hospital/clinic/lab/â€¦), parent-child nesting (â‰¤5 levels), working hours, capacity, geo | LIVE
Departments & rooms | Typed departments (clinical/diagnostic/admin/support) with heads & hours; rooms with type, equipment, status | LIVE
Staff â†” department assignment | Many-to-many with primary department; drives department-level data scoping | LIVE
License & credential tracking | Medical licenses/certifications with verification workflow and daily expiry alerts | LIVE
Medical RBAC roles | 12 predefined roles seeded per tenant (doctor, nurse, pharmacist, lab technician, radiologist, receptionist, billing clerk, â€¦) â€” additive, nothing existing changes | LIVE
ABAC access rules | Attribute rules engine (doctor sees assigned patients; nurse edits vitals not diagnosis; billing clerk blocked from clinical notes; pharmacist read-only Rx) | LIVE

## Shared Services

Modules: MedNotify Â· MedDocuments â€” Phase 2 (commit 6056a5a)

Feature | Details | Status
--- | --- | ---
Unified notifications | One `notify()` API â†’ in-app, email, SMS, WhatsApp (Meta Cloud API); per-module editable templates with variables | LIVE
User preferences & digests | Per-user per-event channel opt-outs, quiet hours (incl. overnight), hourly/daily digests | LIVE
Notification audit log | Every send logged with status (sent/failed/skipped/digested) and error detail | LIVE
Document management | 15 system document types + custom; attach to any record (patient, encounter, invoiceâ€¦) | LIVE
Versioning & share links | Full version chain per document; expiring 64-char share tokens with revocation | LIVE
Watermarking & access audit | Viewer-stamped watermarks (images via GD, PDFs via mPDF); every view/download/print logged; private storage off the web root; SmartStorage backends (S3/Drive/Dropbox + encryption) honored when active | LIVE

## Medical Core (Clinical Spine)

Module: ClinicCore (extended in place) â€” Phase 3; Wave A shipped (commit b7b2c8b)

Feature | Details | Status
--- | --- | ---
Patient master | Full identity (national ID, passport, marital, nationality, language, preferred name) on top of existing demographics/blood group; ERP contact = billing identity | LIVE
Structured allergies | Typed (drug/food/environmental/latex), severity to life-threatening, verification source; severe allergies auto-raise patient alerts | LIVE
Current medications & insurance cards | Home-medication list; patient insurance policies (provider, policy, copay, pre-auth flag) | LIVE
Patient merge & dedup | Confidence-scored duplicate detection; audited merge that repoints every clinical table incl. all 45 specialty profiles | LIVE
Medical alerts | Central registry (allergy, critical value, fall risk, isolation, consent-missingâ€¦) with acknowledge workflow; banner on clinical screens; critical alerts push via MedNotify | LIVE
Problem list | Longitudinal conditions with ICD codes, certainty, type, resolution dates | LIVE
Encounters | Typed encounters (outpatient/telemedicine/home visit/day care), priority, check-inâ†’discharge times, structured ICD-10 diagnoses feeding the problem list, follow-up linking, timeline | LIVE
Clinical notes (SOAP+) | SOAP engine + sign & lock with co-sign, amendment audit trail, typed notes (progress/consultation/dischargeâ€¦), nurse/doctor field-level rules (ABAC), voice-dictation hook (AiCore) | LIVE
Vitals 2.0 | Full standard set (BP, SpOâ‚‚, pain, glucose, GCS with auto-totals + temp/HR/RR/weight, auto-BMI) with reference-range flagging, critical-value alerts and trend charts | LIVE
e-Prescriptions+ | e-Rx + refills, PRN, substitution control; drug-allergy safety screen (severe hits block & alert) + duplicate-therapy warning; controlled-drug register (witnessed, insert-only, running balance) | LIVE
Unified orders | One order entity for lab / imaging / procedures / consultations â€” auto-routes to the imaging flow and LabCore worklist, status roll-up, verify workflow, critical-result alerts | LIVE
Scheduling+ | Provider schedules with effective windows, breaks, per-slot capacity & overbooking; schedule exceptions; one availability engine for staff + public booking; waitlist with slot-available notifications; Today's Queue flow board | LIVE
Referrals | Internal/external referrals with tracking and printed letters â€” shipped with the Release 1 wave | LIVE

Already live from the existing ClinicCore engine: 45-specialty registry (Dental tooth chart, Ophthalmology refraction/IOP, OB/Gyn EDD, â€¦), structured exam templates with critical flags, vaccinations with boosters & recalls, imaging requests (XR/US/CT/MR/Endo), lab analyzer integration (LabCore/ClinicLab), treatment plans, wellness memberships, consents with digital signatures, evaluations, OTP patient portal & staff PWA, public booking, WhatsApp recalls.

## Revenue Path â€” Release 1 target

Phase 4 â€” billing/insurance Â· pharmacy Â· laboratory (binds to ERP invoicing, POS & stock)

Feature | Details | Status
--- | --- | ---
Charge capture | Encounters/orders/Rx auto-draft into real ERP invoices (consultation fee + lab-catalog-priced orders + dispensed medicines), one sell per patient, stock deducted exactly once | LIVE
Insurance & claims | Payers, patient policies, coverage/copay split, claims lifecycle (submit â†’ adjudicate per item â†’ appeal â†’ paid w/ ERP payment), pre-auth tracking, claim print | LIVE
Pharmacy dispensing | Pharmacist dispense queue against e-Rx with FEFO batch guidance, allergy re-check at dispense, witnessed controlled-drug register, prescription-ready notification; retail POS live; interaction-engine mount point ready | LIVE
Laboratory upgrade | Billable test catalog (panels, analytes, critical bounds, ERP pricing), barcode specimen lifecycle with rejection write-back, techâ†’verifier validation closing the order loop, critical-value alerts, external-provider outreach | LIVE
Referrals | Internal/external referrals with status tracking, encounter prefill, printed referral letter (meds + allergies included), book-from-referral | LIVE
Clinical stock consumption | Clinical events (e.g. vaccinations) post real ERP stock adjustments via the standard pathway â€” no parallel inventory | LIVE

## Diagnostics, Specialties & Hospital

Phases 5â€“6

Feature | Details | Status
--- | --- | ---
Radiology reporting | Modality worklist, structured reports (draft/preliminary/final/amended), critical-findings communication; imaging orders/studies already live | PLANNED
Specialty deep-dives | Dental CDT treatment-plan builder; Derma lesion body-map & photo compare; Ophthalmology glasses Rx & glaucoma tracking; diagnostic-center order plugins (ECG/Echo, endoscopy, PFT, audiometry, vision) | PLANNED
Bed management | Wards/beds board with status & cleaning states, transfers with history, bed-available notifications | LIVE
Inpatient | Admissions (ADM numbering, electiveâ†’observation types), MAR generated from inpatient Rx with witnessed controlled doses, fluid balance, discharge workflow releasing beds | LIVE
Emergency | Arrival quick-reg, ESI triage with vitals-driven suggestions, ER tracking board with door-to-doctor metrics, LWBS, admit hand-off to wards | LIVE
Surgery & ICU | Surgical cases with WHO Sign-In/Time-Out/Sign-Out (consent gate blocks the OR), sponge/instrument counts with discrepancy blocking, OR board, implant registry; ICU flowsheets with auto-MAP + critical alerts, APACHE/SOFA | LIVE
Blood bank | Donors on ERP contacts with deferral rules, 4-marker screening quarantine, ABO/Rh compatibility matrix, FIFO issuance, crossmatch gate, transfusion-reaction alerts, expiry sweeps | LIVE

## Back Office & Patient Portal

Phases 7â€“8 (Essentials HR, ERP accounts and the OTP portal are the live base)

Feature | Details | Status
--- | --- | ---
HR & workforce (MedWorkforce) | Duty-roster board with shift templates & bulk assign, swap requests with approval, credential-compliance dashboard bound to the license tracking; over the live Essentials HR (attendance/leave/payroll) | LIVE
Accounting (MedAccounting) | Chart of accounts + accrual journal layer auto-posting from existing sells/payments; Trial Balance (proven balanced), General Ledger, Income Statement, Balance Sheet, cost-center P&L; period locks | LIVE
Patient portal+ (MedPortal) | Dependents/family, provider-controlled record release, secure patient↔provider messaging, health self-tracking, PHQ-9/GAD-7 questionnaires, temporary provider share; over the live OTP portal & booking | LIVE
Telemedicine & online payment | Join-link + payment-intent surfaces are stubbed; real video (Zoom/Meet/Teams) and payment-gateway integration are backlog | STUB / BACKLOG

## Quality & Validation Gates

Gate | Details | Status
--- | --- | ---
Reuse-first audit | Phase 0 audit docs: existing-features inventory, reuse map, gap list, tenancy/permission migration path (docs/audit/) | DONE
Per-phase smoke tests | Every phase migrated, seeded and functionally tested on the live demo DB before commit | ONGOING
Full browser E2E (MCP) | After all phases: automated browser walkthrough of every module and seeder on the live demo, per role | SCHEDULED
Human-edition terminology | Veterinary-heritage terms swept from all clinical screens (46 files); animal-only fields hidden behind a config switch (re-enable for vet deployments with one flag) | DONE
Production defect fixes | Patient page 500 on the standalone deployment fixed: SaasSwitcher-only middleware alias + module_entitled() helper now have fail-open module-side fallbacks; allergies relation/column collision resolved | DONE
Theme & performance add-ons | NeoSkin (dark re-skin) and TurboBoost (gzip/cache) held back until testing + explicit approval | ON HOLD