コード例 #1
0
        public void BindAllegies(long patientid)
        {

            try
            {
                List<Allergy> objColl = null;
                if (patientid != 0)
                {
                    string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("allergies");

                    IgJObject postData = new IgJObject();
                    postData.Add("PatientID", patientid);
                    postData.Add("Pin", PinValue);

                    objColl = Utility.PostRequest<Allergy>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/allergies";
                    //var postData = "{\"PatientID\":\"" + patientid + "\",\"Pin\":\"" + PinValue + "\"}";
                    //objColl = Utility.PostRequest<Allergy>(uri, postData);

                }
                //objColl.Add(new Conditons {Condition="XYZ",DateOfOnset="17-08-2015",ICDCode="290",PatientID=12345 });
                //objColl.Add(new Conditons { Condition = "XYZd", DateOfOnset = "17-08-2015", ICDCode = "291", PatientID = 12343 });
                gdallergy.DataSource = objColl;
                gdallergy.DataBind();

            }
            catch (Exception exc)
            {

            }
        }
コード例 #2
0
        public static void DeleteEncounter(long EncounterID)
        {
            try {
                string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                var uri = Utility.GetServiceUrl("deletedoctorvist");

                IgJObject postData = new IgJObject();
                postData.Add("DoctorVisitId", EncounterID);
                postData.Add("Pin", PinValue);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
            }
            catch(Exception)
            {

            }

            //string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
            //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/deletedoctorvist";
            //var postData = "{\"DoctorVisitId\":\"" + EncounterID + "\",\"Pin\":\"" + PinValue + "\"}";
            //var res = Utility.PostRequestForSave(uri, postData);
            // ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);

            // exists in the user control deleteallergies
        }
コード例 #3
0
        protected void btnSaveCondition_Click(object sender, EventArgs e)
        {
            try
            {
                var uri = Utility.GetServiceUrl("updateimmunizations");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", PatientID);
                postData.Add("Pin", PIN);
                postData.Add("ImmunizationType", txt_Immunization.Text);
                postData.Add("AdministrationDate", txt_date.Text);
                postData.Add("ImmunizationID", ImmunizationID);
                
                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));

                //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/updateimmunizations";
                //var postData = "{\"PatientID\":\"" + PatientID + "\",\"Pin\":\"" + PIN + "\",\"ImmunizationType\":\"" + txt_Immunization.Text + "\",
                //    \"AdministrationDate\":\"" + txt_date.Text + "\",\"ImmunizationID\":\"" + ImmunizationID + "\"}";
                //var res = Utility.PostRequestForSave(uri, postData);
                ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);

            }
            catch (Exception exc)
            {

            }
        }
コード例 #4
0
        public void BindTestAndProcedures(long patientid)
        {

            try
            {
                List<Surgeries> objColl = null;
                if (patientid != 0)
                {
                    string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("surgeries");

                    IgJObject postData = new IgJObject();
                    postData.Add("PatientID", patientid);
                    postData.Add("Pin", PinValue);

                    objColl = Utility.PostRequest<Surgeries>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/surgeries";
                    //var postData = "{\"PatientID\":\"" + patientid + "\",\"Pin\":\"" + PinValue + "\"}";
                    //objColl = Utility.PostRequest<Surgeries>(uri, postData);

                }
                gdtestandprocedure.DataSource = objColl;
                gdtestandprocedure.DataBind();

            }
            catch (Exception exc)
            {

            }
        }
コード例 #5
0
        public void BindPatientdetails(long patientid)
        {

            try
            {
                List<PatientDetails> objColl = null;
                if (patientid != 0)
                {
                    string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("getpatientdetailsbypatientid");

                    IgJObject postData = new IgJObject();
                    postData.Add("Pin", PinValue);
                    postData.Add("PatientId", patientid);

                    objColl = Utility.PostRequest<PatientDetails>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/getpatientdetailsbypatientid";
                    //var postData = "{\"Pin\":\"" + PinValue + "\",\"PatientId\":\"" + patientid + "\"}";
                    //objColl = Utility.PostRequest<PatientDetails>(uri, postData);
                    if (objColl.Count > 0)
                    {
                        txt_firstname.Text = objColl[0].FirstName;
                        txt_lastname.Text = objColl[0].LastName;
                        txt_dob.Text = objColl[0].DOB;
                        txt_phonenumber.Text = objColl[0].PhoneNumber;
                        txt_hicn.Text = objColl[0].HICN;

                        txt_SSN.Text = objColl[0].Last4SSN;
                        txt_address1.Text = objColl[0].Address1;
                        txt_address2.Text = objColl[0].Address2;
                        txt_city.Text = objColl[0].City;
                        txt_zipcode.Text = objColl[0].Zipcode;
                        ddlState.SelectedValue = objColl[0].State.ToString();

                        //ddlstate
                    }
                }
                //objColl.Add(new Conditons {Condition="XYZ",DateOfOnset="17-08-2015",ICDCode="290",PatientID=12345 });
                //objColl.Add(new Conditons { Condition = "XYZd", DateOfOnset = "17-08-2015", ICDCode = "291", PatientID = 12343 });


            }
            catch (Exception ex)
            {

            }
        }
コード例 #6
0
        public void BindReferral(long patientid)
        {

            try
            {
                List<Referral> objColl = null;
                if (patientid != 0)
                {

                    string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("referralview");

                    IgJObject postData = new IgJObject();
                    postData.Add("Pin", PinValue);
                    postData.Add("PhysicianID", Session["PhysicianID"].ToString());
                    postData.Add("Status", "1");

                    objColl = Utility.PostRequest<Referral>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/referralview";
                    //var postData = "{\"Pin\":\"" + PinValue + "\",\"PhysicianID\":\"" + Session["PhysicianID"] + "\",\"Status\":\"" + 1 + "\"}";
                    //objColl = Utility.PostRequest<Referral>(uri, postData);

                    if (objColl[0].AssignedPhysician != null)
                    {
                        gdreferral.DataSource = objColl;
                        gdreferral.DataBind();
                    }
                    else
                    {
                        gdreferral.DataSource = null;
                        gdreferral.DataBind();
                    }

                }
                //objColl.Add(new Conditons {Condition="XYZ",DateOfOnset="17-08-2015",ICDCode="290",PatientID=12345 });
                //objColl.Add(new Conditons { Condition = "XYZd", DateOfOnset = "17-08-2015", ICDCode = "291", PatientID = 12343 });


            }
            catch (Exception ex)
            {

            }
        }
コード例 #7
0
        protected void btnSaveCondition_Click(object sender, EventArgs e)
        {
            try
            {
                var uri = Utility.GetServiceUrl("updatefamilyhistory");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", PatientID);
                postData.Add("ConditionName", ddlConditions.SelectedItem.Text);
                postData.Add("Relationship", ddlRelationShip.SelectedItem.Text);
                postData.Add("OnsetDate", txtOnsetDate.Text);
  
                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
                ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);

            }
            catch (Exception exc)
            {

            }
        }
コード例 #8
0
        public static void DeleteLabResults(long LabResultID)
        {
            try {
                string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                var uri = Utility.GetServiceUrl("insertupdatelabimaging");

                IgJObject postData = new IgJObject();
                postData.Add("LabImagingId", LabResultID);
                postData.Add("Pin", PinValue);
                postData.Add("ActionItem", "DELETE");

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
            }
            catch(Exception)
            {

            }

            //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/insertupdatelabimaging ";
            //var postData = "{\"LabImagingId\":\"" + LabResultID + "\",\"Pin\":\"" + PinValue + "\",\"ActionItem\":\"" + "DELETE" + "\"}";
            //var res = Utility.PostRequestForSave(uri, postData);
        }
コード例 #9
0
        public static void DeleteProcedure(long ProcedureID)
        {
            try {
                string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                var uri = Utility.GetServiceUrl("updatetestandsurgeries");

                IgJObject postData = new IgJObject();
                postData.Add("SurgeriesId", ProcedureID);
                postData.Add("Pin", PinValue);
                postData.Add("ActionItem", "DELETE");

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
            }
            catch(Exception)
            {

            }

            //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/updatetestandsurgeries";
            //var postData = "{\"SurgeriesId\":\"" + ProcedureID + "\",\"Pin\":\"" + PinValue + "\",\"ActionItem\":\"" + "DELETE" + "\"}";
            //var res = Utility.PostRequestForSave(uri, postData);
        }
コード例 #10
0
        public void BindPatientdetails(long patientid)
        {
            try
            {
                List<PatientDetails> objColl = null;
                if (patientid != 0)
                {
                    string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("getpatientdetailsbypatientid");

                    IgJObject postData = new IgJObject();
                    postData.Add("Pin", PinValue);
                    postData.Add("PatientID", patientid);

                    objColl = Utility.PostRequest<PatientDetails>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/getpatientdetailsbypatientid";
                    //var postData = "{\"Pin\":\"" + PinValue + "\",\"PatientId\":\"" + patientid + "\"}";
                    //objColl = Utility.PostRequest<PatientDetails>(uri, postData);
                    if (objColl.Count > 0)
                    {
                        if (objColl[0].BMI.ToString() == "")
                        {
                            lblBMI.Text = "0";
                        }
                        else
                        {

                            lblBMI.Text = objColl[0].BMI.ToString();
                        }

                    }
                }
            }
            catch (Exception exc)
            {

            }
        }
コード例 #11
0
        public void SaveDetails()
        {
            try
            {
                var uri = Utility.GetServiceUrl("updateallergies");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", PatientID);
                postData.Add("Reaction", reaction.Text);
                postData.Add("AllergyType", allergy.Text);
                postData.Add("AllergyID", AllergyID);
                postData.Add("DateLastOccured", dob.Text);
                postData.Add("Treatment", string.Empty);
                postData.Add("IsMedicationAllergy", string.Empty);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
                ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);

            }
            catch (Exception exc)
            {

            }

        }
コード例 #12
0
        private void UpdateConsentedInBridge(long refpatientId)
        {
            try {
                var uri = Utility.GetServiceUrl("updateconsented");
                IgJObject postData = new IgJObject();
                postData.Add("PatientID", refpatientId);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
            }
            catch(Exception)
            { }
        }
コード例 #13
0
        public void SaveDetails()
        {
            try
            {
                string action = "";
                if (buttontype.Value != "Update")
                {
                   action = "INSERT";
               }
               else
               {
                   action = "UPDATE";
               }

                var uri = Utility.GetServiceUrl("updatetestandsurgeries");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", PatientID);
                postData.Add("UserId", Convert.ToString(Session["PhysicianID"]));
                postData.Add("SurgeriesProcedure", testProcedure.Text);
                postData.Add("Date", testdate.Text);
                postData.Add("Description", details.Text);
                postData.Add("SurgeriesId", SurgeriesId);
                postData.Add("ActionItem", action);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
                ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);

            }
            catch (Exception exc)
            {

            }

        }
コード例 #14
0
        public void BindCCMChart()
        {
            List<CCMConditions> objColl = null;
            try
            {
                var uri = Utility.GetServiceUrl("ccmpatientgraph");

                IgJObject postData = new IgJObject();
                postData.Add("PhysicianID", Convert.ToString(Session["PhysicianID"]));

                objColl = Utility.PostRequest<CCMConditions>(uri, postData.ToString(Formatting.None));


                if (objColl.Count > 0)
                {
                    double[] yValues = { objColl[0].Current, objColl[0].Deceased, objColl[0].InActive, objColl[0].Dropped };
                    string[] xValues = { "Current", "Deceased", "Inactive", "Dropped" };
                    ChartCCM.Series["Default"].Points.DataBindXY(xValues, yValues);

                    ChartCCM.Series["Default"].Points[0].Color = ColorTranslator.FromHtml("#AFBA20");
                    ChartCCM.Series["Default"].Points[1].Color = ColorTranslator.FromHtml("#51514F");
                    ChartCCM.Series["Default"].Points[2].Color = ColorTranslator.FromHtml("#E68733");
                    ChartCCM.Series["Default"].Points[3].Color = ColorTranslator.FromHtml("#6EC1D3");



                    ChartCCM.Series["Default"].ChartType = SeriesChartType.Doughnut;

                    ChartCCM.Series["Default"]["PieLabelStyle"] = "Disabled";

                    ChartCCM.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = false;

                    ChartCCM.Legends[0].Enabled = true;
                }
            }
            catch
            {

            }
        }
コード例 #15
0
        protected void btn_save_Click(object sender, EventArgs e)
        {
            try
            {
                string Pin = ConfigurationManager.AppSettings["Bridge_Base"];
                var uri = Utility.GetServiceUrl("insertlifestyle");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", Session["PatientID"].ToString());
                postData.Add("Pin", Pin);
                postData.Add("UserId", Session["PhysicianID"].ToString());
                postData.Add("Alcoholic", ddlAlcoholic.SelectedValue);
                postData.Add("Smoke", ddlSmoke.SelectedValue);
                postData.Add("Exercise", ddlExercise.SelectedValue);
                postData.Add("HowlongYearsDrinking", txtHowlongDrinking.Text);
                postData.Add("DrinksPerWeek", txtHowmanydrink.Text);
                postData.Add("PacksPerDay", txtHowmanypack.Text);
                postData.Add("HowlongYearsSmoking", txtHowlongSmoking.Text);
                postData.Add("ExerciseDaysPerWeek", ddlHowmanydaysExercise.SelectedValue);
                
                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
                BindLifeStyle(Convert.ToInt32(Session["PatientID"]));

                //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/insertlifestyle";
                //var postData = "{\"PatientID\":\"" + Session["PatientID"] + "\",\"Pin\":\"" + Pin + "\",\"UserId\":\"" + Session["PhysicianID"] + "\",\"Alcoholic\":\"" + ddlAlcoholic.SelectedValue + "\",\"Smoke\":\"" + ddlSmoke.SelectedValue + "\",\"Exercise\":\"" + ddlExercise.SelectedValue + "\",\"HowlongYearsDrinking\":\"" + txtHowlongDrinking.Text + "\",\"DrinksPerWeek\":\"" + txtHowmanydrink.Text + "\",\"PacksPerDay\":\"" + txtHowmanypack.Text + "\",\"HowlongYearsSmoking\":\"" + txtHowlongSmoking.Text + "\",\"ExerciseDaysPerWeek\":\"" + ddlHowmanydaysExercise.SelectedValue + "\"}";
                //var res = Utility.PostRequestForSave(uri, postData);
                //BindLifeStyle(Convert.ToInt32(Session["PatientID"]));

            }
            catch (Exception exc)
            {

            }
        }
コード例 #16
0
        public void SaveDetails()
        {
            try
            {
                string action = "";
                if (buttontype.Value != "Update")
                {
                    action = "INSERT";
                }
                else
                {
                    action = "UPDATE";
                }
                var uri = Utility.GetServiceUrl("insertupdatelabimaging");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", PatientID);
                postData.Add("UserId", Convert.ToString(Session["PhysicianID"]));
                postData.Add("LabImagingId", ResultId);
                postData.Add("TestType", testtype.Text);
                postData.Add("Results", Results.Text);
                postData.Add("RequestingDoctor", doctor.Text);
                postData.Add("AdministeredBy", admin.Text);
                postData.Add("Date", date.Text);
                postData.Add("ActionItem", action);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
                ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);
            }
            catch (Exception exc)
            {

            }
        }
コード例 #17
0
        public void FetchReferralInformation(string refid)
        {
            List<PhysicianDetails> objColl = null;
             if (refid != null)
             {
                 string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                var uri = Utility.GetServiceUrl("fetchphysicianlocation");

                IgJObject postData = new IgJObject();
                postData.Add("ReferralID", refid);
                postData.Add("Pin", PinValue);

                objColl = Utility.PostRequest<PhysicianDetails>(uri, postData.ToString(Formatting.None));

                //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/fetchphysicianlocation";
                // var postData = "{\"ReferralID\":\"" + refid + "\",\"Pin\":\"" + PinValue + "\"}";
                // objColl = Utility.PostRequest<PhysicianDetails>(uri, postData);
                 if (objColl.Count > 0)
                 {
                     var sb = string.Empty;
                     var phone = string.Empty;
                     var fax = string.Empty;
                     for (var i = 0; i < objColl.Count; i++)
                     {
                         var elementAtOrDefault = objColl.ElementAtOrDefault(i);
                         if (elementAtOrDefault != null)
                         {
                             if (!string.IsNullOrEmpty(elementAtOrDefault.Address))
                             {
                                 if (!string.IsNullOrEmpty(sb))
                                     sb = sb + "<br/><br/>" + elementAtOrDefault.Address;
                                 else
                                     sb = elementAtOrDefault.Address;
                             }
                             if (!string.IsNullOrEmpty(elementAtOrDefault.ContactPhNo))
                             {
                                 if (!string.IsNullOrEmpty(phone))
                                     phone = phone + "<br/>" + elementAtOrDefault.PhyOfficeName + "<br/>" + " (" +
                                             elementAtOrDefault.ContactPhNo + ")";
                                 else
                                     phone = elementAtOrDefault.PhyOfficeName + "<br/>" + " (" + elementAtOrDefault.ContactPhNo +
                                             ")";

                             }
                             if (!string.IsNullOrEmpty(elementAtOrDefault.FaxNo))
                             {
                                 if (!string.IsNullOrEmpty(fax))
                                     fax = fax + "<br/>" + elementAtOrDefault.PhyOfficeName + "<br/>" + " (" +
                                           elementAtOrDefault.FaxNo + ")";
                                 else
                                     fax = elementAtOrDefault.PhyOfficeName + "<br/>" + " (" + elementAtOrDefault.FaxNo +
                                           ")";

                             }
                         }
                     }
                     lblProviderAdd.Text = sb;
                     lblPhoneNum.Text = phone;
                     ui_lblFaxNum.Text = fax;
                 }
                 else
                 {
                    uri = Utility.GetServiceUrl("fetchphysiciandetails");
                    postData = new IgJObject();
                    postData.Add("PhysicianID", Convert.ToString(Session["PhysicianID"]));
                    List<PhysicalTherapy> iGHPPhysicalTherapyInfo = Utility.PostRequest<PhysicalTherapy>(uri, postData.ToString(Formatting.None));

                    //PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    //  uri = ConfigurationManager.AppSettings["serviceURL"] + "/fetchphysiciandetails";
                    //  postData = "{\"PhysicianID\":\"" + Session["PhysicianID"] + "\",\"Pin\":\"" + PinValue + "\"}";
                    //  objColl = Utility.PostRequest<PhysicianDetails>(uri, postData);


                      if (objColl.Count > 0)
                      {
                          lblProviderAdd.Text = objColl[0].Address;
                          lblPhoneNum.Text = objColl[0].ContactOfficePhNo;
                          ui_lblFaxNum.Text = objColl[0].FaxNo;
                      }
                 }
             }
        }
コード例 #18
0
        //public void BindProblems(long patientid)
        //{
        //    try
        //    {
        //        List<LabImaging> objColl = null;
        //        if (patientid != 0)
        //        {
        //            string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
        //            var uri = ConfigurationManager.AppSettings["serviceURL"] + "/null";
        //            var postData = "{\"Pin\":\"" + PinValue + "\",\"PatientID\":\"" + patientid + "\"}";
        //            objColl = Utility.PostRequest<LabImaging>(uri, postData);
        //            if (objColl.Count > 0)
        //            {
        //                gdproblem.DataSource = objColl;
        //                gdproblem.DataBind();
        //            }
        //        }


        //    }
        //    catch (Exception ex)
        //    {
        //    }
        //}

        // Complete
        public void BindVitals(long patientid)
         {
             List<VitalSignsInfo> objColl = null;
             if (patientid != 0)
             {
                 string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                var uri = Utility.GetServiceUrl("vitalsigns");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", patientid);
                postData.Add("Pin", PinValue);

                objColl = Utility.PostRequest<VitalSignsInfo>(uri, postData.ToString(Formatting.None));

                //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/vitalsigns";
                // var postData = "{\"PatientID\":\"" + patientid + "\",\"Pin\":\"" + PinValue + "\"}";
                // objColl = Utility.PostRequest<VitalSignsInfo>(uri, postData);
                 if (objColl.Count > 0)
                 {
                     Vital_Height = objColl[0].Height;
                     Vital_Height_Unit = objColl[0].HeightUnits;
                     Vital_Weight = objColl[0].Weight;
                     Vital_Weight_Unit = objColl[0].WeightUnits;
                     Vital_BMI = "";
                     Vital_Pulse = (objColl[0].Pulse!=null)? objColl[0].Pulse+" BPM": objColl[0].Pulse;
                     Vital_Temperature = objColl[0].Temperature;
                     Vital_Temperature_Unit = objColl[0].TemperatureUnit;
                     Vital_BP = (objColl[0].BloodPressure != null) ? objColl[0].BloodPressure + " mmHg" : objColl[0].BloodPressure;
                     Vital_Respiration = (objColl[0].Respiration != null) ? objColl[0].Respiration + " BPM" : objColl[0].Respiration;
                 }
             }
         }
コード例 #19
0
        public void BindConditionChart()
        {
            List<ICDconditions> objColl = null;
            try
            {
                var uri = Utility.GetServiceUrl("conditionsgraph");

                IgJObject postData = new IgJObject();
                postData.Add("PhysicianID", Convert.ToString( Session["PhysicianID"]));

                objColl = Utility.PostRequest<ICDconditions>(uri, postData.ToString(Formatting.None));
                
                if (objColl.Count > 0)
                {
                    double[] yValues = { objColl[0].COPD, objColl[0].CAD, objColl[0].HTN, objColl[0].CHF, objColl[0].DM, objColl[0].IVD };
                    string[] xValues = { "COPD", "CAD", "HTN", "CHF", "DM", "IVD" };
                    Chart1.Series["Default"].Points.DataBindXY(xValues, yValues);

                    Chart1.Series["Default"].Points[0].Color = ColorTranslator.FromHtml("#584A9F");
                    Chart1.Series["Default"].Points[1].Color = ColorTranslator.FromHtml("#CB8A26");
                    Chart1.Series["Default"].Points[2].Color = ColorTranslator.FromHtml("#AFBA20");
                    Chart1.Series["Default"].Points[3].Color = ColorTranslator.FromHtml("#0E63A3");
                    Chart1.Series["Default"].Points[4].Color = ColorTranslator.FromHtml("#269FA8");
                    Chart1.Series["Default"].Points[5].Color = ColorTranslator.FromHtml("#E4D532");


                    Chart1.Series["Default"].ChartType = SeriesChartType.Pie;

                    Chart1.Series["Default"]["PieLabelStyle"] = "Disabled";

                    Chart1.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = true;

                    Chart1.Legends[0].Enabled = true;
                }
            }
            catch
            {

            }


            //List<ICDconditions> objColl = null;
            //try
            //{
            //    string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
            //    var uri = ConfigurationManager.AppSettings["serviceURL"] + "/conditionsgraph";
            //    var postData = "{\"Pin\":\"" + PinValue + "\"}";
            //    objColl = Utility.PostRequest<ICDconditions>(uri, postData);

            //    int i = 0;
            //    int j = 0;
            //    if (objColl.Count > 0)
            //    {
            //        string[] xValues = new string[objColl.Count];
            //        int[] yValues = new int[objColl.Count];
            //        foreach (ICDconditions item in objColl)
            //        {
            //            xValues[i] = item.CHF;
            //            i++;
            //            yValues[j] = Convert.ToInt32(item.CAD);
            //            j++;
            //        }
            //        Chart1.Series["Default"].Points.DataBindXY(xValues, yValues);
            //        //     Chart1.Series["Default"].Points[0].Color = System.Drawing.Color.MediumSeaGreen;
            //        //     Chart1.Series["Default"].Points[1].Color = System.Drawing.Color.PaleGreen;
            //        //     Chart1.Series["Default"].Points[2].Color = System.Drawing.Color.LawnGreen;
            //        //Chart1.Series["Default"].ChartType = SeriesChartType.Pie;
            //        Chart1.Series["Default"]["PieLabelStyle"] = "Disabled";
            //        Chart1.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = true;
            //    }

            //}
            //catch
            //{

            //}
        }
コード例 #20
0
         public void BindImmunizations(long patientid)
         {
             try
             {
                 List<Hick.Models.Immunizations> objColl = null;
                 if (patientid != 0)
                 {
                     string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];

                    var uri = Utility.GetServiceUrl("immunization");

                    IgJObject postData = new IgJObject();
                    postData.Add("Pin", PinValue);
                    postData.Add("PatientID", patientid);

                    objColl = Utility.PostRequest<Hick.Models.Immunizations>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/immunization";
                    // var postData = "{\"Pin\":\"" + PinValue + "\",\"PatientID\":\"" + patientid + "\"}";
                    // objColl = Utility.PostRequest<Immunizations>(uri, postData);
                     if (objColl.Count > 0)
                     {
                        gdimmunization.DataSource = objColl;
                        gdimmunization.DataBind();
                    }
                 }
             }
             catch (Exception exc)
             {

             }
         }
コード例 #21
0
         public void BindLifeStyle(long patientid)
         {
             try
             {
                 List<LifeStyle> objColl = null;
                 if (patientid != 0)
                 {
                     string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("lifestyle");

                    IgJObject postData = new IgJObject();
                    postData.Add("Pin", PinValue);
                    postData.Add("PatientID", patientid);

                    objColl = Utility.PostRequest<LifeStyle>(uri, postData.ToString(Formatting.None));


                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/lifestyle";
                    // var postData = "{\"Pin\":\"" + PinValue + "\",\"PatientID\":\"" + patientid + "\"}";
                    // objColl = Utility.PostRequest<LifeStyle>(uri, postData);

                     if (objColl.Count > 0)
                     {
                        Social_Ties = null;
                        Relatives = null;
                        Relatives_Discuss_Private_Matters = null;
                        Relatives_See_Monthly = null;
                        Living_With = null;
                        Per_Week = objColl[0].ExerciseDaysPerWeek;
                        Excercise = objColl[0].Exercise;
                        Smoking_Habits = objColl[0].PacksPerDay;
                        Smoke = objColl[0].Smoke;
                        Alcohol = objColl[0].Alcoholic;
                     }

                 }
             }
             catch (Exception exc)
             {

             }
         }
コード例 #22
0
        public void BindLifeStyle(long patientid)
        {
            try
            {
                List<LifeStyle> objColl = null;
                if (patientid != 0)
                {
                    string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("lifestyle");

                    IgJObject postData = new IgJObject();
                    postData.Add("Pin", PinValue);
                    postData.Add("PatientID", patientid);

                    objColl = Utility.PostRequest<LifeStyle>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/lifestyle";
                    //var postData = "{\"Pin\":\"" + PinValue + "\",\"PatientID\":\"" + patientid + "\"}";
                    //objColl = Utility.PostRequest<LifeStyle>(uri, postData);
                    if (objColl.Count > 0)
                    {
                        if (objColl[0].Alcoholic.ToString() == "Yes")
                        {
                            ddlAlcoholic.SelectedValue = "Yes";
                            divDrink.Style.Value = "display:";
                        }
                        else if (objColl[0].Alcoholic.ToString() == "No")
                        {
                            ddlAlcoholic.SelectedValue = "No";
                            divDrink.Style.Value = "display:none";
                        }
                        else
                        {
                            ddlAlcoholic.SelectedValue = "Select";
                            divDrink.Style.Value = "display:none";
                        }
                        txtHowmanydrink.Text = objColl[0].DrinksPerWeek.ToString();
                        txtHowlongDrinking.Text = objColl[0].HowlongYearsDrinking.ToString();

                        if (objColl[0].Smoke == "Yes")
                        {
                            ddlSmoke.SelectedValue = "Yes";
                            divSmoke.Style.Value = "display:";
                        }
                        else if (objColl[0].Smoke == "No")
                        {
                            ddlSmoke.SelectedValue = "No";
                            divSmoke.Style.Value = "display:none";
                        }
                        else
                        {
                            ddlSmoke.SelectedValue = "Select";
                            divSmoke.Style.Value = "display:none";
                        }


                        if (objColl[0].Exercise == "Yes")
                        {
                            ddlExercise.SelectedValue = "Yes";
                            divExercise.Style.Value = "display:";

                            if (objColl[0].ExerciseDaysPerWeek == "1 to 2 times per week")
                            {
                                ddlHowmanydaysExercise.SelectedValue = "1 to 2 times per week";
                            }
                            else if (objColl[0].ExerciseDaysPerWeek == "3 times per week")
                            {
                                ddlHowmanydaysExercise.SelectedValue = "3 times per week";
                            }
                            else if (objColl[0].ExerciseDaysPerWeek == "4 or more times per week")
                            {
                                ddlHowmanydaysExercise.SelectedValue = "4 or more times per week";
                            }
                            else if (objColl[0].ExerciseDaysPerWeek == "Select")
                            {
                                ddlHowmanydaysExercise.SelectedValue = "Select";

                            }
                        }
                        else if (objColl[0].Smoke == "No")
                        {
                            ddlSmoke.SelectedValue = "No";
                            divSmoke.Style.Value = "display:none";
                        }
                        else
                        {
                            ddlSmoke.SelectedValue = "Select";
                            divSmoke.Style.Value = "display:none";
                        }

                        txtHowmanypack.Text = objColl[0].PacksPerDay.ToString();
                        txtHowlongSmoking.Text = objColl[0].HowlongYearsSmoking.ToString();
                    }
                }
            }
            catch (Exception ex)
            {

            }
        }
コード例 #23
0
        protected void btn_save_Click(object sender, EventArgs e)
        {
            try
            {
                string Pin = ConfigurationManager.AppSettings["Bridge_Base"];
                var uri = Utility.GetServiceUrl("updateignitepatientdetails");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", Session["PatientID"].ToString());
                postData.Add("Pin", Pin);
                postData.Add("LastName", txt_lastname.Text);
                postData.Add("FirstName", txt_firstname.Text);
                postData.Add("DOB", txt_dob.Text);
                postData.Add("Last4SSN", txt_SSN.Text);
                postData.Add("HICN", txt_hicn.Text);
                postData.Add("Address1", txt_address1.Text);
                postData.Add("Address2", txt_address2.Text);
                postData.Add("City", txt_city.Text);
                postData.Add("State", ddlState.SelectedValue);
                postData.Add("Zip", txt_zipcode.Text);
                postData.Add("PhoneNumber", txt_phonenumber.Text);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));
                BindPatientdetails(Convert.ToInt32(Session["PatientID"]));

                //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/updateignitepatientdetails";
                //var postData = "{\"PatientID\":\"" + Session["PatientID"] + "\",\"Pin\":\"" + Pin + "\",\"LastName\":\"" + txt_lastname.Text + "\",
                //    \"FirstName\":\"" + txt_firstname.Text + "\",\"DOB\":\"" + txt_dob.Text + "\",\"Last4SSN\":\"" + txt_SSN.Text + "\",
                //    \"HICN\":\"" + txt_hicn.Text + "\",\"Address1\":\"" + txt_address1.Text + "\",\"Address2\":\"" + txt_address2.Text + "\",
                //    \"City\":\"" + txt_city.Text + "\",\"State\":\"" + ddlState.SelectedValue + "\",\"Zip\":\"" + txt_zipcode.Text + "\",\"PhoneNumber\":\"" + txt_phonenumber.Text + "\"}";
                //var res = Utility.PostRequestForSave(uri, postData);
                //BindPatientdetails(Convert.ToInt32(Session["PatientID"]));

            }
            catch (Exception exc)
            {

            }
        }
コード例 #24
0
         public void BindPatientdetails(long patientid)
         {
             try
             {
                 List<PatientDetails> objColl = null;
                 if (patientid != 0)
                 {
                     string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("getpatientdetailsbypatientid");

                    IgJObject postData = new IgJObject();
                    postData.Add("Pin", PinValue);
                    postData.Add("PatientId", patientid);
                    
                    objColl = Utility.PostRequest<PatientDetails>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/getpatientdetailsbypatientid";
                    // var postData = "{\"Pin\":\"" + PinValue + "\",\"PatientId\":\"" + patientid + "\"}";
                    // objColl = Utility.PostRequest<PatientDetails>(uri, postData);
                     if (objColl.Count > 0)
                     {
                         patientName = objColl[0].FirstName + " " + objColl[0].LastName;
                         gender = objColl[0].Gender;
                         dob = objColl[0].DOB;
                         race = objColl[0].Race;
                         ethnicity = objColl[0].City;
                         preflanguage = "English";
                     }
                 }
             }
             catch (Exception exc)
             {

             }
         }
コード例 #25
0
        public void FetchPatientViewDetails(string refid)
        {
            List<PatientDetails> objColl = null;
            if (refid != null)
            {
                //string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                var uri = Utility.GetServiceUrl("fetchpatientviewdetailsbyrefid");

                IgJObject postData = new IgJObject();
                postData.Add("ReferralID", refid);
                //postData.Add("Pin", PinValue);

                objColl = Utility.PostRequest<PatientDetails>(uri, postData.ToString(Formatting.None));

                //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/fetchpatientviewdetailsbyrefid";
                //var postData = "{\"ReferralID\":\"" + refid + "\",\"Pin\":\"" + PinValue + "\"}";
                //objColl = Utility.PostRequest<PatientDetails>(uri, postData);
                if (objColl.Count > 0)
                {
                    lblFirstName.Text = objColl[0].FirstName;
                    lblLastName.Text = objColl[0].LastName;
                    //hdnPatientId.Value = objpatient.PatientId.ToString();
                    lblReferralID.Text = refid.ToString(); ;
                   // lblAssignedPhysician.Text = objColl[0].AssignedPhysician;

                    string Date = string.Empty;
                    string Date3 = string.Empty;
                    lblDOB.Text = objColl[0].DOB;
                    lblEmail.Text = objColl[0].EmailId;
                    lblssn.Text = objColl[0].Last4SSN;
                    lblAddress.Text = objColl[0].Address1;
                    lblcity.Text = objColl[0].City;
                    lblState.Text = objColl[0].State;
                    lblZip.Text = objColl[0].Zipcode;
                    if (objColl[0].SelfPay.ToLower() == "yes")
                    {
                        lblInsurance.Text = "Self pay";
                    }
                    else if (objColl[0].SelfPay.ToLower() == "no")
                    {
                        lblInsurance.Text = objColl[0].PrimaryInsuranceCompany;
                    }
                    lblInsurance.Text = objColl[0].PrimaryInsuranceCompany;
                    //lblPrimary.Text = objColl[0].PrimaryFinancialClass;
                    lblCompanyname.Text = objColl[0].PrimaryInsuranceCompany;
                    lblPolicyName.Text = objColl[0].OriginalPolicyNumber;
                    lblPhone.Text = objColl[0].PhoneNumber;
                    lblAssignedPhysician.Text = objColl[0].AssignedPhysician;


                    lblRequestedBy.Text = objColl[0].ReferredByPhyscianOfficeName;
                    lblOdrPhysician.Text = objColl[0].AssignedPhyscianFirstName + " " + objColl[0].AssignedPhyscianLastName;
                    //lblOrderingOhysician.Text = objpatient.ReferredByPhyscianOfficeName; //objpatient.AssignedPhyscianFirstName + ' ' + objpatient.AssignedPhyscianLastName;
                    //lblReferredTo.Text = objColl[0].ReferredPhyscianFirstName + ' ' + objColl[0].ReferredPhyscianLastName + ',' + ' ' + objColl[0].PhyOfficeName;
                   // lblGroupNum.Text = objColl[0].GroupNumber;

                    if (objColl[0].ApptDateTimePref1 != "")
                    {
                        //string formatString = "yyyy-MM-dd";
                        //string sampledate = objpatient.ApptDateTimePref1;
                        //DateTime apptdate1 = DateTime.ParseExact(sampledate, formatString, null);
                        lblAppointmentDate.Text = objColl[0].ApptDateTimePref1;
                       
                    }
                    else
                    {
                        lblAppointmentDate.Text = objColl[0].ApptDateTimePref1;
                       
                    }
                    lblAppointmentTime.Text = objColl[0].ApptTime_Pref1;
                    lblAddAppointementNotes.Text = objColl[0].AddAppNotes;
                }
            }
        }
コード例 #26
0
         public void CareTeam(long patientid)
         {
             try
             {
                 List<HealthLogInfo> objColl = null;
                 if (patientid != 0)
                 {
                     string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                    var uri = Utility.GetServiceUrl("doctorvisit");

                    IgJObject postData = new IgJObject();
                    postData.Add("PatientID", patientid);
                    postData.Add("Pin", PinValue);

                    objColl = Utility.PostRequest<HealthLogInfo>(uri, postData.ToString(Formatting.None));
                     
                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/doctorvisit";
                    // var postData = "{\"PatientID\":\"" + patientid + "\",\"Pin\":\"" + PinValue + "\"}";
                    // objColl = Utility.PostRequest<HealthLogInfo>(uri, postData);
                     if (objColl.Count > 0)
                     {
                         gdvisits.DataSource = objColl;
                         gdvisits.DataBind();
                     }
                 }


             }
             catch (Exception exc)
             {

             }
         }
コード例 #27
0
        public void SaveDetails()
        {
            try
            {
                var uri = Utility.GetServiceUrl("updateencounter");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", PatientID);
                postData.Add("Pin", PIN);
                postData.Add("DoctorName", txt_doctor.Text);
                postData.Add("VisitReason", txt_Reason.Text);
                postData.Add("DoctorVisitId", EncounterID);
                postData.Add("Visitdate", txt_date.Text);
                postData.Add("UserId", Session["PhysicianID"].ToString());
                postData.Add("VisitDiagnosis", txt_Diagnoses.Text);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));

                //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/updateencounter";
                //var postData = "{\"PatientID\":\"" + PatientID + "\",\"Pin\":\"" + PIN + "\",\"DoctorName\":\"" + txt_doctor.Text + "\",
                //    \"VisitReason\":\"" + txt_Reason.Text + "\",\"DoctorVisitId\":\"" + EncounterID + "\",\"Visitdate\":\"" + txt_date.Text + "\",\"UserId\":\"" + Session["PhysicianID"] + "\",
                //    \"VisitDiagnosis\":\"" +txt_Diagnoses.Text + "\"}";
                //var res = Utility.PostRequestForSave(uri, postData);
                ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);

            }
            catch (Exception exc)
            {

            }

        }
コード例 #28
0
        public void SaveDetails()
        {
            try
            {
                var uri = Utility.GetServiceUrl("updateconditions");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", PatientID);
                postData.Add("Pin", PIN);
                postData.Add("Condition", hdndesc.Value);
                postData.Add("ConditionCheck", radioconditions.SelectedValue);
                postData.Add("ConditionID", ConditionID);
                postData.Add("DateOfOnset", dob.Text);
                postData.Add("History", inactivescience.Text);
                postData.Add("ICDCode", CodeConditions.Text);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));

                //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/updateconditions";
                //var postData = "{\"PatientID\":\"" + PatientID + "\",\"Pin\":\"" + PIN + "\",\"Condition\":\"" + hdndesc.Value + "\",\"ConditionCheck\":\"" + radioconditions.SelectedValue + "\",
                //    \"ConditionID\":\"" + ConditionID + "\",\"DateOfOnset\":\"" + dob.Text + "\",\"History\":\"" + inactivescience.Text + "\",\"ICDCode\":\"" + CodeConditions.Text + "\"}";
                //var res = Utility.PostRequestForSave(uri, postData);
                ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);

            }
            catch (Exception exc)
            {

            }

        }
コード例 #29
0
         public void BindReferrals(long patientid)
         {
             try
             {
                 List<Referral> objColl = null;
                 if (patientid != 0)
                 {
                     string PinValue = ConfigurationManager.AppSettings["Bridge_Base"];
                     var uri = Utility.GetServiceUrl("referralphp");

                    IgJObject postData = new IgJObject();
                    postData.Add("PatientID", patientid);
                    postData.Add("PhysicianID", Session["PhysicianID"].ToString());
                    postData.Add("Pin", PinValue);
                   

                    objColl = Utility.PostRequest<Referral>(uri, postData.ToString(Formatting.None));

                    //var uri = ConfigurationManager.AppSettings["serviceURL"] + "/referralphp";
                    // var postData = "{\"PatientID\":\"" + patientid + "\",\"PhysicianID\":\"" + Session["PhysicianID"] + "\",\"Pin\":\"" + PinValue + "\"}";
                    // objColl = Utility.PostRequest<Referral>(uri, postData);
                     if (objColl.Count > 0)
                     {
                     }

                 }


             }
             catch (Exception exc)
             {

             }
         }
コード例 #30
0
        public void SaveDetails()
        {
            try
            {
                var uri = Utility.GetServiceUrl("updatemedications");

                IgJObject postData = new IgJObject();
                postData.Add("PatientID", PatientID);
                postData.Add("Description", medications.Text);
                postData.Add("MedicationCheck", radioMedications.SelectedValue);
                postData.Add("MedicationID", MedicationID);
                postData.Add("Date", txtdate.Text);
                postData.Add("Dosage", dosage.Text);
                postData.Add("DosageUnits", drp_dosageunits.SelectedItem.Text);

                var res = Utility.PostRequestForSave(uri, postData.ToString(Formatting.None));

                ClientScript.RegisterStartupScript(GetType(), "scrpt", "parent.window.location.href=parent.window.location.href;", true);
            }
            catch (Exception exc)
            {

            }

        }