Request (`true`) or withdraw (`false`) site sonar — claims-based discovery of the facilities the patient visited. Absent: leave the patient's current setting unchanged.
Endpoints
Patient search
/v0/companies/{company_id}/projects/{project_id}/patients/{patient_id}/search-levelUpdate a patient's requested searches
Update which searches are requested for a patient.
Patch semantics — an absent field leaves the patient’s current setting unchanged (unlike the create body, where an omitted flag means off). An empty body is rejected with a 400.
The response reports whether the capabilities now armed can actually run.
ehrSearchBlockedReason: "MissingZipCode" means the patient has no ZIP code
and the vendor requires one: the request is armed and goes out on its own once
a ZIP code is set, and nothing else is needed.
"DeceasedBeforeClinicalData" on siteSonarBlockedReason or
patientHistoriesBlockedReason is the opposite kind of answer: the patient’s
authorization documents date their death before any clearinghouse still holds
records, so the search would be empty and is not run. Unlike the ZIP case
nothing stays armed, so this reason is reported HERE and then goes back to
null once the gate runs — from that point the answer lives on the
patient’s searchStatus instead.
Send ?quote=true to learn what the searches this call turns on would
cost without turning them on: the body is checked as the call would check
it, and the response is the fee quote. Nothing is changed, charged or
started, so a quote is safe to repeat. Send the quote’s
confirmationToken back as ?confirmQuote= with the same body to make the
call at no more than the quoted price.
Parameters
quotebooleanquery`true` to get what this call would cost without making it. The body is checked as the call would check it, and the response is a fee quote: nothing is created, changed, charged or sent. Leave it out, or send `false`, to make the call (an AI agent must confirm with `confirmQuote` instead). Any other value, or `quote` given more than once, is refused with `400`.
confirmQuotestringqueryThe `confirmationToken` of a quote for this same call, to make the call at no more than the quote's `totalHigh`. The method, path, query and body must be the ones that were quoted. A token is short-lived and is spent once the call starts, so a call that then fails needs a fresh quote. A person's or an API key's token is spent in memory, so it may be accepted again after a server restart within its lifetime; an AI agent's is journaled against its grant and is spent for good. An AI agent must send one: its call without a token is answered with the quote and not made. Anyone else may send one, or leave it out to make the call unconfirmed. Refused with `400` when it was altered or issued to another caller, when it is sent together with `quote=true`, or when `confirmQuote` is given more than once; with `409` when the call changed, the token expired or was already used, the call would now cost more than was quoted, or too many confirmations are outstanding, in which case retry shortly with the same token; and, for an AI agent, with `403` when the call would take it past the spending allowance it was given.
Request bodyapplication/json
Optional parameters
siteSonarbooleanpatientHistoriesbooleanRequest (`true`) or withdraw (`false`) patient histories — diagnosis and treatment data retrieval, independent of site sonar. Absent: leave the patient's current setting unchanged.
ehrSearchbooleanRequest (`true`) or withdraw (`false`) the Veradigm EHR enrollment ("ehrSearch"), independent of the other flags. Absent: leave the patient's current setting unchanged. Records intent only.
ReturnsSuccess
object | object
Errors
400401403404409500