curl -X GET "/patients/search?uid=doctor_uid_123&query=john" \ -H "Authorization: Bearer your_jwt_token_here"
{ "success": true, "data": [ { "_id": "65f8a1b2c3d4e5f6789012ab", "doctor_id": "doctor_uid_123", "firstName": "John", "lastName": "Doe", "dateOfBirth": "1985-06-15", "address": { "street": "123 Main St", "city": "New York", "state": "NY", "zipCode": "10001" }, "insurance": { "provider": "Blue Cross", "policyNumber": "BC123456" }, "medicalHistory": "No significant medical history", "currentMedications": "None", "contact": { "phone": "+1234567890", "email": "[email protected]" } } ] }
Search for patients by name for the current doctor
Authorization: Bearer your_jwt_token_here
Show Patient Object
curl -X GET "/patients/search?uid=doctor_uid_123" \ -H "Authorization: Bearer your_jwt_token_here"
{ "success": false, "error": "Doctor UID is missing or was not validated." }
{ "success": false, "error": "Failed to search patients" }