Request a patient's medication history via the Surescripts Medication History API

domain: surescripts.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain Surescripts network credentials and a signed trading partner agreement; Surescripts Medication History is accessible only to credentialed participants (EHRs, PBMs, health systems)
  2. Construct a medication history request using the NCPDP SCRIPT MedicationHistoryRequest message type, supplying patient demographics (name, date of birth, gender, zip code) and your organization's NPI and NCPDP sender ID
  3. Transmit the request to the Surescripts endpoint over the required secure transport (typically HTTPS with mutual TLS using YOUR_CERT and YOUR_KEY) and include the required message header fields
  4. Parse the MedicationHistoryResponse which returns a structured list of fill records, each containing drug name, NDC, fill date, quantity dispensed, days supply, prescriber NPI, and dispensing pharmacy NCPDP ID
  5. Reconcile returned fill records against the patient's current medication list in your system, flagging discrepancies or unreported medications for clinical review
  6. Audit log the request and response including patient identity, requesting user, and timestamp to satisfy Surescripts audit requirements and HIPAA access logging obligations

Known gotchas

Related routes

Set up a Surescripts Medication History query from a pharmacy system to retrieve a patient's prescription fill history at point of dispensing
surescripts.com · 6 steps · unrated
Integrate with the Surescripts Prior Authorization Portal API to enable prescriber staff to submit and track ePA requests without leaving the EHR
surescripts.com · 6 steps · unrated
Retrieve a patient's clinical records using the Health Gorilla API
healthgorilla.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans