How lucyneitor/poo_avance works
This is a Spanish-language command-line clinic application for managing patients and departments. The workflow starts at main.py, initializes SQLite, and presents a main menu; users then enter either management flow to create, edit, delete, or view records. Controllers coordinate prompts, validated domain objects, and DAO operations. Patient records can reference departments. The source excerpts show the principal calls; README content is general Git and OOP material and does not document additional product capabilities.
Main entry points: paciente_controller.py Patient management · departamento_dao.py Department persistence · departamento.py Department model · paciente_view.py Patient prompts
Components 15
Application entry
- Program startup
main.py
Interactive presentation
- Main menu
views/main_view.py - Patient prompts
views/paciente_view.py - Department prompts
views/departamento_view.py - Input helpers
views/utils.py
Management workflows
- Main menu flow
controllers/main_controller.py - Patient management
controllers/paciente_controller.py - Department management
controllers/departamento_controller.py
Domain and persistence
- Patient model
models/paciente.py - Department model
models/departamento.py - Patient persistence
models/paciente_dao.py - Department persistence
models/departamento_dao.py - SQLite access
config/database.py - Clinic database
clinica.db
Other components
- CLI user
Connections 27
- CLI user → Program startup: starts
main.py - Program startup → SQLite access: initializes
main.py - Program startup → Main menu flow: runs
main.py - CLI user → Main menu: chooses menu
views/main_view.py - Main menu flow → Main menu: shows menu
controllers/main_controller.py - Main menu flow → Patient management: dispatches
controllers/main_controller.py - Main menu flow → Department management: dispatches
controllers/main_controller.py - Patient management → Patient prompts: requests and displays
controllers/paciente_controller.py - Department management → Department prompts: requests and displays
controllers/departamento_controller.py - Patient prompts → Input helpers: uses input helpers
views/paciente_view.py - Department prompts → Input helpers: uses input helpers
views/departamento_view.py - Patient management → Patient model: creates
controllers/paciente_controller.py - Patient management → Patient persistence: manages records
controllers/paciente_controller.py - Patient management → Department persistence: looks up departments
controllers/paciente_controller.py - Department management → Department model: creates
controllers/departamento_controller.py - Department management → Department persistence: manages records
controllers/departamento_controller.py - Patient persistence → Patient model: constructs records
models/paciente_dao.py - Department persistence → Department model: constructs records
models/departamento_dao.py - Patient persistence → Department persistence: loads departments
models/paciente_dao.py - Patient persistence → SQLite access: opens connection
models/paciente_dao.py - Department persistence → SQLite access: opens connection
models/departamento_dao.py - SQLite access → Clinic database: reads and writes
config/database.py - Patient prompts → Patient model: renders records
views/paciente_view.py - Patient prompts → Department model: renders choices
views/paciente_view.py - Department prompts → Department model: renders records
views/departamento_view.py - Main menu → Input helpers: uses input helpers
views/main_view.py - Patient model → Department model: references department
models/paciente.py