low complexity extracted Contacts Confidence: 100%
6
Components
106
Shared
0
User Stories
Yes
Analyzed

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

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

Analysis

Business Value

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.

Implementation Notes

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)

User Interface (2)

Service Layer (2)

Data Layer (2)

Shared Components

These components are reused across multiple features

Service Layer (34)

Data Layer (22)

Infrastructure (38)

infrastructure Keychain/Keystore Adapter low Shared infrastructure JWT Claims Extractor low Shared infrastructure Organization Labels Adapter low Shared infrastructure Keychain/Keystore Adapter low Shared infrastructure Auth API Client medium Shared infrastructure REST API Client medium Shared infrastructure WCAG Accessibility Adapter low Shared infrastructure Registration API Client low Shared infrastructure Accounting API Client high Shared infrastructure PDF Renderer Adapter medium Shared infrastructure File Share Adapter low Shared infrastructure FCM/APNs Adapter high Shared infrastructure Share Sheet Adapter low Shared infrastructure Share Plus Adapter low Shared infrastructure Platform Accessibility Bridge medium Shared infrastructure Semantics Override Adapter high Shared infrastructure URL Launcher Adapter low Shared infrastructure Markdown Content Renderer low Shared infrastructure Network Connectivity Monitor low Shared infrastructure Expense Receipt Storage Adapter low Shared infrastructure Audit Log Writer low Shared infrastructure Feature Flag Checker low Shared infrastructure Logo Upload Adapter low Shared infrastructure Terminology Constants Registry low Shared infrastructure Feature Flag Cache Adapter low Shared infrastructure Org Scope JWT Resolver medium Shared infrastructure Association Audit Logger low Shared infrastructure Token Blocklist medium Shared infrastructure Analytics Tracker low Shared infrastructure SEO Metadata Config low Shared infrastructure Analytics Tracker low Shared infrastructure Analytics Tracker low Shared infrastructure Sales Analytics Tracker low Shared infrastructure Email Provider Adapter low Shared infrastructure Terms of Service Content Provider low Shared infrastructure Legal PDF Asset Provider low Shared infrastructure Consent-Gated Script Loader low Shared infrastructure Legal Page Layout low Shared

User Stories

No user stories have been generated for this feature yet.