Documentation Index
Fetch the complete documentation index at: https://mintlify.com/diegolozadev/DataMed/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Psychology module tracks mental health assessments for sleep apnea patients, focusing on depression, anxiety, and insomnia severity. These psychological factors significantly impact PAP therapy adherence and treatment outcomes. Model:PsicologiaLocation:
apps/exams/models.py:68-96
Depression and anxiety are common comorbidities in sleep apnea patients and can significantly reduce treatment compliance. Regular psychological screening is essential for comprehensive care.
Assessment Tools
Beck Depression Inventory
Standardized questionnaire measuring depression severity
Beck Anxiety Inventory
Standardized questionnaire measuring anxiety symptoms
Athens Insomnia Scale
Measures insomnia severity and sleep quality
Data Fields
Beck Depression Inventory
Beck Depression Inventory (BDI) score
- Range: 0-63
- Form Label: “Depresión de Beck”
- Assessment Type: 21-item self-report questionnaire
- Administration Time: 5-10 minutes
| Score Range | Severity | Clinical Significance |
|---|---|---|
| 0-13 | Minimal | No or minimal depression |
| 14-19 | Mild | May benefit from counseling |
| 20-28 | Moderate | Requires psychological intervention |
| 29-63 | Severe | Urgent psychiatric evaluation needed |
Beck Anxiety Inventory
Beck Anxiety Inventory (BAI) score
- Range: 0-63
- Form Label: “Ansiedad de Beck”
- Assessment Type: 21-item self-report questionnaire
- Administration Time: 5-10 minutes
| Score Range | Severity | Clinical Significance |
|---|---|---|
| 0-7 | Minimal | No or minimal anxiety |
| 8-15 | Mild | Mild anxiety symptoms |
| 16-25 | Moderate | Moderate anxiety, intervention recommended |
| 26-63 | Severe | Severe anxiety, urgent treatment required |
High anxiety scores (BAI ≥16) are strongly associated with poor CPAP adherence and mask claustrophobia. Early identification enables targeted interventions.
Athens Insomnia Scale
Athens Insomnia Scale (AIS) score
- Range: 1-10 (typically 0-24, but form indicates 1-10)
- Form Label: “Escala Atenas (1 a 10)”
- Assessment Type: 8-item self-report questionnaire
- Focus: Sleep induction, awakenings, total sleep duration, sleep quality
| Score | Severity | Clinical Significance |
|---|---|---|
| < 6 | No insomnia | Normal sleep patterns |
| ≥ 6 | Insomnia | Clinically significant sleep difficulty |
Relationships
Links to the patient’s active admission recordRelated Name:
On Delete: CASCADE
psicologiasOn Delete: CASCADE
User (psychologist or clinician) who registered this assessmentRelated Name:
On Delete: SET_NULL
psicologias_registradasOn Delete: SET_NULL
Timestamp when this psychological assessment was recordedAuto-generated: Automatically set on record creation
Registration Workflow
View:register_psicologia (apps/exams/views.py:121-149)
Key Workflow Considerations
Key Workflow Considerations
Active Admission Requirement:
- Psychology assessments are linked to the current treatment cycle
- View retrieves
ingreso_actualwithestado='ACTIVO' - Prevents data mixing between treatment cycles
form.save(commit=False)creates object without database write- Link object to active admission (
exam.ingreso = ingreso_actual) - Set registering user (
exam.registrado_por = request.user) - Final save to database (
exam.save())
Clinical Applications
Impact on PAP Therapy Adherence
Depression & Adherence
High Depression Scores:
- Reduced motivation to use CPAP
- Poor self-care behaviors
- Lower perceived treatment benefit
Anxiety & Adherence
High Anxiety Scores:
- Mask claustrophobia
- Panic with pressurized air
- Fear of dependence on device
Screening Recommendations
Initial Assessment (Baseline)
Initial Assessment (Baseline)
Timing: Before or immediately after basal polysomnographyPurpose:
- Establish psychological baseline
- Identify pre-existing mental health conditions
- Predict adherence challenges
- Guide therapy planning
Follow-up Assessment (1-3 months)
Follow-up Assessment (1-3 months)
Timing: After PAP therapy initiationPurpose:
- Measure treatment psychological benefits
- Identify therapy-related anxiety (e.g., mask claustrophobia)
- Assess if adherence issues are psychologically driven
- Adjust interventions based on response
Ongoing Monitoring (Every 3-6 months)
Ongoing Monitoring (Every 3-6 months)
Timing: Throughout long-term therapyPurpose:
- Monitor sustained psychological benefit
- Early detection of relapse
- Correlate mental health changes with adherence patterns
Clinical Interpretation Guidelines
Depression (BDI)
Anxiety (BAI)
Insomnia (Athens Scale)
Data Retrieval
View:patient_clinical (apps/exams/views.py:29)
Psychology assessments are filtered by the patient’s active admission and ordered by ID (most recent first) to track psychological changes over time.
Research Evidence
Depression & Sleep Apnea Bidirectional Relationship
Depression & Sleep Apnea Bidirectional Relationship
Research Findings:
- 20-30% of OSA patients have clinical depression (vs. 7% general population)
- Untreated OSA increases depression risk by 2-3x
- Treating OSA improves depression scores in 40-60% of patients
- Residual depression requires independent treatment
Anxiety & CPAP Adherence
Anxiety & CPAP Adherence
Research Findings:
- Moderate-severe anxiety (BAI ≥16) predicts poor CPAP adherence
- Mask claustrophobia occurs in 5-10% of patients
- Anxiety about suffocation is common misconception
- Desensitization therapy improves adherence by 30-40%
Insomnia + OSA (COMISA)
Insomnia + OSA (COMISA)
Research Findings:
- 30-50% of OSA patients have comorbid insomnia
- COMISA patients have worse outcomes than OSA or insomnia alone
- PAP therapy alone rarely resolves insomnia symptoms
- CBT-I + PAP is optimal treatment combination
Related Modules
Monitoring
Correlate psychological scores with adherence patterns
Nutrition
Rumination and eating behaviors linked to mood
Polysomnography
Sleep quality assessments complement Athens scores