Patient Records API
Patient Records API
0)
Download OpenAPI specification: Download
Patients
QUERY PARAMETERS
Responses
GET /patients
Response samples
200 400
Content type
application/json
firstName
string
required
lastName
string
required
gender string
required
Enum: "male" "female" "other" "prefer_not_to_say"
contactInfo
object (ContactInfo)
required
POST /patients
Request samples
Payload
Content type
application/json
Response samples
201 400 409
Content type
application/json
PATH PARAMETERS
GET /patients/{patientId}
Response samples
200 404
Content type
application/json
PATH PARAMETERS
firstName string
lastName string
gender string
Enum: "male" "female" "other" "prefer_not_to_say"
Responses
PUT /patients/{patientId}
Request samples
Payload
Content type
application/json
Response samples
Content type
application/json
PATH PARAMETERS
Responses
Response samples
404
Content type
application/json
Copy
{
"code": 0,
"message": "string",
"details": "string"
}
Appointments
PATH PARAMETERS
Responses
Response samples
200 404
Content type
application/json
PATH PARAMETERS
Appointment details
doctorId
string <uuid>
required
appointmentTime
string <date-time>
required
notes string
Responses
POST /patients/{patientId}/appointments
Request samples
Payload
Content type
application/json
Copy
{
"doctorId": "doc-uuid-12345",
"appointmentTime": "2019-08-24T14:15:22Z",
"durationMinutes": 30,
"reason": "Consultation",
"notes": "string"
}
Response samples
201
Content type
application/json
Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"patientId": "460a6d87-689c-4661-a526-a52450bbe2d7",
"doctorId": "doc-uuid-12345",
"appointmentTime": "2019-08-24T14:15:22Z",
"durationMinutes": 30,
"reason": "Annual Checkup",
"status": "scheduled",
"notes": "Patient requires follow-up.",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
PATH PARAMETERS
Responses
GET /appointments/{appointmentId}
Response samples
200
Content type
application/json
Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"patientId": "460a6d87-689c-4661-a526-a52450bbe2d7",
"doctorId": "doc-uuid-12345",
"appointmentTime": "2019-08-24T14:15:22Z",
"durationMinutes": 30,
"reason": "Annual Checkup",
"status": "scheduled",
"notes": "Patient requires follow-up.",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
PATH PARAMETERS
reason string
status string
Enum: "scheduled" "confirmed" "cancelled" "completed" "no_show"
notes string
Responses
PUT /appointments/{appointmentId}
Request samples
Payload
Content type
application/json
Copy
{
"appointmentTime": "2019-08-24T14:15:22Z",
"durationMinutes": 0,
"reason": "string",
"status": "scheduled",
"notes": "string"
}
Response samples
200
Content type
application/json
Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"patientId": "460a6d87-689c-4661-a526-a52450bbe2d7",
"doctorId": "doc-uuid-12345",
"appointmentTime": "2019-08-24T14:15:22Z",
"durationMinutes": 30,
"reason": "Annual Checkup",
"status": "scheduled",
"notes": "Patient requires follow-up.",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
Cancel an appointment
AUTHORIZATIONS: bearerAuth or apiKey
PATH PARAMETERS
DELETE /appointments/{appointmentId}