Operatories

View operatories

GET
/operatories

This endpoint returns the operatories of the specified location. Every filter is optional.

Authorization

Authorization
Authorization<token>

In: header

Query Parameters

subdomain*string

Used to scope the request to the specified institution

location_id*integer

Used to scope the request to the specified location

Formatint32
start_cursor?string

First item of the current page. Starts empty

end_cursor?string

Last item of the current page. Starts empty

per_page?integer

Number of results to return per page. Maximum allowed amount is 1000.

Formatint32
Default5
search_name?string

Optional name search filter

foreign_id?string

Return the operatory with this EHR ID

updated_since?string

Query operatories whose records have updated since the specified datetime in ISO8601 format. Must be a parseable Date, recommended formats are YYYY-MM-DD or YYYY-MM-DDThh:mm:ss+0000

Formatdate-time
include[]?array<>

Resources to be included in the response

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/operatories?subdomain=string&location_id=0&search_name=op1&foreign_id=1&updated_since=2024-04-12T10%3A30%3A00Z" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 1,      "name": "op1",      "foreign_id": "1",      "foreign_id_type": "--DataSource-",      "location_id": 4,      "last_sync_time": "2020-06-17T19:23:49.176Z",      "created_at": "2020-06-05T20:16:57.007Z",      "updated_at": "2020-06-05T20:16:57.007Z",      "display_name": "op1",      "active": true,      "bookable_online": true,      "appointment_types": [        {          "id": 1,          "name": "Medical",          "parent_type": "Institution",          "parent_id": 1,          "minutes": 15,          "bookable_online": false        }      ]    }  ],  "page_info": {    "has_previous_page": false,    "has_next_page": false,    "start_cursor": "AAAAA",    "end_cursor": "BBBBBB"  }}