Query the FHIR server using the Observation category search parameter with the value 'laboratory' to retrieve lab results for a patient
Apply _sort and _count parameters to page through large result sets efficiently
Verify each returned Observation conforms to the US Core Laboratory Result Observation profile by checking profile declaration in meta.profile
Extract value[x] with its unit (UCUM-coded) and the LOINC-coded code element for display
Handle both present numeric values and absent values indicated by dataAbsentReason in the rendering layer
Known gotchas
The category code system for laboratory results is a FHIR-defined code system, not SNOMED or LOINC; using the wrong system URI causes the search to return no results
UCUM unit codes are case-sensitive; a unit of 'mg/dL' differs from 'MG/DL' and will fail terminology validation
Servers are not required to support all search parameter combinations; test _sort by date and by status separately before assuming compound sorts work
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp