Caregiver Service
Component Detail
Service Layer
medium complexity
backend
2
Dependencies
3
Dependents
2
Entities
0
Integrations
Description
Business logic layer for all caregiver and next-of-kin operations. Validates input data at the service layer before passing to the repository, enforces notification consent rules, and coordinates with the Secure Storage Infrastructure to ensure caregiver personal data is handled according to data protection requirements.
caregiver-service
Responsibilities
- Validate caregiver fields before persistence
- Enforce notification consent logic and constraints
- Coordinate CRUD operations via Caregiver Repository
- Apply data encryption requirements for sensitive personal data
- Return structured error messages for UI validation feedback
Interfaces
getCaregiversByContact(contactId)
getCaregiverById(caregiverId)
createCaregiver(contactId, data)
updateCaregiver(caregiverId, data)
deleteCaregiver(caregiverId)
validateCaregiverData(data)
getNotificationConsent(caregiverId)
updateNotificationConsent(caregiverId, consent)
Relationships
Dependencies (2)
Components this component depends on
Dependents (3)
Components that depend on this component
Related Data Entities (2)
Data entities managed by this component