List all patients
GET /patients
curl \
-X GET https://example.com/api/patients \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"embedded": {
"patientResourceList": [
{
"_id": "string",
"patientNumber": "23-72362",
"age": 23,
"name": "John Doe",
"gender": "MALE",
"patientCategory": "GENERAL",
"phoneNumber": "+1234567890",
"residentialAddress": "Guesthouse"
}
]
},
"page": {
"size": 20,
"totalElements": 1,
"totalPages": 1,
"number": 0
}
}
Response examples (200)
{
"embedded": {
"patientResourceList": [
{
"_id": "string",
"patientNumber": "23-72362",
"age": 23,
"name": "John Doe",
"gender": "MALE",
"patientCategory": "GENERAL",
"phoneNumber": "+1234567890",
"residentialAddress": "Guesthouse"
}
]
},
"page": {
"size": 20,
"totalElements": 1,
"totalPages": 1,
"number": 0
}
}