{
  "Name": "COVID-19Ventilation",
  "Description": "Showcase scenario: Patient with ARDS caused by infection SARS-CoV-2.",
  "PatientConfiguration":
  {
    "PatientFile": "Gus.json",
    "Conditions": { "AnyCondition": [ {
        "PatientCondition": {
          "AcuteRespiratoryDistressSyndrome": {
            "Severity": { "Scalar0To1": { "Value": 0.6 } },
            "LeftLungAffected": { "Scalar0To1": { "Value": 1.0 } },
            "RightLungAffected": { "Scalar0To1": { "Value": 1.0 } } } } } 
    ]}
  },
  "DataRequestManager":
  {
    "DataRequest":
    [
      { "DecimalFormat": { "Precision": 2 }, "Category": "Physiology", "PropertyName": "HeartRate",                         "Unit": "1/min" },      
      { "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": { "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": 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": 2 }, "Category": "Physiology", "PropertyName": "InspiratoryExpiratoryRatio",     "Unit": "unitless" },
      { "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "ExpiratoryFlow",                 "Unit": "L/s" },
      { "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "InspiratoryFlow",                "Unit": "L/s" },
      { "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "PulmonaryCompliance",            "Unit": "L/cmH2O" },
      { "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "InspiratoryPulmonaryResistance", "Unit": "cmH2O s/L" },
      { "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "ExpiratoryPulmonaryResistance",  "Unit": "cmH2O s/L" },
      { "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" },
      { "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "AlveolarArterialGradient",       "Unit": "mmHg" },
      { "DecimalFormat": { "Precision": 4 }, "Category": "Physiology", "PropertyName": "TotalPulmonaryVentilation",      "Unit": "L/min" },    
      
      { "DecimalFormat": { "Precision": 3 }, "Category": "Patient", "PropertyName": "AlveoliSurfaceArea", "Unit": "m^2" }    
    ]
  },
  "AnyAction":
  [  
  
  { "AdvanceTime": { "Action": { "Comment": "SEGMENT 0" }, "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" } } } },
  
  { "PatientAction": { "SupplementalOxygen": { "Device": "NasalCannula" } } },
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 3.0, "Unit": "min" } } } },
  
  { "AdvanceTime": { "Action": { "Comment": "SEGMENT 1: Time Jump 1 Day Begin..." }, "Time": { "ScalarTime": { "Value": 0.0, "Unit": "s" } } } },
  
  { "PatientAction": { "AcuteRespiratoryDistressSyndromeExacerbation": 
    {
	  "PatientAction": { "Action": { "Comment": "Deterioration to Severe ARDS" } },
      "Severity": { "Scalar0To1": { "Value": 0.9 }},
      "LeftLungAffected": { "Scalar0To1": { "Value": 1.0 }},
      "RightLungAffected": { "Scalar0To1": { "Value": 1.0 }}
    }
  } },
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 3.0, "Unit": "min" } } } },
  
  { "AdvanceTime": { "Action": { "Comment": "...Time Jump 1 Day End" }, "Time": { "ScalarTime": { "Value": 0.0, "Unit": "s" } } } },
  
  { "PatientAction": { "SupplementalOxygen": { "Device": "None" } } },
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 30.0, "Unit": "s" } } } },
  
  { "PatientAction": {
      "SubstanceBolus": { "Substance": "Succinylcholine",
        "Concentration": { "ScalarMassPerVolume": {
            "Value": 1000.0,
            "Unit": "ug/mL"
        } },
        "Dose": { "ScalarVolume": {
            "Value": 77.0,
            "Unit": "mL"
    } } } } },
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 30.0, "Unit": "s" } } } },
  
  { "PatientAction": { "Intubation": { "Type": "RightMainstem" } } },
  
  {
      "EquipmentAction": {
        "MechanicalVentilatorConfiguration": {
          "MechanicalVentilatorAction": { "EquipmentAction": { "Action": {
                "Comment": "Attach the mechanical ventilator" }}},
          "Configuration":
          {
            "Connection": "Tube",
            "InspirationWaveform": "Square",
		    "ExpirationWaveform": "Square",
            "PeakInspiratoryPressure": { "ScalarPressure": { "Value": 10.0, "Unit": "cmH2O" } },
            "PositiveEndExpiredPressure": { "ScalarPressure": { "Value": 0.0, "Unit": "cmH2O" } },
			"InspirationTriggerTime": { "ScalarTime": { "Value": 2.0, "Unit": "s" } },
		    "ExpirationCycleTime": { "ScalarTime": { "Value": 1.0, "Unit": "s" } },
            "FractionInspiredGas": [
              { "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.21, "Unit": "" } } }
            ]
          }
        }
      }
    },
  
  { "AdvanceTime": { "Action": { "Comment": "SEGMENT 2" }, "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" } } } },
  
  { "PatientAction": { "Intubation": { "Type": "Tracheal" } } },
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" } } } },
  
  {
      "EquipmentAction": {
        "MechanicalVentilatorConfiguration": {
          "MechanicalVentilatorAction": { "EquipmentAction": { "Action": {
                "Comment": "Adjust ventilator settings" }}},
          "Configuration":
          {
            "Connection": "Tube",
            "InspirationWaveform": "Square",
		    "ExpirationWaveform": "Square",
            "PeakInspiratoryPressure": { "ScalarPressure": { "Value": 30.0, "Unit": "cmH2O" } },
            "PositiveEndExpiredPressure": { "ScalarPressure": { "Value": 12.0, "Unit": "cmH2O" } },
			"InspirationTriggerTime": { "ScalarTime": { "Value": 2.0, "Unit": "s" } },
		    "ExpirationCycleTime": { "ScalarTime": { "Value": 1.0, "Unit": "s" } },
            "FractionInspiredGas": [
              { "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.9995, "Unit": "" } } }
            ]
          }
        }
      }
    },
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 5.0, "Unit": "min" } } } },
  
  { "AdvanceTime": { "Action": { "Comment": "SEGMENT 3: Time Jump 2 Days Begin..." }, "Time": { "ScalarTime": { "Value": 0.0, "Unit": "s" } } } },
  
  { "PatientAction": { "AcuteRespiratoryDistressSyndromeExacerbation": 
    {
	  "PatientAction": { "Action": { "Comment": "Improved to Moderate ARDS" } },
      "Severity": { "Scalar0To1": { "Value": 0.6 }},
      "LeftLungAffected": { "Scalar0To1": { "Value": 1.0 }},
      "RightLungAffected": { "Scalar0To1": { "Value": 1.0 }}
    }
  } },
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" } } } },
  
  { "AdvanceTime": { "Action": { "Comment": "... Time Jump 2 Days End" }, "Time": { "ScalarTime": { "Value": 0.0, "Unit": "s" } } } },
  
  {
      "EquipmentAction": {
        "MechanicalVentilatorConfiguration": {
          "MechanicalVentilatorAction": { "EquipmentAction": { "Action": {
                "Comment": "Adjust ventilator settings" }}},
          "Configuration":
          {
            "Connection": "Tube",
            "InspirationWaveform": "Square",
		    "ExpirationWaveform": "Square",
            "PeakInspiratoryPressure": { "ScalarPressure": { "Value": 22.0, "Unit": "cmH2O" } },
            "PositiveEndExpiredPressure": { "ScalarPressure": { "Value": 8.0, "Unit": "cmH2O" } },
			"InspirationTriggerTime": { "ScalarTime": { "Value": 2.0, "Unit": "s" } },
		    "ExpirationCycleTime": { "ScalarTime": { "Value": 1.0, "Unit": "s" } },
            "FractionInspiredGas": [
              { "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.5, "Unit": "" } } }
            ]
          }
        }
      }
    },  
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 5.0, "Unit": "min" } } } },
  
  { "AdvanceTime": { "Action": { "Comment": "SEGMENT 4: Time Jump 2 Days Begin..." }, "Time": { "ScalarTime": { "Value": 0.0, "Unit": "s" } } } },
  
  { "PatientAction": { "AcuteRespiratoryDistressSyndromeExacerbation": 
      {
        "Severity": { "Scalar0To1": { "Value": 0.3 }},
        "LeftLungAffected": { "Scalar0To1": { "Value": 1.0 }},
        "RightLungAffected": { "Scalar0To1": { "Value": 1.0 }}
      }}
    },
  
  { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 1.0, "Unit": "min" } } } },
  
  { "AdvanceTime": { "Action": { "Comment": "... Time Jump 2 Days End" }, "Time": { "ScalarTime": { "Value": 0.0, "Unit": "s" } } } },
  
  {
      "EquipmentAction": {
        "MechanicalVentilatorConfiguration": {
          "MechanicalVentilatorAction": { "EquipmentAction": { "Action": {
                "Comment": "Adjust ventilator settings" }}},
          "Configuration":
          {
            "Connection": "Tube",
            "InspirationWaveform": "Square",
		    "ExpirationWaveform": "Square",
            "PeakInspiratoryPressure": { "ScalarPressure": { "Value": 18.0, "Unit": "cmH2O" } },
            "PositiveEndExpiredPressure": { "ScalarPressure": { "Value": 8.0, "Unit": "cmH2O" } },
			"InspirationTriggerTime": { "ScalarTime": { "Value": 2.0, "Unit": "s" } },
		    "ExpirationCycleTime": { "ScalarTime": { "Value": 1.0, "Unit": "s" } },
            "FractionInspiredGas": [
              { "Name": "Oxygen", "Amount": { "Scalar0To1": { "Value": 0.25, "Unit": "" } } }
            ]
          }
        }
      }
    },  
  
    { "AdvanceTime": { "Time": { "ScalarTime": { "Value": 5.0, "Unit": "min" } } } }
  ]
}
