cURL
curl --request GET \ --url https://api.sandbox.metriport.com/medical/v1/network/query/{requestId} \ --header 'x-api-key: <api-key>'
import { MetriportMedicalApi } from "@metriport/api-sdk"; const metriport = new MetriportMedicalApi("YOUR_API_KEY"); const status = await metriport.getNetworkQueryStatus({ requestId: "22222222-2222-2222-2222-222222222222", });
Returns the status of a specific network query request.
in-progress
completed
partial
failed
Show Source properties
hie
pharmacy
lab
Show SourceError properties
400
429
{ "requestId": "00000000-0000-0000-0000-000000000000", "startedAt": "2024-12-30T10:00:00.000Z", "status": "in-progress", "sources": [ { "type": "hie", "status": "in-progress", "startedAt": "2024-12-30T10:00:00.500Z" }, { "type": "pharmacy", "status": "in-progress", "startedAt": "2024-12-30T10:00:00.750Z" }, { "type": "lab", "status": "in-progress", "startedAt": "2024-12-30T10:00:01.000Z" } ] }
{ "requestId": "00000000-0000-0000-0000-000000000000", "startedAt": "2024-12-30T10:00:00.000Z", "status": "in-progress", "sources": [ { "type": "hie", "status": "in-progress", "startedAt": "2024-12-30T10:00:00.500Z" } ], "errors": [ { "source": "pharmacy", "httpStatus": 400, "message": "Access to pharmacy data source is not enabled for this account", "timestamp": "2024-12-30T10:00:00.600Z" }, { "source": "lab", "httpStatus": 429, "message": "Rate limit exceeded for laboratory data source", "timestamp": "2024-12-30T10:00:00.800Z" } ] }