Create a new cache instance, loading any previously-persisted data from disk.
OptionalstorePath: stringPath to the JSON cache file. Defaults to
data/procedure-seen-cache.json (relative to cwd). Override for test isolation.
Private_Load existing cache from disk. Returns an empty Map when the file does not exist or is malformed.
Map of procedure ID → cache entry
Upsert a procedure entry. Marks the cache dirty only when the
dateLastActivity value has changed (new ID or updated activity date).
Procedure identifier (e.g. "2026-0042")
ISO date string or empty string
Return the last-seen dateLastActivity for a procedure, or undefined
when the procedure has not been seen before.
Procedure identifier
ISO date string or undefined
Whether the cache contains an entry for the given procedure ID.
Procedure identifier
true when the procedure ID is known
Filter a list of candidate procedures to those that are new or whose
dateLastActivity has changed since the last run.
Candidate procedures
IDs of procedures that are new or have an updated activity date
Persist the cache to disk. No-op when nothing has changed since the last save (or load).
Creates the parent directory if it does not exist.
Number of procedure IDs currently held in the cache.
Entry count
Read/write cache for EP procedure
dateLastActivityvalues.Usage: