CaregiverSection
Component Detail
User Interface
medium complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Renders the caregiver list within the contact detail screen as a dedicated collapsible section. Displays each caregiver's name, relationship type, and contact details with add, edit, and delete actions gated by role. Applies tenant-specific Organization Label terminology (e.g. Pårørende, Foresatte) without code changes.
caregiver-section
Sources & reasoning
Lines 121, 161, and 438 form a clear provenance chain: the requirement is stated (121), marked MUST in Phase 1 (161), and explicitly restated as Phase 1 MUST (438). Blueprint places this in Contacts (not Relatives Database) because it concerns caregivers linked to existing contacts, not a standalone relatives registry. Phase 1 = MVP by ordinal mapping.
-
docs/source/likeperson.md · line 121Barnekreftforeningen 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) som egne kontaktsubjekter knyttet til samme sak.
-
docs/source/likeperson.md · line 161Pårørende database | ✓ | - | - | - | ✓ | MUST (Barnekreft) | 1
-
docs/source/likeperson.md · line 438Pårørende-database er Fase 1 MUST for Barnekreftforeningen
Responsibilities
- Render list of caregivers for the active contact with name, relationship, and contact info
- Show add/edit/delete action controls only to roles with write permission
- Display Organization Label terminology from tenant configuration for section and field labels
- Handle empty state and loading state during sync
- Emit user actions (add, edit, delete) to CaregiverService
Interfaces
render(contact: Contact, caregivers: Caregiver[], userRole: Role): void
onAddCaregiver(): void
onEditCaregiver(caregiverId: string): void
onDeleteCaregiver(caregiverId: string): void