コード例 #1
0
    protected bool UpdateSubjectiveNote()
    {
        CSoapp soapp         = new CSoapp();
        string strSubjective = txtSubjective.Text.Trim();

        return(soapp.updtSubjective(BaseMstr,
                                    BaseMstr.SelectedEncounterID,
                                    BaseMstr.SelectedTreatmentID,
                                    strSubjective));
    }
コード例 #2
0
    protected bool UpdateAssessmentNote()
    {
        CSoapp soapp         = new CSoapp();
        string strAssessment = txtAssessment.Text.Trim();

        bool bUpdtAssessment = soapp.updtAssessment(BaseMstr,
                                                    BaseMstr.SelectedEncounterID,
                                                    BaseMstr.SelectedTreatmentID,
                                                    strAssessment,
                                                    0,
                                                    String.Empty,
                                                    0
                                                    );

        return(bUpdtAssessment);
    }
コード例 #3
0
    //runs when user presses the master save button in the app
    protected void MasterSave()
    {
        if (BaseMstr.IsPatientLocked)
        {
            string strBMComment = "<img alt=\"\" src=\"Images/lock16x16.png\" /> <b>Read-Only Access</b>: ";
            strBMComment          += "The patient's record is in use by " + Session["PAT_LOCK_PROVIDER"].ToString() + ".";
            BaseMstr.StatusCode    = 1;
            BaseMstr.StatusComment = strBMComment;
            ShowSysFeedback();
            return;
        }

        DataSet ds = (DataSet)Session["ENCOUNTERDS"];

        CDataUtils utils = new CDataUtils();

        long lCaseClosed      = utils.GetLongValueFromDS(ds, "CASE_CLOSED");
        long lEncounterClosed = utils.GetLongValueFromDS(ds, "CLOSED");

        bNoteLocked = (lEncounterClosed == 1);

        CSoapp soapp = new CSoapp();

        if (tabContSOAP.ActiveTab == btnSubjective)//subjective
        {
            if (lROSubjective > (long)RightMode.ReadOnly)
            {
                UpdateSubjectiveNote();
            }

            if (lROSubjective == (long)RightMode.ReadOnly)
            {
                BaseMstr.StatusCode    = 1;
                BaseMstr.StatusComment = "<img alt=\"\" src=\"Images/lock16x16.png\" /> You have <b>Read-Only Access</b> to this section.";
            }
        }

        if (tabContSOAP.ActiveTab == btnObjective)//objective
        {
            if (lROObjective > (long)RightMode.ReadOnly)
            {
                UpdateObjectiveNote();
            }

            if (lROObjective == (long)RightMode.ReadOnly)
            {
                BaseMstr.StatusCode    = 1;
                BaseMstr.StatusComment = "<img alt=\"\" src=\"Images/lock16x16.png\" /> You have <b>Read-Only Access</b> to this section.";
            }
        }

        if (tabContSOAP.ActiveTab == btnAssessment)//assessment
        {
            if (lROAssessment > (long)RightMode.ReadOnly)
            {
                long lDLC = 0;
                UpdateAssessmentNote();
            }

            if (lROAssessment == (long)RightMode.ReadOnly)
            {
                BaseMstr.StatusCode    = 1;
                BaseMstr.StatusComment = "<img alt=\"\" src=\"Images/lock16x16.png\" /> You have <b>Read-Only Access</b> to this section.";
            }
        }

        //TIU SUPPORT
        //they saved the note so update the text that
        //will go to tiu
        if (BaseMstr.APPMaster.TIU)
        {
            GetTIUNote();
        }

        // save session time
        soapp.updtSessionTime(BaseMstr,
                              BaseMstr.SelectedEncounterID,
                              BaseMstr.SelectedTreatmentID,
                              "N/A",
                              txtSessionTime.Text);

        //soapp.updtTreatmentPlan(BaseMstr,
        //                        BaseMstr.SelectedPatientID,
        //                        BaseMstr.SelectedEncounterID,
        //                        BaseMstr.SelectedTreatmentID);

        //get the data for this encounter
        Session["ENCOUNTERDS"] = enc.GetEncounterDS(BaseMstr,
                                                    BaseMstr.SelectedPatientID,
                                                    BaseMstr.SelectedTreatmentID,
                                                    BaseMstr.SelectedEncounterID);

        DisableSOAPNote();

        ShowSysFeedback();
    }