Home Visit Activity Type Detector
Component Detail
Infrastructure
low complexity
mobile
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Infrastructure utility that determines whether a selected activity type qualifies as a home visit category, triggering injection of the StructuredReportFormScreen as a conditional wizard step by the WizardStateManager. Encapsulates the classification logic so it can be updated centrally when new home visit activity type IDs are introduced without modifying the wizard or form components.
home-visit-activity-type-detector
Responsibilities
- Classify an activity type ID as home-visit or non-home-visit based on backend configuration
- Provide a synchronous lookup interface consumed by WizardStateManager step injection logic
- Cache the classification mapping from the activity types API response
Interfaces
isHomeVisitActivityType(activityTypeId): bool
loadActivityTypeClassifications(): Future<void>
getHomeVisitActivityTypeIds(): List<String>
Related Data Entities (2)
Data entities managed by this component