How dfrancoc256/biometrico-umg works
Scope and Entry Points
ServiMedica is a desktop clinic-management application. The runnable application starts in C++ and loads a QML user interface:
• Downloads/proyecto (2)/src/main.cpp
• Downloads/proyecto (2)/qml/Principal.qml
• Downloads/proyecto (2)/CMakeLists.txt
Runtime and Presentation Layer
The application is a C++/Qt-style desktop program, evidenced by its CMake build and QML UI composition. Principal.qml is the UI shell; it composes navigation and page-level screens rather than exposing a browser/API frontend.
• Downloads/proyecto (2)/qml/Principal.qml
• Downloads/proyecto (2)/qml/componentes/BarraLateral.qml
• Downloads/proyecto (2)/qml/componentes/EncabezadoPagina.qml
Clinical Operations
ServicioClinica is the central application-service boundary for clinic workflows. QML pages represent the principal operational domains: patients, doctors, appointments, and clinical records. UI actions should flow from QML into this service rather than directly to storage.
• Downloads/proyecto (2)/src/servicioclinica.h
• Downloads/proyecto (2)/src/servicioclinica.cpp
• Downloads/proyecto (2)/qml/paginas/Citas.qml
Patient, Doctor, Appointment, and Record Modules
The UI divides core clinic data into dedicated pages. Pacientes.qml, Medicos.qml, Citas.qml, and Expedientes.qml are peer views under the same application shell; their shared data and validation rules belong in the clinic service/database boundary.
• Downloads/proyecto (2)/qml/paginas/Pacientes.qml
• Downloads/proyecto (2)/qml/paginas/Medicos.qml
• Downloads/proyecto (2)/qml/paginas/Expedientes.qml
Inventory Management
Inventory is separated into its own service, indicating distinct stock-oriented logic from clinical operations. Its QML page consumes this module alongside the clinic service, likely through application-level objects registered during startup.
• Downloads/proyecto (2)/src/inventario/servicioinventario.h
• Downloads/proyecto (2)/src/inventario/servicioinventario.cpp
• Downloads/proyecto (2)/qml/paginas/Inventario.qml
Persistence Boundary
Database connectivity is encapsulated behind a dedicated connection class, while the SQL schema is maintained as an external initialization artifact. This is the main infrastructure dependency; UI code should not embed SQL or connection details.
• Downloads/proyecto (2)/src/conexionbasedatos.h
• Downloads/proyecto (2)/src/conexionbasedatos.cpp
• Downloads/proyecto (2)/base-datos/esquema.sql
Dashboard and Shared UI
The summary page provides the aggregate operational view, while reusable QML components standardize layout, summary cards, states, and actions across modules.
• Downloads/proyecto (2)/qml/paginas/Resumen.qml
• Downloads/proyecto (2)/qml/componentes/TarjetaResumen.qml
• Downloads/proyecto (2)/qml/componentes/EstadoVacio.qml
Main entry points: Principal.qml Principal shell · servicioclinica.cpp Clinic service · main.cpp Qt application entry · Resumen.qml Dashboard
Components 17
Desktop Runtime
- CMake build
Downloads/proyecto (2)/CMakeLists.txt - Qt application entry · Initializes application objects and loads QML.
Downloads/proyecto (2)/src/main.cpp
QML Presentation
- Principal shell
Downloads/proyecto (2)/qml/Principal.qml - Sidebar navigation
Downloads/proyecto (2)/qml/componentes/BarraLateral.qml - Page header
Downloads/proyecto (2)/qml/componentes/EncabezadoPagina.qml - Dashboard · Aggregate operational summary.
Downloads/proyecto (2)/qml/paginas/Resumen.qml - Patients
Downloads/proyecto (2)/qml/paginas/Pacientes.qml - Doctors
Downloads/proyecto (2)/qml/paginas/Medicos.qml - Appointments
Downloads/proyecto (2)/qml/paginas/Citas.qml - Clinical records
Downloads/proyecto (2)/qml/paginas/Expedientes.qml - Inventory
Downloads/proyecto (2)/qml/paginas/Inventario.qml - Summary card
Downloads/proyecto (2)/qml/componentes/TarjetaResumen.qml - Empty state
Downloads/proyecto (2)/qml/componentes/EstadoVacio.qml
Application Services
- Clinic service · Central workflow, validation, and shared clinical-data boundary.
Downloads/proyecto (2)/src/servicioclinica.cpp - Inventory service · Stock-oriented inventory logic.
Downloads/proyecto (2)/src/inventario/servicioinventario.cpp
Persistence
- Database connection · Encapsulates database connectivity.
Downloads/proyecto (2)/src/conexionbasedatos.cpp - SQL schema · Database initialization artifact.
Downloads/proyecto (2)/base-datos/esquema.sql
Connections 22
- CMake build → Qt application entry: builds
- Qt application entry → Principal shell: loads
- Qt application entry → Clinic service: registers
- Qt application entry → Inventory service: registers
- Principal shell → Sidebar navigation: composes
- Principal shell → Page header: composes
- Principal shell → Dashboard: hosts
- Principal shell → Patients: hosts
- Principal shell → Doctors: hosts
- Principal shell → Appointments: hosts
- Principal shell → Clinical records: hosts
- Principal shell → Inventory: hosts
- Dashboard → Summary card: uses
- Dashboard → Clinic service: reads summaries
- Patients → Clinic service: clinical actions
- Doctors → Clinic service: clinical actions
- Appointments → Clinic service: schedules
- Clinical records → Clinic service: manages records
- Inventory → Inventory service: stock actions
- Clinic service → Database connection: persists through
- Inventory service → Database connection: persists through
- Database connection → SQL schema: uses schema