This endpoint returns the status of a single query.
To list all queries currently in progress, see
Get Consolidated Data Query Status.
To trigger a new query you can
start a consolidated query.
Path Params
The ID of consolidated query request.
Response
Returns the status of the specified query.
import { MetriportMedicalApi } from "@metriport/api-sdk";
const metriport = new MetriportMedicalApi(apiToken);
const status =
await metriport.getSingleConsolidatedQueryStatus(
patientId,
requestId
);
The status of the request. Can be one of processing, completed, or failed.
The format of the resulting data. Can be one of pdf, html, or json.
The date and time the request was started - formatted YYYY-MM-DDTHH:MM:SSZ as per ISO 8601.
Comma-separated list of resource types.
The start date (inclusive) for which to filter resources to count - formatted YYYY-MM-DD as per
ISO 8601.
The end date (inclusive) for which to filter resources to count - formatted YYYY-MM-DD as per
ISO 8601.
{
"requestId": "5f4b3b4b-4b3b-4b3b-4b3b-4b3b4b3b4b3b",
"status": "processing",
"startedAt": "2021-01-01T00:00:00Z",
"dateFrom": "2021-01-01",
"dateTo": "2021-01-31",
"resources": ["Observation", "MedicationRequest"],
"conversionType": "pdf"
}