public static List <GetPreviousMedicalVisits_Result> GetPreviousMedicalVisitsList(object patientID,
                                                                                   object isOnDUty,
                                                                                   object serviceID, object visitTimingDateFrom, object visitTimingDateTo, object userID)
 {
     return(GetPreviousMedicalVisits_Result.GetItemsList(patientID, isOnDUty, serviceID, visitTimingDateFrom,
                                                         visitTimingDateTo, userID));
 }
        public void Initialize(PEMRContainer parentContainer, PEMRObject pemrObject,
                               GetPreviousMedicalVisits_Result visitResult)
        {
            ParentPEMRContainer        = parentContainer;
            ActivePreviousMedicalVisit = visitResult;
            ActivePEMR = pemrObject;

            lblPatientID.Text       = visitResult.PatientID.ToString();
            lblPatientName.Text     = visitResult.PatientName;
            lblServiceName.Text     = visitResult.ServiceName;
            lblReservationTime.Text = "[" + visitResult.SignOutDateString + " - " + visitResult.SignInDateString + "]";
            lytGroup.Text           = visitResult.PatientName + " [" +
                                      Convert.ToDateTime(visitResult.SignInDate).ConvertDateTimeToString(false, true, true) +
                                      " - " + visitResult.SignOutDateString + "]";
            lytGroup.Expanded = false;
            ParentPEMRContainer.ShowPreviousVisitPEMR();
        }