User Interface medium complexity mobilefrontend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

An embedded widget displayed within the contact detail screen that renders structured caregiver and next-of-kin relationship fields. It allows peer mentors and coordinators to view, add, edit, and remove caregiver entries without leaving the contact record. The widget presents relationship type, name, phone, and email as distinct form fields with inline validation.

Feature: Caregiver & Next-of-Kin

caregiver-section-widget

Sources & reasoning

Line 121 establishes Barnekreftforeningen's need to track caregivers and next-of-kin linked to the same contact case, directly motivating this feature within the Contacts area. Line 467 canonically places Caregiver & Next-of-Kin in the Contacts area taxonomy. The blueprint marks it MVP, consistent with Barnekreftforeningen's Phase 1 MUST requirement for family-linked contact tracking noted in the priority matrix (line 161).

  • docs/source/likeperson.md · line 121
    Barnekreftforeningen jobber primært med familier rundt barn med kreft, ikke kun med de berørte selv. Appen må støtte registrering av pårørende (foreldre, søsken, nærmeste omsorgsperson)
  • docs/source/likeperson.md · line 467
    | contacts | Contacts | Contact List & Search, Contact Detail & Edit, Caregiver & Next-of-Kin |

Responsibilities

  • Render the list of caregivers linked to the current contact record
  • Provide inline add and edit forms for caregiver name, relationship type, phone, and email
  • Validate field formats (phone number pattern, email format) before submission
  • Dispatch save and delete actions to CaregiverService and reflect loading and error states
  • Embed seamlessly in the contact detail screen without requiring navigation to a separate module

Interfaces

loadCaregivers(contactId: string): void
onAddCaregiver(payload: CaregiverFormData): void
onUpdateCaregiver(caregiverId: string, payload: CaregiverFormData): void
onDeleteCaregiver(caregiverId: string): void

Related Data Entities (1)

Data entities managed by this component