public static string PatientLastNameFromPatientId(int patientId) { return(Patients.PatientLastNameFromPatientId(patientId)); }
/// <summary> /// Selects a given patient from the system, given the patient ID. /// </summary> /// <param name="patientId">the ID of the patient object to be returned</param> /// <returns></returns> public static patient SelectPatientFromPatientId(int patientId) { return(Patients.SelectPatientFromPatientId(patientId)); }
public static void DeletePatientById(int patientId) { Patients.DeletePatientByID(patientId); }
/// <summary> /// Updates the given patient in the Stromohab system. /// </summary> /// <param name="patientToEdit">the patient to overwrite into the system.</param> public static void UpdatePatient(patient patientToEdit) { Patients.UpdatePatient(patientToEdit); }
/// <summary> /// Adds a patient into the Stromohab system. /// </summary> /// <param name="firstNames">The patients first name(s)</param> /// <param name="lastName">The patients family name or surname</param> /// <param name="dateOfBirth">the patients date of birth</param> /// <param name="gender">the patients gender ("Male" or "Female"</param> /// <param name="contactNumber">a contact telephone number for the patient</param> /// <param name="clinicianUserName">the username of the patients clinician</param> public static void AddPatient(string firstNames, string lastName, DateTime dateOfBirth, string gender, string contactNumber, string clinicianUserName) { Patients.AddPatient(firstNames, lastName, dateOfBirth, gender, contactNumber, clinicianUserName); }
/// <summary> /// Gets a clinicinans patients. /// </summary> /// <param name="userName">the clinicians username</param> /// <returns>all patients asscioated with the clinicians username</returns> public static IQueryable GetCliniciansPatients(string userName) { return(Patients.PatientDataSetForClinician(userName)); }