I need a robust, PHP-based web application that lets a multinational group of surgical centers run every step of the patient journey from one place. The platform must recognise multiple user roles—doctors, billing department staff, administrators, coordinators and nurses—each with customised access so everyone sees only what they need. Core patient-management functions • Real-time scheduling that handles multiple locations and surgical rooms • One-click consent signing (e-signature) tied automatically to the patient file • Direct scanning or upload of documents straight into the patient’s record • End-to-end patient tracking, from first appointment through discharge • Dedicated “patient procedure” workspace where key data stay visible at a glance Doctor tool-set • Draft procedure notes inside the platform using reusable templates • Option to upload external notes when needed • Instant generation of medical-history reports and care summaries Administrative & billing needs The system has to export customised patient lists for follow-ups, create procedure reports for regulators, and give the billing department full visibility of insurance data, codes and outstanding balances—all without exposing clinical notes they don’t need. Reporting & compliance I also want flexible, user-defined reports that can be filtered by date, surgeon, procedure type or facility, then exported to PDF or CSV. Tech scope & expectations • Built in PHP with clean, documented code ready for future localisation • Secure role-based authentication and audit trails for every change • Responsive interface so staff can work from tablets in theatre or at reception Acceptance criteria 1. All listed roles can log in and only see their authorised sections. 2. A doctor can complete a procedure note (template) and it stores in the patient chart without manual upload. 3. Billing staff can generate an invoice from that same chart without viewing the operative note content. 4. Consent forms are signed electronically and are viewable as locked PDFs inside the record. 5. Custom report engine exports filtered data correctly in both PDF and CSV. Deliver the full source code, database schema and a brief deployment guide so I can install it on our own servers.