Create a new appointment with comprehensive validation
4512"2026-03-15""10:30""Control mensual de diabetes"checkPatientAvailability)"El paciente ya tiene un turno el {date} a las {time}"
checkAppointmentAvailability)"El profesional ya tiene un turno ocupado el {date} a las {time}"
checkProfessionalSchedule)"El profesional no trabaja en la fecha seleccionada.""El horario {time} está fuera de la jornada laboral ({startTime} a {endTime})""Formato de fecha u hora inválido"201 Created
state: "Pendiente". The appointment can transition through these states:
Pendiente (Pending)
Atendido (Completed)
Cancelado (Cancelled)
Ausente (No-show)
"2026-03-15" ✓"2026-3-5" ✗ (must be zero-padded)"15/03/2026" ✗ (wrong format)"09:30" ✓"14:00" ✓"9:30" ✗ (must be zero-padded)"02:30 PM" ✗ (no AM/PM)