RelativeCaseLinkWidget
Component Detail
Description
A bidirectional navigation widget rendered on both the contact detail screen and the relative detail screen. It displays all relatives linked to a primary case and allows coordinators to navigate between a relative profile and the associated case contact. Supports multi-relative layouts where several family members are linked to the same patient simultaneously.
relative-case-link-widget
Sources & reasoning
The phrase 'knyttet til samme sak' (linked to the same case) in line 121 directly specifies that relatives must be associated with a primary case contact, not just registered in isolation. Phase 1/MVP placement is confirmed by the priority matrix (line 161). Case linking is also a structural prerequisite for relative-role-tagging, which applies tags to link records.
-
docs/source/likeperson.md · line 121Appen 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
Responsibilities
- Render a list of linked relatives on the contact detail screen with name and role labels
- Render a back-link to the primary case contact from the relative detail screen
- Handle multi-relative display when several family members share the same primary case
- Emit navigation events when a coordinator taps a relative or primary case link
Interfaces
renderLinkedRelatives(caseId: string): RelativeLinkListView
renderPrimaryCaseLink(relativeId: string): CaseLinkView
onNavigateToPrimaryCase(caseId: string): void
onNavigateToRelative(relativeId: string): void