Exemplo n.º 1
0
 /// <summary>
 /// Method used to remove a drug from the list.
 /// </summary>
 /// <param name="drug">The drug to be removed.</param>
 public void removeDrug(Drug drug)
 {
     Prescription.removeDrug(drug);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Method used to prescribe a new drug.
 /// Will add to the drug list.
 /// </summary>
 /// <param name="name">Name of the drug</param>
 /// <param name="dosage">The dosage to be taken</param>
 /// <param name="frequency">The frequency of the drug</param>
 /// <param name="startDate">The start date</param>
 /// <param name="endDate">The end date</param>
 /// <param name="doctor">The doctor who prescribed the drug</param>
 public void prescribeDrug(string name, double dosage, string frequency, DateTime prescribeDate, Doctor doctor)
 {
     Prescription.prescribeDrug(name, dosage, frequency, prescribeDate, doctor);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor will create a new measurement list and instance of prescription.
 /// </summary>
 public TreatmentCard()
 {
     measurements = new List <Measurement>();
     Prescription = new Prescription();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Overriden tostring  method used to return the patients measurements and administered drug.
 /// </summary>
 /// <returns>The measurements and administered drugs</returns>
 public override string ToString()
 {
     return("Measurements:- \n\n" + getMeasurements() + "\n\n\nPrescription:- \n\n" + Prescription.getAdministeredDrug());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Method used to return the drugs currently on the prescription.
 /// </summary>
 /// <returns>The drugs held in the prescription</returns>
 public string getPrescription()
 {
     return(Prescription.ToString());
 }