Skip to main content
Update a patient visit
curl --request PATCH \
  --url https://api.spikecare.com/public/v1/patients/{patient_id}/visits/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "is_initial_visit": true,
  "visit_time": "<string>"
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "id": 2,
  "is_initial_visit": true,
  "patient_id": 2,
  "visit_time": "2023-11-07T05:31:56Z",
  "$schema": "<string>"
}

Path Parameters

patient_id
integer<int64>
required

Patient ID

id
integer<int64>
required

Visit ID

Body

application/json
is_initial_visit
boolean

Whether this is the patient's initial visit.

visit_time
string

When the visit occurred (ISO 8601 or YYYY-MM-DD).

Minimum string length: 1
visit_type
enum<string>

Therapy type: PT, OT, or ST.

Available options:
PT,
OT,
ST

Response

OK

created_at
string<date-time>
required

When the visit record was created (ISO 8601).

id
integer<int64>
required

Unique visit identifier assigned by the API.

Required range: x >= 1
is_initial_visit
boolean
required

Whether this is the patient's initial visit.

patient_id
integer<int64>
required

ID of the patient this visit belongs to.

Required range: x >= 1
visit_time
string<date-time>
required

When the visit occurred (ISO 8601 date-time or date only).

visit_type
enum<string>
required

Therapy type: PT (Physical Therapy), OT (Occupational Therapy), or ST (Speech Therapy).

Available options:
PT,
OT,
ST
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://api.spikecare.com/public/v1/schemas/PatientVisit.json"