# josephv95/cuidarp architecture

> Architecture diagram of the GitHub repository josephv95/cuidarp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/josephv95/cuidarp
- Repository: https://github.com/josephv95/cuidarp

## Overview

CuidARP is a Django hospital-care application for managing nurses, patients, beds, prescriptions, medication-administration records, and reports. The principal workflow is staff access, patient and bed management, prescription entry, signed administration recording, and report viewing. The sampled views show ORM operations against the app’s models; settings configure SQLite. The README contains no usable capability detail, and view excerpts are partial, so links to most templates and unsampled behavior are omitted rather than inferred.

Main entry points: [`funcionalidades/urls.py`](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/urls.py) (Feature routes), [`funcionalidades/models.py`](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/models.py) (Clinical models), [`funcionalidades/views.py`](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py) (Nurse management), [`cuidarp_app/urls.py`](https://github.com/josephv95/cuidarp/blob/main/cuidarp_app/urls.py) (Project routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Application routing"]
  node_project_routes["Project routes<br/>[urls.py]"]
  node_feature_routes["Feature routes<br/>[urls.py]"]
  node_configuration["Django configuration<br/>[settings.py]"]
end

subgraph group_care["Care workflows"]
  node_access["Staff access<br/>[views.py]"]
  node_nurse_admin["Nurse management<br/>[views.py]"]
  node_patients["Patient management<br/>[views.py]"]
  node_beds["Bed assignment<br/>[views.py]"]
  node_prescriptions["Prescription entry<br/>[views.py]"]
  node_administrations["Administration records<br/>[views.py]"]
  node_reports["Report viewing<br/>[views.py]"]
end

subgraph group_data["Clinical data"]
  node_clinical_models["Clinical models<br/>[models.py]"]
  node_database[("SQLite database<br/>[db.sqlite3]")]
end

subgraph group_ui["User interface"]
  node_templates["Page templates"]
  node_nurse_page["Nurse management page"]
end

node_staff(("Hospital staff"))

node_staff -.->|"sends requests"| node_project_routes
node_project_routes -->|"includes routes"| node_feature_routes
node_feature_routes -->|"routes access"| node_access
node_feature_routes -->|"routes nurse actions"| node_nurse_admin
node_feature_routes -->|"routes patient actions"| node_patients
node_feature_routes -->|"routes bed actions"| node_beds
node_feature_routes -->|"routes prescription entry"| node_prescriptions
node_feature_routes -->|"routes administration"| node_administrations
node_feature_routes -->|"routes reports"| node_reports
node_access -->|"queries nurses"| node_clinical_models
node_nurse_admin -->|"reads nurse records"| node_clinical_models
node_patients -->|"creates patients"| node_clinical_models
node_beds -->|"updates assignments"| node_clinical_models
node_prescriptions -->|"creates prescriptions"| node_clinical_models
node_administrations -->|"saves administration records"| node_clinical_models
node_reports -.->|"reads patient data"| node_clinical_models
node_clinical_models -.->|"persists records"| node_database
node_configuration -->|"configures SQLite"| node_database
node_nurse_admin -->|"renders"| node_nurse_page
node_patients -.->|"renders pages"| node_templates

click node_project_routes "https://github.com/josephv95/cuidarp/blob/main/cuidarp_app/urls.py"
click node_feature_routes "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/urls.py"
click node_access "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py"
click node_nurse_admin "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py"
click node_patients "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py"
click node_beds "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py"
click node_prescriptions "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py"
click node_administrations "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py"
click node_reports "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py"
click node_clinical_models "https://github.com/josephv95/cuidarp/blob/main/funcionalidades/models.py"
click node_database "https://github.com/josephv95/cuidarp/blob/main/db.sqlite3"
click node_configuration "https://github.com/josephv95/cuidarp/blob/main/cuidarp_app/settings.py"
click node_templates "https://github.com/josephv95/cuidarp/tree/main/templates"
click node_nurse_page "https://github.com/josephv95/cuidarp/blob/main/templates/Gestion_Enfermeros.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_project_routes,node_feature_routes,node_configuration toneBlue
class node_access,node_nurse_admin,node_patients,node_beds,node_prescriptions,node_administrations,node_reports toneAmber
class node_clinical_models,node_database toneMint
class node_templates,node_nurse_page toneRose
class node_staff toneIndigo
```

## Components

### Application routing

- [Project routes](https://github.com/josephv95/cuidarp/blob/main/cuidarp_app/urls.py): `cuidarp_app/urls.py`
- [Feature routes](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/urls.py): `funcionalidades/urls.py`
- [Django configuration](https://github.com/josephv95/cuidarp/blob/main/cuidarp_app/settings.py): `cuidarp_app/settings.py`

### Care workflows

- [Staff access](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py): `funcionalidades/views.py`
- [Nurse management](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py): `funcionalidades/views.py`
- [Patient management](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py): `funcionalidades/views.py`
- [Bed assignment](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py): `funcionalidades/views.py`
- [Prescription entry](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py): `funcionalidades/views.py`
- [Administration records](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py): `funcionalidades/views.py`
- [Report viewing](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/views.py): `funcionalidades/views.py`

### Clinical data

- [Clinical models](https://github.com/josephv95/cuidarp/blob/main/funcionalidades/models.py): `funcionalidades/models.py`
- [SQLite database](https://github.com/josephv95/cuidarp/blob/main/db.sqlite3): `db.sqlite3`

### User interface

- [Page templates](https://github.com/josephv95/cuidarp/tree/main/templates): `templates`
- [Nurse management page](https://github.com/josephv95/cuidarp/blob/main/templates/Gestion_Enfermeros.html): `templates/Gestion_Enfermeros.html`

### Other components

- **Hospital staff**

## Connections

- Hospital staff → Project routes: sends requests
- Project routes → Feature routes: includes routes (evidence: `cuidarp_app/urls.py`)
- Feature routes → Staff access: routes access (evidence: `funcionalidades/urls.py`)
- Feature routes → Nurse management: routes nurse actions (evidence: `funcionalidades/urls.py`)
- Feature routes → Patient management: routes patient actions (evidence: `funcionalidades/urls.py`)
- Feature routes → Bed assignment: routes bed actions (evidence: `funcionalidades/urls.py`)
- Feature routes → Prescription entry: routes prescription entry (evidence: `funcionalidades/urls.py`)
- Feature routes → Administration records: routes administration (evidence: `funcionalidades/urls.py`)
- Feature routes → Report viewing: routes reports (evidence: `funcionalidades/urls.py`)
- Staff access → Clinical models: queries nurses (evidence: `funcionalidades/views.py`)
- Nurse management → Clinical models: reads nurse records (evidence: `funcionalidades/views.py`)
- Patient management → Clinical models: creates patients (evidence: `funcionalidades/views.py`)
- Bed assignment → Clinical models: updates assignments (evidence: `funcionalidades/views.py`)
- Prescription entry → Clinical models: creates prescriptions (evidence: `funcionalidades/views.py`)
- Administration records → Clinical models: saves administration records (evidence: `funcionalidades/views.py`)
- Report viewing → Clinical models: reads patient data (evidence: `funcionalidades/views.py`)
- Clinical models → SQLite database: persists records
- Django configuration → SQLite database: configures SQLite (evidence: `cuidarp_app/settings.py`)
- Nurse management → Nurse management page: renders (evidence: `funcionalidades/views.py`)
- Patient management → Page templates: renders pages
