Data Security, Tenant Isolation & Patient Privacy
Bangladesh hospitals and diagnostic owners migrate patient charts and cash ledgers only when security controls can be inspected. Below are the active architectural protections running across ClinicSheba.
PostgreSQL Row-Level Security (RLS)
Every patient chart, bill, lab specimen, and pharmacy ledger row is scoped strictly to its owning tenant_id at the database engine layer, preventing cross-clinic data leakage even across shared compute.
রোগীর নথি, রশিদ, ল্যাব রিপোর্ট এবং ফার্মেসি স্টক ডাটাবেজ স্তরে প্রতিটি ক্লিনিকের নিজস্ব tenant_id অনুযায়ী পৃথক থাকে।
Cryptographic Gateway & Strict Role Boundaries
Internal clinical routes and patient portals enforce server-side HS256 JWT validation and strict role matrices (Doctor, Receptionist, Cashier, Lab Pathologist, Pharmacist, Nurse, Superadmin).
ডাক্তার, রিসেপশন, ল্যাব ও ফার্মাসিস্টের জন্য আলাদা রোল অনুমোদন ও সার্ভার-সাইড ক্রিপ্টোগ্রাফিক টোকেন যাচাই চালু থাকে।
Immutable Receipts & 4-Digit Owner PIN Gate
Issued thermal receipts cannot be silently deleted or edited. Discounts above 5%, single-use bKash TrxID overrides, and invoice cancellations demand owner PIN approval and record audit timestamps.
একবার প্রিন্ট হওয়া ক্যাশ মেমো গোপনে ডিলিট বা পরিবর্তন করা যায় না। ৫%-এর বেশি ছাড় বা বাতিলের জন্য মালিকের ৪-ডিজিট পিন লাগে।
Encrypted Cloud Backups & Local-First Recovery
Database snapshots can be encrypted and archived directly into administrator-controlled Google Drive storage, while browser IndexedDB offline stores keep counters and chambers operational during power or ISP cuts.
ডাটাবেজ স্ন্যাপশট সরাসরি এনক্রিপ্ট করে প্রতিষ্ঠানের নিজস্ব Google Drive-এ সংরক্ষণ ও রিস্টোর করা যায় এবং ইন্টারনেট ছাড়াও কাজ সচল থাকে।