Search for patients
Query parameters
-
The query that specifies which patients are searched for.
GET /patients/search
curl \
-X GET https://example.com/api/patients/search?q=John+Doe \
-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
}
}