low complexity extracted Contacts Confidence: 100%
5
Components
32
Shared
0
User Stories
Yes
Analyzed

Description

The Caregiver & Next-of-Kin feature allows peer mentors and coordinators to record and access emergency contact information and caregiver relationships for a given contact. Each contact can have one or more caregivers or next-of-kin linked to their profile, with fields for name, relationship type, phone number, and any relevant notes. The feature is particularly important for contacts with complex care situations where knowing who to contact in an emergency is critical. Data entry is simple and accessible, and caregiver records are displayed clearly within the contact detail screen with appropriate sensitive field protections applied.

User Flow

Caregiver & Next-of-Kin user flow
Click to expand

Analysis

Business Value

Many of the contacts supported by peer mentors are elderly, have disabilities, or live alone, making next-of-kin and caregiver information essential for safety and continuity of care. Without this data in the app, peer mentors and coordinators must rely on informal knowledge or separate systems, creating gaps that can have serious consequences in emergency situations. Centralising caregiver information within the platform ensures it is always accessible during an active interaction and is kept up to date by the people closest to the contact. For organisations such as NHF, which serves contacts with cognitive disabilities and post-stroke conditions, this feature is a direct risk mitigation measure. Barnekreftforeningen explicitly identified a caregiver/next-of-kin database as a first-phase need, underscoring its priority across the partner organisations.

Implementation Notes

Caregivers are stored in the `contact_caregivers` table with a foreign key to `contacts`. The API exposes caregiver records as a nested array on the contact response and via dedicated endpoints (`/api/v1/contacts/:id/caregivers`) for CRUD operations. In Flutter, the caregivers section is rendered as an expandable card within the contact detail screen, listing each caregiver with name, relationship, and phone. An add/edit bottom sheet handles caregiver creation and updates. The relationship type field uses a predefined dropdown (spouse, parent, child, sibling, carer, other) to ensure data consistency. Phone numbers must be stored and displayed with the sensitive field readout warning applied. BLoC manages caregiver list state independently from the parent contact state to allow targeted refreshes without reloading the entire contact object.

Components (37)

User Interface (2)

Service Layer (2)

Data Layer (1)

Shared Components

These components are reused across multiple features

User Stories

No user stories have been generated for this feature yet.