The Reports module is the analytics hub of FemeSalud, transforming raw appointment and consultation data into actionable intelligence. Clinic managers and physicians can review period-specific KPIs, trace monthly income trends over the last 12 months, identify which marketing channels drive the most new patients, and export a polished executive PDF for stakeholder review — all from a single, date-filtered interface.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KevxxAlva/femesalud-zen-flow/llms.txt
Use this file to discover all available pages before exploring further.
Date Range Filter
All statistics, charts, and tables on the Reports page respond to a single date range selector at the top of the view.Custom Range
Two date pickers (Desde / Hasta) let you define an exact start and end date. The page defaults to the last 90 days on load.
Quick Presets
Three shortcut buttons instantly reframe the analysis: 7 días, 30 días, and 90 días — each sets the end date to today and the start date accordingly.
Income figures throughout the Reports module are calculated exclusively from
completada appointments that have a price set. Scheduled or cancelled appointments are counted for activity metrics but do not contribute to revenue totals.Report Tabs
- Vista General
- Resumen Financiero
- Canales de Marketing
The overview tab combines a summary KPI strip with a live upcoming-appointments table.
KPI Cards
Citas en Rango
Total number of appointments (any status) whose
scheduled_at falls within the selected date range.Completadas
Count of appointments with
status = completada in the selected range.Pacientes Nuevos
Number of patient records created within the selected date range, sourced from
usePatientsCountByDateRange.Ingresos
Sum of fees from all
completada appointments with a price set in the selected range. Displayed in USD.Upcoming Appointments Table (Planificación)
Below the KPIs, the Próximas citas table shows the next scheduled (programada) appointments starting from today, limited to the 10 closest entries. This section is independent of the date range filter — it always shows what is immediately ahead.| Column | Description |
|---|---|
| Fecha / Hora | Date in DD Mon format plus 24-hour time (e.g., 15 ene · 09:30) |
| Paciente | Patient’s full name |
| Médico | Treating doctor resolved from the doctor map |
| Motivo | Appointment reason, or — when not specified |
Executive PDF Export
Clicking Exportar Reporte Ejecutivo callsexportPDF(), which dynamically imports jsPDF and jspdf-autotable to build a multi-page A4 document. The report is saved as:
femesalud-reporte-ejecutivo-2025-01-01-2025-03-31.pdf
Report Structure
The PDF is organised into three numbered sections, each rendered as a styled grid table with a mauve header row:Clinic Header and Title
The document opens with the clinic’s address, phone number, RIF (if configured), and trade name in the same format used on individual receipts. The report title REPORTE ANALÍTICO Y EJECUTIVO is underlined at the centre. The selected date range and generation timestamp are printed below the title.
Section 1 — Resumen de Indicadores Clave
A six-row KPI table covering the selected period:
| Indicador | Tipo |
|---|---|
| Ingresos Totales (Citas Completadas) | Financiero |
| Pacientes Nuevos Registrados | Marketing |
| Citas Totales Agendadas | Operativo |
| Citas Completadas | Operativo |
| Citas Programadas (Pendientes) | Operativo |
| Citas Canceladas | Operativo |
Section 2 — Canales de Adquisición de Pacientes
A table listing every marketing channel recorded in consultations within the date range, with the consultation count and percentage impact. Rows are sorted by count descending.
- A clinic logo watermark at 3% opacity centred on the page
- A footer with the text FemeSalud — Reporte Ejecutivo de Gestión on the left and
Página X de Yon the right
Marketing Channels Reference
Thecontact_channel field on a consultation record tracks the acquisition source for each patient visit. Staff select the appropriate value from a fixed list when registering a consultation.
| Channel | Description |
|---|---|
| Patient contacted the clinic via WhatsApp | |
| Discovered through the clinic’s Instagram profile | |
| Reached via Facebook page or ads | |
| Radio | Heard about the clinic through a radio broadcast |
| Recomendado | Referred by another patient, friend, or colleague |
| Prensa | Learned about the clinic through a newspaper or press outlet |
| Volante | Received a printed flyer or leaflet |
| Otro | Any other acquisition source not covered by the above |