Commit e0e3d657 authored by Aaron Bray's avatar Aaron Bray
Browse files

Allow users of the Supplemental O2 methodology to switch between devices with...

Allow users of the Supplemental O2 methodology to switch between devices with out explicity providing a Free airway mode between devices
This is being allowed since each of these devices are contained in the same implementation
(For example, we do not and should not allow switching between intubation and the inhaler)
parent 616142a0
......@@ -962,6 +962,11 @@ void Respiratory::SupplementalOxygen()
}
case eSupplementalOxygen_Device::NasalCannula:
{
// This implementation can replace other Supplemental O2 modes
if (m_data.GetAirwayMode() == eAirwayMode::SimpleMask ||
m_data.GetAirwayMode() == eAirwayMode::NonRebreatherMask)
m_data.SetAirwayMode(eAirwayMode::Free);
m_data.SetAirwayMode(eAirwayMode::NasalCannula);
if (!so->HasFlow())
{
......@@ -976,7 +981,12 @@ void Respiratory::SupplementalOxygen()
}
case eSupplementalOxygen_Device::NonRebreatherMask:
{
// This implementation can replace other Supplemental O2 modes
if (m_data.GetAirwayMode() == eAirwayMode::SimpleMask ||
m_data.GetAirwayMode() == eAirwayMode::NasalCannula)
m_data.SetAirwayMode(eAirwayMode::Free);
m_data.SetAirwayMode(eAirwayMode::NonRebreatherMask);
if (!so->HasFlow())
{
flow_L_Per_min = 10.0;
......@@ -990,7 +1000,12 @@ void Respiratory::SupplementalOxygen()
}
case eSupplementalOxygen_Device::SimpleMask:
{
// This implementation can replace other Supplemental O2 modes
if (m_data.GetAirwayMode() == eAirwayMode::NasalCannula ||
m_data.GetAirwayMode() == eAirwayMode::NonRebreatherMask)
m_data.SetAirwayMode(eAirwayMode::Free);
m_data.SetAirwayMode(eAirwayMode::SimpleMask);
if (!so->HasFlow())
{
flow_L_Per_min = 7.5;
......
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