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
DataMed’s clinical records system provides a unified view of all patient clinical data, organized by admission cycle (Ingreso). Each type of clinical exam is tracked separately while maintaining relationships to the patient’s active treatment cycle.All clinical records are automatically associated with the patient’s active Ingreso. When a new cycle begins, previous records are preserved but kept separate.
Clinical Record Types
The system tracks seven distinct types of clinical examinations and interventions:Polysomnography
Basal and titration sleep studies with IAH tracking
Technical Monitoring
CPAP/BiPAP usage data and residual apnea tracking
Nutrition
Nutritional status, dietary habits, and caffeine intake
Psychology
Beck inventories (depression, anxiety) and Athens scale
Pulmonology
Specialist consultations and respiratory assessments
Medical Equipment
CPAP/BiPAP device and mask assignments
Follow-up Notes
Adaptation tracking and patient contact notes
Accessing Clinical Records
The clinical record view only displays data for the active Ingreso. This ensures clinical staff see relevant current-cycle data without confusion from previous cycles.
Polysomnography Studies
Sleep studies form the foundation of sleep apnea diagnosis and treatment monitoring.Baseline Polysomnography (PSG Basal)
- Overview
- Registering a Basal PSG
- Severity Classification
The baseline study establishes the patient’s sleep apnea severity before treatment:Key Metrics:
- IAH (Apnea-Hypopnea Index): Events per hour
- IDO (Oxygen Desaturation Index)
- Efficiency: Sleep efficiency percentage
- Severity: LEVE, MODERADA, GRAVE, NORMAL
Titration Polysomnography (PSG Titulación)
Titration studies determine optimal CPAP/BiPAP pressure settings:Titration Study Fields
Titration Study Fields
- CPAP: Single pressure (IPAP only)
- BiPAP: Dual pressure (IPAP + EPAP)
- BiPAP ST: Dual pressure + backup rate
Technical Monitoring (Adaptación)
Monitoring sessions track patient adherence and treatment effectiveness:Complete Technical Data
The form includes two tabs:
- Technical Data
- Contact Notes
Usage Metrics:
- Daily usage percentage
- Days with ≥4 hours usage
- Average daily usage hours
- Baseline hypopnea (auto-filled from PSG Basal)
- Residual hypopnea (current)
- Correction percentage (auto-calculated)
- Ventilator mode (CPAP/BiPAP/BiPAP ST)
- Pressure settings (IPAP/EPAP)
- Respiratory rate (if applicable)
- Mask type and size
- Average EtCO2
The correction percentage is calculated as:
((Basal - Residual) / Basal) × 100A correction rate ≥70% indicates effective therapy.Psychology Sessions
Psychological assessments use standardized instruments:Beck Depression
Score range: 0-63Higher scores indicate more severe depression symptoms
Beck Anxiety
Score range: 0-63Measures anxiety symptom severity
Athens Insomnia
Score range: 0-24Scores ≥6 suggest insomnia
Registering Psychology Data
Interpretation Guidelines
Interpretation Guidelines
Beck Depression Inventory:
- 0-13: Minimal depression
- 14-19: Mild depression
- 20-28: Moderate depression
- 29-63: Severe depression
- 0-7: Minimal anxiety
- 8-15: Mild anxiety
- 16-25: Moderate anxiety
- 26-63: Severe anxiety
- < 6: No clinically significant insomnia
- ≥ 6: Probable insomnia disorder
Nutrition Sessions
Nutritional assessments track metabolic health and dietary factors affecting sleep:- Fields
- BMI Classification
- Sleep Impact Factors
Pulmonology Consultations
Specialist consultations are tracked with minimal structured data:Pulmonology records serve as timestamps for specialist involvement. Detailed consultation notes are typically maintained in external clinical notes or physical records.
Medical Equipment Assignment
Tracking CPAP/BiPAP equipment assigned to patients:Supported Equipment Brands
Supported Equipment Brands
- BMC: Budget-friendly Chinese manufacturer
- ResMed: Premium Australian devices
- Philips Respironics: High-end with recall history
- Sefan: Regional brand
- Resvent: Mid-range option
- Curative: Local distributor brand
- Prisma: Specialty devices
- DeVilbiss: Legacy brand
Clinical Record View
The unified clinical record view displays all exam types in chronological order:Data Organization
Critical Design Principle: By filtering all clinical records by the active Ingreso, the system ensures that when a new 18-month cycle begins, staff see a clean slate without confusion from previous cycle data.
Audit Trail
All clinical records include automatic audit fields:| Field | Type | Purpose |
|---|---|---|
ingreso | ForeignKey | Links to specific admission cycle |
registrado_por | ForeignKey(User) | User who created the record |
created_at | DateTimeField | Timestamp of record creation |
Audit Query Example
Audit Query Example
To find all records created by a specific user:
Best Practices
Always register baseline PSG first
Always register baseline PSG first
The baseline polysomnography should be the first clinical record entered, as its IAH value is referenced by monitoring sessions for correction percentage calculation.
Complete titration before equipment assignment
Complete titration before equipment assignment
Perform and record the titration study before assigning CPAP/BiPAP equipment to ensure correct pressure settings are documented.
Regular monitoring schedule
Regular monitoring schedule
Schedule technical monitoring at:
- Week 2: Initial adaptation check
- Month 1: First monthly review
- Months 3, 6, 9, 12, 15, 18: Quarterly reviews
Document equipment serial numbers
Document equipment serial numbers
Always record device serial numbers for:
- Warranty tracking
- Recall management
- Inventory control
- Insurance documentation
Next Steps
Exam Tracking
Learn how to monitor exam completion across capita months
Follow-Up System
Understand the follow-up tracking and alert system