Skip to main content

Interface Definition

The AppointmentData interface represents a scheduled appointment in the clinic system.
export interface AppointmentData {
  id: number;
  fecha: string;
  hora: string;
  paciente: string;
  tratamiento: string;
  doctor: string;
  duracion: string;
  estado: 'confirmada' | 'pendiente' | 'completada';
  asistido: 'sí' | 'no' | 'pendiente';
}

Properties

id
number
required
Unique identifier for the appointment
fecha
string
required
Appointment date in format D/M/YYYY
hora
string
required
Appointment time in format HH:MM (24-hour format)
paciente
string
required
Patient’s full name
tratamiento
string
required
Type of treatment or procedure scheduled
doctor
string
required
Name of the assigned doctor (e.g., “Dr. Rodríguez”, “Dra. Martínez”)
duracion
string
required
Expected duration of the appointment (e.g., “30 min”, “60 min”, “90 min”)
estado
'confirmada' | 'pendiente' | 'completada'
required
Current status of the appointment:
  • confirmada: Appointment is confirmed
  • pendiente: Appointment is pending confirmation
  • completada: Appointment has been completed
asistido
'sí' | 'no' | 'pendiente'
required
Patient attendance status:
  • : Patient attended
  • no: Patient did not attend (no-show)
  • pendiente: Appointment has not occurred yet

Example

{
  "id": 1,
  "fecha": "4/2/2026",
  "hora": "09:00",
  "paciente": "María García",
  "tratamiento": "Limpieza dental",
  "doctor": "Dr. Rodríguez",
  "duracion": "30 min",
  "estado": "confirmada",
  "asistido": "pendiente"
}

Usage Examples

Confirmed Appointment

{
  "id": 4,
  "fecha": "5/2/2026",
  "hora": "14:00",
  "paciente": "Juan Pérez",
  "tratamiento": "Implante dental",
  "doctor": "Dr. Sánchez",
  "duracion": "90 min",
  "estado": "confirmada",
  "asistido": "pendiente"
}

Long Procedure

{
  "id": 7,
  "fecha": "6/2/2026",
  "hora": "11:00",
  "paciente": "Isabel Torres",
  "tratamiento": "Endodoncia",
  "doctor": "Dr. Sánchez",
  "duracion": "120 min",
  "estado": "confirmada",
  "asistido": "pendiente"
}

Build docs developers (and LLMs) love