# Generating Referral Letters
A well-crafted referral letter communicates the patient's history concisely to the receiving specialist. ClinIT's AI assistant drafts the letter from session data — the doctor reviews and finalises.
---
From within a Session
- In the active session, click AI → Generate Referral Letter.
- Fill in the Referral Form:
- Refer To — specialist name/hospital (free text or from contacts).
- Specialty — destination specialty.
- Urgency — Routine / Urgent / Emergency.
- Reason for Referral — brief clinical reason.
- Click Generate.
The AI composes a structured letter containing:
- Patient demographics and contact
- Current complaint and relevant history
- Examination findings from today's session
- Diagnosis / Impression
- Reason for referral
- Current medications
- Requesting doctor's name, license, stamp
---
Reviewing and Editing
The draft appears in a rich-text editor. Edit any section freely. When satisfied:
- Click Approve & Save — the letter is saved to the patient's chart.
- Click Print to generate a PDF.
- Click Share via WhatsApp to send the PDF to the receiving doctor's phone.
---
From Outside a Session
- Go to Referrals in the sidebar.
- Click + New Referral Letter.
- Select the patient and complete the form as above.
---
Referral Letter Fields (Database)
The ReferralLetter model stores:
patientId,clinicId,doctorIdreferredTo— destination specialist / clinicspecialty— receiving specialtyurgency— ROUTINE / URGENT / EMERGENCYclinicalSummary— the full letter bodydiagnosis,reason,currentMeds,notesletterDate- Referral attribution link (source tracking)
---
Referral Analytics
Go to Analytics → Referral Sources to see:
- Number of outgoing referrals by specialty.
- Incoming referral attribution (which source referred patients to you).