Stat HTTP REST API
Stat
Get IPEHR statistics total
GET /
Description:
Retrieve the IPEHR statistics total and current month
Responses
200
OK
stat.ResponseTotal
500
Is returned when an unexpected error occurs while processing a request
Get IPEHR statistics per month
GET /{period}
Description:
Retrieve the IPEHR statistics per month
Parameters
period
path
Month in YYYYYMM format. Example: 202201
No
string
Responses
200
OK
stat.ResponsePeriod
500
Is returned when an unexpected error occurs while processing a request
Query
Execute AQL query
POST /query/
Description:
Performs processing of incoming AQL requests.
Parameters
Request
body
Query request
Yes
model.QueryRequest
Responses
200
Indicates that the request has succeeded and transaction about register new user has been created
model.QueryResponse
400
The request could not be understood by the server due to incorrect syntax.
408
The request was canceled due to exceeding the waiting limit.
500
Is returned when an unexpected error occurs while processing a request
Models
model.QueryColumn
name
string
No
path
string
No
model.QueryRequest
ehr_id
string
No
fetch
integer
No
offset
integer
No
q
string
No
query_parameters
object
No
model.QueryResponse
columns
model.QueryColumn
No
meta
object
No
name
string
No
q
string
No
rows
[ ]
No
stat.ResponsePeriod
data
stat.Stat
No
type
string
No
stat.ResponseTotal
data
stat.Stat
No
month
stat.Stat
No
type
string
No
stat.Stat
documents
integer
No
patients
integer
No
time
integer
No
Last updated