Overview
Health Manager provides robust tracking capabilities for key health metrics including weight measurements and cardiovascular readings (blood pressure and heart rate). All measurements are timestamped and displayed chronologically on your calendar.Health tracking data is stored securely and can be shared with healthcare providers or family members through the data sharing feature.
Weight Tracking
Recording Weight Measurements
Track your weight over time to monitor trends and progress toward health goals.How to Log Weight
-
Access the Weight Form:
- Click the FAB (Floating Action Button) in the bottom-right corner
- Select “Registrar Peso” (Log Weight) with the blue scale icon
- Or navigate directly from the calendar interface
-
Enter Weight Details:
- Weight: Enter your weight (1-500 kg range)
- Date & Time: Select when the measurement was taken (defaults to current time)
- Save: Click the save button to record the measurement
Weight Data Model
Weight measurements are stored with the following attributes:- Precision: Weight is stored with 2 decimal places for accuracy
- Validation: Weight must be between 1 and 500 kg
- User Association: Each measurement is linked to the user account
Weight Trends
The calendar dashboard automatically calculates:- Latest Weight: Your most recent measurement
- Weight Difference: Change from previous measurement
- Positive difference shown in red (weight gain)
- Negative difference shown in green (weight loss)
- Historical Tracking: All measurements viewable by date on the calendar
Editing Weight Entries
To modify a previous weight entry:- Click on the day in the calendar containing the measurement
- Find the weight entry in the day details modal
- Click the edit button next to the measurement
- Update the weight or timestamp as needed
- Save your changes
Only the measurement owner can edit or delete weight entries. Shared viewers have read-only access.
Blood Pressure & Heart Rate Tracking
Recording Cardiovascular Measurements
Track your blood pressure (systolic/diastolic) and heart rate in a single entry.How to Log Blood Pressure
-
Access the Heart Form:
- Click the FAB in the bottom-right corner
- Select “Presión Arterial” (Blood Pressure) with the red heart icon
-
Enter Measurements:
- Systolic Pressure: Upper number (50-250 mmHg range)
- Diastolic Pressure: Lower number (30-150 mmHg range)
- Heart Rate (BPM): Beats per minute (30-220 range)
- Date & Time: When the measurement was taken
- Save: Record the complete cardiovascular reading
Systolic
Upper blood pressure number measuring arterial pressure during heartbeat (50-250 mmHg)
Diastolic
Lower blood pressure number measuring arterial pressure between beats (30-150 mmHg)
Heart Rate
Pulse rate in beats per minute indicating heart rhythm (30-220 BPM)
Blood Pressure Data Model
Cardiovascular measurements use theMeasurementHeart model:
systolic- Integer value for systolic pressurediastolic- Integer value for diastolic pressurebpm- Integer value for heart ratedate- Timestamp of measurementuser_id- Associated user
Validation Rules
The system enforces medically reasonable ranges:Understanding Blood Pressure Readings
Normal Range: Typically 120/80 mmHg or lower- Elevated: Systolic 120-129, Diastolic < 80
- High Blood Pressure (Stage 1): Systolic 130-139 or Diastolic 80-89
- High Blood Pressure (Stage 2): Systolic ≥ 140 or Diastolic ≥ 90
Always consult with your healthcare provider to interpret your blood pressure readings and determine appropriate target ranges for your individual health situation.
Editing Blood Pressure Entries
Modify previous cardiovascular readings:- Select the day on the calendar with the reading
- Open the day details modal
- Click edit on the heart rate entry
- Update any of the three measurements (systolic, diastolic, BPM)
- Adjust the timestamp if needed
- Save your changes
Best Practices for Health Tracking
Consistency
Take measurements at the same time daily for comparable data. Morning readings are often most consistent.
Accurate Recording
Log measurements immediately after taking them to ensure accuracy and prevent forgetting.
Multiple Readings
For blood pressure, consider taking 2-3 readings a few minutes apart and recording the average.
Note Circumstances
Be aware that stress, caffeine, exercise, and medications can affect readings.
Data Workflow
The health tracking workflow follows this pattern:- User initiates logging via FAB or calendar
- Modal form opens with current timestamp pre-filled
- User enters measurements with real-time validation
- Data saves to database with user association
- Events dispatch to refresh calendar and history views
- Visual indicators update on the calendar day
Real-time Updates
After saving a measurement:- Modal closes automatically
- Calendar updates to show the new entry indicator
- History views refresh with the latest data
- No page reload required
Viewing Historical Data
Calendar Day View
Click any calendar day to see all measurements for that date:- Weight measurements sorted by most recent first
- Blood pressure readings with all three values (systolic/diastolic/BPM)
- Exact timestamps for each measurement
- Edit and delete options for your own entries
Monthly Overview
The calendar provides a bird’s-eye view:- Blue dots indicate days with weight measurements
- Red dots show days with blood pressure readings
- Multiple measurements per day are supported
- Quick visual pattern recognition
Data Sharing
Health measurements can be shared with:- Healthcare providers for remote monitoring
- Family members for health accountability
- Medical professionals for appointment preparation
- Viewers see all historical measurements
- Viewers cannot edit or delete your data
- You maintain full control over access
- Revoke access anytime
Technical Implementation
Weight Logging Component
Livewire Component:App\Livewire\Dashboard\WeightLog
- Handles both creating new entries and editing existing ones
- Pre-fills current timestamp for convenience
- Validates weight range (1-500 kg)
- Supports edit mode via
edit-weight-itemlistener
Heart Rate Logging Component
Livewire Component:App\Livewire\Dashboard\HeartLog
- Manages systolic, diastolic, and BPM in single form
- Enforces medical range validations
- Supports editing via
edit-heart-itemlistener - Groups related cardiovascular metrics together
Database Storage
Both models extend Laravel’s base Model with:- Factory support for testing and seeding
- Mass assignment protection control
- User relationship for data isolation
Related Features
- Interactive Calendar - View all health data in calendar format
- Medical Appointments - Track doctor visits
- Data Sharing - Share health metrics with others
