GET
/
medical
/
v1
/
patient
/
{id}
/
consolidated
/
query

This endpoint returns all the queries that are currently in progress. 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.

queries
ConsolidatedQuery[]
required
message
string

An optional message for the request.

{
  "queries": [
    {
      "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"
    },
    {
      "requestId": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "status": "completed",
      "startedAt": "2023-01-01T00:00:00Z",
      "dateFrom": "2023-01-01",
      "dateTo": "2023-01-31",
      "resources": ["MedicationRequest"],
      "conversionType": "html"
    }
  ],
  "message": "Trigger a new query by POST /patient/:id/consolidated/query; data will be sent through Webhook"
}