An update will be applied January 25th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 0770612f authored by Jeff Webb's avatar Jeff Webb
Browse files

Moved initial (i.e., healthy) patient to be set after intial stabilization.

Put dyspnea back in asthma attack death to cause irreversible state.  This will eventually be removed with the respiratory fatigue model.
parent 5a5fa932
......@@ -176,6 +176,9 @@ bool PulseEngine::InitializeEngine(const SEPatientConfiguration& patient_configu
m_Conditions->Copy(*patient_configuration.GetConditions());
AtSteadyState(EngineState::AtInitialStableState);// This will peek at conditions
// Copy any changes to the current patient to the initial patient
m_InitialPatient->Copy(*m_CurrentPatient);
m_State = EngineState::SecondaryStabilization;
// Apply conditions and anything else to the physiology
// now that it's steady with provided patient, environment, and feedback
......@@ -190,9 +193,7 @@ bool PulseEngine::InitializeEngine(const SEPatientConfiguration& patient_configu
if (!m_Config->GetStabilization()->StabilizeFeedbackState(*this))
return false;
}
AtSteadyState(EngineState::AtSecondaryStableState);
// Copy any changes to the current patient to the initial patient
m_InitialPatient->Copy(*m_CurrentPatient);
AtSteadyState(EngineState::AtSecondaryStableState);
m_State = EngineState::Active;
// Hook up the handlers (Note events will still be in the log)
......
......@@ -99,10 +99,29 @@
"AdvanceTime": {
"Time": {
"ScalarTime": {
"Value": 90.0,
"Value": 20.0,
"Unit": "min"
}
}
}
}
}, {
"PatientAction": {
"Dyspnea": {
"Severity": {
"Scalar0To1": {
"Value": 0.5
}
}
}
}
}, {
"AdvanceTime": {
"Time": {
"ScalarTime": {
"Value": 1.0,
"Unit": "hr"
}
}
}
}]
}
\ No newline at end of file
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