public string AddUpdateScreeningData(int patientId, int patientMasterVisitId, int screeningType, int screeningCategory, int screeningValue, int userId) { try { var PSM = new PatientScreeningManager(); Result = PSM.AddUpdatePatientScreening(patientId, patientMasterVisitId, screeningType, screeningCategory, screeningValue, userId); if (Result > 0) { Msg = "Screening Added"; } } catch (Exception e) { Msg = e.Message; } return(Msg); }
public string addCancellingStatus(string status) { try { var PSM = new PatientScreeningManager(); Result = PSM.AddUpdatePatientScreening(Convert.ToInt32(Session["PatientPK"]), Convert.ToInt32(Session["PatientMasterVisitId"]), Convert.ToInt32(LookupLogic.GetLookUpMasterId("EnhanceAdherenceCounselling")), Convert.ToInt32(LookupLogic.GetLookUpMasterId("EnhanceAdherenceCounselling")), Convert.ToInt32(LookupLogic.GetLookupItemId(status)), Convert.ToInt32(Session["AppUserId"])); if (Result > 0) { Msg = "Screening Added"; } } catch (Exception e) { Msg = e.Message; } return(Msg); }
public string AddUpdateScreeningRecord(int patientId, int patientMasterVisitId, string ScreeningData) { try { ScreeningRecord[] result = new JavaScriptSerializer().Deserialize <ScreeningRecord[]>(ScreeningData); //var result = new JavaScriptSerializer().Deserialize<List<>(ScreeningData).ToArray(); if (result != null) { if (result.Length > 0) { for (int i = 0; i < result.Length; i++) { int patId = patientId; int patiMasterId = patientMasterVisitId; try { int screeningValue = result[i].screeningValue; var PSM = new PatientScreeningManager(); if (screeningValue > 0) { Result = PSM.AddUpdatePatientScreening(patId, patiMasterId, result[i].screeningType, result[i].screeningCategory, result[i].screeningValue, result[i].userId); if (Result > 0) { Msg = "Screening Added"; } } } catch (Exception e) { Msg = e.Message; } } } } } catch (Exception e) { Msg = e.Message; } return(Msg); }