Bufdir Field Mapper Service
Component Detail
Service Layer
high complexity
backend
0
Dependencies
0
Dependents
9
Entities
0
Integrations
Description
Translates the internal aggregated report object into the exact field structure required by Bufdir's grant reporting format, reverse-engineered from the Word/Excel templates provided by partner organizations. Implements the adapter pattern to allow future integration with a Bufdir API if one becomes available.
bufdir-field-mapper
Responsibilities
- Map internal activity aggregates to Bufdir's named reporting fields
- Apply organization-specific field overrides and terminology mappings
- Validate that all mandatory Bufdir fields are populated
- Produce a format-agnostic report object for downstream rendering
Interfaces
mapToBuffdirSchema(aggregatedData, organizationId)
validateRequiredFields(mappedReport)
applyOrganizationOverrides(report, orgId)
getMissingFields(report)
getFieldDefinitions()
exportMappingConfig()
Related Data Entities (9)
Data entities managed by this component