public ActionResult OpdMedRepWithDeptIdNDocId(int deptid, int docid, DateTime date) { EHMSEntities ent = new EHMSEntities(); OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders(); TodayListViewModel model = new TodayListViewModel(); model.DoctorId = docid; model.DepartmentId = deptid; model.PrefDate = date; model.todayList = pro.getOpdMRdetailwithDoctorIdandDepartmentId(deptid, docid, date); foreach (var item in model.todayList) { int i = ent.OpdMedicalRecordMasters.Where(x => x.PatientId == item.PatinetId && x.PatientDoctorDetailID == item.PatientDoctorId).Count(); item.count = i; if (i >= 1) { var data = ent.OpdMedicalRecordMasters.Where(x => x.PatientId == item.PatinetId && x.PatientDoctorDetailID == item.PatientDoctorId).FirstOrDefault(); item.PatientlogId = Convert.ToInt32(data.PatientLogId); item.OpdMedicalRecordMasterId = data.OpdMedicalRecordMastetId; } } return(PartialView(model)); }
public ActionResult GetDataFormForCommonTest(OpdMedicalRecordModel model) { OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders(); int i = pro.AddmoreCommonTest(model); if (i != 0) { return(RedirectToAction("ViewOpdMedicalRecord", new { id = model.PatientId, docid = model.DoctorId, deptid = model.DepartmentId, patientLogId = model.PatientLogId, OpdmedRecmasid = model.OpdMedicalRecordMastetId })); } return(View()); }
public ActionResult OpdMedRecrdDataMedicineDoses(string Mdnamecls, int Dosescls, int DosesTimecls, int DosesDayclsspan, int OpdMrMedRefCls) { string str = ""; OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders(); int i = pro.EditMedicineRefDoses(Mdnamecls, Dosescls, DosesTimecls, DosesDayclsspan, OpdMrMedRefCls); if (i != 0) { str = "Medicine Records Updated Success"; } return(Json(str, JsonRequestBehavior.AllowGet)); }
public ActionResult OpdMedRecrdDataforCommonTest(int commtestId, string shortDes, string Detail) { string str = ""; OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders(); int i = pro.EditCommonTestforMedicalRecords(commtestId, shortDes, Detail); if (i != 0) { str = "Edit Common Test Success"; } return(Json(str, JsonRequestBehavior.AllowGet)); }
public ActionResult OpdMedRecrdDataforFurtherTest(int OpdMrFurtherTestId, string fTestName) { string str = ""; OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders(); int i = pro.EditCommonTestforMedicalRecords(OpdMrFurtherTestId, fTestName); if (i != 0) { str = "Edit Further Test Success"; } return(Json(str, JsonRequestBehavior.AllowGet)); }