コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 protected virtual bool AdministerNotSpecified(AdministrationRoute route)
 {
     throw new NotImplementedException();
 }//Virtual because this is a luxury task for use if modding becomes a thing (hahahahha)
コード例 #5
0
 public AdministerDrug(Drug drug, AdministrationRoute route)
 {
     _drug  = drug;
     _route = route;
 }
コード例 #6
0
 public PatientDrug(Drug drug, AdministrationRoute administrationRoute, float dose)
 {
     Drug = drug;
 }