Overview
The System Settings module provides centralized control over clinic branding, identity, fiscal configuration, and contact information. These settings affect invoices, reports, patient communications, and system-wide presentation.Configuration Categories
Settings are organized into four thematic sections:💎 Identidad Visual
Branding and visual identity
- Clinic name
- Logo URL
📄 Información Fiscal
Tax and financial identifiers
- RNC/Tax ID
- Currency configuration
📍 Contacto Geográfico
Communication and location
- Phone number
- Email address
- Physical address
🖼️ Vista Previa
Live branding preview
- Logo display
- Name rendering
- Contact formatting
Settings Properties
Complete Settings Object
Visual Identity
Clinic Name
Field:nameType: Text input
Example: “OdontoDigital Premium”
Usage: Displayed on:
- Invoices and receipts
- Patient reports
- Email communications
- System branding
Logo Configuration
Field:logo_urlType: URL input
Format: Public accessible image URL
Recommended:
- PNG or SVG format
- Transparent background
- Max height: 80px for optimal display
- Hosted on CDN or public server
If no logo URL is provided, a placeholder icon (🏥) displays in the preview.
Fiscal Information
Tax Identification
Field:tax_idType: Text input
Label: “RNC / Identificación”
Format: Country-specific tax ID
Example (Dominican Republic): “RNC-001002003” Usage: Required for:
- Legal invoicing
- Tax reporting
- Fiscal compliance
- Government documentation
Currency Configuration
Field:currencyType: Text input
Default: “DOP” (Dominican Peso)
Common Values:
DOP- Dominican Peso (RD$)USD- US Dollar ($)EUR- Euro (€)
- All financial reports
- Invoice generation
- Budget presentations
- Debt tracking
Contact Information
Phone Number
Field:phoneType: Text input
Label: “Línea de Atención”
Format: Free-form (e.g., “(809) 555-0100”)
Usage:
- Patient appointment reminders
- Invoice contact info
- Emergency contact
- Website display
Email Address
Field:emailType: Email input
Label: “Correo Oficial”
Validation: Standard email format
Usage:
- Official communications
- Invoice delivery
- System notifications
- Patient correspondence
Physical Address
Field:addressType: Text input (full-width)
Label: “Dirección Principal del Sistema”
Format: Complete address string
Example: “Calle Principal #123, Torre Médica, Piso 5, Santo Domingo” Usage:
- Legal documentation
- Invoice footer
- Google Maps integration (future)
- Patient navigation
Live Preview Panel
Real-time branding preview card displays configured identity:- Preview Components
- Fallback Values
Header: “Vista Previa de Marca”
Logo: Displays
Name: Clinic name in large bold font
Contact: Phone • Email (separated by dot)
Footer: Usage note for reports and budgets
Logo: Displays
logo_url image or placeholderName: Clinic name in large bold font
Contact: Phone • Email (separated by dot)
Footer: Usage note for reports and budgets
API Integration
Get Settings
/src/routes/api/clinic/settings/+server.jsProcedure:
sp_get_clinic_settings()
Save Settings
sp_save_clinic_settings(name, address, phone, email, currency, tax_id, logo_url)
Success Toast: “Configuración de marca guardada”
Form Layout
Desktop Layout
Two-column grid with preview sidebar:Mobile Layout (< 1100px)
Single column stack:- Preview card
- Visual identity section
- Fiscal information section
- Contact information section
Save Workflow
Code Example:
Use Cases
Example 1: Initial System Setup
Example 2: Rebranding Update
Example 3: Multi-Currency Setup
While the system supports currency configuration, reports and calculations use the configured currency throughout. Changing currency affects all financial displays.
Security Considerations
Settings are stored in the database with audit trail. The
sp_save_clinic_settings procedure logs the admin user who made changes.Impact on Other Features
Settings configured here affect:Invoices
Clinic name, logo, and contact info appear on all patient invoices
Reports
Branding appears on printed financial and clinical reports
Budgets
Treatment budgets display clinic identity and contact
Communications
Email templates use configured name and contact info
Related Pages
Admin Dashboard
Return to main administrative overview
Reports
View how branding appears on financial reports
