Patient Alerts

Edit patient alert

PATCH
/patients/{id}/alerts/{alert_id}

This endpoint updates a patient alert; setting disabled: true disables the alert, but re-enabling a disabled alert is not supported and returns a 400 error.

Authorization

Authorization
Authorization<token>

In: header

Path Parameters

id*integer

ID of the patient

Formatint32
alert_id*integer

NexHealth ID of the patient alert

Formatint32

Query Parameters

subdomain*string

Used to scope the request to the specified institution

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Request Body

application/json

Edit patient alert

patient_alert*

Patient Alert update

Response Body

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

curl -X PATCH "https://example.com/patients/0/alerts/0?subdomain=string" \  -H "Nex-Api-Version: v3.0.0" \  -H "Content-Type: application/json" \  -d '{    "patient_alert": {}  }'
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": {    "id": 10,    "patient_id": 101,    "note": "Patient is late on payment",    "disabled_at": "2024-02-05T20:16:57.007Z",    "created_at": "2023-11-11T10:11:01.007Z",    "updated_at": "2024-01-14T14:11:01.007Z"  },  "count": 2}