Overview
The non-pathological history is organized into three main tabs:- Habits (Hábitos) - Lifestyle and substance use
- Environment (Entorno) - Housing and socioeconomic factors
- History (Historial) - Immunizations, allergies, and travel
This information provides essential context for understanding health risks and developing appropriate treatment plans.
Tab 1: Habits and lifestyle
Substance consumption
Document the patient’s use of various substances:Alcohol
Select frequency:- Nunca (Never)
- Ocasional (Occasional)
- Moderado (Moderate)
- Frecuente (Frequent)
- Ex-consumidor (Former consumer)
Tobacco
Choose current status:- Nunca (Never)
- Ex-fumador (Former smoker)
- Ocasional (Occasional)
- Diario (Daily)
Caffeine
Daily intake:- Ninguna (None)
- 1-2 tazas (1-2 cups)
- 3-4 tazas (3-4 cups)
- 5+ tazas (5+ cups)
Illicit drugs
Toggle switch (Yes/No) to indicate use of illicit substances.Physical activity
Select exercise frequency:- Sedentario (Sedentary)
- Ligero (Light - 1-2/week)
- Moderado (Moderate - 3-4/week)
- Intenso (Intense - 5+/week)
Diet type
Multiple selection checkboxes:- Omnívora
- Vegetariana
- Vegana
- Sin gluten (Gluten-free)
- Keto
- Otra (Other)
Patients can have multiple diet types selected (e.g., vegetarian + gluten-free).
Sleep patterns
Hours of sleep (Horas de sueño):- Menos de 5 (<5)
- 5-6 horas
- 7-8 horas
- 9+ horas
- Buena (Good)
- Regular (Fair)
- Mala (Poor)
Tab 2: Social environment
Housing information
Type of dwelling
- Casa (House)
- Apartamento (Apartment)
- Condominio (Condominium)
- Otro (Other)
Number of occupants
- 1 persona (1 person)
- 2-3 personas
- 4-5 personas
- 6+ personas
Pets
Multiple selection:- Perro (Dog)
- Gato (Cat)
- Ave (Bird)
- Ninguna (None)
Socioeconomic information
Education level
- Primaria (Primary school)
- Secundaria (Secondary school)
- Preparatoria (High school)
- Universidad (University)
- Posgrado (Postgraduate)
Current occupation
Free-text field for job title or employment status.Income level
- Bajo (Low)
- Medio-bajo (Lower-middle)
- Medio (Middle)
- Medio-alto (Upper-middle)
- Alto (High)
Tab 3: Additional history
Immunizations up to date
Checkbox selection of common vaccines:- COVID-19
- Influenza
- Hepatitis B
- Tétanos (Tetanus)
- Sarampión (Measles)
- Varicela (Chickenpox)
- HPV
- Neumococo (Pneumococcal)
Environmental allergies
Select applicable allergies:- Polen (Pollen)
- Ácaros (Dust mites)
- Polvo (Dust)
- Pelo animal (Animal hair)
- Moho (Mold)
- Látex (Latex)
- Ninguna (None)
- Otras (Others)
Recent travel
Toggle switch: Indicates whether the patient has traveled recently to endemic zones in the last 12 months. If Yes, the Travel details field appears:- Describe destinations
- Include dates
- Note any relevant health risks from travel regions
Additional notes
Free-text area for any other relevant non-pathological information not covered by the structured fields.Summary display
The bottom of the form shows a real-time summary with colored badges: Substance use:- Alcohol status (primary color)
- Tobacco status (primary color)
- Drugs indicated (red badge)
- Diet types (primary color)
- Housing type (primary color)
- Number of vaccines up to date (green badge)
The summary updates instantly as you fill out the form, providing a quick overview of key information.
Nested form structure
The form uses nested objects for data organization:Custom Switch component
The form includes a custom toggle switch for boolean fields (drugs, travel):- Green when active (checked)
- Gray when inactive (unchecked)
- Displays “Sí” or “No” label
- Keyboard accessible
- Disabled state supported
Saving and updating
Click Guardar (Save) to:- Create a new record (if none exists for the patient)
- Update existing record (if already present)
patient_id.
Print report
Click “Imprimir Informe” to generate a formatted report including:- All habit and lifestyle information
- Social environment details
- Immunization and allergy status
- Travel history
- General notes
Clinical significance
Lifestyle factors and health
Non-pathological history reveals:- Risk factors: Smoking, alcohol, sedentary lifestyle
- Protective factors: Exercise, healthy diet, adequate sleep
- Social determinants: Housing, income, education affecting health
- Preventive status: Immunization coverage, health screening
Using the information
Best practices
Data collection tips
- Create rapport: Explain why you’re asking about sensitive topics
- Non-judgmental approach: Use neutral language about substance use
- Verify immunizations: Ask for vaccination card when possible
- Update regularly: Habits and circumstances change over time
Counseling opportunities
Smoking cessation
Smoking cessation
When tobacco use is documented:
- Offer cessation resources
- Discuss health benefits of quitting
- Provide support options (medications, counseling)
Nutrition guidance
Nutrition guidance
Based on diet type and habits:
- Assess nutritional adequacy
- Recommend dietary improvements
- Refer to nutritionist if needed
Exercise promotion
Exercise promotion
For sedentary patients:
- Encourage gradual activity increase
- Provide safe exercise recommendations
- Address barriers to physical activity
Source code reference
Implemented in:/workspace/source/src/pages/AntecedentesNoPatologicos.tsx(1036 lines)- Uses React Hook Form with Zod validation schemas
- Nested schema structure for organized data
- Custom Switch component for boolean toggles
habitosEstiloVidaSchema- Lifestyle habitsentornoSocialSchema- Social environmenthistorialAdicionalSchema- Additional history
api.antecedentesNoPatologicos.getByPatientId()api.antecedentesNoPatologicos.create()api.antecedentesNoPatologicos.update()