Files
AMR/R
Matthijs BerendsandClaude Opus 5.5 891d248fab Improve the session caches of as.ab(), as.mo() and all mo_*() functions (#313) (#314)
- One cache design for as.ab() and as.mo() in R/aa_session_cache.R: lazily built
  lookup indices (ATC codes, drug synonyms, SNOMED codes) and coercion caches with
  the same structure (key, input, value), keyed on input plus outcome-relevant settings
- Caches are invalidated whenever the lookup tables change (custom antimicrobials or
  microorganisms, set_mo_source())
- mo_*() functions use a fast path for valid <mo> input and work on unique values only
- synonym_mo_to_accepted_mo() is memoised per code
- Fix as.mo() cache keys that never matched again, fast_mode results of as.ab() being
  reused by regular calls, and ab_reset_session() clearing as.mo() uncertainties

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:29:48 +02:00
..
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00
2026-08-20 13:29:16 +01:00