コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string PatientId; 
            try
            {
                PatientId = Request.QueryString["PatientID"];
            }
            catch (Exception)
            {
                PatientId = string.Empty;
            }
            if(!string.IsNullOrEmpty(PatientId))
            {
                var formHandlerServiceClient = new FormHandlerServiceClient();
                var patientDetails = formHandlerServiceClient.GetPatientDetail(PatientId);
                if (patientDetails != null)
                {
                    LblPatientMRID.Text = patientDetails.MRHash;
                    LblPatientName.Text = patientDetails.name;
                    LblDate.Text = patientDetails.AdmDate.ToString("MM dd yyyy");
                    LblTime.Text = DateTime.Now.ToShortTimeString();
                    LblPatientName2.Text = patientDetails.name;
                    LblProcedureName.Text = patientDetails.ProcedureName;
                    var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId);
                    if (primaryDoctor != null)
                    {
                        LblPrimaryDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                        LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                    }

                    //var secondaryDoctor = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetails.PrimaryDoctorId);
                    //if (secondaryDoctor != null)
                        //LblAuthoriseDoctors.Text = secondaryDoctor.Fname + " , " + secondaryDoctor.Lname;

                    foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows)
                    {
                        LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                    }

                    ImgSignature1.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=1";
                    ImgSignature2.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=2";
                    ImgSignature3.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=3";
                    ImgSignature4.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=4";
                    ImgSignature5.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=5";
                    ImgPatientSignature.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=7";
                   
                }
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string PatientId;

            try
            {
                PatientId = Request.QueryString["PatientID"];
            }
            catch (Exception)
            {
                PatientId = string.Empty;
            }
            if (!string.IsNullOrEmpty(PatientId))
            {
                var formHandlerServiceClient = new FormHandlerServiceClient();
                var patientDetails           = formHandlerServiceClient.GetPatientDetail(PatientId);
                if (patientDetails != null)
                {
                    LblPatientMRID.Text   = patientDetails.MRHash;
                    LblPatientName.Text   = patientDetails.name;
                    LblDate.Text          = patientDetails.AdmDate.ToString("MM dd yyyy");
                    LblTime.Text          = DateTime.Now.ToShortTimeString();
                    LblPatientName2.Text  = patientDetails.name;
                    LblProcedureName.Text = patientDetails.ProcedureName;
                    var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId);
                    if (primaryDoctor != null)
                    {
                        LblPrimaryDoctor.Text    = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                        LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                    }

                    //var secondaryDoctor = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetails.PrimaryDoctorId);
                    //if (secondaryDoctor != null)
                    //LblAuthoriseDoctors.Text = secondaryDoctor.Fname + " , " + secondaryDoctor.Lname;

                    foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows)
                    {
                        LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                    }

                    ImgSignature1.ImageUrl       = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=1";
                    ImgSignature2.ImageUrl       = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=2";
                    ImgSignature3.ImageUrl       = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=3";
                    ImgSignature4.ImageUrl       = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=4";
                    ImgSignature5.ImageUrl       = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=5";
                    ImgPatientSignature.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=7";
                }
            }
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string patientId;

            try
            {
                patientId = Request.QueryString["PatientID"];
            }
            catch (Exception)
            {
                patientId = string.Empty;
            }
            if (!string.IsNullOrEmpty(patientId))
            {
                var formHandlerServiceClient = new FormHandlerServiceClient();
                var patientDetails           = formHandlerServiceClient.GetPatientDetail(patientId);
                if (patientDetails != null)
                {
                    var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId);
                    if (primaryDoctor != null)
                    {
                        //LblPrimaryDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                        LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                    }
                    LblPatientName2.Text  = patientDetails.name;
                    LblProcedureName.Text = patientDetails.ProcedureName;
                    foreach (
                        DataRow row in
                        formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows)
                    {
                        LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " +
                                                    row["Fname"].ToString().Trim();
                    }
                    ImgSignature1.ImageUrl  = "/GetImage.ashx?PatientId=" + patientId + "&Signature=1";
                    ImgSignature2.ImageUrl  = "/GetImage.ashx?PatientId=" + patientId + "&Signature=2";
                    ImgSignature3.ImageUrl  = "/GetImage.ashx?PatientId=" + patientId + "&Signature=3";
                    ImgSignature4.ImageUrl  = "/GetImage.ashx?PatientId=" + patientId + "&Signature=4";
                    ImgSignature5.ImageUrl  = "/GetImage.ashx?PatientId=" + patientId + "&Signature=5";
                    ImgSignature7.ImageUrl  = "/GetImage.ashx?PatientId=" + patientId + "&Signature=7";
                    ImgSignature8.ImageUrl  = "/GetImage.ashx?PatientId=" + patientId + "&Signature=8";
                    ImgSignature9.ImageUrl  = "/GetImage.ashx?PatientId=" + patientId + "&Signature=9";
                    ImgSignature10.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=10";
                    ImgSignature11.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=11";
                }
            }
        }
コード例 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     string patientId;
     try
     {
         patientId = Request.QueryString["PatientID"];
     }
     catch (Exception)
     {
         patientId = string.Empty;
     }
     if (!string.IsNullOrEmpty(patientId))
     {
         var formHandlerServiceClient = new FormHandlerServiceClient();
         var patientDetails = formHandlerServiceClient.GetPatientDetail(patientId);
         if (patientDetails != null)
         {
             var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId);
             if (primaryDoctor != null)
             {
                 //LblPrimaryDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                 LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
             }
             LblPatientName2.Text = patientDetails.name;
             LblProcedureName.Text = patientDetails.ProcedureName;
             foreach (
                 DataRow row in
                     formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows)
             {
                 LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " +
                                             row["Fname"].ToString().Trim();
             }
             ImgSignature1.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=1";
             ImgSignature2.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=2";
             ImgSignature3.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=3";
             ImgSignature4.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=4";
             ImgSignature5.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=5";
             ImgSignature7.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=7";
             ImgSignature8.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=8";
             ImgSignature9.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=9";
             ImgSignature10.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=10";
             ImgSignature11.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=11";
         }
     }
 }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    SetPanels(false);
                    if (Utilities.IsDevelopmentMode)
                    {
                        Session["PatientID"] = 1;
                    }

                    for (int i = 0; i < 7; i++)
                        ViewState["Signature" + i] = string.Empty;
                    string patientId = string.Empty;
                    try
                    {
                        patientId = Session["PatientID"].ToString();
                    }
                    catch (Exception)
                    {
                        try
                        {
                            patientId = Request.QueryString["PatientId"];
                        }
                        catch (Exception)
                        {
                            // Response.Redirect("/PatientConsent.aspx");
                        }
                    }
                    var formHandlerServiceClient = new FormHandlerServiceClient();
                    var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId, ConsentType.OutsideOR.ToString());
                    if (patientDetail != null)
                    {
                        LblPatientName.Text = patientDetail.name;
                        LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy");
                        LblPatientMRId.Text = patientDetail.MRHash;
                        LblTime.Text = DateTime.Now.ToShortTimeString();
                        LbldoctorName.Text = string.Empty;
                        if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId))
                        {
                            var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId);
                            if (doctorDetail != null)
                                LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname;
                            LblAssociateDoctors.Text = string.Empty;
                            foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows)
                            {
                                LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                                if (!string.IsNullOrEmpty(LblAssociateDoctors.Text))
                                    LblAssociateDoctors.Text += " , ";
                                LblAssociateDoctors.Text += row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                            }
                        }
                        LblProcedurename.Text = patientDetail.ProcedureName;
                    }
                }
            }
            catch (Exception)
            {
                return;
                //Response.Redirect("/PatientConsent.aspx");
            }
        }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    SetPanels(false);
                    if (Utilities.IsDevelopmentMode)
                    {
                        Session["PatientID"] = 1;
                    }

                    for (int i = 0; i < 7; i++)
                    {
                        ViewState["Signature" + i] = string.Empty;
                    }
                    string patientId = string.Empty;
                    try
                    {
                        patientId = Session["PatientID"].ToString();
                    }
                    catch (Exception)
                    {
                        try
                        {
                            patientId = Request.QueryString["PatientId"];
                        }
                        catch (Exception)
                        {
                            // Response.Redirect("/PatientConsent.aspx");
                        }
                    }
                    var formHandlerServiceClient = new FormHandlerServiceClient();
                    var patientDetail            = formHandlerServiceClient.GetPatientDetail(patientId);
                    if (patientDetail != null)
                    {
                        LblPatientName.Text = patientDetail.name;
                        LblDate.Text        = patientDetail.AdmDate.ToString("MMM dd yyyy");
                        LblPatientMRId.Text = patientDetail.MRHash;
                        LblTime.Text        = DateTime.Now.ToShortTimeString();
                        LbldoctorName.Text  = string.Empty;
                        if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId))
                        {
                            var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId);
                            if (doctorDetail != null)
                            {
                                LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname;
                            }
                            foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows)
                            {
                                LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                            }
                        }

                        //if (!string.IsNullOrEmpty(patientDetail.AssociatedDoctorId))
                        //{
                        //var doctorDetail = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetail.PrimaryDoctorId);
                        //if (doctorDetail != null)
                        //{
                        //    if (!string.IsNullOrEmpty(LbldoctorName.Text))
                        //        LbldoctorName.Text += "  ,  ";
                        //    LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname;
                        //}
                        //}
                        LblProcedurename.Text = patientDetail.ProcedureName;

                        //TxtPatientNotSignedBecause.Text = patientDetail.UnableToSignReason;

                        /*
                         *
                         * // Loading Signatures based on the selected patient
                         * ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature7");
                         * ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature8");
                         * ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature9");
                         * ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature10");
                         * ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature11");
                         */
                    }
                }
            }
            catch (Exception ex)
            {
                //Response.Redirect("/PatientConsent.aspx");
            }
        }
コード例 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string patientId;
            try
            {
                patientId = Request.QueryString["PatientID"];
            }
            catch (Exception)
            {
                patientId = string.Empty;
            }
            if (!string.IsNullOrEmpty(patientId))
            {
                var formHandlerServiceClient = new FormHandlerServiceClient();
                var patientDetails = formHandlerServiceClient.GetPatientDetail(patientId);
                if (patientDetails != null)
                {
                    var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId);
                    if (primaryDoctor != null)
                    {
                        LblAssociatedDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                        LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                    }
                    foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows)
                    {
                        LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " +
                                                    row["Fname"].ToString().Trim();
                    }

                    LblDOB.Text = DateTime.Now.ToString("MMM dd yyyy");
                    LblPatientAdminDate.Text = patientDetails.AdmDate.ToString("MMM dd yyyy");
                    LblPatientAdminTime.Text = patientDetails.AdmDate.ToLongTimeString();
                    LblPatientId.Text = patientId;
                    LblPatientMrHash.Text = patientDetails.MRHash;
                    LblPatientName.Text = patientDetails.name;
                    LblPatientName2.Text = patientDetails.name;
                    LblPatientUnableToSignBecause.Text = patientDetails.UnableToSignReason;
                    LblProcedureName.Text = patientDetails.ProcedureName;

                    LblSignatureDateTime.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString();
                    LblTranslatedDateTime.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString();
                    LblAuthorizedSignDateTime.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString();
                    LblAssociatedDoctorTimeStamp.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString();

                    LblDate.Text = DateTime.Now.ToString("MMM dd yyyy");
                    LblAge.Text = patientDetails.age.ToString();
                    LblGender.Text = patientDetails.gender;

                    ImgSignature1.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=1&ConsentType=OutsideORConsent";
                    ImgSignature2.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=2&ConsentType=OutsideORConsent";
                    ImgSignature3.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=3&ConsentType=OutsideORConsent";
                    ImgSignature4.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=4&ConsentType=OutsideORConsent";
                    ImgSignature5.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=5&ConsentType=OutsideORConsent";

                    if (!string.IsNullOrEmpty(LblPatientUnableToSignBecause.Text.Trim()))
                    {
                        PnlPatientSignature.Visible = false;

                        PnlPatientUnableToSignBecause.Visible = true;
                        PnlAuthorizedSignature.Visible = true;
                    }
                    else
                    {
                        PnlPatientSignature.Visible = true;

                        PnlPatientUnableToSignBecause.Visible = false;
                        PnlAuthorizedSignature.Visible = false;
                    }

                    ImgSignature6.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=7&ConsentType=OutsideORConsent";
                    ImgSignature7.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=8&ConsentType=OutsideORConsent";
                    ImgSignature8.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=9&ConsentType=OutsideORConsent";
                    ImgSignature9.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=10&ConsentType=OutsideORConsent";
                }
            }
        }
コード例 #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    SetPanels(false);
                    if (Utilities.IsDevelopmentMode)
                    {
                        Session["PatientID"] = 1;
                    }

                    for (int i = 0; i < 7; i++)
                    {
                        ViewState["Signature" + i] = string.Empty;
                    }
                    string patientId = string.Empty;
                    try
                    {
                        patientId = Session["PatientID"].ToString();
                    }
                    catch (Exception)
                    {
                        try
                        {
                            patientId = Request.QueryString["PatientId"];
                        }
                        catch (Exception)
                        {
                            // Response.Redirect("/PatientConsent.aspx");
                        }
                    }
                    var formHandlerServiceClient = new FormHandlerServiceClient();
                    var patientDetail            = formHandlerServiceClient.GetPatientDetail(patientId, ConsentType.OutsideOR.ToString());
                    if (patientDetail != null)
                    {
                        LblPatientName.Text = patientDetail.name;
                        LblDate.Text        = patientDetail.AdmDate.ToString("MMM dd yyyy");
                        LblPatientMRId.Text = patientDetail.MRHash;
                        LblTime.Text        = DateTime.Now.ToShortTimeString();
                        LbldoctorName.Text  = string.Empty;
                        if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId))
                        {
                            var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId);
                            if (doctorDetail != null)
                            {
                                LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname;
                            }
                            LblAssociateDoctors.Text = string.Empty;
                            foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows)
                            {
                                LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                                if (!string.IsNullOrEmpty(LblAssociateDoctors.Text))
                                {
                                    LblAssociateDoctors.Text += " , ";
                                }
                                LblAssociateDoctors.Text += row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                            }
                        }
                        LblProcedurename.Text = patientDetail.ProcedureName;
                    }
                }
            }
            catch (Exception)
            {
                return;
                //Response.Redirect("/PatientConsent.aspx");
            }
        }
コード例 #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    SetPanels(false);
                    if (Utilities.IsDevelopmentMode)
                    {
                        Session["PatientID"] = 1;
                    }

                    for (int i = 0; i < 7; i++)
                    {
                        ViewState["Signature" + i] = string.Empty;
                    }

                    string patientId = string.Empty;
                    try
                    {
                        patientId = Session["PatientID"].ToString();
                    }
                    catch (Exception)
                    {
                        try
                        {
                            patientId = Request.QueryString["PatientId"];
                        }
                        catch (Exception)
                        {
                            Response.Redirect("/PatientConsent.aspx");
                        }
                    }
                    var formHandlerServiceClient = new FormHandlerServiceClient();
                    var patientDetail            = formHandlerServiceClient.GetPatientDetail(patientId);
                    if (patientDetail != null)
                    {
                        LbldoctorName.Text = string.Empty;
                        if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId))
                        {
                            var doctorDetail =
                                formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId);
                            if (doctorDetail != null)
                            {
                                LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname;
                            }
                            LblAssociateDoctors.Text = string.Empty;
                            foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows)
                            {
                                LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();

                                //if (!string.IsNullOrEmpty(LblAssociateDoctors.Text))
                                //    LblAssociateDoctors.Text += " , ";
                                //LblAssociateDoctors.Text += row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                            }
                        }
                        LblProcedurename.Text = patientDetail.ProcedureName;

                        // Loading Signatures based on the selected patient

                        /*ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature7");
                         * ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature8");
                         * ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature9");
                         * ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature10");
                         * ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature11"); */
                    }
                }
                else
                {
                    for (int i = 1; i < 6; i++)
                    {
                        if (Request.Form["HdnImage" + i.ToString()] != null)
                        {
                            ViewState["Signature" + i.ToString()] = Request.Form["HdnImage" + i.ToString()];
                        }
                    }
                }
            }
            catch (Exception)
            {
                return;
                //Response.Redirect("/PatientConsent.aspx");
            }
        }
コード例 #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    SetPanels(false);
                    if (Utilities.IsDevelopmentMode)
                    {
                        Session["PatientID"] = 1;
                    }

                    for (int i = 0; i < 7; i++)
                        ViewState["Signature" + i] = string.Empty;

                    string patientId = string.Empty;
                    try
                    {
                        patientId = Session["PatientID"].ToString();
                    }
                    catch (Exception)
                    {
                        try
                        {
                            patientId = Request.QueryString["PatientId"];
                        }
                        catch (Exception)
                        {
                            Response.Redirect("/PatientConsent.aspx");
                        }
                    }
                    var formHandlerServiceClient = new FormHandlerServiceClient();
                    var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId);
                    if (patientDetail != null)
                    {
                        LbldoctorName.Text = string.Empty;
                        if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId))
                        {
                            var doctorDetail =
                                formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId);
                            if (doctorDetail != null)
                                LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname;
                            LblAssociateDoctors.Text = string.Empty;
                            foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows)
                            {
                                LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();

                                //if (!string.IsNullOrEmpty(LblAssociateDoctors.Text))
                                //    LblAssociateDoctors.Text += " , ";
                                //LblAssociateDoctors.Text += row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                            }
                        }
                        LblProcedurename.Text = patientDetail.ProcedureName;

                        // Loading Signatures based on the selected patient
                        /*ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature7");
                        ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature8");
                        ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature9");
                        ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature10");
                        ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature11"); */
                    }
                }
                else
                {
                    for (int i = 1; i < 6; i++)
                    {
                        if (Request.Form["HdnImage" + i.ToString()] != null)
                            ViewState["Signature" + i.ToString()] = Request.Form["HdnImage" + i.ToString()];
                    }
                }
            }
            catch (Exception)
            {
                return;
                //Response.Redirect("/PatientConsent.aspx");
            }
        }
コード例 #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string patientId;

            try
            {
                patientId = Request.QueryString["PatientID"];
            }
            catch (Exception)
            {
                patientId = string.Empty;
            }
            if (!string.IsNullOrEmpty(patientId))
            {
                var formHandlerServiceClient = new FormHandlerServiceClient();
                var patientDetails           = formHandlerServiceClient.GetPatientDetail(patientId);
                if (patientDetails != null)
                {
                    var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId);
                    if (primaryDoctor != null)
                    {
                        LblAssociatedDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                        LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname;
                    }
                    foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows)
                    {
                        LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " +
                                                    row["Fname"].ToString().Trim();
                    }

                    LblDOB.Text = DateTime.Now.ToString("MMM dd yyyy");
                    LblPatientAdminDate.Text           = patientDetails.AdmDate.ToString("MMM dd yyyy");
                    LblPatientAdminTime.Text           = patientDetails.AdmDate.ToLongTimeString();
                    LblPatientId.Text                  = patientId;
                    LblPatientMrHash.Text              = patientDetails.MRHash;
                    LblPatientName.Text                = patientDetails.name;
                    LblPatientName2.Text               = patientDetails.name;
                    LblPatientUnableToSignBecause.Text = patientDetails.UnableToSignReason;
                    LblProcedureName.Text              = patientDetails.ProcedureName;

                    LblSignatureDateTime.Text         = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString();
                    LblTranslatedDateTime.Text        = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString();
                    LblAuthorizedSignDateTime.Text    = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString();
                    LblAssociatedDoctorTimeStamp.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString();

                    LblDate.Text   = DateTime.Now.ToString("MMM dd yyyy");
                    LblAge.Text    = patientDetails.age.ToString();
                    LblGender.Text = patientDetails.gender;

                    ImgSignature1.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=1&ConsentType=OutsideORConsent";
                    ImgSignature2.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=2&ConsentType=OutsideORConsent";
                    ImgSignature3.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=3&ConsentType=OutsideORConsent";
                    ImgSignature4.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=4&ConsentType=OutsideORConsent";
                    ImgSignature5.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=5&ConsentType=OutsideORConsent";

                    if (!string.IsNullOrEmpty(LblPatientUnableToSignBecause.Text.Trim()))
                    {
                        PnlPatientSignature.Visible = false;

                        PnlPatientUnableToSignBecause.Visible = true;
                        PnlAuthorizedSignature.Visible        = true;
                    }
                    else
                    {
                        PnlPatientSignature.Visible = true;

                        PnlPatientUnableToSignBecause.Visible = false;
                        PnlAuthorizedSignature.Visible        = false;
                    }

                    ImgSignature6.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=7&ConsentType=OutsideORConsent";
                    ImgSignature7.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=8&ConsentType=OutsideORConsent";
                    ImgSignature8.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=9&ConsentType=OutsideORConsent";
                    ImgSignature9.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=10&ConsentType=OutsideORConsent";
                }
            }
        }
コード例 #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    SetPanels(false);
                    if (Utilities.IsDevelopmentMode)
                    {
                        Session["PatientID"] = 1;
                    }

                    for (int i = 0; i < 7; i++)
                        ViewState["Signature" + i] = string.Empty;
                    string patientId = string.Empty;
                    try
                    {
                        patientId = Session["PatientID"].ToString();
                    }
                    catch (Exception)
                    {
                        try
                        {
                            patientId = Request.QueryString["PatientId"];
                        }
                        catch (Exception)
                        {
                            // Response.Redirect("/PatientConsent.aspx");
                        }
                    }
                    var formHandlerServiceClient = new FormHandlerServiceClient();
                    var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId);
                    if (patientDetail != null)
                    {
                        LblPatientName.Text = patientDetail.name;
                        LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy");
                        LblPatientMRId.Text = patientDetail.MRHash;
                        LblTime.Text = DateTime.Now.ToShortTimeString();
                        LbldoctorName.Text = string.Empty;
                        if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId))
                        {
                            var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId);
                            if (doctorDetail != null)
                                LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname;
                            foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows)
                            {
                                LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim();
                            }
                        }

                        //if (!string.IsNullOrEmpty(patientDetail.AssociatedDoctorId))
                        //{
                        //var doctorDetail = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetail.PrimaryDoctorId);
                        //if (doctorDetail != null)
                        //{
                        //    if (!string.IsNullOrEmpty(LbldoctorName.Text))
                        //        LbldoctorName.Text += "  ,  ";
                        //    LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname;
                        //}
                        //}
                        LblProcedurename.Text = patientDetail.ProcedureName;

                        //TxtPatientNotSignedBecause.Text = patientDetail.UnableToSignReason;
                        /*

                        // Loading Signatures based on the selected patient
                        ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature7");
                        ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature8");
                        ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature9");
                        ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature10");
                        ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature11");
                         */
                    }
                }
            }
            catch (Exception ex)
            {
                //Response.Redirect("/PatientConsent.aspx");
            }
        }