curl -X PUT /patients/65f8a1b2c3d4e5f6789012ab?uid=doctor_uid_123 \ -H "Authorization: Bearer your_jwt_token_here" \ -H "Content-Type: application/json" \ -d '{ "medicalHistory": "Updated medical history with recent diagnosis", "currentMedications": "Lisinopril 10mg daily", "contact": { "phone": "+1234567891" } }'
{ "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": "Updated medical history with recent diagnosis", "currentMedications": "Lisinopril 10mg daily", "contact": { "phone": "+1234567891", "email": "[email protected]" } } }
Update patient details by Patient ID
Authorization: Bearer your_jwt_token_here
Show Patient Object
{ "success": false, "error": "Patient not found" }
{ "success": false, "error": "Failed to update patient" }