Caregiver & Next-of-Kin
Feature Detail
Description
This feature manages the caregiver and next-of-kin relationships associated with a contact. Each contact can have one or more registered caregivers or next-of-kin, with their own contact details, relationship type, and communication preferences. The feature supports creating, editing, and removing caregiver records, and surfaces caregiver information prominently on the contact detail screen so peer mentors can quickly reach the right person in urgent situations or when the contact is unavailable.
User Flow
Analysis
Many of the contacts in the peer mentor program are elderly, have disabilities, or are in vulnerable situations where a caregiver or next-of-kin is a critical communication link. Barnekreftforeningen explicitly identified a pårørende (next-of-kin) database as a MUST HAVE requirement in Phase 1. Without this feature, peer mentors lack the emergency contact information needed to fulfil their duty of care, and coordinators cannot properly manage complex care networks. Storing caregiver relationships in a structured, searchable format also supports Bufdir reporting accuracy and organisation-level oversight of care networks.
Caregiver records are stored in the contact_caregivers table with a many-to-one relationship to contacts. The Flutter UI presents caregivers as an expandable card section within the contact detail screen, with an add/edit bottom sheet for caregiver details. Relationship type is a fixed enum (parent, spouse, child, sibling, friend, professional_carer, other) rendered as a dropdown. WCAG 2.2 AA compliance requires all form elements to have associated labels and that the add/edit sheet is announced correctly by screen readers. The REST API enforces that only coordinators and the contact's assigned peer mentor can view or modify caregiver records, maintaining tenant data isolation.
Components (112)
Shared Components
These components are reused across multiple features
User Interface (12)
Service Layer (34)
Data Layer (22)
Infrastructure (38)
User Stories
No user stories have been generated for this feature yet.