GET
/
medical
/
v1
/
patient
/
{id}
/
consolidated
/
query
curl --request GET \
  --url https://api.sandbox.metriport.com/medical/v1/patient/{id}/consolidated/query \
  --header 'x-api-key: <api-key>'
import { MetriportMedicalApi } from "@metriport/api-sdk";

const metriport = new MetriportMedicalApi(apiToken);

const status = await metriport.getConsolidatedQueryStatus(patientId);

This endpoint only returns the status of a consolidated data query. To trigger a new query you can start a consolidated query.

The result of the query will be sent through a Webhook request in FHIR-compliant format.

Path Params

id
string
required

The ID of the Patient.

Response

Returns the status of the last query for consolidated data performed for the given patient.

{
    "status": "completed",
    "message": "Trigger a new query by POST /patient/:id/consolidated/query; data will be sent through Webhook"
}