Every PDF document generated by FemeSalud — prescriptions, rest certificates, medical cards, and consultation summaries — includes a clinic header drawn from theDocumentation 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.
clinic_info table. Keeping this data accurate ensures every printed or exported document reaches patients and third parties with the correct institutional details. Clinic settings are managed by admins only; doctors see the same data on their generated documents but cannot modify it.
Clinic Info Fields
TheClinicInfo interface in src/lib/api/clinic.ts maps directly to the clinic_info database table. The platform always reads the single row where id = 1.
name
The commercial name of the clinic. Appears as the primary heading in all generated PDFs.
address_line1
Full street address including street name, cross streets, and building number.
address_line2
City and state. Rendered on a second line beneath the street address.
phone
Contact phone numbers. You can include multiple numbers separated by spaces or slashes, e.g.
0412/8299890 0424/4609387.rif
Venezuelan Registro de Información Fiscal identifier. Optional — leave blank if not applicable to your practice type.
updated_at
Automatically set to the current UTC timestamp on every save. Read-only; managed by
useUpdateClinicInfo().How to Update Clinic Settings
Open Configuración
Click Configuración in the sidebar. The page loads with two tabs: Mi Perfil and Datos de la Clínica. The clinic tab is visible and enabled only for users with the
admin role.Select Datos de la Clínica
Click the Datos de la Clínica tab. The form pre-populates with values fetched by
useClinicInfo(), which queries clinic_info where id = 1.Edit the fields
Update any combination of: Nombre Comercial, Dirección (Línea 1), Dirección (Línea 2), Teléfonos de Contacto, and RIF.
Save
Click Guardar Datos Clínicos. The form calls
useUpdateClinicInfo(), which PATCHes the row at id = 1 and appends the current UTC timestamp to updated_at. On success, the clinic_info TanStack Query cache is invalidated, so any component subscribed to useClinicInfo() immediately reflects the new values.Doctor Profile Settings
Each doctor manages their own profile from the Mi Perfil tab in Configuración. Profile data is stored in theprofiles table and surfaces in the signature block of generated PDF documents — including prescriptions (récipes), rest certificates (constancias de reposo), and medical cards.
| Field | Description |
|---|---|
full_name | Doctor’s full name as it should appear on documents, e.g. Dra. Carli Solé Aquino |
email | Account email — read-only in the profile form |
specialty | Medical specialty or role title, e.g. Ginecología y Obstetricia |
avatar_url | Profile picture URL stored in Supabase Storage |
university | Degree-granting institution or college abbreviation, e.g. UC-CHET |
mpps | MPPS registration number issued by the Ministerio del Poder Popular para la Salud |
cmc | CMC registration number issued by the Colegio de Médicos y Cirujanos |
useUpdateProfile(), which PATCHes the profiles row matching the current user’s id and invalidates the profile, profiles_with_roles, and doctors query caches.
Dark Mode
FemeSalud includes a theme toggle powered by theuseTheme hook. The selected theme (light or dark) is persisted in localStorage under the key femesalud-theme and applied to the entire UI on load. The toggle is accessible from the sidebar footer on all pages and does not require a page reload. Theme preference is per-browser and is not synced to the user’s profile in Supabase.