Sensitive Field Type Registry
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
In-app constant registry that defines the canonical list of sensitive personal data field types and their corresponding warning messages. Serves as the single source of truth for which fields trigger readout warnings, covering name, address, diagnosis, assignment content, caregiver details, and contact information for vulnerable individuals.
sensitive-field-type-registry
Responsibilities
- Define the SensitiveFieldType enum with all recognised sensitive data categories
- Map each field type to a localised, accessible warning message string
- Provide lookup utilities so widgets and services can retrieve the correct warning copy
Interfaces
SensitiveFieldType { name, address, diagnosis, assignmentContent, caregiverDetails, contactInfo }
getWarningMessage(SensitiveFieldType type, Locale locale) → String
isSensitiveType(String fieldKey) → bool
Relationships
Dependents (2)
Components that depend on this component