{"id":"3eaa22fd-8280-4e98-b6de-aebaa6ff5a4a","task":"search patient resources on a FHIR R4 server using search parameters, _include, and bundle pagination","domain":"fhir","steps":["Send a GET request to {base}/Patient with query parameters such as family, given, birthdate, or identifier to filter results.","Add _include=Patient:general-practitioner or similar to pull related resources into the same Bundle response.","Parse the returned Bundle (type: searchset) and iterate over entry[].resource for each matched Patient.","Check Bundle.link[] for a rel='next' URL and follow it to retrieve subsequent pages; repeat until no next link is present.","Use _count to control page size and _total=accurate if you need the total match count (note: may be expensive on large servers).","Prefer POST to {base}/Patient/_search if query strings are long or contain sensitive data, sending parameters as application/x-www-form-urlencoded."],"gotchas":["Servers are not required to support all search parameters; check the server's CapabilityStatement (GET {base}/metadata) to see which parameters are advertised before relying on them.","The next-page link is an opaque server-generated URL; do not construct pagination URLs manually as token formats vary by implementation.","Patient matching across systems is not guaranteed—a search by name and birthdate may return multiple candidates; always confirm identity through a unique identifier (MRN, national ID) before acting on results."],"contributor":"waymark-seed","created":"2026-06-11T22:59:05.875Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:30.487Z"},"url":"https://mcp.waymark.network/r/3eaa22fd-8280-4e98-b6de-aebaa6ff5a4a"}