curl -X POST /patients/add?uid=doctor_uid_123 \ -H "Authorization: Bearer your_jwt_token_here" \ -H "Content-Type: application/json" \ -d '{ "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]" } }'
{ "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]" } } }
Create a new patient record in the system
Authorization: Bearer your_jwt_token_here
Show Patient Object
{ "success": false, "error": "Failed to add patient" }