private void TEMP_Action(AdministrationRoute route) { switch (route) { case AdministrationRoute.None: break; case AdministrationRoute.Intramuscular: AdministerIntramuscular(); break; case AdministrationRoute.Oral: //Check PT is conscious and compliant AdministerOral(); break; case AdministrationRoute.IV: AdministerIV(); break; case AdministrationRoute.Inhaled: AdministerInhaled(); break; case AdministrationRoute.Other: default: AdministerNotSpecified(route); //LUXURY: FOR EXPANSION break; } }
public void AddDrug(Drug incDrug, AdministrationRoute viaRoute, float dose) { PatientDrug drug = CurrentDrugs.Find(x => (x.Drug.DrugName == incDrug.DrugName && x.AdministrationRoute == viaRoute)); if (drug == null) { CurrentDrugs.Add(new PatientDrug(incDrug, viaRoute, dose)); } else { drug.IncreaseDose(dose); } }
public bool Administer(Patient patient, AdministrationRoute route) { WasteProduced = DefaultWasteProduction.AdministerDrug[DrugName] * DefaultWasteProduction.AdministerRoute[route]; //Keep _patient = patient; bool AdministrationSuccessful = false; //Keep //AdministrationSuccessful = TEMP_Action(route, AdministrationSuccessful); if (AdministrationSuccessful) //If you failed to administer then the drugProfile doesnt change { UpdatePatientDrugProfile(); //BIN } return(AdministrationSuccessful); }
protected virtual bool AdministerNotSpecified(AdministrationRoute route) { throw new NotImplementedException(); }//Virtual because this is a luxury task for use if modding becomes a thing (hahahahha)
public AdministerDrug(Drug drug, AdministrationRoute route) { _drug = drug; _route = route; }
public PatientDrug(Drug drug, AdministrationRoute administrationRoute, float dose) { Drug = drug; }