Treatment Plans

View treatment plans

GET
/treatment_plans

Returns a cursor-paginated list of treatment plans for the institution, with each plan's procedures embedded. Soft-deleted treatment plans are excluded. Results can be filtered by patient_id, status, and updated_since, and are ordered by ID ascending — when using updated_since for incremental sync, do not assume results are ordered by update time.

Authorization

Authorization
Authorization<token>

In: header

Query Parameters

subdomain*string

Used to scope the request to the specified institution

patient_id?integer

Filter by patient

Formatint32
status?string

Filter by status

Value in

  • "not_applicable"
  • "proposed"
  • "accepted"
  • "rejected"
  • "completed"
updated_since?string

Treatment plans updated at or after the specified time (UTC). The boundary is inclusive: a plan whose updated_at exactly equals this value is returned

Formatdate-time
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

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

curl -X GET "https://example.com/treatment_plans?subdomain=string&patient_id=115&status=proposed&updated_since=2024-01-15T00%3A00%3A00Z" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 423,      "name": "Active treatment plan",      "patient_id": 115,      "updated_at": "2020-06-05T20:16:57.007Z",      "status": "proposed",      "procedures": [        {          "id": 11,          "location_id": 21,          "patient_id": 162,          "provider_id": 84,          "appointment_id": 283,          "code": "D6100",          "name": "Implant Removal",          "status": "completed",          "updated_at": "2020-06-05T20:16:57.007Z",          "body_site": {            "tooth": [              "3",              "14"            ],            "surface": "MOD"          },          "fee": {            "amount": "62.00",            "currency": "USD"          },          "start_date": "2022-06-24",          "end_date": "2022-06-24"        }      ]    }  ],  "page_info": {    "has_previous_page": false,    "has_next_page": false,    "start_cursor": "AAAAA",    "end_cursor": "BBBBBB"  }}