Bufdir Field Mapper
Component Detail
Service Layer
high complexity
backend
1
Dependencies
1
Dependents
2
Entities
0
Integrations
Description
Maps internal Meander activity and participant data to the exact fields and format required by the current Bufdir reporting standard. Reads its transformation rules from a configurable JSON specification stored in the database, keeping format changes as config-only updates rather than code changes.
bufdir-field-mapper
Responsibilities
- Load active Bufdir format specification from config store
- Map internal activity fields to Bufdir output fields
- Apply anonymization rules for participant demographic data
- Aggregate activity counts by type and participant category
Interfaces
mapActivitiesToBufdirFormat(activities, config)
loadFormatSpec(version)
anonymizeDemographics(participants)
aggregateByActivityType(activities)
validateMappedOutput(output)
getSupportedFormats()
Relationships
Related Data Entities (2)
Data entities managed by this component