pharmasync

v0.2.0
io.github.ayeongo/pharmasync Checked 2 days ago Published 26 days ago

Read-only NHS medicine supply data: shortages, SSPs, price concessions and dm+d lookups.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lookup_product Look up a medicine

Look up a UK medicine by exact dm+d code or by a substring of its name. Returns the dm+d product, its current severity tier (the highest government act in force, with citation), and its supply events (MSN / SSP / price concession), newest first. Provide `code` or `name`.

ParameterTypeDescription
codestringAn exact dm+d code (VMP identifier), e.g. "42381011000001106".
namestringA case-insensitive substring of the medicine name, e.g. "ramipril".

current_shortages Current shortages by tier

List the UK medicines with a government severity tier currently in force — WATCH (a Medicine Supply Notification), CONCERN (a restricted-export designation) or CRITICAL (a Serious Shortage Protocol) — ranked highest first, each with the citing act and its date. Optionally filter to one tier. Every tier is a citation of a public act, reproducible without trusting Pharmasync.

ParameterTypeDescription
tierstringRestrict to a single tier. Omit for all tiers.

changes_since Supply changes since a cursor

Return detected supply changes from the delta feed. Pass the `cursor` you last stored to get only newer changes; omit it for the full feed. Each response includes `latest_cursor` — store it and pass it next time. The feed is not retrospective: events predating change detection carry no change record (see the feed limitations).

ParameterTypeDescription
cursorstringThe `latest_cursor` from a previous call (e.g. "2026-08"). Omit for all changes.

concessions_for Price concessions for a medicine

Return the price-concession events for a medicine, by exact dm+d code or a substring of its name, newest first. A concession is a financial-exposure and market-stress signal, published as the source states it. Provide `code` or `name`.

ParameterTypeDescription
codestringAn exact dm+d code (VMP identifier), e.g. "42381011000001106".
namestringA case-insensitive substring of the medicine name, e.g. "ramipril".

workforce_stats The Workforce Panel ledger

The second supply chain: medicines and the people who dispense them. Returns published workforce indicators — vacancy rate by role and region, GPhC registrant counts, pharmacy network change by region, and shortage designation status — newest period first. Optionally filter by metric, role and/or region (filters combine; omit all for the full ledger). Not a jobs board: no listings, no applications, no salary benchmarking — observed aggregate data only, provenance on every row.

ParameterTypeDescription
metricstringRestrict to one indicator. Omit for every metric currently populated.
regionstringAn exact ICS name (vacancy rate) or Health-and-Wellbeing-Board name (pharmacy count / network change). Omit for every region.
rolestringe.g. "PHARMACIST" or "PHARMACY_TECHNICIAN". Omit for every role.