curl -X POST https://api.cuido.com/api/employees \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"personalInfo": {
"name": "Dr. María García",
"email": "[email protected]",
"identification": "123456789",
"phoneNumber": "+57 300 123 4567"
},
"jobInfo": {
"position": "medico",
"department": "urgencias",
"startDate": "2024-01-15T00:00:00.000Z",
"shift": "noche"
},
"hospitalId": "HOSP001"
}'
{
"success": true,
"message": "Empleado creado exitosamente",
"data": {
"employee": {
"_id": "60d5ec49f1b2c72b8c8e4f1a",
"personalInfo": {
"name": "Dr. María García",
"email": "[email protected]",
"identification": "123456789",
"phoneNumber": "+57 300 123 4567"
},
"jobInfo": {
"position": "medico",
"department": "urgencias",
"startDate": "2024-01-15T00:00:00.000Z",
"shift": "noche"
},
"hospitalId": "HOSP001",
"wellnessMetrics": {
"currentMoodScore": 3,
"averageWorkload": 3,
"teamSupportScore": 3,
"satisfactionScore": 5,
"riskLevel": "bajo"
},
"gamification": {
"totalPoints": 0,
"currentStreak": 0,
"maxStreak": 0,
"level": 1,
"badges": []
},
"isActive": true,
"createdAt": "2024-03-05T10:30:00.000Z",
"updatedAt": "2024-03-05T10:30:00.000Z"
}
}
}
Create a new employee record in the system
curl -X POST https://api.cuido.com/api/employees \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"personalInfo": {
"name": "Dr. María García",
"email": "[email protected]",
"identification": "123456789",
"phoneNumber": "+57 300 123 4567"
},
"jobInfo": {
"position": "medico",
"department": "urgencias",
"startDate": "2024-01-15T00:00:00.000Z",
"shift": "noche"
},
"hospitalId": "HOSP001"
}'
{
"success": true,
"message": "Empleado creado exitosamente",
"data": {
"employee": {
"_id": "60d5ec49f1b2c72b8c8e4f1a",
"personalInfo": {
"name": "Dr. María García",
"email": "[email protected]",
"identification": "123456789",
"phoneNumber": "+57 300 123 4567"
},
"jobInfo": {
"position": "medico",
"department": "urgencias",
"startDate": "2024-01-15T00:00:00.000Z",
"shift": "noche"
},
"hospitalId": "HOSP001",
"wellnessMetrics": {
"currentMoodScore": 3,
"averageWorkload": 3,
"teamSupportScore": 3,
"satisfactionScore": 5,
"riskLevel": "bajo"
},
"gamification": {
"totalPoints": 0,
"currentStreak": 0,
"maxStreak": 0,
"level": 1,
"badges": []
},
"isActive": true,
"createdAt": "2024-03-05T10:30:00.000Z",
"updatedAt": "2024-03-05T10:30:00.000Z"
}
}
}
Show personalInfo properties
Show jobInfo properties
medico - Doctorenfermero - Nurseauxiliar_enfermeria - Nursing assistantadministrativo - Administrative staffotro - Otherurgencias - Emergencyhospitalizacion - Hospitalizationconsulta_externa - Outpatientadministracion - Administrationotro - Other2024-01-15T00:00:00.000Z)mañana - Morning (default)tarde - Afternoonnoche - Nightrotativo - RotatingShow wellnessMetrics properties
bajo, medio, alto (default: bajo)Show gamification properties
Show data properties
_id, createdAt, and updatedAtcurl -X POST https://api.cuido.com/api/employees \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"personalInfo": {
"name": "Dr. María García",
"email": "[email protected]",
"identification": "123456789",
"phoneNumber": "+57 300 123 4567"
},
"jobInfo": {
"position": "medico",
"department": "urgencias",
"startDate": "2024-01-15T00:00:00.000Z",
"shift": "noche"
},
"hospitalId": "HOSP001"
}'
{
"success": true,
"message": "Empleado creado exitosamente",
"data": {
"employee": {
"_id": "60d5ec49f1b2c72b8c8e4f1a",
"personalInfo": {
"name": "Dr. María García",
"email": "[email protected]",
"identification": "123456789",
"phoneNumber": "+57 300 123 4567"
},
"jobInfo": {
"position": "medico",
"department": "urgencias",
"startDate": "2024-01-15T00:00:00.000Z",
"shift": "noche"
},
"hospitalId": "HOSP001",
"wellnessMetrics": {
"currentMoodScore": 3,
"averageWorkload": 3,
"teamSupportScore": 3,
"satisfactionScore": 5,
"riskLevel": "bajo"
},
"gamification": {
"totalPoints": 0,
"currentStreak": 0,
"maxStreak": 0,
"level": 1,
"badges": []
},
"isActive": true,
"createdAt": "2024-03-05T10:30:00.000Z",
"updatedAt": "2024-03-05T10:30:00.000Z"
}
}
}