Skip to main content
POST/transactional-api/find-appointments-for-check-in

Find Appointments for Check-in

Returns the patient's face-to-face appointments scheduled for today that are still eligible for self check-in.

Authorization: Bearer token (JWT). See Authentication.

Request

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/find-appointments-for-check-in' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"patientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateOfBirth": "2024-07-29"
}'

Body parameters

FieldTypeRequiredDescription
patientIdstring<uuid> (nullable)NoMedicus patient identifier. Takes precedence over dateOfBirth if both are supplied.
dateOfBirthstring<date> (nullable)NoPatient date of birth in Y-m-d format. Alternative to patientId for device check-in flows that collect date of birth only.

Responses

200 Appointments eligible for check-in.
[
{
"appointmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"startTime": "string",
"siteName": "string",
"roomName": "string",
"patientCheckInInstructions": "string",
"practitionerName": "string"
}
]
400 Validation error.
3 possible code values
CodeDescriptionWhen
invalid-patient-idThe patientId is not a UUIDneither patientId nor dateOfBirth supplied; or patientId present but not a UUID
invalid-date-of-birthThe dateOfBirth must be a valid date in Y-m-d format.dateOfBirth present but not a valid Y-m-d date
multiple-patients-foundMultiple patients have appointments today for this date of birth.more than one patient has a qualifying appointment today for the supplied date of birth
{
"errors": [
{
"code": "invalid-patient-id",
"description": "The patientId is not a UUID"
}
]
}
404 No patient found for the given patientId.
{
"errors": [
{
"code": "patient-not-found",
"description": "Patient not found for the id: 3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}