Пример #1
0
 /// <summary>
 /// Method used to administer a drug.
 /// Will add the drug to the administered drug list and remove from the regular drug list.
 /// </summary>
 /// <param name="drug">The drug being administered</param>
 /// <param name="administerDate">The date the drug was administered</param>
 /// <param name="administerTime">The time the drug was administered</param>
 /// <param name="nurse">The nurse who administered the drug</param>
 public void administerDrug(Drug drug, DateTime administerDate, string administerTime, Nurse nurse)
 {
     TreatmentCard.administerDrug(drug, administerDate, administerTime, nurse);
 }
Пример #2
0
 /// <summary>
 /// This method is used to administer the drug and set the
 /// appropriate fields for the drug class.
 /// </summary>
 /// <param name="administerDate">Date the drug was administered on</param>
 /// <param name="administerTime">The time the drug was administered at</param>
 /// <param name="nurse">The nurse who administered the drug</param>
 public void administerDrug(DateTime administerDate, string administerTime, Nurse nurse)
 {
     setAdministerDate(administerDate);
     setAdministerTime(administerTime);
     setNurse(nurse);
 }
Пример #3
0
 /// <summary>
 /// Method used to administer a drug.
 /// Will add the drug to the administered drug list and remove from the regular drug list.
 /// </summary>
 /// <param name="drug">The drug being administered</param>
 /// <param name="administerDate">The date the drug was administered</param>
 /// <param name="administerTime">The time the drug was administered</param>
 /// <param name="nurse">The nurse who administered the drug</param>
 public void administerDrug(Drug drug, DateTime administerDate, string administerTime, Nurse nurse)
 {
     Prescription.administerDrug(drug, administerDate, administerTime, nurse);
 }
Пример #4
0
 /// <summary>
 /// Method used to record a new measurement.
 /// Will add the new measurement to the measurements list.
 /// </summary>
 /// <param name="date">Date the measurement was taken</param>
 /// <param name="time">The time the measurement was taken</param>
 /// <param name="bloodPressure">Patients blood pressure</param>
 /// <param name="temperature">Patients temperature</param>
 /// <param name="nurse">The nurse who recorded the measurement</param>
 public void recordMeasurement(DateTime date, string time, int bloodPressureSystolic, int bloodPressureDiastolic, double temperature, Nurse nurse)
 {
     TreatmentCard.recordMeasurement(date, time, bloodPressureSystolic, bloodPressureDiastolic, temperature, nurse);
 }
Пример #5
0
 /// <summary>
 /// Method used to record a new measurement.
 /// Will add the new measurement to the measurements list.
 /// </summary>
 /// <param name="date">Date the measurement was taken</param>
 /// <param name="time">The time the measurement was taken</param>
 /// <param name="bloodPressure">Patients blood pressure</param>
 /// <param name="temperature">Patients temperature</param>
 /// <param name="nurse">The nurse who recorded the measurement</param>
 public void recordMeasurement(DateTime date, string time, int bloodPressureSystolic, int bloodPressureDiastolic, double temperature, Nurse nurse)
 {
     measurements.Add(new Measurement(date, time, bloodPressureSystolic, bloodPressureDiastolic, temperature, nurse));
 }
 /// <summary>
 /// Method used to record a new measurement.
 /// </summary>
 /// <param name="patient">The patient who will have a measurement recorded</param>
 /// <param name="date">Date the measurement was taken</param>
 /// <param name="time">The time the measurement was taken</param>
 /// <param name="bloodPressure">Patients blood pressure</param>
 /// <param name="temperature">Patients temperature</param>
 /// <param name="nurse">The nurse who recorded the measurement</param>
 public void recordMeasurements(Patient patient, DateTime date, string time, int bloodPressureSystolic, int bloodPressureDiastolic, double temperature, Nurse nurse)
 {
     patient.recordMeasurement(date, time, bloodPressureSystolic, bloodPressureDiastolic, temperature, nurse);
 }
 /// <summary>
 /// Method used to administer a drug.
 /// </summary>
 /// <param name="patient">The patient who the drug will be administered to</param>
 /// <param name="drug">The drug being administered</param>
 /// <param name="administerDate">The date the drug was administered</param>
 /// <param name="administerTime">The time the drug was administered</param>
 /// <param name="nurse">The nurse who administered the drug</param>
 public void administerDrug(Patient patient, Drug drug, DateTime administerDate, string administerTime, Nurse nurse)
 {
     patient.administerDrug(drug, administerDate, administerTime, nurse);
 }
Пример #8
0
 /// <summary>
 /// Method used to administer a drug.
 /// Will add the drug to the administered drug list and remove from the regular drug list.
 /// </summary>
 /// <param name="drug">The drug being administered</param>
 /// <param name="administerDate">The date the drug was administered</param>
 /// <param name="administerTime">The time the drug was administered</param>
 /// <param name="nurse">The nurse who administered the drug</param>
 public void administerDrug(Drug drug, DateTime administerDate, string administerTime, Nurse nurse)
 {
     drug.administerDrug(administerDate, administerTime, nurse);
     administeredDrugList.Add(drug);
     removeDrug(drug);
 }
Пример #9
0
 /// <summary>
 /// Consructor used to create a new instance of measurement.
 /// </summary>
 /// <param name="date">Date measurement taken</param>
 /// <param name="time">Time measurement taken</param>
 /// <param name="bloodPressure">The patients blood pressure</param>
 /// <param name="temperature">The patients temperature</param>
 /// <param name="nurse">The nurse who took the measurement</param>
 public Measurement(DateTime date, string time, int bloodPressureSystolic, int bloodPressureDiastolic, double temperature, Nurse nurse)
 {
     setDate(date);
     setTime(time);
     setSystolicBloodPressure(bloodPressureSystolic);
     setDiastolicBloodPressure(bloodPressureDiastolic);
     setTemperature(temperature);
     setNurse(nurse);
 }