prepare("SELECT name FROM residents WHERE id = ?"); $stmt->execute([$resident_id]); $resident = $stmt->fetch(); // Fetch resident's domain scores $stmt = $pdo->prepare(" SELECT d.name, rds.score FROM resident_domain_scores rds JOIN domains d ON rds.domain_id = d.id WHERE rds.resident_id = ? ORDER BY d.id "); $stmt->execute([$resident_id]); $domain_scores = $stmt->fetchAll(); // Fetch resident's action plans $stmt = $pdo->prepare(" SELECT ap.id, ap.title, ap.description, ap.status, d.name as domain_name FROM action_plans ap JOIN domains d ON ap.domain_id = d.id WHERE ap.resident_id = ? ORDER BY ap.created_at DESC "); $stmt->execute([$resident_id]); $action_plans = $stmt->fetchAll(); // Fetch resident's case manager for messaging $stmt = $pdo->prepare("SELECT u.id, u.name, u.email FROM users u JOIN residents r ON u.id = r.case_manager_id WHERE r.id = ?"); $stmt->execute([$resident_id]); $case_manager = $stmt->fetch(); ?>
| Title | Domain | Status | Action |
|---|---|---|---|
| You have no active action plans. | |||
| View Details | |||
Your appointment calendar will be displayed here.
View CalendarAccess helpful documents, links, and guides.
Browse Resources