Retrieve active MedicationRequest resources for medication reconciliation

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

Steps

  1. Query active medication requests: GET [base]/MedicationRequest?patient=[id]&status=active; the status parameter accepts a comma-separated list (e.g., active,on-hold) for broader retrieval.
  2. Use _include=MedicationRequest:medication to pull referenced Medication resources in the same Bundle when the medication is a reference rather than a CodeableConcept.
  3. For each MedicationRequest, extract medicationCodeableConcept.coding (RxNorm codes, system http://www.nlm.nih.gov/research/umls/rxnorm) or resolve the medicationReference to the included Medication resource.
  4. Read dosageInstruction[]: each element has text (human-readable), doseAndRate[].doseQuantity, and timing.repeat fields for structured dose frequency.
  5. Check dispenseRequest.numberOfRepeatsAllowed and dispenseRequest.validityPeriod to determine refill status and prescription validity.
  6. Correlate with MedicationStatement resources if present, as some systems record patient-reported medications there rather than in MedicationRequest.

Known gotchas

Related routes

create a FHIR MedicationRequest resource with RxNorm coding
fhir · 6 steps · unrated
Read and search Patient resources from a FHIR R4 server
fhir · 6 steps · unrated
Implement FHIR R4 resource versioning and use the history interaction ([base]/[Resource]/[id]/_history) to retrieve the complete version history of a clinical resource and detect changes between versions
hl7.org/fhir · 5 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