@@ -170,9 +170,9 @@ InductionThread::~InductionThread()
170170void InductionThread::AdministerInduction ()
171171{
172172 // set up bolus
173- m_RocuroniumBolus->SetAdminRoute (CDM::enumBolusAdministration ::Intravenous);
174- m_FentanylBolus->SetAdminRoute (CDM::enumBolusAdministration ::Intravenous);
175- m_PropofolBolus->SetAdminRoute (CDM::enumBolusAdministration ::Intravenous);
173+ m_RocuroniumBolus->SetAdminRoute (biogears::SEBolusAdministration ::Intravenous);
174+ m_FentanylBolus->SetAdminRoute (SEBolusAdministration ::Intravenous);
175+ m_PropofolBolus->SetAdminRoute (SEBolusAdministration ::Intravenous);
176176
177177 // pull patient weight
178178 const SEPatient& patient = m_bg->GetPatient ();
@@ -185,15 +185,15 @@ void InductionThread::AdministerInduction()
185185 double bolus = 10.0 ;
186186
187187 // set concentrations
188- m_FentanylBolus->SetAdminRoute (CDM::enumBolusAdministration ::Intravenous);
188+ m_FentanylBolus->SetAdminRoute (SEBolusAdministration ::Intravenous);
189189 m_FentanylBolus->GetConcentration ().SetValue (fentbolus_mg / 10 , MassPerVolumeUnit::mg_Per_mL);
190190 m_FentanylBolus->GetDose ().SetValue (bolus, VolumeUnit::mL );
191191
192- m_PropofolBolus->SetAdminRoute (CDM::enumBolusAdministration ::Intravenous);
192+ m_PropofolBolus->SetAdminRoute (SEBolusAdministration ::Intravenous);
193193 m_PropofolBolus->GetConcentration ().SetValue (propofolBolus_mg / 10 , MassPerVolumeUnit::mg_Per_mL);
194194 m_PropofolBolus->GetDose ().SetValue (bolus, VolumeUnit::mL );
195195
196- m_RocuroniumBolus->SetAdminRoute (CDM::enumBolusAdministration ::Intravenous);
196+ m_RocuroniumBolus->SetAdminRoute (SEBolusAdministration ::Intravenous);
197197 m_RocuroniumBolus->GetConcentration ().SetValue (rocuroniumBolus_mg / 10 , MassPerVolumeUnit::mg_Per_mL);
198198 m_RocuroniumBolus->GetDose ().SetValue (bolus, VolumeUnit::mL );
199199
@@ -247,17 +247,17 @@ void InductionThread::Ventilation()
247247 // Modifying the class will keep any old settings that are not provided in the config
248248 // Using a xml will set the anesthesia machine to only the property states specified in the file
249249 SEIntubation intubate;
250- intubate.SetType (CDM::enumIntubationType ::Tracheal);
250+ intubate.SetType (SEIntubationType ::Tracheal);
251251 m_bg->ProcessAction (intubate);
252252
253253 SEAnesthesiaMachine& config = AMConfig.GetConfiguration ();
254- config.SetConnection (CDM::enumAnesthesiaMachineConnection ::Tube);
254+ config.SetConnection (SEAnesthesiaMachineConnection ::Tube);
255255 config.GetInletFlow ().SetValue (2.0 , VolumePerTimeUnit::L_Per_min);
256256 config.GetInspiratoryExpiratoryRatio ().SetValue (.5 );
257257 config.GetOxygenFraction ().SetValue (.6 );
258- config.SetOxygenSource (CDM::enumAnesthesiaMachineOxygenSource ::Wall);
258+ config.SetOxygenSource (SEAnesthesiaMachineOxygenSource ::Wall);
259259 config.GetPositiveEndExpiredPressure ().SetValue (5.0 , PressureUnit::cmH2O);
260- config.SetPrimaryGas (CDM::enumAnesthesiaMachinePrimaryGas ::Nitrogen);
260+ config.SetPrimaryGas (SEAnesthesiaMachinePrimaryGas ::Nitrogen);
261261 config.GetReliefValvePressure ().SetValue (20.0 , PressureUnit::cmH2O);
262262 config.GetRespiratoryRate ().SetValue (12 , FrequencyUnit::Per_min);
263263 config.GetVentilatorPressure ().SetValue (22.0 , PressureUnit::cmH2O);
@@ -270,7 +270,7 @@ void InductionThread::Ventilation()
270270
271271 // introcuce desfulrane
272272 SEAnesthesiaMachineChamber& rightChamber = config.GetLeftChamber ();
273- rightChamber.SetState (CDM::enumOnOff ::On);
273+ rightChamber.SetState (SEOnOff ::On);
274274 rightChamber.GetSubstanceFraction ().SetValue (0.02 );
275275 rightChamber.SetSubstance (*m_bg->GetSubstanceManager ().GetSubstance (" Desflurane" ));
276276 m_bg->ProcessAction (AMConfig);
@@ -429,7 +429,7 @@ void InductionThread::FluidLoading()
429429 }
430430
431431 // exit checks:
432- if (m_bg->GetPatient ().IsEventActive (CDM::enumPatientEvent ::IrreversibleState)) {
432+ if (m_bg->GetPatient ().IsEventActive (SEPatientEventType ::IrreversibleState)) {
433433 // m_bg->GetLogger()->Info(std::stringstream() << "oh no!");
434434 m_bg->GetLogger ()->Info (" ///////////////////////////////////////////////////////////////" );
435435 m_runThread = false ;
0 commit comments