Stat HTTP REST API

Stat

Get IPEHR statistics total

GET /

Description:

Retrieve the IPEHR statistics total and current month

Responses

CodeDescriptionSchema

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

NameLocated inDescriptionRequiredSchema

period

path

Month in YYYYYMM format. Example: 202201

No

string

Responses

CodeDescriptionSchema

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

NameLocated inDescriptionRequiredSchema

Request

body

Query request

Yes

model.QueryRequest

Responses

CodeDescriptionSchema

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

NameTypeDescriptionRequired

name

string

No

path

string

No

model.QueryRequest

NameTypeDescriptionRequired

ehr_id

string

No

fetch

integer

No

offset

integer

No

q

string

No

query_parameters

object

No

model.QueryResponse

NameTypeDescriptionRequired

columns

model.QueryColumn

No

meta

object

No

name

string

No

q

string

No

rows

[ ]

No

stat.ResponsePeriod

NameTypeDescriptionRequired

data

stat.Stat

No

type

string

No

stat.ResponseTotal

NameTypeDescriptionRequired

data

stat.Stat

No

month

stat.Stat

No

type

string

No

stat.Stat

NameTypeDescriptionRequired

documents

integer

No

patients

integer

No

time

integer

No

Last updated