Get Data by Query 5

POST {{baseUrl}}/api/v1/entities/patient/entries/query

This API functions as API over SQL. It supports SQL like queries. One can customize the query and get the required fields. There are two base models: provider and patient.

A few examples of queries:

  • select patientid, patientname from patient;

  • select provider.* from provider where provider.prov_name like %john%,

  • select interactions.* from patient where patient.patient_name = John;

Request Body

{"query"=>"select interactions.* from `patient` where patient.patient_id='e4c4e0db-ce18-353d-8ba2-1218a36ab583';"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{}