Commit 19a59f83 authored by Jeff Webb's avatar Jeff Webb
Browse files

More updates for respiratory disease valiation scenarios.

parent 82d0ec04
......@@ -123,7 +123,7 @@
"InspirationMachineTriggerTime": { "ScalarTime": { "Value": 1.672, "Unit": "s" } },
"ExpirationCycleTime": { "ScalarTime": { "Value": 1.858, "Unit": "s" } },
"FractionInspiredGas": [
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.30, "Unit": "" } } }
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.40, "Unit": "" } } }
]
}
}
......
......@@ -122,16 +122,16 @@
"EquipmentAction": {
"MechanicalVentilatorConfiguration": {
"MechanicalVentilatorAction": { "EquipmentAction": { "Action": {
"Comment": "Attach the mechanical ventilator: RR = 13 bpm, I:E = 0.43, TV = 8.2 mL/kg(ideal)" }}},
"Comment": "Attach the mechanical ventilator: RR = 12 bpm, I:E = 0.43, TV = 9.0 mL/kg(ideal)" }}},
"Configuration":
{
"Connection": "Tube",
"InspirationWaveform": "Square",
"ExpirationWaveform": "Square",
"PeakInspiratoryPressure": { "ScalarPressure": { "Value": 23.0, "Unit": "cmH2O" } },
"PeakInspiratoryPressure": { "ScalarPressure": { "Value": 22.5, "Unit": "cmH2O" } },
"PositiveEndExpiredPressure": { "ScalarPressure": { "Value": 8.0, "Unit": "cmH2O" } },
"InspirationMachineTriggerTime": { "ScalarTime": { "Value": 3.228, "Unit": "s" } },
"ExpirationCycleTime": { "ScalarTime": { "Value": 1.388, "Unit": "s" } },
"InspirationMachineTriggerTime": { "ScalarTime": { "Value": 3.147, "Unit": "s" } },
"ExpirationCycleTime": { "ScalarTime": { "Value": 1.853, "Unit": "s" } },
"FractionInspiredGas": [
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.31, "Unit": "" } } }
]
......
......@@ -122,16 +122,16 @@
"EquipmentAction": {
"MechanicalVentilatorConfiguration": {
"MechanicalVentilatorAction": { "EquipmentAction": { "Action": {
"Comment": "Attach the mechanical ventilator: RR = 12 bpm, I:E = 0.43, TV = 8 mL/kg(ideal)" }}},
"Comment": "Attach the mechanical ventilator: RR = 14 bpm, I:E = 0.43, TV = 8.5 mL/kg(ideal)" }}},
"Configuration":
{
"Connection": "Tube",
"InspirationWaveform": "Square",
"ExpirationWaveform": "Square",
"PeakInspiratoryPressure": { "ScalarPressure": { "Value": 22.0, "Unit": "cmH2O" } },
"PeakInspiratoryPressure": { "ScalarPressure": { "Value": 25.5, "Unit": "cmH2O" } },
"PositiveEndExpiredPressure": { "ScalarPressure": { "Value": 8.0, "Unit": "cmH2O" } },
"InspirationMachineTriggerTime": { "ScalarTime": { "Value": 3.147, "Unit": "s" } },
"ExpirationCycleTime": { "ScalarTime": { "Value": 1.853, "Unit": "s" } },
"InspirationMachineTriggerTime": { "ScalarTime": { "Value": 2.997, "Unit": "s" } },
"ExpirationCycleTime": { "ScalarTime": { "Value": 1.289, "Unit": "s" } },
"FractionInspiredGas": [
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.31, "Unit": "" } } }
]
......
......@@ -122,18 +122,18 @@
"EquipmentAction": {
"MechanicalVentilatorConfiguration": {
"MechanicalVentilatorAction": { "EquipmentAction": { "Action": {
"Comment": "Attach the mechanical ventilator: RR = 13 bpm, I:E = 0.43, TV = 7 mL/kg(ideal)" }}},
"Comment": "Attach the mechanical ventilator: RR = 15 bpm, I:E = 0.43, TV = 9.0 mL/kg(ideal)" }}},
"Configuration":
{
"Connection": "Tube",
"InspirationWaveform": "Square",
"ExpirationWaveform": "Square",
"PeakInspiratoryPressure": { "ScalarPressure": { "Value": 23.5, "Unit": "cmH2O" } },
"PeakInspiratoryPressure": { "ScalarPressure": { "Value": 30.0, "Unit": "cmH2O" } },
"PositiveEndExpiredPressure": { "ScalarPressure": { "Value": 8.0, "Unit": "cmH2O" } },
"InspirationMachineTriggerTime": { "ScalarTime": { "Value": 3.228, "Unit": "s" } },
"ExpirationCycleTime": { "ScalarTime": { "Value": 1.388, "Unit": "s" } },
"InspirationMachineTriggerTime": { "ScalarTime": { "Value": 2.797, "Unit": "s" } },
"ExpirationCycleTime": { "ScalarTime": { "Value": 1.203, "Unit": "s" } },
"FractionInspiredGas": [
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.35, "Unit": "" } } }
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.40, "Unit": "" } } }
]
}
}
......
......@@ -3182,7 +3182,7 @@ void Respiratory::UpdatePulmonaryCapillary()
// Calculate Pulmonary Capillary Resistance Multiplier based on severities
double maxSeverity = MAX(bronchitisSeverity, emphysemaSeverity);
double pulmonaryResistanceMultiplier = GeneralMath::LinearInterpolator(0.0, 1.0, 1.0, 8.0, maxSeverity);
double pulmonaryResistanceMultiplier = GeneralMath::LinearInterpolator(0.0, 1.0, 1.0, 6.0, maxSeverity);
double rightPulmonaryCapillaryResistance = m_RightPulmonaryCapillary->GetNextResistance().GetValue(PressureTimePerVolumeUnit::mmHg_s_Per_mL);
double leftPulmonaryCapillaryResistance = m_LeftPulmonaryCapillary->GetNextResistance().GetValue(PressureTimePerVolumeUnit::mmHg_s_Per_mL);
......@@ -3202,7 +3202,7 @@ void Respiratory::UpdatePulmonaryCapillary()
// Calculate Pulmonary Capillary Resistance Multiplier based on severity
double pulmonaryResistanceMultiplier = GeneralMath::LinearInterpolator(0.0, 1.0, 1.0, 8.0, severity);
double pulmonaryResistanceMultiplier = GeneralMath::LinearInterpolator(0.0, 1.0, 1.0, 6.0, severity);
double rightPulmonaryCapillaryResistance = m_RightPulmonaryCapillary->GetNextResistance().GetValue(PressureTimePerVolumeUnit::mmHg_s_Per_mL);
double leftPulmonaryCapillaryResistance = m_LeftPulmonaryCapillary->GetNextResistance().GetValue(PressureTimePerVolumeUnit::mmHg_s_Per_mL);
......@@ -3323,6 +3323,8 @@ void Respiratory::UpdatePulmonaryShunt()
//------------------------------------------------------------------------------------------------------
//COPD - shunting occurs in UpdatePulmonaryCapillary
//------------------------------------------------------------------------------------------------------
double rightPulmonaryShuntResistance = m_RightPulmonaryArteriesToVeins->GetNextResistance().GetValue(PressureTimePerVolumeUnit::mmHg_s_Per_mL);
double leftPulmonaryShuntResistance = m_LeftPulmonaryArteriesToVeins->GetNextResistance().GetValue(PressureTimePerVolumeUnit::mmHg_s_Per_mL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment