Commit ccd22331 authored by Jeff Webb's avatar Jeff Webb
Browse files

Added aerosols to Mechanical Ventilator.

Updated artificial airway to modify resistances and compliances with intubation only.
Added pulmonary shunt to ARDS.
parent 7245eb9e
......@@ -78,6 +78,7 @@ patient/TensionPneumothoraxOpenVaried.json = ScenarioTest
patient/VentricularSystolicDysfunction.json = ScenarioTest
@group EnergyEnvironment
energyenvironment/AlveolarArterialGradientEnvironments.json = ScenarioTest
energyenvironment/CarbonMonoxideExtreme.json = ScenarioTest
energyenvironment/CarbonMonoxideThreshold.json = ScenarioTest
#energyEnvironment/CarbonMonoxideThresholdLong.json = ScenarioTest
......@@ -116,7 +117,8 @@ equipment/MainstemIntubation.json = ScenarioTest
equipment/MechanicalVentilation.json = ScenarioTest
equipment/NasalCannula.json = ScenarioTest
equipment/NonRebreatherMask.json = ScenarioTest
equipment/PressureControlContinuousMandatoryVentilation.json = ScenarioTest
equipment/PressureControlContinuousMandatoryVentilationARDS.json = ScenarioTest
equipment/PressureControlContinuousMandatoryVentilationVaried.json = ScenarioTest
equipment/SimpleMask.json = ScenarioTest
@group Drugs
......
{
"Name": "AlveolarArterialGradientEnvironment",
"Description": "Change the ambient O2 to check the gas exchange.",
"StartType": { "PatientConfiguration": { "PatientFile": "StandardMale.json" }},
"DataRequestManager":
{
"DataRequest":
[
{ "DecimalFormat": { "Precision": 1 }, "PropertyName": "Weight", "Unit": "kg" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "HeartRate", "Unit": "1/min" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "HeartStrokeVolume", "Unit": "mL" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "BloodVolume", "Unit": "L" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "ExtravascularFluidVolume", "Unit": "L" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "ArterialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "MeanArterialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "SystolicArterialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "DiastolicArterialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "CardiacOutput", "Unit": "L/min" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "HemoglobinContent", "Unit": "g" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "CentralVenousPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "PulmonaryCapillariesWedgePressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "TidalVolume", "Unit": "mL" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "TotalLungVolume", "Unit": "L" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "RespirationRate", "Unit": "1/min" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "OxygenSaturation", "Unit": "unitless" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "CarbonDioxideSaturation", "Unit": "unitless" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "EndTidalCarbonDioxideFraction", "Unit": "unitless" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "TotalAlveolarVentilation", "Unit": "L/min" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "TranspulmonaryPressure", "Unit": "cmH2O" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "CoreTemperature", "Unit": "degC" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "SkinTemperature", "Unit": "degC" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "RespiratoryExchangeRatio", "Unit": "unitless" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "OxygenConsumptionRate", "Unit": "mL/min" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "CarbonDioxideProductionRate", "Unit": "mL/min" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "GlomerularFiltrationRate", "Unit": "mL/min" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "RenalBloodFlow", "Unit": "L/min" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "UrineProductionRate", "Unit": "mL/min" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "LeftAfferentArterioleResistance", "Unit": "mmHg min/mL" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "RightAfferentArterioleResistance", "Unit": "mmHg min/mL" },
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "LeftAlveoli", "PropertyName": "Pressure", "Unit": "cmH2O" },
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "RightAlveoli", "PropertyName": "Pressure", "Unit": "cmH2O" },
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "LeftAlveoli", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "GasCompartment", "CompartmentName": "LeftAlveoli", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "RightAlveoli", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "GasCompartment", "CompartmentName": "RightAlveoli", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "mmHg"},
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "Carina", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "cmH2O" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "GasCompartment", "CompartmentName": "Carina", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "cmH2O" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "LiquidCompartment", "CompartmentName": "Aorta", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "LiquidCompartment", "CompartmentName": "Aorta", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "LiquidCompartment", "CompartmentName": "VenaCava", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "LiquidCompartment", "CompartmentName": "VenaCava", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "LiquidCompartment", "CompartmentName": "RightTubules", "SubstanceName": "Sodium", "PropertyName": "Concentration", "Unit": "g/L" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "LiquidCompartment", "CompartmentName": "LeftTubules", "SubstanceName": "Sodium", "PropertyName": "Concentration", "Unit": "g/L" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Substance", "SubstanceName": "Oxygen", "PropertyName": "AlveolarTransfer", "Unit": "mL/s" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Substance", "SubstanceName": "CarbonDioxide", "PropertyName": "AlveolarTransfer", "Unit": "mL/s" },
{ "DecimalFormat": { "Precision": 6 }, "Category": "Substance", "SubstanceName": "Epinephrine", "PropertyName": "BloodConcentration", "Unit": "ug/L" },
{ "DecimalFormat": { "Precision": 8 }, "Category": "Substance", "SubstanceName": "Epinephrine", "PropertyName": "SystemicMassCleared", "Unit": "ug" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "CarricoIndex", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "TransthoracicPressure", "Unit": "cmH2O" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "AlveolarArterialGradient", "Unit": "mmHg" }
]
},
"AnyAction":
[
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" } } } },
{ "EnvironmentAction": {
"ChangeEnvironmentalConditions": {
"EnvironmentalConditions": {
"AmbientGas": [
{ "Name": "Nitrogen", "Amount": { "Scalar0To1": { "Value": 0.6896 } } },
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.31 } } },
{ "Name": "CarbonDioxide", "Amount": { "Scalar0To1": { "Value": 4.0E-4 } } }
] } } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 2.0, "Unit": "min" } } } },
{ "EnvironmentAction": {
"ChangeEnvironmentalConditions": {
"EnvironmentalConditions": {
"AmbientGas": [
{ "Name": "Nitrogen", "Amount": { "Scalar0To1": { "Value": 0.5896 } } },
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.41 } } },
{ "Name": "CarbonDioxide", "Amount": { "Scalar0To1": { "Value": 4.0E-4 } } }
] } } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 2.0, "Unit": "min" } } } },
{ "EnvironmentAction": {
"ChangeEnvironmentalConditions": {
"EnvironmentalConditions": {
"AmbientGas": [
{ "Name": "Nitrogen", "Amount": { "Scalar0To1": { "Value": 0.4896 } } },
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.51 } } },
{ "Name": "CarbonDioxide", "Amount": { "Scalar0To1": { "Value": 4.0E-4 } } }
] } } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 2.0, "Unit": "min" } } } },
{ "EnvironmentAction": {
"ChangeEnvironmentalConditions": {
"EnvironmentalConditions": {
"AmbientGas": [
{ "Name": "Nitrogen", "Amount": { "Scalar0To1": { "Value": 0.3896 } } },
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.61 } } },
{ "Name": "CarbonDioxide", "Amount": { "Scalar0To1": { "Value": 4.0E-4 } } }
] } } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 2.0, "Unit": "min" } } } },
{ "EnvironmentAction": {
"ChangeEnvironmentalConditions": {
"EnvironmentalConditions": {
"AmbientGas": [
{ "Name": "Nitrogen", "Amount": { "Scalar0To1": { "Value": 0.2896 } } },
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.71 } } },
{ "Name": "CarbonDioxide", "Amount": { "Scalar0To1": { "Value": 4.0E-4 } } }
] } } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 2.0, "Unit": "min" } } } },
{ "EnvironmentAction": {
"ChangeEnvironmentalConditions": {
"EnvironmentalConditions": {
"AmbientGas": [
{ "Name": "Nitrogen", "Amount": { "Scalar0To1": { "Value": 0.1896 } } },
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.81 } } },
{ "Name": "CarbonDioxide", "Amount": { "Scalar0To1": { "Value": 4.0E-4 } } }
] } } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 2.0, "Unit": "min" } } } },
{ "EnvironmentAction": {
"ChangeEnvironmentalConditions": {
"EnvironmentalConditions": {
"AmbientGas": [
{ "Name": "Nitrogen", "Amount": { "Scalar0To1": { "Value": 0.0896 } } },
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.91 } } },
{ "Name": "CarbonDioxide", "Amount": { "Scalar0To1": { "Value": 4.0E-4 } } }
] } } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 2.0, "Unit": "min" } } } }
]
}
\ No newline at end of file
......@@ -88,10 +88,7 @@
"AnyAction":
[
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" }}}},
{ "PatientAction": { "MechanicalVentilation":
{ "State": "On", "Pressure":
{ "ScalarPressure": { "Value": 0.0, "Unit": "cmH2O" }}
}}},
{ "PatientAction": { "Intubation": { "Type": "Tracheal" } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" }}}},
{ "PatientAction": { "ChronicObstructivePulmonaryDiseaseExacerbation":
{
......@@ -137,9 +134,7 @@
"RightLungAffected": { "Scalar0To1": { "Value": 0.0 }}
}}
},
{ "PatientAction": { "MechanicalVentilation":
{ "State": "Off" }
}},
{ "PatientAction": { "Intubation": { "Type": "Off" } } },
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" }}}}
]
}
\ No newline at end of file
{
"Name": "PressureControlContinuousMandatoryVentilationARDS",
"Description": "Apply a P-CMV mode ventilator to treat a patient with ARDS.",
"StartType": { "PatientConfiguration": { "PatientFile": "StandardMale.json",
"Conditions": { "AnyCondition": [ {
"PatientCondition": {
"AcuteRespiratoryDistressSyndrome": {
"Severity": { "Scalar0To1": { "Value": 0.9 } },
"LeftLungAffected": { "Scalar0To1": { "Value": 1.0 } },
"RightLungAffected": { "Scalar0To1": { "Value": 1.0 } } } } }
] }
}
},
"DataRequestManager":
{
"DataRequest":
[
{ "DecimalFormat": { "Precision": 1 }, "PropertyName": "Weight", "Unit": "kg" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "HeartRate", "Unit": "1/min" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "HeartStrokeVolume", "Unit": "mL" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "BloodVolume", "Unit": "L" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "ExtravascularFluidVolume", "Unit": "L" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "ArterialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "MeanArterialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "SystolicArterialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "DiastolicArterialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "CardiacOutput", "Unit": "L/min" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "HemoglobinContent", "Unit": "g" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "CentralVenousPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "PulmonaryCapillariesWedgePressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "TidalVolume", "Unit": "mL" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "TotalLungVolume", "Unit": "L" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "RespirationRate", "Unit": "1/min" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "OxygenSaturation", "Unit": "unitless" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "CarbonDioxideSaturation", "Unit": "unitless" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "EndTidalCarbonDioxideFraction", "Unit": "unitless" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "TotalAlveolarVentilation", "Unit": "L/min" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "TranspulmonaryPressure", "Unit": "cmH2O" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "CoreTemperature", "Unit": "degC" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "Physiology", "PropertyName": "SkinTemperature", "Unit": "degC" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "RespiratoryExchangeRatio", "Unit": "unitless" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "OxygenConsumptionRate", "Unit": "mL/min" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "CarbonDioxideProductionRate", "Unit": "mL/min" },
{ "DecimalFormat": { }, "Category": "Physiology", "PropertyName": "GlomerularFiltrationRate", "Unit": "mL/min" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "RenalBloodFlow", "Unit": "L/min" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "UrineProductionRate", "Unit": "mL/min" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "LeftAfferentArterioleResistance", "Unit": "mmHg min/mL" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "RightAfferentArterioleResistance", "Unit": "mmHg min/mL" },
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "LeftAlveoli", "PropertyName": "Pressure", "Unit": "cmH2O" },
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "RightAlveoli", "PropertyName": "Pressure", "Unit": "cmH2O" },
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "LeftAlveoli", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "GasCompartment", "CompartmentName": "LeftAlveoli", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "RightAlveoli", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "GasCompartment", "CompartmentName": "RightAlveoli", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "mmHg"},
{ "DecimalFormat": { }, "Category": "GasCompartment", "CompartmentName": "Carina", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "cmH2O" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "GasCompartment", "CompartmentName": "Carina", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "cmH2O" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "LiquidCompartment", "CompartmentName": "Aorta", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "LiquidCompartment", "CompartmentName": "Aorta", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "LiquidCompartment", "CompartmentName": "VenaCava", "SubstanceName": "Oxygen", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 1 }, "Category": "LiquidCompartment", "CompartmentName": "VenaCava", "SubstanceName": "CarbonDioxide", "PropertyName": "PartialPressure", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "LiquidCompartment", "CompartmentName": "RightTubules", "SubstanceName": "Sodium", "PropertyName": "Concentration", "Unit": "g/L" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "LiquidCompartment", "CompartmentName": "LeftTubules", "SubstanceName": "Sodium", "PropertyName": "Concentration", "Unit": "g/L" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Substance", "SubstanceName": "Oxygen", "PropertyName": "AlveolarTransfer", "Unit": "mL/s" },
{ "DecimalFormat": { "Precision": 2 }, "Category": "Substance", "SubstanceName": "CarbonDioxide", "PropertyName": "AlveolarTransfer", "Unit": "mL/s" },
{ "DecimalFormat": { "Precision": 6 }, "Category": "Substance", "SubstanceName": "Epinephrine", "PropertyName": "BloodConcentration", "Unit": "ug/L" },
{ "DecimalFormat": { "Precision": 8 }, "Category": "Substance", "SubstanceName": "Epinephrine", "PropertyName": "SystemicMassCleared", "Unit": "ug" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "CarricoIndex", "Unit": "mmHg" },
{ "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "TransthoracicPressure", "Unit": "cmH2O" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "ShuntFraction", "Unit": "unitless" }
]
},
"AnyAction":
[
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" } } } },
{ "PatientAction": { "Intubation": { "Type": "Tracheal" } } },
{ "PatientAction": { "Dyspnea": { "Severity": { "Scalar0To1": { "Value": 1.0 } } } } },
{
"EquipmentAction": {
"MechanicalVentilatorConfiguration": {
"MechanicalVentilatorAction": { "EquipmentAction": { "Action": {
"Comment": "Attach the mechanical ventilator" }}},
"Configuration":
{
"BreathProfile": {
"Rate": { "ScalarFrequency": { "Value": 20.0, "Unit": "1/min" } },
"InspiratoryExpiratoryRatio": { "Value": 0.5, "Unit": "" }
},
"Connection": "Tube",
"Control": "P_CMV",
"DriverWaveform": "Square",
"PeakInspiratoryPressure": { "ScalarPressure": { "Value": 28.0, "Unit": "cmH2O" } },
"PositiveEndExpiredPressure": { "ScalarPressure": { "Value": 10.0, "Unit": "cmH2O" } },
"FractionInspiredGas": [
{ "Name": "Nitrogen", "Amount": { "Scalar0To1": { "Value": 0.0, "Unit": "" } } },
{ "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.9996, "Unit": "" } } },
{ "Name": "CarbonDioxide", "Amount": { "Scalar0To1": { "Value": 0.0004, "Unit": "" } } }
]
}
}
}
},
{ "AdvanceTime": { "Time": { "ScalarTime": { "Value": 10.0, "Unit": "min" } } } }
]
}
\ No newline at end of file
{
"Name": "ARDS Exacerbation",
"Description": "",
"StartType":
{
"PatientConfiguration": {
"PatientFile": "StandardMale.json",
"Conditions":
{
"AnyCondition":
[
{ "PatientCondition": { "AcuteRespiratoryDistressSyndrome":
{
"Severity": { "Scalar0To1": { "Value": 0.3 }},
"LeftLungAffected": { "Scalar0To1": { "Value": 0.1 }},
"RightLungAffected": { "Scalar0To1": { "Value": 0.1 }}
}}}
]
}
}
},
"StartType": { "PatientConfiguration": { "PatientFile": "StandardMale.json" }},
"DataRequestManager":
{
"DataRequest":
......@@ -88,7 +71,9 @@
{ "DecimalFormat": { "Precision": 2 }, "Category": "GasCompartment", "CompartmentName": "Carina", "PropertyName": "OutFlow", "Unit": "L/s" },
{ "DecimalFormat": {}, "Category": "Patient", "PropertyName": "AlveoliSurfaceArea", "Unit": "m^2" }
{ "DecimalFormat": {}, "Category": "Patient", "PropertyName": "AlveoliSurfaceArea", "Unit": "m^2" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "ShuntFraction", "Unit": "unitless" }
]
},
"AnyAction":
......
......@@ -96,7 +96,8 @@
{ "DecimalFormat": { "Precision": 2 }, "Category": "GasCompartment", "CompartmentName": "Carina", "PropertyName": "OutFlow", "Unit": "L/s" },
{ "DecimalFormat": {}, "Category": "Patient", "PropertyName": "AlveoliSurfaceArea", "Unit": "m^2" }
{ "DecimalFormat": {}, "Category": "Patient", "PropertyName": "AlveoliSurfaceArea", "Unit": "m^2" },
{ "DecimalFormat": { "Precision": 3 }, "Category": "Physiology", "PropertyName": "ShuntFraction", "Unit": "unitless" }
]
},
"AnyAction": [{
......
......@@ -4366,7 +4366,6 @@ void PulseController::SetupAnesthesiaMachine()
{
Info("Setting Up Anesthesia Machine");
/////////////////////// Circuit Interdependencies
//jbw - Use node for pressure
double AmbientPresure = 1033.23; // = 1 atm // Also defined in SetupRespiratoryCircuit
SEFluidCircuit& cRespiratory = m_Circuits->GetRespiratoryCircuit();
SEGasCompartmentGraph& gRespiratory = m_Compartments->GetRespiratoryGraph();
......
......@@ -16,12 +16,16 @@
#include "engine/SEEventManager.h"
#include "circuit/fluid/SEFluidCircuit.h"
#include "compartment/fluid/SEGasCompartment.h"
#include "compartment/fluid/SELiquidCompartment.h"
#include "compartment/substances/SEGasSubstanceQuantity.h"
#include "compartment/substances/SELiquidSubstanceQuantity.h"
#include "substance/SESubstance.h"
#include "substance/SESubstanceFraction.h"
#include "substance/SESubstanceConcentration.h"
#include "properties/SEScalar0To1.h"
#include "properties/SEScalarVolume.h"
#include "properties/SEScalarFrequency.h"
#include "properties/SEScalarMassPerVolume.h"
#include "properties/SEScalarPressure.h"
#include "properties/SEScalarPressureTimePerVolume.h"
#include "properties/SEScalarVolumePerTime.h"
......@@ -50,6 +54,7 @@ void MechanicalVentilator::Clear()
SEMechanicalVentilator::Clear();
m_Environment = nullptr;
m_Ventilator = nullptr;
m_VentilatorAerosol = nullptr;
m_EnvironmentToVentilator = nullptr;
}
......@@ -80,6 +85,7 @@ void MechanicalVentilator::SetUp()
// Compartments
m_Environment = m_data.GetCompartments().GetGasCompartment(pulse::EnvironmentCompartment::Ambient);
m_Ventilator = m_data.GetCompartments().GetGasCompartment(pulse::MechanicalVentilatorCompartment::MechanicalVentilator);
m_VentilatorAerosol = m_data.GetCompartments().GetLiquidCompartment(pulse::MechanicalVentilatorCompartment::MechanicalVentilator);
// Paths
m_EnvironmentToVentilator = m_data.GetCircuits().GetMechanicalVentilatorCircuit().GetPath(pulse::MechanicalVentilatorPath::EnvironmentToVentilator);
......@@ -215,28 +221,28 @@ void MechanicalVentilator::StateChange()
m_Ventilator->GetSubstanceQuantity(m_data.GetSubstances().GetN2())->GetVolumeFraction().SetValue(currentN2Fraction + gasFractionDiff);
//Set the aerosol concentrations ********************************************
//std::vector<SESubstanceConcentration*> liquidConcentrations = GetConcentrationInspiredAerosols();
//
////Reset the substance quantities at the ventilator
//for (SELiquidSubstanceQuantity* subQ : m_VentilatorAerosol->GetSubstanceQuantities())
// subQ->SetToZero();
//
//if (!liquidConcentrations.empty())
//{
// //Has fractions defined
// for (auto f : liquidConcentrations)
// {
// SESubstance& sub = f->GetSubstance();
// SEScalarMassPerVolume concentration = f->GetConcentration();
//
// //Do this, just in case it's something new
// m_data.GetSubstances().AddActiveSubstance(sub);
std::vector<SESubstanceConcentration*> liquidConcentrations = GetConcentrationInspiredAerosols();
//Reset the substance quantities at the ventilator
for (SELiquidSubstanceQuantity* subQ : m_VentilatorAerosol->GetSubstanceQuantities())
subQ->SetToZero();
if (!liquidConcentrations.empty())
{
//Has fractions defined
for (auto f : liquidConcentrations)
{
SESubstance& sub = f->GetSubstance();
SEScalarMassPerVolume concentration = f->GetConcentration();
//Do this, just in case it's something new
m_data.GetSubstances().AddActiveSubstance(sub);
//
// //Now set it on the connection compartment
// //It has infinite volume, so this will keep the same volume fraction no matter what's going on around it
// m_VentilatorAerosol->GetSubstanceQuantity(sub)->GetConcentration().Set(concentration);
// }
//}
//Now set it on the connection compartment
//It has infinite volume, so this will keep the same volume fraction no matter what's going on around it
m_VentilatorAerosol->GetSubstanceQuantity(sub)->GetConcentration().Set(concentration);
}
}
}
//--------------------------------------------------------------------------------------------------
......
......@@ -6,6 +6,7 @@
#include "system/equipment/mechanical_ventilator/SEMechanicalVentilator.h"
class SEEquipmentActionCollection;
class SEGasCompartment;
class SELiquidCompartment;
class SEGasSubstanceQuantity;
class SEFluidCircuitNode;
class SEFluidCircuitPath;
......@@ -59,5 +60,6 @@ protected:
SEGasCompartment* m_Environment;
SEGasCompartment* m_Ventilator;
SELiquidCompartment* m_VentilatorAerosol;
SEFluidCircuitPath* m_EnvironmentToVentilator;
};
......@@ -175,6 +175,8 @@ void Respiratory::Clear()
m_LeftAlveoliToLeftPleuralConnection = nullptr;
m_RightPulmonaryCapillary = nullptr;
m_LeftPulmonaryCapillary = nullptr;
m_LeftPulmonaryArteriesToVeins = nullptr;
m_RightPulmonaryArteriesToVeins = nullptr;
m_ConnectionToMouth = nullptr;
m_GroundToConnection = nullptr;
......@@ -388,6 +390,9 @@ void Respiratory::SetUp()
/// \todo figure out how to modify these resistances without getting the cv circuit - maybe add a parameter, like baroreceptors does
m_RightPulmonaryCapillary = m_data.GetCircuits().GetCardiovascularCircuit().GetPath(pulse::CardiovascularPath::RightPulmonaryCapillariesToRightPulmonaryVeins);
m_LeftPulmonaryCapillary = m_data.GetCircuits().GetCardiovascularCircuit().GetPath(pulse::CardiovascularPath::LeftPulmonaryCapillariesToLeftPulmonaryVeins);
//Pulmonary Shunt
m_LeftPulmonaryArteriesToVeins = m_data.GetCircuits().GetCardiovascularCircuit().GetPath(pulse::CardiovascularPath::LeftPulmonaryArteriesToLeftPulmonaryVeins);
m_RightPulmonaryArteriesToVeins = m_data.GetCircuits().GetCardiovascularCircuit().GetPath(pulse::CardiovascularPath::RightPulmonaryArteriesToRightPulmonaryVeins);
}
//--------------------------------------------------------------------------------------------------
......@@ -460,6 +465,7 @@ void Respiratory::PreProcess()
UpdateInspiratoryExpiratoryRatio();
UpdateDiffusion();
UpdatePulmonaryCapillary();
UpdatePulmonaryShunt();
ProcessAerosolSubstances();
Pneumothorax();
......@@ -2325,8 +2331,7 @@ void Respiratory::UpdateResistances()
//------------------------------------------------------------------------------------------------------
//Artificial Airway
if (m_data.GetAirwayMode() == eAirwayMode::MechanicalVentilation ||
m_data.GetAirwayMode() == eAirwayMode::AnesthesiaMachine)
if (m_data.GetIntubation() == eSwitch::On)
{
tracheaResistance_cmH2O_s_Per_L *= 8.0;
}
......@@ -2493,8 +2498,7 @@ void Respiratory::UpdateAlveolarCompliances()
//------------------------------------------------------------------------------------------------------
//Artificial Airway
if (m_data.GetAirwayMode() == eAirwayMode::MechanicalVentilation ||
m_data.GetAirwayMode() == eAirwayMode::AnesthesiaMachine)
if (m_data.GetIntubation() == eSwitch::On)
{