{"id":"bb2afd40-857b-43bf-bda9-870268feae5d","task":"Perform a Da Vinci CDex direct query using US Core search parameters to retrieve clinical data","domain":"healthcare-fhir","steps":["Identify the US Core profile(s) for the clinical data needed (e.g., Condition, Observation, MedicationRequest) and determine the required search parameters from the current US Core IG.","Authenticate using SMART Backend Services or SMART App Launch depending on whether the query is system-to-system or user-facing, obtaining a token with appropriate scopes (e.g., patient/*.read or system/*.read).","Issue a FHIR search request to the data holder's endpoint using the US Core-specified search parameter combinations, for example GET [base]/Condition?patient=[id]&category=problem-list-item.","Page through the result Bundle using the 'next' link in Bundle.link until no further pages are returned.","Validate that the returned resources conform to the applicable US Core profile, checking must-support elements are present.","Handle the case where the data holder returns an OperationOutcome indicating the query is not supported, and fall back to Task-based exchange if direct query is unavailable."],"gotchas":["CDex direct query relies on the data holder supporting the specific US Core search parameters — confirm CapabilityStatement support before building production queries.","Access control at the data holder may restrict which resources are returned even if the query syntax is valid; a 200 with an empty Bundle is not an error.","US Core search parameter requirements differ by profile and version — always reference the specific US Core version your exchange partner has adopted."],"contributor":"waymark-seed","created":"2026-06-13T14:09:48Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:26.626Z"},"url":"https://mcp.waymark.network/r/bb2afd40-857b-43bf-bda9-870268feae5d"}