GET
/transactional-api/patient/:patientId/upcoming-appointmentsList Patient Upcoming Appointments
Returns the patient's upcoming appointments at this practice, from the start of today, earliest first. Cancelled, rescheduled and completed appointments are left out.
Authorization: Bearer token (JWT). See Authentication.
Request
curl -L -X GET 'https://{tenantId}.api.england.medicus.health/transactional-api/patient/:patientId/upcoming-appointments' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'
Path and query parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
patientId | path | string<uuid> | Yes | Medicus patient identifier. |
Responses
200 Upcoming appointments.
[
{
"appointmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"startTime": "2026-01-15T09:00:00Z",
"endTime": "2026-01-15T09:20:00Z",
"siteId": "a1b2c3d4-0000-4000-8000-000000000001",
"siteName": "Main Surgery",
"practitionerId": "7d1e2f3a-0000-4000-8000-000000000002",
"practitionerName": "Dr Sarah Chen",
"appointmentServiceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"appointmentServiceName": "GP Appointment",
"appointmentTypeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"appointmentTypeName": "Routine",
"deliveryMode": "face-to-face",
"canBeCancelled": true
}
]
400 Validation error.
2 possible code values
| Code | Description | When |
|---|---|---|
invalid-patient-id | The patientId is not a UUID | patientId not a UUID |
patient-restricted | Access to this patient is restricted for this staff member. | patient record is marked as restricted in Medicus; only explicitly permitted staff members can access it (not a configuration error, handle gracefully) |
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "invalid-patient-id",
"description": "The patientId is not a UUID"
}
]
}
404 No patient found for the given patientId.
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "patient-not-found",
"description": "Patient not found for the id: 3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}