How bambadiante/medicare works
Medicare is a Qt desktop hospital-management application. Its visible startup path opens a MySQL connection, requires login, then presents a main window for patient, physician, medication, and consultation workflows. The sampled forms perform SQL directly through the shared Qt SQL connection; no separate persistence layer is evident. The README only names the product, so broader capabilities and some form-to-form links are based on source-index references; unsampled behavior is not assumed.
Main entry points: MainWindow.cpp Main window · main.cpp Startup · PatientForm.cpp Patient records · MedecinListeForm.cpp Physician records
Components 21
Application shell
- Startup
main.cpp - Login dialog
LoginForm.cpp - Main window
MainWindow.cpp
Patient and physician
- Patient hub
PatientHubForm.cpp - Patient records
PatientForm.cpp - Add patient
AjoutPatientForm.cpp - Edit patient
ModifierPatient.cpp - Physician hub
MedecinHubForm.cpp - Physician records
MedecinListeForm.cpp - Add physician
MedecinForm.cpp - Edit physician
ModifierMedecin.cpp
Consultations
- New consultation
ConsultationForm.cpp - Patient history
ConsultationPatient.cpp - Physician history
ConsultationMedecin.cpp - Consultation details
DetailConsultation.cpp
Medication
- Medication hub
MedicamentHubForm.cpp - Medication records
MedicamentListeForm.cpp - Add medication
MedicamentForm.cpp - Edit medication
ModifierMedicament.cpp
Other components
- Staff user
- MySQL hospital DB
Connections 33
- Staff user → Startup: starts
main.cpp - Startup → MySQL hospital DB: opens connection
main.cpp - Startup → Login dialog: requires authentication
main.cpp - Login dialog → Staff user: authenticates
- Startup → Main window: shows after login
main.cpp - Main window → Patient hub: routes to
MainWindow.cpp - Main window → Physician hub: routes to
MainWindow.cpp - Main window → Medication hub: routes to
MainWindow.cpp - Main window → New consultation: routes to
MainWindow.cpp - Patient hub → Add patient: opens
PatientHubForm.cpp - Patient hub → Patient records: opens
PatientHubForm.cpp - Patient records → MySQL hospital DB: reads and deletes
PatientForm.cpp - Patient records → Patient history: opens history
PatientForm.cpp - Patient records → Edit patient: opens editor
PatientForm.cpp - Add patient → MySQL hospital DB: writes patient
- Edit patient → MySQL hospital DB: updates patient
- Physician hub → Add physician: opens
MedecinHubForm.cpp - Physician hub → Physician records: opens
MedecinHubForm.cpp - Physician records → MySQL hospital DB: reads and deletes
MedecinListeForm.cpp - Physician records → Physician history: opens history
MedecinListeForm.cpp - Physician records → Edit physician: opens editor
MedecinListeForm.cpp - Add physician → MySQL hospital DB: writes physician
- Edit physician → MySQL hospital DB: updates physician
- New consultation → MySQL hospital DB: loads and saves
ConsultationForm.cpp - Patient history → MySQL hospital DB: loads history
- Patient history → Consultation details: opens details
ConsultationPatient.cpp - Physician history → MySQL hospital DB: queries history
ConsultationMedecin.cpp - Medication hub → Add medication: opens
MedicamentHubForm.cpp - Medication hub → Medication records: opens
MedicamentHubForm.cpp - Medication records → MySQL hospital DB: reads and deletes
MedicamentListeForm.cpp - Medication records → Edit medication: opens editor
MedicamentListeForm.cpp - Add medication → MySQL hospital DB: writes medication
- Edit medication → MySQL hospital DB: updates medication