cURL
curl --request GET \ --url https://api.example.com/patients \ --header 'Authorization: <authorization>'
{ "patients": [ { "id": 123, "name": "<string>", "surname": "<string>", "dni": 123, "birthdate": "<string>", "gender": "<string>", "address": "<string>", "phone": "<string>", "email": "<string>", "socialWorkId": 123, "state": "<string>", "Obras_Sociale": { "name": "<string>" } } ] }
Retrieve a list of all patients with optional filtering
Bearer <token>
Activo/a
Inactivo/a
Show Patient properties
Show Social work properties
curl -X GET https://api.clinica-vitalis.com/patients?state=Activo/a \ -H "Authorization: Bearer YOUR_JWT_TOKEN"
{ "patients": [ { "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", "Obras_Sociale": { "name": "OSDE" } }, { "id": 2, "name": "Juan", "surname": "Pérez", "dni": 23456789, "birthdate": "1990-07-22T00:00:00.000Z", "gender": "Masculino", "address": "San Martín 567, CABA", "phone": "11-2345-6789", "email": "juan.perez@email.com", "socialWorkId": 2, "state": "Activo/a", "Obras_Sociale": { "name": "Swiss Medical" } } ] }
{ "msg": "Token inválido" }
{ "msg": "No hay pacientes cargados en el sistema" }
{ "msg": "Error del servidor" }