low complexity extracted Contacts Confidence: 100%
4
Components
39
Shared
0
User Stories
Yes
Analyzed

Description

This feature allows peer mentors to record and view caregiver and next-of-kin information linked to a specific contact. Each contact can have one or more caregiver records, storing details such as name, relationship, phone number, and any relevant notes. The caregiver detail screen is accessible directly from the contact detail view and supports both viewing and editing of caregiver records. The feature is particularly important for contacts with high support needs, where coordinators and peer mentors must be able to reach family members or professional caregivers quickly. Data is stored in the local Drift database as part of the contact record and synced with the backend, ensuring availability offline during home visits or calls where connectivity may be limited.

Analysis

Business Value

For organizations supporting individuals with disabilities or health challenges, caregiver and next-of-kin information is operationally critical. Peer mentors conducting home visits need immediate access to emergency contacts and family context without having to navigate outside the app. This reduces risk during incidents and ensures that follow-up care can be coordinated efficiently between the peer mentor, the contact, and their support network. The Barnekreftforeningen specifically identified a "pårørende database" (next-of-kin database) as a must-have need in phase 1. Storing this information within the contact record - rather than as a separate module - keeps the workflow cohesive and reduces the number of screens a peer mentor must navigate during or after a visit, directly supporting the platform's low-cognitive-load design principle.

Implementation Notes

Caregiver records are modeled as a one-to-many relationship from contacts to caregiver_contacts in the database schema. The Drift table is queried reactively alongside the parent contact record, so the contact detail screen receives both the contact and its caregiver list in a single provider stream. Adding or editing a caregiver uses a bottom sheet form to keep the user in context on the contact detail screen rather than navigating to a new route. The caregiver form is a lightweight subset of the contact form - name, relationship type (enum), phone, and notes - and shares the same AppTextField and validation primitives. Relationship type should be an explicit enum on the backend (e.g. parent, spouse, sibling, professional_carer, other) to support future filtering or reporting. All caregiver phone numbers must be tappable tel: links for one-tap calling on mobile. Offline support follows the same mutation outbox pattern as the parent contact record.

Components (43)

User Interface (2)

Service Layer (1)

Data Layer (1)

Shared Components

These components are reused across multiple features

User Stories

No user stories have been generated for this feature yet.