cURL
curl --request GET \ --url https://api.example.com/patients/:id \ --header 'Authorization: <authorization>'
{ "patient": { "id": 123, "name": "<string>", "surname": "<string>", "dni": 123, "birthdate": "<string>", "gender": "<string>", "address": "<string>", "phone": "<string>", "email": "<string>", "socialWorkId": 123, "state": "<string>" } }
Retrieve a specific patient by their unique identifier
Bearer <token>
Show Patient properties
Activo/a
Inactivo/a
curl -X GET https://api.clinica-vitalis.com/patients/1 \ -H "Authorization: Bearer YOUR_JWT_TOKEN"
{ "patient": { "id": 1, "name": "María", "surname": "González", "dni": 12345678, "birthdate": "1985-03-15T00:00:00.000Z", "gender": "Femenino", "address": "Av. Corrientes 1234, CABA", "phone": "11-4567-8901", "email": "maria.gonzalez@email.com", "socialWorkId": 1, "state": "Activo/a" } }
{ "msg": "Token inválido" }
{ "msg": "No hay paciente cargado en el sistema" }
{ "msg": "Error del servidor" }