Admins can now click on any patient name in the queue management or appointments section to view comprehensive patient details in a modal popup.
When clicking on a patient name, a detailed modal displays:
- Patient ID
- Full Name
- Age
- Gender
- Phone Number
- Email Address
- Blood Group
- Token Number
- Department
- Assigned Doctor
- Priority Level (with badge and score)
- Current Status
- Estimated Wait Time
- Emergency Flag
- Current Symptoms/Reason: Why they're visiting today
- Medical History: Previous conditions and notes
- Appointment History: Last 5 appointments with dates, departments, doctors, and status
- Admin views the queue
- Clicks on any patient name (now a clickable link)
- Modal popup appears with full patient details
- Can close modal and continue managing queue
- Clickable Names: Patient names are now blue underlined links
- Large Modal: Full-width modal for comprehensive information
- Organized Layout: Two-column layout for easy reading
- Color-Coded: Priority badges, status badges, emergency flags
- Responsive: Works on all screen sizes
┌─────────────────────────────────────────────────────────────┐
│ 👤 Patient Details [X] │
├─────────────────────────────────────────────────────────────┤
│ │
│ Personal Information Current Visit │
│ ───────────────────── ────────────── │
│ Patient ID: P-20260227-015 Token: P-001 │
│ Name: Harish Yadav Department: Pediatrics │
│ Age: 12 years Doctor: Dr. Patel │
│ Gender: Male Priority: 🔴 CRITICAL (55.0) │
│ Phone: 9876543223 Status: Waiting │
│ Email: patient3223@test.com Est. Wait: 15 minutes │
│ Blood Group: O+ Emergency: NO │
│ │
│ Current Symptoms/Reason │
│ ───────────────────────── │
│ 📋 Asthma, breathing difficulty │
│ │
│ Medical History │
│ ────────────────── │
│ 📜 Previous conditions: Asthma, breathing difficulty │
│ │
│ Appointment History │
│ ────────────────────── │
│ Date Department Doctor Status │
│ 2026-02-27 Pediatrics Dr. Patel Waiting │
│ 2026-02-15 Pediatrics Dr. Kumar Completed │
│ 2026-01-20 Pediatrics Dr. Patel Completed │
│ │
│ [Close] │
└─────────────────────────────────────────────────────────────┘
- Quick Access: Instant patient information without leaving queue page
- Medical History: See previous conditions before consultation
- Emergency Awareness: Clearly marked emergency cases
- Contact Info: Easy access to patient contact details
- Appointment History: View patient's visit patterns
- Informed Decisions: Make better priority decisions with full context
- Patient Identification: Verify patient identity quickly
- Emergency Response: Quickly identify high-risk patients
- Communication: Have phone/email readily available
- Comprehensive View: All patient data in one place
- Audit Trail: See appointment history
- Data Verification: Check patient information accuracy
- Efficient Workflow: No need to navigate to separate pages
- Added Bootstrap modal for each patient
- Clickable patient name links with
data-bs-toggle="modal" - Unique modal IDs to prevent conflicts
- Responsive two-column layout
- Color-coded badges and alerts
<a href="#" data-bs-toggle="modal" data-bs-target="#patientModal123">
Patient Name
</a>
<div class="modal" id="patientModal123">
<!-- Patient details here -->
</div>- All data comes from existing database models
- No additional queries needed
- Real-time information
- Includes relationships (appointments, department, doctor)
Admin sees: 🔴 CRITICAL priority patient
Clicks name: Harish Yadav
Modal shows:
- Age: 12 years (child - higher priority)
- Symptoms: "Asthma, breathing difficulty"
- Priority Score: 55.0
- Emergency: NO
- Medical History: Previous asthma episodes
Action: Prioritize immediately
Admin sees: 🟠 HIGH priority patient
Clicks name: Kamala Devi
Modal shows:
- Age: 72 years (elderly - higher priority)
- Symptoms: "Memory loss, confusion"
- Blood Group: AB+
- Previous visits: 3 in last month
Action: Assign experienced doctor
Admin sees: 🟢 NORMAL priority patient
Clicks name: Lalit Kumar
Modal shows:
- Age: 25 years
- Symptoms: "Acne treatment, skin care"
- Priority Score: 5.0
- First visit to dermatology
Action: Standard queue processing
- URL:
/admin/queue/ - Single Department View: Full details with actions
- All Departments View: Compact details
Can be added to:
- Appointments list page
- Patient management page
- Doctor's consultation page
- Reports and analytics
- Click Name: Open modal
- ESC: Close modal
- Click Outside: Close modal
- Close Button: Close modal
- Modal adapts to screen size
- Two columns on desktop
- Single column on mobile
- Touch-friendly buttons
- Scrollable content
- Only admins can access
- Patient data protected
- No sensitive data exposed unnecessarily
- Follows HIPAA-like privacy guidelines
- ✅
app/templates/queue.html- Added clickable names and modals
🎉 PATIENT DETAILS MODAL IMPLEMENTED 🎉
Admins can now click any patient name to view comprehensive details including personal info, current visit details, symptoms, medical history, and appointment history.
- Add edit patient information button
- Add notes/comments section
- Add prescription history
- Add lab results
- Add vital signs tracking
- Add allergy information
- Add insurance details
- Add family medical history