Commit 3df9ea24 authored by Aaron Bray's avatar Aaron Bray
Browse files

Update Insulin/Glucose interactions and initial concentrations

Update GI to separate water from substances to better control each independently
Update System Validation json readability
Update Validation and Data tables for Glucose/Insulin updates
Add some handy comments to system init/setup methods
Improve Baroreceptor communication between Nervous and CV (not sure I like CV looking at Nervous config params)
parent c1f251e4
No preview for this file type
......@@ -63,8 +63,6 @@ patient/HemorrhageClass2Saline.json = ScenarioTest
patient/HemorrhageClass3NoFluid.json = ScenarioTest
patient/HemorrhageClass3PackedRBC.json = ScenarioTest
patient/HemorrhageClass4NoFluid.json = ScenarioTest
patient/HemorrhageCM1.json = ScenarioTest
patient/HemorrhageCM2.json = ScenarioTest
patient/HemorrhageGroup1.json = ScenarioTest
patient/HemorrhageGroup2.json = ScenarioTest
patient/HemorrhageGroup3.json = ScenarioTest
......@@ -149,15 +147,6 @@ drug/Propofol.json = ScenarioTest
drug/Rocuronium.json = ScenarioTest
drug/Succinylcholine.json = ScenarioTest
@group ConsumeMeal
#consumeMeal/ConsumeMeal2hrAgo.json = ScenarioTest
#consumeMeal/Dehydration.json = ScenarioTest
#consumeMeal/Peronnet300mL.json = ScenarioTest
#consumeMeal/RunningOnEmpty.json = ScenarioTest
#consumeMeal/SalineIngestion.json = ScenarioTest
#consumeMeal/Starvation.json = ScenarioTest
#consumeMeal/WaterIngestion.json = ScenarioTest
@group Combined
combined/Gus.json = ScenarioTest
combined/Joel.json = ScenarioTest
......@@ -173,20 +162,17 @@ showcase/HeatStroke.json = ScenarioTest
showcase/COVID19Ventilation.json = ScenarioTest
@group Miscellaneous
#miscellaneous/12hrFast.json = ScenarioTest
#miscellaneous/12hrFastAsCondition.json = ScenarioTest
miscellaneous/AirwayObstructionDeath.json = ScenarioTest
miscellaneous/AsthmaAttackDeath.json = ScenarioTest
miscellaneous/BleedToDeath.json = ScenarioTest
miscellaneous/ComplianceCurve.json = ScenarioTest
miscellaneous/Comprehensive.json = ScenarioTest
miscellaneous/ConsciousRespiration.json = ScenarioTest
#miscellaneous/FullDay.json = ScenarioTest
miscellaneous/HouseFireSmoke.json = ScenarioTest
miscellaneous/ImpairedAlveolarExchangeFraction.json = ScenarioTest
miscellaneous/ImpairedAlveolarExchangeSeverity.json = ScenarioTest
miscellaneous/ImpairedAlveolarExchangeSurfaceArea.json = ScenarioTest
miscellaneous/MultiDrug.json = ScenarioTest
miscellaneous/Nutrition.json = ScenarioTest
miscellaneous/PulmonaryShunt.json = ScenarioTest
miscellaneous/SpirometryComparison.json = ScenarioTest
miscellaneous/SpirometryHealthy.json = ScenarioTest
......
{
"Name": "BleedToDeath",
"Description": "Bleed occurring till irreversible state.",
"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": "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",
"PropertyName": "Pressure",
"Unit": "cmH2O"
}, {
"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": 3
},
"Category": "Physiology",
"PropertyName": "SystemicVascularResistance",
"Unit": "mmHg s/mL"
}, {
"DecimalFormat": {
"Precision": 1
},
"Category": "Physiology",
"PropertyName": "UrineOsmolality",
"Unit": "mOsm/kg"
}, {
"DecimalFormat": {
"Precision": 3
},
"Category": "Physiology",
"PropertyName": "RightTubularReabsorptionFluidPermeability",
"Unit": "mL/s mmHg m^2"
}, {
"DecimalFormat": {
"Precision": 3
},
"Category": "Physiology",
"PropertyName": "LeftTubularReabsorptionFluidPermeability",
"Unit": "mL/s mmHg m^2"
}, {
"DecimalFormat": {
"Precision": 2
},
"Category": "Substance",
"SubstanceName": "Sodium",
"PropertyName": "BloodConcentration",
"Unit": "g/L"
}, {
"DecimalFormat": {
"Precision": 5
},
"Category": "Substance",
"SubstanceName": "Sodium",
"PropertyName": "Clearance-RenalClearance",
"Unit": "mL/min kg"
}, {
"DecimalFormat": {
},
"Category": "Substance",
"SubstanceName": "Sodium",
"PropertyName": "Clearance-RenalReabsorptionRate",
"Unit": "mg/min"
}, {
"DecimalFormat": {
"Precision": 1
},
"Category": "Substance",
"SubstanceName": "Sodium",
"PropertyName": "MassInBody",
"Unit": "g"
}, {
"DecimalFormat": {
"Precision": 2
},
"Category": "LiquidCompartment",
"CompartmentName": "Bladder",
"SubstanceName": "Sodium",
"PropertyName": "Concentration",
"Unit": "g/L"
}, {
"DecimalFormat": {
"Precision": 2
},
"Category": "LiquidCompartment",
"CompartmentName": "RightUreter",
"PropertyName": "InFlow",
"Unit": "mL/min"
}, {
"DecimalFormat": {
"Precision": 2
},
"Category": "LiquidCompartment",
"CompartmentName": "LeftUreter",
"PropertyName": "InFlow",
"Unit": "mL/min"
}]
},
"AnyAction": [{
"AdvanceTime": {
"Time": {
"ScalarTime": {
"Value": 30.0,
"Unit": "s"
}
}
}
}, {
"PatientAction": {
"Hemorrhage": {
"Compartment": "VenaCava",
"Rate": {
"ScalarVolumePerTime": {
"Value": 250.0,
"Unit": "mL/min"
}
}
}
}
}, {
"AdvanceTime": {
"Time": {
"ScalarTime": {
"Value": 4000.0,
"Unit": "s"
}
}
}
}]
}
{
"Name":"12hrFast",
"Description":"Patient starts off with default stomach meal and then goes 12 hours wih no food.",
"StartType":{"EngineStateFile":"./states/StandardMale@0s.json"},
"DataRequestManager": { "SamplesPerSecond": 1.0, "DataRequest":[
"Name":"Nutrition",
"Description":"A look at the substances from the default meal and how they behave.",
"StartType":{ "PatientConfiguration": { "PatientFile": "StandardMale.json" }},
"DataRequestManager": { "SamplesPerSecond": 1.0, "DataRequest":
[
{"DecimalFormat":{"Precision":1},"Category":"Patient", "PropertyName":"Weight", "Unit":"kg"},
{"DecimalFormat":{"Precision":2}, "Category":"Physiology", "PropertyName":"HeartRate", "Unit":"1/min"},
......@@ -40,6 +41,9 @@
{"DecimalFormat":{"Precision":4}, "Category":"Physiology", "PropertyName":"LeftAfferentArterioleResistance", "Unit":"mmHg min/mL"},
{"DecimalFormat":{"Precision":4}, "Category":"Physiology", "PropertyName":"RightAfferentArterioleResistance", "Unit":"mmHg min/mL"},
{"DecimalFormat":{"Precision":4}, "Category":"Physiology", "PropertyName":"WaterAbsorptionRate", "Unit":"mL/min" },
{"DecimalFormat":{"Precision":4}, "Category":"Physiology", "PropertyName":"InsulinSynthesisRate", "Unit":"pmol/min" },
{"DecimalFormat":{} , "Category":"GasCompartment", "CompartmentName":"LeftAlveoli", "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"},
......@@ -57,35 +61,14 @@
{"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":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":2}, "Category":"Physiology", "PropertyName":"BloodPH" },
{"DecimalFormat":{"Precision":2}, "Category":"Physiology", "PropertyName":"SweatRate", "Unit":"mg/min" },
{"DecimalFormat":{"Precision":2}, "Category":"Physiology", "PropertyName":"BloodUreaNitrogenConcentration", "Unit":"ug/mL" },
{"DecimalFormat":{"Precision":3}, "Category":"Substance", "SubstanceName":"Acetoacetate", "PropertyName":"BloodConcentration", "Unit":"mg/L"},
{"DecimalFormat":{"Precision":1}, "Category":"Substance", "SubstanceName":"Albumin", "PropertyName":"BloodConcentration", "Unit":"g/dL"},
{"DecimalFormat":{"Precision":3}, "Category":"Substance", "SubstanceName":"Bicarbonate", "PropertyName":"BloodConcentration", "Unit":"g/dL"},
{"DecimalFormat":{"Precision":2}, "Category":"Substance", "SubstanceName":"Calcium", "PropertyName":"BloodConcentration", "Unit":"mg/L"},
{"DecimalFormat":{"Precision":4}, "Category":"Substance", "SubstanceName":"Chloride", "PropertyName":"BloodConcentration", "Unit":"g/L"},
{"DecimalFormat":{"Precision":1}, "Category":"Substance", "SubstanceName":"Creatinine", "PropertyName":"BloodConcentration", "Unit":"mg/L"},