How shammill/hospital-data-system works
This is a PHP/MySQL hospital-management application. Staff use the dashboard to reach patient records, create reports, manage staff assignments and permissions, schedule resource bookings, and handle invoices. The excerpts show patient-profile and invoice flows, resource booking, role and user permission updates, and PDF report generation. The README documents broader staff assignment and scheduling capabilities; where their implementation was not sampled, links are marked unverified rather than inferred as direct calls.
Main entry points: patient Patient records · index.php Dashboard · book.php Resource booking · invoices Patient invoices
Components 21
Patient records
- Patient records
patient - Patient model
.class/patient.class.php - Patient notes
patient/insert-notes.php
Staff and access
- Doctor-nurse assignments
doctor-nurse-insert.php - Staff management
create.php - Permission management
permissions - Access control
.class/acl.class.php
Scheduling and resources
- Resource management
resources - Resource booking
resources/book.php - Calendar
calendar/cal.php - Calendar events
calendar/events.php
Billing and reports
- Billable items
billable - Patient invoices
patient/invoices - Invoice model
.class/invoice.class.php - Patient report
patient/patient-report.php - HTML to PDF
pdf/html2pdf.class.php
Shared application
- Dashboard
index.php - MySQL database
.class/database.class.php - Search
search.php - Patient edit API
api/api.js
Other components
- Staff user
Connections 24
- Staff user → Dashboard: opens
index.php - Dashboard → Patient records: links to
index.php - Dashboard → Staff management: links to
index.php - Dashboard → Resource management: links to
index.php - Dashboard → Permission management: links to
index.php - Dashboard → Billable items: links to
index.php - Patient records → Patient model: loads patient
patient/patient-profile.php - Patient records → Patient notes: links to
patient/patient-profile.php - Patient records → Patient invoices: links to
patient/patient-profile.php - Patient records → Patient report: links to
patient/patient-profile.php - Patient report → Patient model: loads patient
patient/patient-report.php - Patient report → HTML to PDF: converts HTML
patient/patient-report.php - Permission management → Access control: updates permissions
permissions/user.php - Resource booking → Resource management: loads resource
resources/book.php - Resource booking → Patient model: loads patients
resources/book.php - Resource booking → Calendar: includes calendar
resources/book.php - Resource booking → Calendar events: configures events
resources/book.php - Patient invoices → Patient model: loads patient
patient/invoices/create.php - Patient invoices → Billable items: loads billables
patient/invoices/create.php - Patient invoices → Invoice model: creates invoice
patient/invoices/create.php - Search → MySQL database: queries
search.php - Patient records → MySQL database: reads and updates
- Staff user → Doctor-nurse assignments: manages assignments
- Patient records → Patient edit API: edits fields through