Reference method
Hospital management implementation method
How bworkx scopes, models, configures, migrates, and supports an open-source hospital management system on Frappe.
Problem. Hospital operations run on disconnected registers and billing tools, so the patient, the bill, and the stock record never agree.
Reference method. This page describes how bworkx runs a hospital management implementation. It is not a client engagement, a certified EHR, or clinical validation.
1. Scope and data protection
We agree:
- The sites, departments, and workflows in scope.
- The administrative and clinical boundary.
- The data sources and the identifiers that will be migrated.
- The data-protection terms, access rules, retention, and audit requirements.
- The go-live and hypercare model.
Patient data is handled only under a written agreement. Public demos use synthetic data.
2. Model the operation
We map how a patient moves through the organisation:
- Registration and identity.
- Appointment and scheduling.
- Encounter and consultation.
- Diagnostics and results.
- Billing and payment.
- Pharmacy and stock.
- Follow-up and reporting.
The gaps and duplicate identifiers in that map are usually the project. They are resolved before configuration hardens around them.
3. Configure
We configure the standard workflows first:
- Patient and practitioner records.
- Appointment statuses and scheduling rules.
- Encounter structure and the link to billing.
- Tariffs, items, and chargeable events.
- Pharmacy stock, batch, and expiry where the platform supports it.
- Accounting, purchasing, and HR links through ERPNext.
Custom code is a last resort and is documented as a long-term cost.
4. Access and audit
We define:
- Roles for registration, clinical staff, pharmacy, billing, and administrators.
- Least-privilege access, including support accounts.
- Audit logging for record access and changes.
- Joiner, mover, and leaver handling, connected to the identity platform where one exists.
- Access reviews before go-live and on a schedule afterwards.
5. Migrate
We migrate in a rehearsed sequence:
- Patients and identifiers, with duplicates resolved.
- Practitioners and staff.
- Items, tariffs, and price lists.
- Open balances and outstanding encounters.
- Appointments that must survive the cutover.
Every migration has reconciliation totals, signed off before go-live. Row counts alone are not acceptance.
6. Train
Each role gets:
- A short written procedure for the tasks it performs.
- A practice environment with synthetic data.
- A named super-user for the first weeks after go-live.
Training is assessed. A team that has not completed the procedure in the practice environment is not ready for go-live.
7. Go live and hypercare
We run a controlled go-live with:
- A defect log and a daily triage call.
- A freeze on non-essential changes for the hypercare window.
- A rollback position for each cutover step.
- A support path and escalation route agreed in advance.
What this method does not cover
- Clinical decision support validation or medical-device certification.
- Clinical protocol design.
- Research or clinical-trial data management.
- A certified EHR product.
- Every specialty workflow; scope is agreed explicitly.
- Compliance certification, legal advice, or a guarantee of clinical safety.
What I would do differently
Start with registration and billing reconciliation. If the identifier and the bill are wrong, every dashboard built on top is decorative.
Outcome. One operational record, migrated and reconciled, with trained staff, access controls, and a support path.