public JsonResult GetDiagnosisesByPatientNo(string patientNo)
        {
            var list = _diagnosisService.GetDiagnosisByPatientNo(patientNo.Split('(')[0]);

            if (list == null || list.Count == 0)
            {
                return(new JsonResult {
                    Data = new { Status = "Fail", msg = "No diagnosis for this patient" }, JsonRequestBehavior = JsonRequestBehavior.AllowGet
                });
            }
            else
            {
                foreach (var diag in list)
                {
                    diag.DiagnosisDate = diag.DiagnosisDateDT.ToString("dd/MM/yyyy");
                }
                return(new JsonResult {
                    Data = new { Status = "Success", data = list }, JsonRequestBehavior = JsonRequestBehavior.AllowGet
                });
            }
        }