Execute an IHE XDS RegistryStoredQuery FindDocuments query to locate documents for a patient

domain: profiles.ihe.net · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Construct an AdhocQueryRequest SOAP message targeting stored query ID urn:uuid:14d4debf-8f97-4251-9a74-a90016b0af0d (FindDocuments)
  2. Supply the required $XDSDocumentEntryPatientId slot in CX format and optionally scope by $XDSDocumentEntryStatus (Approved), $XDSDocumentEntryClassCode, or $XDSDocumentEntryCreationTimeFrom/To
  3. Send the request to the XDS.b Document Registry endpoint over SOAP/HTTP and receive the AdhocQueryResponse
  4. Parse the returned ExtrinsicObject elements from the RegistryObjectList to extract documentUniqueId, repositoryUniqueId, mimeType, and human-readable display name
  5. Use the retrieved uniqueId and repositoryUniqueId to issue a RetrieveDocumentSet-b (ITI-43) request to the appropriate repository

Known gotchas

Related routes

Perform an IHE XCA Cross-Gateway Query to discover documents across federated health information exchanges
profiles.ihe.net · 5 steps · unrated
Implement IHE Mobile access to Health Documents (MHD) to publish and retrieve clinical documents using FHIR DocumentReference and List resources as an alternative to XDS
profiles.ihe.net/ITI/MHD · 5 steps · unrated
Query documents using IHE MHD ITI-67 Find Document References and retrieve content via ITI-68
healthcare-fhir · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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