🏥 Email Template System

Al Hammadi Hospital - Unified Brand Identity

🎨 Brand Color Palette

Primary Navy
#005696
Accent Blue
#007bbd
Light Background
#eef6fb
Slate Gray
#64748b
Success Green
#10b981
Warning Yellow
#f59e0b

👥 Patient-Facing Templates

Emails sent to patients

  • Survey Invitation
    templates/emails/survey_invitation.html
    Usage: Sent after patient visits for feedback collection
  • Appointment Confirmation
    templates/emails/appointment_confirmation.html
    Usage: Sent when appointments are booked
  • Survey Results Notification
    templates/emails/survey_results_notification.html
    Usage: Department heads notified of survey results

👨‍⚕️ Staff/Admin Templates

Internal communication emails

  • Explanation Request INTEGRATED
    templates/emails/explanation_request.html
    Integration: apps/complaints/tasks.py
    Function: send_explanation_request_email()
  • User Invitation INTEGRATED
    templates/accounts/onboarding/invitation_email.html
    Integration: apps/accounts/services.py
    Function: EmailService.send_invitation_email()
  • Invitation Reminder INTEGRATED
    templates/accounts/onboarding/reminder_email.html
    Integration: apps/accounts/services.py
    Function: EmailService.send_reminder_email()
  • Onboarding Completion INTEGRATED
    templates/accounts/onboarding/completion_email.html
    Integration: apps/accounts/services.py
    Function: EmailService.send_completion_notification()
  • Password Reset INTEGRATED
    templates/accounts/email/password_reset_email.html
    Integration: Django Authentication System

🔌 Integration Points

Complaints System

apps/complaints/tasks.py

send_explanation_request_email(explanation_id)

Sends branded explanation request emails to staff when complaints are filed.

Accounts Service

apps/accounts/services.py

EmailService.send_*_email()

All onboarding emails (invitation, reminder, completion) use branded templates.

Notifications Service

apps/notifications/services.py

NotificationService.send_email()

Unified email service with HTML support and database logging.

Base Template

templates/emails/

{% extends 'emails/base_email_template.html' %}

All email templates extend the base template for consistent branding.