1172 lines
34 KiB
HTML
1172 lines
34 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>GP Clinical System — Warm Accessible Clinical</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Libre+Franklin:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
/* ===== RESET & BASE ===== */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html {
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
background: #FFFCF7;
|
|
color: #2D2A26;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* ===== DESIGN TOKENS ===== */
|
|
:root {
|
|
--bg-page: #FFFCF7;
|
|
--bg-surface: #FFFFFF;
|
|
--primary: #1B3A5C;
|
|
--accent: #1A7A6D;
|
|
--accent-hover: #15655A;
|
|
--accent-light: #E8F5F2;
|
|
--alert: #C93B3B;
|
|
--alert-light: #FDF0F0;
|
|
--alert-bg: #FEF6F5;
|
|
--warning: #B8730A;
|
|
--warning-light: #FFF6E8;
|
|
--success: #1A7A3C;
|
|
--success-light: #EDF7F0;
|
|
--text-primary: #2D2A26;
|
|
--text-secondary: #6B6560;
|
|
--text-tertiary: #8A847D;
|
|
--border: #E6DFD6;
|
|
--border-light: #F0EBE4;
|
|
--shadow-sm: 0 1px 3px rgba(45,42,38,0.06), 0 1px 2px rgba(45,42,38,0.04);
|
|
--shadow-md: 0 4px 12px rgba(45,42,38,0.07), 0 2px 4px rgba(45,42,38,0.04);
|
|
--shadow-lg: 0 8px 24px rgba(45,42,38,0.08), 0 4px 8px rgba(45,42,38,0.04);
|
|
--radius-sm: 6px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--font-mono: 'Fira Code', 'Consolas', monospace;
|
|
--transition: 150ms ease;
|
|
}
|
|
|
|
/* ===== PATIENT BANNER ===== */
|
|
.patient-banner {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
background: var(--bg-surface);
|
|
border-bottom: 3px solid var(--border);
|
|
box-shadow: var(--shadow-sm);
|
|
height: 90px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.patient-banner__content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.patient-banner__row1 {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.patient-name {
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.patient-demo {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 14px;
|
|
color: var(--text-secondary);
|
|
font-size: 0.93rem;
|
|
}
|
|
|
|
.patient-demo span {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: 4px;
|
|
}
|
|
|
|
.patient-demo .label {
|
|
color: var(--text-tertiary);
|
|
font-weight: 500;
|
|
font-size: 0.82rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.nhs-number {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.88rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.patient-banner__row2 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
color: var(--text-secondary);
|
|
font-size: 0.86rem;
|
|
}
|
|
|
|
.patient-banner__row2 .sep {
|
|
color: var(--border);
|
|
user-select: none;
|
|
}
|
|
|
|
.patient-banner__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-shrink: 0;
|
|
margin-left: 24px;
|
|
}
|
|
|
|
.allergy-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: var(--alert-bg);
|
|
color: var(--alert);
|
|
border: 1.5px solid #E8A0A0;
|
|
border-radius: 20px;
|
|
padding: 6px 14px;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.allergy-tag .allergy-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.alerts-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: var(--warning-light);
|
|
color: var(--warning);
|
|
border: 1.5px solid #E0C690;
|
|
border-radius: 20px;
|
|
padding: 6px 14px;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.alerts-btn:hover {
|
|
background: #FCEFD8;
|
|
}
|
|
|
|
.alerts-btn:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.alerts-count {
|
|
background: var(--warning);
|
|
color: #fff;
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
border-radius: 50%;
|
|
width: 18px;
|
|
height: 18px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ===== TAB NAVIGATION ===== */
|
|
.tab-nav {
|
|
position: fixed;
|
|
top: 90px;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 99;
|
|
background: var(--bg-surface);
|
|
border-bottom: 1px solid var(--border);
|
|
box-shadow: 0 2px 6px rgba(45,42,38,0.04);
|
|
display: flex;
|
|
align-items: stretch;
|
|
padding: 0 24px;
|
|
height: 44px;
|
|
}
|
|
|
|
.tab-nav__item {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0 18px;
|
|
font-size: 0.93rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
border: none;
|
|
background: none;
|
|
transition: color var(--transition), background var(--transition);
|
|
white-space: nowrap;
|
|
border-bottom: 3px solid transparent;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.tab-nav__item:hover {
|
|
color: var(--text-primary);
|
|
background: rgba(26,122,109,0.04);
|
|
}
|
|
|
|
.tab-nav__item:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.tab-nav__item.active {
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.tab-nav__item.active::after {
|
|
content: '';
|
|
}
|
|
|
|
/* ===== MAIN CONTENT ===== */
|
|
.main-content {
|
|
margin-top: 134px; /* banner 90 + tabs 44 */
|
|
padding: 20px 24px 80px;
|
|
flex: 1;
|
|
max-width: 1400px;
|
|
width: 100%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.tab-panel {
|
|
display: none;
|
|
}
|
|
|
|
.tab-panel.active {
|
|
display: block;
|
|
}
|
|
|
|
/* ===== GRID LAYOUT ===== */
|
|
.grid-row {
|
|
display: grid;
|
|
gap: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.grid-row--2col {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.grid-row--full {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
/* ===== CARD / SECTION ===== */
|
|
.card {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-sm);
|
|
overflow: hidden;
|
|
transition: box-shadow var(--transition);
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 18px 12px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.card__title {
|
|
font-size: 0.96rem;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
letter-spacing: -0.005em;
|
|
}
|
|
|
|
.card__badge {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
background: var(--border-light);
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.card__body {
|
|
padding: 0;
|
|
}
|
|
|
|
/* ===== TABLES ===== */
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.data-table thead th {
|
|
text-align: left;
|
|
padding: 10px 18px;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
background: #FDFBF8;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.data-table tbody tr {
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.data-table tbody tr:hover {
|
|
background: #FEFCF9;
|
|
}
|
|
|
|
.data-table tbody td {
|
|
padding: 10px 18px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.data-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.data-table .code {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.83rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ===== STATUS BADGES ===== */
|
|
.status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.status--active {
|
|
color: var(--success);
|
|
background: var(--success-light);
|
|
}
|
|
|
|
.status--significant {
|
|
color: var(--alert);
|
|
background: var(--alert-light);
|
|
}
|
|
|
|
.status--normal {
|
|
color: var(--success);
|
|
background: var(--success-light);
|
|
}
|
|
|
|
.status--borderline {
|
|
color: var(--warning);
|
|
background: var(--warning-light);
|
|
}
|
|
|
|
.status--above {
|
|
color: var(--warning);
|
|
background: var(--warning-light);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-dot--green { background: var(--success); }
|
|
.status-dot--amber { background: var(--warning); }
|
|
.status-dot--red { background: var(--alert); }
|
|
|
|
/* Allergy row highlight */
|
|
.row-alert {
|
|
background: var(--alert-bg) !important;
|
|
}
|
|
|
|
.row-alert:hover {
|
|
background: #FDF0EE !important;
|
|
}
|
|
|
|
/* ===== CONSULTATION CARDS ===== */
|
|
.consult-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 14px;
|
|
padding: 16px 18px;
|
|
}
|
|
|
|
.consult-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 14px 16px;
|
|
background: var(--bg-page);
|
|
transition: border-color var(--transition), box-shadow var(--transition);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.consult-card:hover {
|
|
border-color: var(--accent);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.consult-card:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.consult-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.consult-card__date {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.82rem;
|
|
font-weight: 500;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.consult-card__clinician {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.consult-card__title {
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.consult-card__summary {
|
|
font-size: 0.84rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
/* ===== REMINDER LIST ===== */
|
|
.reminder-list {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.reminder-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 18px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
font-size: 0.88rem;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.reminder-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.reminder-item:hover {
|
|
background: #FEFCF9;
|
|
}
|
|
|
|
.reminder-item__label {
|
|
flex: 1;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.reminder-item__date {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.83rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ===== IMMUNISATION LIST ===== */
|
|
.imm-check {
|
|
color: var(--success);
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* ===== PLACEHOLDER TAB CONTENT ===== */
|
|
.tab-placeholder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 80px 40px;
|
|
text-align: center;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.tab-placeholder__icon {
|
|
font-size: 2.4rem;
|
|
margin-bottom: 14px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.tab-placeholder__title {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.tab-placeholder__text {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* ===== ACTION BAR ===== */
|
|
.action-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
background: var(--bg-surface);
|
|
border-top: 1px solid var(--border);
|
|
box-shadow: 0 -4px 16px rgba(45,42,38,0.06);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
padding: 10px 24px;
|
|
height: 56px;
|
|
}
|
|
|
|
.action-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
height: 36px;
|
|
padding: 0 16px;
|
|
font-family: 'Libre Franklin', sans-serif;
|
|
font-size: 0.86rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
background: var(--accent);
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: background var(--transition), box-shadow var(--transition), transform 80ms ease;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
background: var(--accent-hover);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.action-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.action-btn:focus-visible {
|
|
outline: 2px solid var(--primary);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.action-btn--secondary {
|
|
background: transparent;
|
|
color: var(--accent);
|
|
border: 1.5px solid var(--accent);
|
|
}
|
|
|
|
.action-btn--secondary:hover {
|
|
background: var(--accent-light);
|
|
}
|
|
|
|
.action-btn .btn-icon {
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* ===== FOCUS / A11Y ===== */
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Screen reader only */
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0,0,0,0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* ===== RESPONSIVE ===== */
|
|
@media (max-width: 1024px) {
|
|
.grid-row--2col {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.consult-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.patient-banner {
|
|
height: auto;
|
|
padding: 12px 16px;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
.patient-banner__actions {
|
|
margin-left: 0;
|
|
margin-top: 8px;
|
|
}
|
|
.tab-nav {
|
|
top: auto;
|
|
position: relative;
|
|
overflow-x: auto;
|
|
padding: 0 12px;
|
|
}
|
|
.main-content {
|
|
margin-top: 0;
|
|
padding: 16px 12px 80px;
|
|
}
|
|
.action-bar {
|
|
overflow-x: auto;
|
|
justify-content: flex-start;
|
|
padding: 10px 12px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- ===== PATIENT BANNER ===== -->
|
|
<header class="patient-banner" role="banner" aria-label="Patient information">
|
|
<div class="patient-banner__content">
|
|
<div class="patient-banner__row1">
|
|
<span class="patient-name">Sarah Mitchell</span>
|
|
<div class="patient-demo">
|
|
<span><span class="label">DOB</span> 14/03/1967</span>
|
|
<span><span class="label">Age</span> 58</span>
|
|
<span><span class="label">Sex</span> Female</span>
|
|
<span><span class="label">NHS</span> <span class="nhs-number">943 216 8821</span></span>
|
|
</div>
|
|
</div>
|
|
<div class="patient-banner__row2">
|
|
<span>14 Oakfield Road, Bristol, BS8 2BN</span>
|
|
<span class="sep">|</span>
|
|
<span>07712 845 392</span>
|
|
<span class="sep">|</span>
|
|
<span>GP: Dr. J Patterson</span>
|
|
<span class="sep">|</span>
|
|
<span>Riverside Medical Centre</span>
|
|
</div>
|
|
</div>
|
|
<div class="patient-banner__actions">
|
|
<span class="allergy-tag" role="alert">
|
|
<span class="allergy-icon" aria-hidden="true">⚠</span>
|
|
Penicillin — ALLERGY
|
|
</span>
|
|
<button class="alerts-btn" type="button" aria-label="View 2 active alerts">
|
|
Alerts <span class="alerts-count" aria-hidden="true">2</span>
|
|
</button>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- ===== TAB NAVIGATION ===== -->
|
|
<nav class="tab-nav" role="tablist" aria-label="Clinical record sections">
|
|
<button class="tab-nav__item active" role="tab" aria-selected="true" aria-controls="panel-summary" id="tab-summary" data-tab="summary">Summary</button>
|
|
<button class="tab-nav__item" role="tab" aria-selected="false" aria-controls="panel-consultations" id="tab-consultations" data-tab="consultations">Consultations</button>
|
|
<button class="tab-nav__item" role="tab" aria-selected="false" aria-controls="panel-problems" id="tab-problems" data-tab="problems">Problems</button>
|
|
<button class="tab-nav__item" role="tab" aria-selected="false" aria-controls="panel-medications" id="tab-medications" data-tab="medications">Medications</button>
|
|
<button class="tab-nav__item" role="tab" aria-selected="false" aria-controls="panel-results" id="tab-results" data-tab="results">Results</button>
|
|
<button class="tab-nav__item" role="tab" aria-selected="false" aria-controls="panel-referrals" id="tab-referrals" data-tab="referrals">Referrals</button>
|
|
<button class="tab-nav__item" role="tab" aria-selected="false" aria-controls="panel-immunisations" id="tab-immunisations" data-tab="immunisations">Immunisations</button>
|
|
<button class="tab-nav__item" role="tab" aria-selected="false" aria-controls="panel-documents" id="tab-documents" data-tab="documents">Documents</button>
|
|
</nav>
|
|
|
|
<!-- ===== MAIN CONTENT ===== -->
|
|
<main class="main-content">
|
|
|
|
<!-- ===== SUMMARY TAB ===== -->
|
|
<div class="tab-panel active" id="panel-summary" role="tabpanel" aria-labelledby="tab-summary">
|
|
|
|
<!-- Row 1: Active Problems + Allergies -->
|
|
<div class="grid-row grid-row--2col">
|
|
|
|
<!-- Active Problems -->
|
|
<section class="card">
|
|
<div class="card__header">
|
|
<h2 class="card__title">Active Problems</h2>
|
|
<span class="card__badge">3</span>
|
|
</div>
|
|
<div class="card__body">
|
|
<table class="data-table" aria-label="Active problems">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Problem</th>
|
|
<th scope="col">Onset</th>
|
|
<th scope="col">Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="code">Type 2 Diabetes Mellitus</span></td>
|
|
<td class="code">Mar 2019</td>
|
|
<td><span class="status status--active"><span class="status-dot status-dot--green" aria-hidden="true"></span> Active</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="code">Essential Hypertension</span></td>
|
|
<td class="code">Jun 2015</td>
|
|
<td><span class="status status--active"><span class="status-dot status-dot--green" aria-hidden="true"></span> Active</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="code">Osteoarthritis R Knee</span></td>
|
|
<td class="code">Sep 2021</td>
|
|
<td><span class="status status--active"><span class="status-dot status-dot--green" aria-hidden="true"></span> Active</span></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Allergies -->
|
|
<section class="card">
|
|
<div class="card__header">
|
|
<h2 class="card__title">Allergies & Adverse Reactions</h2>
|
|
<span class="card__badge">1</span>
|
|
</div>
|
|
<div class="card__body">
|
|
<table class="data-table" aria-label="Allergies and adverse reactions">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Allergen</th>
|
|
<th scope="col">Reaction</th>
|
|
<th scope="col">Severity</th>
|
|
<th scope="col">Recorded</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="row-alert">
|
|
<td><strong>Penicillin</strong></td>
|
|
<td>Rash</td>
|
|
<td><span class="status status--significant"><span class="status-dot status-dot--red" aria-hidden="true"></span> Significant</span></td>
|
|
<td class="code">14/06/2003</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<!-- Row 2: Current Medications + Latest Results -->
|
|
<div class="grid-row grid-row--2col">
|
|
|
|
<!-- Current Medications -->
|
|
<section class="card">
|
|
<div class="card__header">
|
|
<h2 class="card__title">Current Medications</h2>
|
|
<span class="card__badge">3</span>
|
|
</div>
|
|
<div class="card__body">
|
|
<table class="data-table" aria-label="Current medications">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Medication</th>
|
|
<th scope="col">Dose</th>
|
|
<th scope="col">Frequency</th>
|
|
<th scope="col">Last Issued</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>Metformin</strong></td>
|
|
<td class="code">500mg</td>
|
|
<td>1 tablet BD</td>
|
|
<td class="code">02/12/2025</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Amlodipine</strong></td>
|
|
<td class="code">5mg</td>
|
|
<td>1 tablet OD</td>
|
|
<td class="code">02/12/2025</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Ibuprofen</strong></td>
|
|
<td class="code">400mg</td>
|
|
<td>1 tablet PRN</td>
|
|
<td class="code">28/01/2026</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Latest Results -->
|
|
<section class="card">
|
|
<div class="card__header">
|
|
<h2 class="card__title">Latest Results</h2>
|
|
<span class="card__badge">4</span>
|
|
</div>
|
|
<div class="card__body">
|
|
<table class="data-table" aria-label="Latest test results">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Test</th>
|
|
<th scope="col">Value</th>
|
|
<th scope="col">Date</th>
|
|
<th scope="col">Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>HbA1c</strong></td>
|
|
<td class="code">52 mmol/mol</td>
|
|
<td class="code">07/02/2026</td>
|
|
<td><span class="status status--normal"><span class="status-dot status-dot--green" aria-hidden="true"></span> Normal</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>eGFR</strong></td>
|
|
<td class="code">78</td>
|
|
<td class="code">07/02/2026</td>
|
|
<td><span class="status status--borderline"><span class="status-dot status-dot--amber" aria-hidden="true"></span> Borderline</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Total Cholesterol</strong></td>
|
|
<td class="code">5.2 mmol/L</td>
|
|
<td class="code">07/02/2026</td>
|
|
<td><span class="status status--borderline"><span class="status-dot status-dot--amber" aria-hidden="true"></span> Borderline</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Blood Pressure</strong></td>
|
|
<td class="code">138/82 mmHg</td>
|
|
<td class="code">13/02/2026</td>
|
|
<td><span class="status status--above"><span class="status-dot status-dot--amber" aria-hidden="true"></span> Above target</span></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<!-- Row 3: Recent Consultations -->
|
|
<div class="grid-row grid-row--full">
|
|
<section class="card">
|
|
<div class="card__header">
|
|
<h2 class="card__title">Recent Consultations</h2>
|
|
<span class="card__badge">4</span>
|
|
</div>
|
|
<div class="card__body">
|
|
<div class="consult-list">
|
|
|
|
<div class="consult-card" tabindex="0" role="article" aria-label="Consultation 13 February 2026">
|
|
<div class="consult-card__header">
|
|
<span class="consult-card__date">13/02/2026</span>
|
|
<span class="consult-card__clinician">Dr Patterson</span>
|
|
</div>
|
|
<div class="consult-card__title">Diabetes Annual Review</div>
|
|
<div class="consult-card__summary">HbA1c 52, BP 138/82 above target. Continue Metformin. Repeat BP 4wk.</div>
|
|
</div>
|
|
|
|
<div class="consult-card" tabindex="0" role="article" aria-label="Consultation 28 January 2026">
|
|
<div class="consult-card__header">
|
|
<span class="consult-card__date">28/01/2026</span>
|
|
<span class="consult-card__clinician">Dr Williams</span>
|
|
</div>
|
|
<div class="consult-card__title">Knee Pain Review</div>
|
|
<div class="consult-card__summary">Ongoing R knee pain. OA confirmed on X-ray. Continue PRN analgesia.</div>
|
|
</div>
|
|
|
|
<div class="consult-card" tabindex="0" role="article" aria-label="Consultation 15 January 2026">
|
|
<div class="consult-card__header">
|
|
<span class="consult-card__date">15/01/2026</span>
|
|
<span class="consult-card__clinician">Nurse Brown</span>
|
|
</div>
|
|
<div class="consult-card__title">BP Check</div>
|
|
<div class="consult-card__summary">BP 142/86 above target. Advised low salt diet. Review in 4 weeks.</div>
|
|
</div>
|
|
|
|
<div class="consult-card" tabindex="0" role="article" aria-label="Consultation 2 December 2025">
|
|
<div class="consult-card__header">
|
|
<span class="consult-card__date">02/12/2025</span>
|
|
<span class="consult-card__clinician">Dr Patterson</span>
|
|
</div>
|
|
<div class="consult-card__title">Medication Review</div>
|
|
<div class="consult-card__summary">All medications reviewed, well tolerated. No changes required.</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<!-- Row 4: Care Reminders + Immunisations -->
|
|
<div class="grid-row grid-row--2col">
|
|
|
|
<!-- Care Reminders -->
|
|
<section class="card">
|
|
<div class="card__header">
|
|
<h2 class="card__title">Care Reminders</h2>
|
|
<span class="card__badge">4</span>
|
|
</div>
|
|
<div class="card__body">
|
|
<div class="reminder-list">
|
|
<div class="reminder-item">
|
|
<span class="status-dot status-dot--amber" aria-hidden="true"></span>
|
|
<span class="reminder-item__label">BP re-check</span>
|
|
<span class="reminder-item__date">Mar 2026</span>
|
|
</div>
|
|
<div class="reminder-item">
|
|
<span class="status-dot status-dot--amber" aria-hidden="true"></span>
|
|
<span class="reminder-item__label">Annual bloods</span>
|
|
<span class="reminder-item__date">Aug 2026</span>
|
|
</div>
|
|
<div class="reminder-item">
|
|
<span class="status-dot status-dot--amber" aria-hidden="true"></span>
|
|
<span class="reminder-item__label">Diabetic foot check</span>
|
|
<span class="reminder-item__date">Feb 2027</span>
|
|
</div>
|
|
<div class="reminder-item">
|
|
<span class="status-dot status-dot--amber" aria-hidden="true"></span>
|
|
<span class="reminder-item__label">Cervical screening</span>
|
|
<span class="reminder-item__date">May 2026</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Immunisations -->
|
|
<section class="card">
|
|
<div class="card__header">
|
|
<h2 class="card__title">Immunisations</h2>
|
|
<span class="card__badge">4</span>
|
|
</div>
|
|
<div class="card__body">
|
|
<table class="data-table" aria-label="Immunisation history">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Vaccine</th>
|
|
<th scope="col">Date</th>
|
|
<th scope="col">Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>COVID-19 Booster</strong></td>
|
|
<td class="code">18/10/2025</td>
|
|
<td><span class="imm-check" aria-label="Administered">✓</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Influenza</strong></td>
|
|
<td class="code">05/11/2025</td>
|
|
<td><span class="imm-check" aria-label="Administered">✓</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Pneumococcal</strong></td>
|
|
<td class="code">12/09/2022</td>
|
|
<td><span class="imm-check" aria-label="Administered">✓</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Td/IPV</strong></td>
|
|
<td class="code">03/04/2018</td>
|
|
<td><span class="imm-check" aria-label="Administered">✓</span></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
</div><!-- /panel-summary -->
|
|
|
|
<!-- ===== OTHER TAB PANELS ===== -->
|
|
<div class="tab-panel" id="panel-consultations" role="tabpanel" aria-labelledby="tab-consultations">
|
|
<div class="tab-placeholder">
|
|
<div class="tab-placeholder__icon">📄</div>
|
|
<div class="tab-placeholder__title">Consultations</div>
|
|
<div class="tab-placeholder__text">Full consultation history for Sarah Mitchell</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-panel" id="panel-problems" role="tabpanel" aria-labelledby="tab-problems">
|
|
<div class="tab-placeholder">
|
|
<div class="tab-placeholder__icon">📋</div>
|
|
<div class="tab-placeholder__title">Problem List</div>
|
|
<div class="tab-placeholder__text">Active and past problems</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-panel" id="panel-medications" role="tabpanel" aria-labelledby="tab-medications">
|
|
<div class="tab-placeholder">
|
|
<div class="tab-placeholder__icon">💊</div>
|
|
<div class="tab-placeholder__title">Medications</div>
|
|
<div class="tab-placeholder__text">Current and past prescriptions</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-panel" id="panel-results" role="tabpanel" aria-labelledby="tab-results">
|
|
<div class="tab-placeholder">
|
|
<div class="tab-placeholder__icon">📈</div>
|
|
<div class="tab-placeholder__title">Test Results</div>
|
|
<div class="tab-placeholder__text">Laboratory and investigation results</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-panel" id="panel-referrals" role="tabpanel" aria-labelledby="tab-referrals">
|
|
<div class="tab-placeholder">
|
|
<div class="tab-placeholder__icon">📤</div>
|
|
<div class="tab-placeholder__title">Referrals</div>
|
|
<div class="tab-placeholder__text">Outgoing and incoming referrals</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-panel" id="panel-immunisations" role="tabpanel" aria-labelledby="tab-immunisations">
|
|
<div class="tab-placeholder">
|
|
<div class="tab-placeholder__icon">💉</div>
|
|
<div class="tab-placeholder__title">Immunisations</div>
|
|
<div class="tab-placeholder__text">Full immunisation record</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-panel" id="panel-documents" role="tabpanel" aria-labelledby="tab-documents">
|
|
<div class="tab-placeholder">
|
|
<div class="tab-placeholder__icon">📁</div>
|
|
<div class="tab-placeholder__title">Documents</div>
|
|
<div class="tab-placeholder__text">Letters, reports, and attachments</div>
|
|
</div>
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<!-- ===== ACTION BAR ===== -->
|
|
<footer class="action-bar" role="toolbar" aria-label="Clinical actions">
|
|
<button class="action-btn" type="button"><span class="btn-icon" aria-hidden="true">+</span> New Consultation</button>
|
|
<button class="action-btn" type="button"><span class="btn-icon" aria-hidden="true">℞</span> Prescribe</button>
|
|
<button class="action-btn" type="button"><span class="btn-icon" aria-hidden="true">✎</span> Add Problem</button>
|
|
<button class="action-btn" type="button"><span class="btn-icon" aria-hidden="true">🔬</span> Order Test</button>
|
|
<button class="action-btn--secondary action-btn" type="button"><span class="btn-icon" aria-hidden="true">→</span> Refer</button>
|
|
<button class="action-btn--secondary action-btn" type="button"><span class="btn-icon" aria-hidden="true">📄</span> Fit Note</button>
|
|
<button class="action-btn--secondary action-btn" type="button"><span class="btn-icon" aria-hidden="true">🖨</span> Print</button>
|
|
</footer>
|
|
|
|
<!-- ===== TAB SWITCHING JS ===== -->
|
|
<script>
|
|
(function() {
|
|
'use strict';
|
|
|
|
const tabs = document.querySelectorAll('.tab-nav__item');
|
|
const panels = document.querySelectorAll('.tab-panel');
|
|
|
|
function activateTab(tabEl) {
|
|
const target = tabEl.getAttribute('data-tab');
|
|
|
|
// Deactivate all tabs
|
|
tabs.forEach(function(t) {
|
|
t.classList.remove('active');
|
|
t.setAttribute('aria-selected', 'false');
|
|
});
|
|
|
|
// Hide all panels
|
|
panels.forEach(function(p) {
|
|
p.classList.remove('active');
|
|
});
|
|
|
|
// Activate selected tab
|
|
tabEl.classList.add('active');
|
|
tabEl.setAttribute('aria-selected', 'true');
|
|
|
|
// Show corresponding panel
|
|
var panel = document.getElementById('panel-' + target);
|
|
if (panel) {
|
|
panel.classList.add('active');
|
|
}
|
|
}
|
|
|
|
// Click handler
|
|
tabs.forEach(function(tab) {
|
|
tab.addEventListener('click', function() {
|
|
activateTab(this);
|
|
});
|
|
});
|
|
|
|
// Keyboard navigation (arrow keys between tabs)
|
|
tabs.forEach(function(tab, index) {
|
|
tab.addEventListener('keydown', function(e) {
|
|
var tabArray = Array.from(tabs);
|
|
var currentIndex = tabArray.indexOf(this);
|
|
var newIndex;
|
|
|
|
if (e.key === 'ArrowRight' || e.key === 'ArrowDown') {
|
|
e.preventDefault();
|
|
newIndex = (currentIndex + 1) % tabArray.length;
|
|
tabArray[newIndex].focus();
|
|
activateTab(tabArray[newIndex]);
|
|
} else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {
|
|
e.preventDefault();
|
|
newIndex = (currentIndex - 1 + tabArray.length) % tabArray.length;
|
|
tabArray[newIndex].focus();
|
|
activateTab(tabArray[newIndex]);
|
|
} else if (e.key === 'Home') {
|
|
e.preventDefault();
|
|
tabArray[0].focus();
|
|
activateTab(tabArray[0]);
|
|
} else if (e.key === 'End') {
|
|
e.preventDefault();
|
|
tabArray[tabArray.length - 1].focus();
|
|
activateTab(tabArray[tabArray.length - 1]);
|
|
}
|
|
});
|
|
});
|
|
})();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|