Skip to main content

Interface Definition

The PatientData interface represents a comprehensive patient record in the system.
export interface PatientData {
  id: number;
  nombre: string;
  edad: number;
  phone: string;
  email: string;
  address: string;
  medication_allergies: string;
  billing_data: string;
  health_status: string;
  family_history: string;
  ultimaVisita: string;
  proximaCita: string;
  estado: string;
  citas: Cita[];
  tratamientos: Tratamiento[];
}

Properties

id
number
required
Unique identifier for the patient
nombre
string
required
Patient’s full name
edad
number
required
Patient’s age in years
phone
string
required
Contact phone number
email
string
required
Patient’s email address
address
string
required
Patient’s physical address
medication_allergies
string
required
Known medication allergies or “Ninguna” if none
billing_data
string
required
Insurance or billing information
health_status
string
required
Current dental health status and notes
family_history
string
required
Relevant family medical history
ultimaVisita
string
required
Date of last visit in format DD/MM/YYYY
proximaCita
string
required
Date of next scheduled appointment in format DD/MM/YYYY
estado
string
required
Patient status: “activo”, “pendiente”, or “urgente”
citas
Cita[]
required
Array of scheduled appointments for this patient. See Cita interface below.
tratamientos
Tratamiento[]
required
Array of treatments received by this patient. See Tratamiento interface below.

Cita Interface

Represents an appointment within a patient’s record.
export interface Cita {
  titulo: string;
  fecha: string;
  hora: string;
  doctor: string;
  estado: string;
}
titulo
string
required
Appointment title or description
fecha
string
required
Appointment date in format DD/MM/YYYY
hora
string
required
Appointment time in format HH:MM
doctor
string
required
Name of the doctor for this appointment
estado
string
required
Appointment status: “confirmada”, “pendiente”, etc.

Tratamiento Interface

Represents a treatment within a patient’s record.
export interface Tratamiento {
  titulo: string;
  precio: number;
  fecha: string;
  doctor: string;
  descripcion: string;
}
titulo
string
required
Treatment title or name
precio
number
required
Treatment cost in euros
fecha
string
required
Treatment date in format DD/MM/YYYY
doctor
string
required
Name of the doctor who performed the treatment
descripcion
string
required
Detailed description of the treatment

Example

{
  "id": 1,
  "nombre": "Juan Pérez",
  "edad": 45,
  "phone": "600 123 456",
  "email": "[email protected]",
  "address": "Calle Mayor 123, Madrid",
  "medication_allergies": "Penicilina",
  "billing_data": "Sanitas - 123456789",
  "health_status": "Estable. Requiere limpieza profunda.",
  "family_history": "Diabetes tipo 2 (Padre)",
  "ultimaVisita": "15/02/2026",
  "proximaCita": "22/03/2026",
  "estado": "activo",
  "citas": [
    {
      "titulo": "Limpieza profunda",
      "fecha": "22/03/2026",
      "hora": "10:00",
      "doctor": "Dr. Rodríguez",
      "estado": "confirmada"
    }
  ],
  "tratamientos": [
    {
      "titulo": "Extracción muela",
      "precio": 120,
      "fecha": "15/02/2026",
      "doctor": "Dr. Rodríguez",
      "descripcion": "Extracción sin complicaciones."
    }
  ]
}

Build docs developers (and LLMs) love