Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Ary-dev04/DentControl/llms.txt
Use this file to discover all available pages before exploring further.
Overview
ThePaciente model represents patient records in the DentControl system. It stores comprehensive demographic information, contact details, and address data for patients registered at dental clinics.
Table Schema
Database table name
Primary key column (auto-incrementing)
Includes
created_at and updated_at columnsFields
Clinic Association
Foreign key to the clinic this patient is registered at
Personal Information
First name
Paternal surname
Maternal surname (optional)
Date of birth (format: YYYY-MM-DD)
Biological sex:
hombre or mujerIdentification & Contact
CURP (Clave Única de Registro de Población) - Mexican national ID. Unique and nullable.
Primary contact phone number
Additional Information
Occupation/profession
Weight in kilograms (precision: 5 digits, 2 decimals)
Address Fields
Street name
External street number
Internal/apartment number
Neighborhood/colony
City
State/province
Postal/ZIP code
Status
Patient status:
activo or bajaRelationships
clinica
Type:belongsTo
A patient belongs to one clinic.
id_clinica
citas
Type:hasMany
A patient has many appointments.
id_paciente on citas table
expediente
Type:hasOne
A patient has one clinical record.
id_paciente on expediente_clinico table
accesoMovil
Type:hasOne
A patient may have mobile app access.
id_paciente on acceso_movil table
Example Usage
Creating a New Patient
Retrieving Patient with Relationships
Searching Patients
Calculating Age
Model Definition
Location:app/Models/Paciente.php