﻿# Requirements Register

**Project:** HAD Digital  
**Version:** 1.0.0  
**Date:** 2026-09-05  
**Owner:** Dr Kais Aldabbagh

---

## System Requirements

| ID | Requirement | Description | Priority | Status | Evidence |
|----|-------------|-------------|----------|--------|----------|
| REQ-SYS-01 | Patient Toxicity Self-Reporting | Structured questionnaire for CTCAE domains | HIGH | Implemented | app.js, API /reports |
| REQ-SYS-02 | Clinician Observation Entry | Clinical findings entry form | HIGH | Implemented | app.js, API /reports |
| REQ-SYS-03 | Automated CTCAE Grading | Rule engine for CTCAE grades 1-5 | HIGH | Implemented | ctcae_engine.py |
| REQ-SYS-04 | Tiered Clinical Alerting | Routine/Urgent/Emergency routing | HIGH | Implemented | alert_engine.py |
| REQ-SYS-05 | Patient Guidance | Context-aware guidance content | HIGH | Implemented | guidance.json |
| REQ-SYS-06 | Shared Care Timeline | Chronological event feed | HIGH | Implemented | API /timeline |
| REQ-SYS-07 | Secure Messaging | Direct care-team messaging | HIGH | Implemented | API /messages |
| REQ-SYS-08 | Treatment Plan View | Protocol and schedule display | HIGH | Implemented | API /treatment-plan |
| REQ-SYS-09 | Toxicity Summary Export | Structured export for records | HIGH | Implemented | API /export/summary |
| REQ-SYS-10 | Role-Based Access Control | 8 roles with episode-based access | HIGH | Implemented | user_store.py |
| REQ-SYS-11 | Audit Trail | Immutable log of all actions | HIGH | Implemented | audit_logger.py |

---

## Technical Requirements

| ID | Requirement | Description | Priority | Status | Evidence |
|----|-------------|-------------|----------|--------|----------|
| REQ-TEC-01 | Standalone .exe | Single Windows executable | HIGH | Implemented | PyInstaller build |
| REQ-TEC-02 | Zero Dependencies | No Python, Docker, npm | HIGH | Implemented | Bundled in .exe |
| REQ-TEC-03 | Portable Deployment | Copy to USB or network share | HIGH | Implemented | --onedir mode |
| REQ-TEC-04 | Local-First | Core functions work offline | HIGH | Implemented | SQLite, no cloud |
| REQ-TEC-05 | SQLite Database | Zero-config, file-based | HIGH | Implemented | database.py |

---
