Source Adapters
Source adapters isolate country-specific discovery and parsing from the shared dataset writer.
The first adapter is es_aemps.
Adapter contract
An adapter provides:
countryauthoritybuild()
The build() method returns normalized recall records and a build report.
Internally, adapters may split this into discovery, fetch, parse, and normalize
steps.
Adding a country
To add a new source:
- Create a new adapter under
src/recallrx/adapters/. - Normalize records into the shared
RecallRecordmodel. - Add the adapter to the source registry.
- Add fixtures and tests for source-specific parsing.
- Add country metadata and UI labels only if the country should be enabled in the public app.
The shared JSON paths are already country-aware:
data/countries/es/
data/countries/us/
data/countries/uk/