5a79cc45cd
- Broke out the Patient struct and its related functions (initializePatient, updatePatient) into their own files (Patient.h, Patient.cpp) for better organization. - Implemented the initial UpdateState logic in the updatePatient function using a mean-reverting model. This ensures that vital signs fluctuate realistically around a healthy baseline. - Updated CMakeLists.txt to include the new Patient.cpp file in the build.
12 lines
292 B
C
12 lines
292 B
C
#pragma once
|
|
|
|
#include "MedicalLib/Patient.h"
|
|
|
|
/**
|
|
* @brief Calculates the Body Mass Index (BMI).
|
|
* @param weight_kg The weight in kilograms.
|
|
* @param height_m The height in meters.
|
|
* @return The calculated BMI.
|
|
*/
|
|
MEDICAL_LIB_API double calculateBMI(double weight_kg, double height_m);
|