# How Neap works

Neap is a medicine shortage lookup for supply teams and their AI agents: it reads the shortage registers of the European Medicines Agency, Czechia, Spain, France and Italy every day and answers in one record shape, with the register's own words, the dates and the source.

1. **Read politely.** Each register is fetched once a day through a client that reads robots.txt first, names itself honestly and stops when a path is disallowed. On 9 Nov 2026 that meant 87,987 rows across five registers.
2. **Keep a dated copy.** Every daily build is a dated version, kept as it was. Any tool takes as_of to answer from an older version, so an answer can be reproduced later. Spain, France and Italy publish only the present: a day not kept is a day lost.
3. **Normalise, keep the words.** Each register's statuses map to five: shortage, supply tension, announced, resolved and discontinued. The register's own wording stays beside the status, unchanged, in sourceStatus.
4. **Join on the code the register gives.** Records join across countries on the ATC code each register publishes. Spain's code comes from CIMA per product, France's from an exact substance name match against EMA and SUKL data, and each record says which in atcBasis.
5. **Cite every record.** Every record carries its source URL, the list date or retrieval date, a content hash of the file and a hash of the record, plus the credit line the source's terms require.
6. **Say when a register breaks.** A register that fails, goes stale or changes format is named in warnings on every affected answer, and complete turns false. Answers fall back to the last good copy and say so.

## Left out on purpose

- Advice fields are dropped.
- No stock data.
- Strength and form not normalised.
- No ATC index, names or hierarchy.

---

Automated and unreviewed. Neap reads official sources automatically and no person checks each answer. Data can be incomplete, late or wrong. Always verify against the official source linked with every answer before you act. Not legal, tax or customs advice. Not medical advice. Ask a pharmacist or doctor. A supply status is not a clinical recommendation.

Data version 9 November 2026.
