All materials
patient_detail.html
htmlpatient_detail.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Patient Detail - Reseau Sante du Nord</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<nav class="top-nav">
<span class="nav-brand">Reseau Sante du Nord</span>
<div class="nav-links">
<a href="/patients">Patients</a>
<a href="/appointments">Appointments</a>
<span class="nav-user">{{ user_name }}</span>
<a href="/logout">Sign Out</a>
</div>
</nav>
<div class="content">
<h2>{{ patient[1] }} {{ patient[2] }}</h2>
<div class="patient-info">
<p><strong>Date of Birth:</strong> {{ patient[3] }}</p>
<p><strong>Community:</strong> {{ patient[4] }}</p>
<p><strong>Medical History:</strong> {{ patient[5] or 'No significant history' }}</p>
<p><strong>HIV Status:</strong> {{ patient[6] }}</p>
{% if patient[7] %}
<p><strong>Mental Health Notes:</strong> {{ patient[7] }}</p>
{% endif %}
<p><strong>Pregnancy Status:</strong> {{ patient[8] }}</p>
</div>
<h3>Appointments</h3>
<table class="data-table">
<thead><tr><th>Date</th><th>Time</th><th>Doctor</th><th>Notes</th></tr></thead>
<tbody>
{% for apt in appointments %}
<tr><td>{{ apt[4] }}</td><td>{{ apt[5] }}</td><td>{{ apt[3] }}</td><td>{{ apt[6] }}</td></tr>
{% endfor %}
</tbody>
</table>
<h3>Prescriptions</h3>
<table class="data-table">
<thead><tr><th>Medication</th><th>Dosage</th><th>Prescriber</th><th>Date</th></tr></thead>
<tbody>
{% for rx in prescriptions %}
<tr><td>{{ rx[2] }}</td><td>{{ rx[3] }}</td><td>{{ rx[4] }}</td><td>{{ rx[5] }}</td></tr>
{% endfor %}
</tbody>
</table>
<h3>Lab Results</h3>
<table class="data-table">
<thead><tr><th>Test</th><th>Result</th><th>Date</th><th>Technician</th></tr></thead>
<tbody>
{% for lab in lab_results %}
<tr><td>{{ lab[2] }}</td><td>{{ lab[3] }}</td><td>{{ lab[4] }}</td><td>{{ lab[5] }}</td></tr>
{% endfor %}
</tbody>
</table>
<a href="/patients" class="back-link">Back to Patient List</a>
</div>
</body>
</html>