Skip to main content

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.

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.

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

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.
ColumnDescription
Fecha / HoraDate in DD Mon format plus 24-hour time (e.g., 15 ene · 09:30)
PacientePatient’s full name
MédicoTreating doctor resolved from the doctor map
MotivoAppointment reason, or when not specified

Executive PDF Export

Clicking Exportar Reporte Ejecutivo calls exportPDF(), which dynamically imports jsPDF and jspdf-autotable to build a multi-page A4 document. The report is saved as:
femesalud-reporte-ejecutivo-[from]-[to].pdf
For example: 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:
1

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.
2

Section 1 — Resumen de Indicadores Clave

A six-row KPI table covering the selected period:
IndicadorTipo
Ingresos Totales (Citas Completadas)Financiero
Pacientes Nuevos RegistradosMarketing
Citas Totales AgendadasOperativo
Citas CompletadasOperativo
Citas Programadas (Pendientes)Operativo
Citas CanceladasOperativo
3

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.
4

Section 3 — Desglose Histórico de Ingresos

A two-column table showing total income per month for the last 12 months, independent of the date range filter. Useful for year-over-year context in board or investor presentations.
Every page of the PDF includes:
  • 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 Y on the right

Marketing Channels Reference

The contact_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.
ChannelDescription
WhatsAppPatient contacted the clinic via WhatsApp
InstagramDiscovered through the clinic’s Instagram profile
FacebookReached via Facebook page or ads
RadioHeard about the clinic through a radio broadcast
RecomendadoReferred by another patient, friend, or colleague
PrensaLearned about the clinic through a newspaper or press outlet
VolanteReceived a printed flyer or leaflet
OtroAny other acquisition source not covered by the above

Build docs developers (and LLMs) love