protected void getPsychosocialCircumstances(int patientId, int patientMasterVisitId) { var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId); if (notesList.Any()) { foreach (var value in notesList) { PCId = Convert.ToInt32(value.NotesCategoryId); TextBox ntb = (TextBox)QuestionsPlaceholder.FindControl("notes" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } var PSM = new PatientScreeningManager(); List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(patientId, patientMasterVisitId); if (screeningList != null) { foreach (var value in screeningList) { PCId = Convert.ToInt32(value.ScreeningTypeId); RadioButtonList rbl = (RadioButtonList)QuestionsPlaceholder.FindControl(value.ScreeningCategoryId.ToString()); if (rbl != null) { rbl.SelectedValue = value.ScreeningValueId.ToString(); } } } }
public void getCageaidData(int PatientId) { var PSM = new PatientScreeningManager(); List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId); if (screeningList != null) { foreach (var value in screeningList) { screenTypeId = Convert.ToInt32(value.ScreeningTypeId); RadioButtonList rblPC1Qs = (RadioButtonList)PHCageFrequency.FindControl("cage" + value.ScreeningCategoryId.ToString()); if (rblPC1Qs != null) { rblPC1Qs.SelectedValue = value.ScreeningValueId.ToString(); } } } var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId); if (notesList.Any()) { foreach (var value in notesList) { TextBox ntb = (TextBox)PHCAGEAIDScore.FindControl("cage" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } }
public void getPNSData() { var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId); if (notesList.Any()) { foreach (var value in notesList) { //RefId = Convert.ToInt32(value.NotesCategoryId); TextBox ntb = (TextBox)PHNutritionScreeningNotes.FindControl("nutritionatb" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } var PSM = new PatientScreeningManager(); List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId); if (screeningList != null) { foreach (var value in screeningList) { //RefId = Convert.ToInt32(value.ScreeningTypeId); RadioButtonList rbl = (RadioButtonList)PHNutritionScreeningNotes.FindControl("nutritionarb" + value.ScreeningCategoryId.ToString()); if (rbl != null) { rbl.SelectedValue = value.ScreeningValueId.ToString(); } } } }
public void getSCRAFFTData(int PatientId) { var PSM = new PatientScreeningManager(); List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(PatientId, PatientMasterVisitId); //.GetPatientScreening(PatientId); if (screeningList != null) { foreach (var value in screeningList) { screenTypeId = Convert.ToInt32(value.ScreeningTypeId); RadioButtonList rblPC1Qs = (RadioButtonList)PHCRAFFTFrequency.FindControl("crafft" + value.ScreeningCategoryId.ToString()); if (rblPC1Qs != null) { rblPC1Qs.SelectedValue = value.ScreeningValueId.ToString(); } } } var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId); //.getPatientClinicalNotes(PatientId); if (notesList.Any()) { foreach (var value in notesList) { TextBox ntb = (TextBox)PHCRAFFTAlcoholScreening.FindControl("crafft" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } }
private void getNeonatalScreeningData(int PatientId) { var PSM = new PatientScreeningManager(); List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId); if (screeningList != null) { screeningValue = 1; foreach (var value in screeningList) { neonatalscreeningvalue = neonatalscreeningvalue + 1; RadioButtonList rbl = (RadioButtonList)PHNeonatalHistory.FindControl(value.ScreeningCategoryId.ToString()); if (rbl != null) { rbl.SelectedValue = value.ScreeningValueId.ToString(); } } } var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> neonatalNotesList = PCN.getPatientClinicalNotesById(PatientId, Convert.ToInt32(LookupLogic.GetLookupItemId("NeonatalNotes"))); if (neonatalNotesList.Any()) { screeningValue = 1; foreach (var value in neonatalNotesList) { immscreeningvalue = immscreeningvalue + 0; TextBox ntb = (TextBox)PHNeonatalHistoryNotes.FindControl(value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } }
public string GetDepressionScreeningData(int PatientMasterVisitId, int PatientId) { var PSM = new PatientScreeningManager(); LookupLogic lookUp = new LookupLogic(); List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(PatientId, PatientMasterVisitId); List <LookupItemView> DepressionQuestions = new List <LookupItemView>(); List <LookupItemView> lasttwoweeksqlist = lookUp.getQuestions("DepressionScreeningQuestions"); List <LookupItemView> ph9qlist = lookUp.getQuestions("PHQ9Questions"); DepressionQuestions.AddRange(ph9qlist); DepressionQuestions.AddRange(lasttwoweeksqlist); var DepressionSeverity = IQCare.CCC.UILogic.LookupLogic.GetLookupItemId("DepressionSeverity"); var DepressionTota = IQCare.CCC.UILogic.LookupLogic.GetLookupItemId("DepressionTotal"); var RecommendManagement = IQCare.CCC.UILogic.LookupLogic.GetLookupItemId("ReccommendedManagement"); var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId); List <ScreeningData> ScreeningDepressionData = new List <ScreeningData>(); if (notesList != null) { if (DepressionSeverity != null) { var item = notesList.Find(x => x.NotesCategoryId == Convert.ToInt32(DepressionSeverity)); ScreeningData sc = new ScreeningData(); if (item != null) { sc.ItemId = item.NotesCategoryId; sc.value = item.ClinicalNotes; ScreeningDepressionData.Add(sc); } } } List <PatientScreening> DepressionData = new List <PatientScreening>(); foreach (var depression in DepressionQuestions) { var item = screeningList.Find(x => x.ScreeningCategoryId == depression.ItemId); if (item != null) { ScreeningData sc = new ScreeningData(); sc.ItemId = item.ScreeningCategoryId; sc.value = item.ScreeningValueId.ToString(); ScreeningDepressionData.Add(sc); } } string jsonScreeningObject = "[]"; jsonScreeningObject = new JavaScriptSerializer().Serialize(ScreeningDepressionData); return(jsonScreeningObject); }
public string getPatientNotesByVisitId(int PatientId, int PatientMasterVisitId) { var PCN = new PatientClinicalNotesLogic(); //PatientClinicalNotes[] patientNotesData = (PatientClinicalNotes[])Session["patientNotesData"]; PatientClinicalNotes[] patientNotesData = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId).ToArray(); string jsonNotesObject = "[]"; jsonNotesObject = new JavaScriptSerializer().Serialize(patientNotesData); return(jsonNotesObject); }
public void getPatientNotesandScreening() { var PCN = new PatientClinicalNotesLogic(); var PSM = new PatientScreeningManager(); //get screening data PatientScreening[] patientScreeningData = PSM.GetPatientScreening(PatientId).ToArray(); Session["patientScreeningData"] = patientScreeningData; //get notes data PatientClinicalNotes[] patientNotesData = PCN.getPatientClinicalNotes(PatientId).ToArray(); Session["patientNotesData"] = patientNotesData; }
public List <PatientClinicalNotes> getPatientClinicalNotesByCategory(int patientId, int notesCategoryId) { try { var PCN = new PatientClinicalNotesLogic(); return(PCN.getPatientClinicalNotesById(patientId, notesCategoryId)); } catch (Exception) { throw; } }
public string getPatientNotesByVisitId(int PatientId, int PatientMasterVisitId) { var PCN = new PatientClinicalNotesLogic(); PatientId = int.Parse(HttpContext.Current.Session["PatientPK"].ToString()); //PatientClinicalNotes[] patientNotesData = (PatientClinicalNotes[])Session["patientNotesData"]; PatientClinicalNotes[] patientNotesData = PCN.getPatientClinicalNotesByVisitId(Convert.ToInt32(Session["PatientPK"]), PatientMasterVisitId).ToArray(); string jsonNotesObject = "[]"; jsonNotesObject = new JavaScriptSerializer().Serialize(patientNotesData); return(jsonNotesObject); }
protected void getSessionData(int patientId, int patientMasterVisitId) { var PCN = new PatientClinicalNotesLogic(); //PatientClinicalNotes[] notesList = PCN.getPatientClinicalNotes(PatientId).ToArray(); PatientClinicalNotes[] notesList = (PatientClinicalNotes[])Session["PatientNotesData"]; if (notesList != null) { if (notesList.Any()) { foreach (var value in notesList) { //PCId = Convert.ToInt32(value.NotesCategoryId); TextBox ntb = (TextBox)FindControl("session1tb" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } if (LookupLogic.GetLookupItemId("Session1FollowupDate") == value.NotesCategoryId.ToString()) { PatientAppointmentManager appointmentmgr = new PatientAppointmentManager(); if (value.ClinicalNotes != "") { List <PatientAppointment> paList = appointmentmgr.GetByDate(Convert.ToDateTime(value.ClinicalNotes)); foreach (var pavalue in paList) { appointmentId = pavalue.Id; } } } } } } var PSM = new PatientScreeningManager(); PatientScreening[] screeningList = (PatientScreening[])Session["PatientScreeningData"]; if (screeningList != null) { foreach (var value in screeningList) { //PCId = Convert.ToInt32(value.ScreeningTypeId); RadioButtonList rbl = (RadioButtonList)FindControl("session1rb" + value.ScreeningCategoryId.ToString()); if (rbl != null) { rbl.SelectedValue = value.ScreeningValueId.ToString(); } } } //PatientAppointmentManager appointmentmgr = new PatientAppointmentManager(); //PatientAppointment pa = appointmentmgr.GetAppointmentSummaryByDate(AppointmentId); //AppointmentDate.Text = pa.AppointmentDate.ToString("dd-MMM-yyy"); }
protected void getEvaluation(int PatientId, int PatientMasterVisitId) { var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId); if (notesList.Any()) { foreach (var value in notesList) { PCId = Convert.ToInt32(value.NotesCategoryId); TextBox ntb = (TextBox)QuestionsPlaceholder.FindControl("notes" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } var PSM = new PatientScreeningManager(); List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(PatientId, PatientMasterVisitId); if (screeningList != null) { foreach (var value in screeningList) { PCId = Convert.ToInt32(value.ScreeningTypeId); RadioButtonList rbl = (RadioButtonList)QuestionsPlaceholder.FindControl(value.ScreeningCategoryId.ToString()); if (rbl != null) { rbl.SelectedValue = value.ScreeningValueId.ToString(); } } } //var PCNs = new PatientClinicalNotesLogic(); //List<PatientClinicalNotes> notesLists = PCNs.getPatientClinicalNotes(PatientId); //if (notesLists.Any()) //{ // foreach (var value in notesList) // { // PCId = Convert.ToInt32(value.NotesCategoryId); // TextBox ntbs = (TextBox)QuestionsPlaceholder.FindControl(value.NotesCategoryId.ToString()); // if (ntbs != null) // { // ntbs.Text = value.ClinicalNotes; // } // } //} }
protected void getScreening(int patientId, int patientMasterVisitId) { var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId); if (notesList.Any()) { foreach (var value in notesList) { TextBox ntb = (TextBox)PHDepressionTotal.FindControl("sc" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } }
private void getNotesData(int patientId) { var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> socialNotesList = PCN.getPatientClinicalNotesById(PatientId, Convert.ToInt32(LookupLogic.GetLookupItemId("SocialNotes"))); if (socialNotesList.Any()) { foreach (var value in socialNotesList) { TextBox ntb = (TextBox)PHCageNotes.FindControl("cage" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } }
public string addPatientClinicalNotesByVisitId(int patientId, int patientMasterVisitId, int serviceAreaId, int notesCategoryId, string clinicalNotes, int userId) { try { var PCN = new PatientClinicalNotesLogic(); Result = PCN.addPatientClinicalNotesByVisitId(Convert.ToInt32(Session["PatientPK"]), patientMasterVisitId, serviceAreaId, notesCategoryId, clinicalNotes, userId); if (Result > 0) { Msg = "Notes Added"; } } catch (Exception e) { Msg = e.Message; } return(Msg); }
protected void getCaseSummaries(int PatientId, int PatientMasterVisitId) { var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId); if (notesList.Any()) { foreach (var value in notesList) { caseSummaryId = Convert.ToInt32(value.NotesCategoryId); TextBox ntb = (TextBox)QuestionsPlaceholder.FindControl(value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } }
public string AddPatientClinicalNotesRecord(int patientId, int patientMasterVisitId, string clinicaldata) { try { ClinicalOutput[] result = new JavaScriptSerializer().Deserialize <ClinicalOutput[]>(clinicaldata); List <ClinicalOutput> Outcome = new List <ClinicalOutput>(); Outcome = new JavaScriptSerializer().Deserialize <List <ClinicalOutput> >(clinicaldata); if (result != null) { if (result.Length > 0) { for (int i = 0; i < result.Length; i++) { int patId = patientId; int patiMasterId = patientMasterVisitId; string clinicalNotes = result[i].clinicalNotes; try { var PCN = new PatientClinicalNotesLogic(); if (!String.IsNullOrEmpty(clinicalNotes)) { Result = PCN.addPatientClinicalNotesByVisitId(patientId, patientMasterVisitId, result[i].serviceAreaId, result[i].notesCategoryId, result[i].clinicalNotes, result[i].userId); if (Result > 0) { Msg = "Notes Added"; } } } catch (Exception e) { Msg = e.Message; } } } } } catch (Exception e) { Msg = e.Message; } return(Msg); }
public string addPatientClinicalNotes(int patientId, int patientMasterVisitId, int serviceAreaId, int notesCategoryId, string clinicalNotes, int userId) { try { var PCN = new PatientClinicalNotesLogic(); if (!String.IsNullOrEmpty(clinicalNotes)) { Result = PCN.addPatientClinicalNotes(patientId, patientMasterVisitId, serviceAreaId, notesCategoryId, clinicalNotes, userId); if (Result > 0) { Msg = "Notes Added"; } } } catch (Exception e) { Msg = e.Message; } return(Msg); }
public void getDepressionScreeningData() { var PSM = new PatientScreeningManager(); List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(PatientId, PmVisitId); //.GetPatientScreening(PatientId); if (screeningList != null) { foreach (var value in screeningList) { depressionId = Convert.ToInt32(value.ScreeningTypeId); RadioButtonList rblPC1Qs = (RadioButtonList)PlaceHolder1.FindControl("uds" + value.ScreeningCategoryId.ToString()); if (rblPC1Qs != null) { rblPC1Qs.SelectedValue = value.ScreeningValueId.ToString(); } RadioButtonList rblPC2Qs = (RadioButtonList)PlaceHolder2.FindControl("uds" + value.ScreeningCategoryId.ToString()); if (rblPC2Qs != null) { rblPC2Qs.SelectedValue = value.ScreeningValueId.ToString(); } } } var PCN = new PatientClinicalNotesLogic(); List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PmVisitId); //.getPatientClinicalNotes(PatientId); if (notesList.Any()) { foreach (var value in notesList) { TextBox ntb = (TextBox)PlaceHolder2.FindControl("uds" + value.NotesCategoryId.ToString()); if (ntb != null) { ntb.Text = value.ClinicalNotes; } } } }