コード例 #1
0
ファイル: CReports.cs プロジェクト: govtmirror/REVAMP
    public bool GenerateProviderHTMLReport(CDataConnection DBConn,
                                           BaseMaster Mastr,
                                           string strPatientID,
                                           string strEncounterID,
                                           int nReportType,
                                           bool bAltLang,
                                           HtmlGenericControl divFlagReview)
    {
        CPatientPP cpt = new CPatientPP();
        DataSet    ds  = cpt.GetReportDS(Mastr, strEncounterID, strPatientID, nReportType);

        //this div holds all the flag info for the report
        divFlagReview.InnerHtml = "";

        if (this.HasProviderReportFlags(ds))//do not show flag stuff if no flags
        {
            #region build a header
            //build a header.........
            string strHeader = "";

            //strHeader += "Report for " + strPatInfo;
            strHeader += "This report is provided for your attention. ";
            strHeader += "The HRA has gathered, scored, interpreted and is now reporting ";
            strHeader += "your participant's self-reported responses. The patient reports the following:";
            strHeader += "<br><br>";

            divFlagReview.InnerHtml += strHeader;
            #endregion

            ////////////////////////////////////////////////////
            //critical - only show if we have good flags
            //this will let us use the same report for all types
            //of flags fired by assessments
            ///////////////////////////////////////////////////
            #region Critical flags
            string strCritFlags = GetFlags(ds, nReportType, 3);
            if (strCritFlags.Length > 2)
            {
                divFlagReview.InnerHtml += GetProviderCriticalPara(bAltLang);
                divFlagReview.InnerHtml += "<br><br><br>";
                //critical
                divFlagReview.InnerHtml += "<ul>";
                divFlagReview.InnerHtml += "<li>" + strCritFlags + "</li>";
                divFlagReview.InnerHtml += "</ul>";
                divFlagReview.InnerHtml += "<br><br>";
            }
            #endregion

            ////////////////////////////////////////////////////
            //cardiovasc - only show if we have good flags
            //this will let us use the same report for all types
            //of flags fired by assessments
            ///////////////////////////////////////////////////
            #region Cardio flags
            string strCVFlags = GetFlags(ds, nReportType, 4);
            if (strCVFlags.Length > 2)
            {
                divFlagReview.InnerHtml += GetProviderCardiovascularRiskPara(bAltLang);
                divFlagReview.InnerHtml += "<br><br><br>";
                //CV
                divFlagReview.InnerHtml += "<ul>";
                divFlagReview.InnerHtml += "<li>" + strCVFlags + "</li>";
                divFlagReview.InnerHtml += "</ul>";
                divFlagReview.InnerHtml += "<br><br>";
            }
            #endregion

            ////////////////////////////////////////////////////
            //high - only show if we have good flags
            //this will let us use the same report for all types
            //of flags fired by assessments
            ///////////////////////////////////////////////////
            #region High flags
            string strHIGHFlags = GetFlags(ds, nReportType, 2);
            if (strHIGHFlags.Length > 2)
            {
                divFlagReview.InnerHtml += GetProviderHighPara(bAltLang);
                divFlagReview.InnerHtml += "<br><br><br>";
                //
                divFlagReview.InnerHtml += "<ul>";
                divFlagReview.InnerHtml += "<li>" + strHIGHFlags + "</li>";
                divFlagReview.InnerHtml += "</ul>";
                divFlagReview.InnerHtml += "<br><br>";
            }
            #endregion

            ///////////////////////////////////////////////////
            //all flags by topic
            ///////////////////////////////////////////////////
            divFlagReview.InnerHtml += GetProviderTopicFlags(ds, nReportType, bAltLang);


            #region Privacy statement
            divFlagReview.InnerHtml += "<font size=\"-2\"><br/>";
            divFlagReview.InnerHtml += "Privacy Act of 1974, 5 U.S.C 552a, \"No agency shall disclose any record which is ";
            divFlagReview.InnerHtml += "contained in a system of records by any means of communication to any person, or to ";
            divFlagReview.InnerHtml += "another agency, except pursuant to a written request by, or with the prior written ";
            divFlagReview.InnerHtml += "consent of, the individual to whom the record pertains.\"</font>";
            #endregion
        }

        return(true);
    }
コード例 #2
0
ファイル: CReports.cs プロジェクト: govtmirror/REVAMP
    public bool GenerateProviderReport(BaseMaster BaseMstr,
                                       string strPatientID,
                                       string strEncounterID,
                                       long lEncounterIntakeID,
                                       bool bAltLang,
                                       HtmlGenericControl divFlagReview)
    {
        CEncounterIntakePP EncounterIntake = new CEncounterIntakePP(BaseMstr);
        DataSet            ds = EncounterIntake.GetEncounterIntakeFlags(strEncounterID, lEncounterIntakeID);

        if (ds == null)
        {
            return(false);
        }

        //this div holds all the flag info for the report
        divFlagReview.InnerHtml = "";

        if (this.HasProviderReportFlags(ds))//do not show flag stuff if no flags
        {
            //build a header.........
            string strHeader = "";

            //use the user type to determine the type of report to display
            if (BaseMstr.APPMaster.UserType == 2)
            {
                strHeader += "Provider ";
            }
            else if (BaseMstr.APPMaster.UserType == 3)
            {
                strHeader += "Nurse ";
            }

            //get the patient dataset
            CPatientPP pat             = new CPatientPP();
            string     strDemographics = "";
            pat.GetDemographicsString(BaseMstr, strPatientID, out strDemographics);

            strHeader += "Report for " + strDemographics;

            strHeader += ". This report is provided for your attention. ";
            strHeader += "The HRA has gathered, scored, interpreted and is now reporting ";
            strHeader += "your participant's self-reported responses. The patient reports the following:";
            strHeader += "<br><br>";

            divFlagReview.InnerHtml += strHeader;

            ////////////////////////////////////////////////////
            //critical - only show if we have good flags
            //this will let us use the same report for all types
            //of flags fired by assessments
            ///////////////////////////////////////////////////

            //

            string strCritFlags = GetFlags(ds, BaseMstr.APPMaster.UserType, 3);
            if (strCritFlags.Length > 2)
            {
                divFlagReview.InnerHtml += GetProviderCriticalPara(bAltLang);
                divFlagReview.InnerHtml += "<br><br><br>";
                //critical
                divFlagReview.InnerHtml += strCritFlags;
                divFlagReview.InnerHtml += "<br><br>";
            }
            //////////////////////////////////////////////////

            ////////////////////////////////////////////////////
            //cardiovasc - only show if we have good flags
            //this will let us use the same report for all types
            //of flags fired by assessments
            ///////////////////////////////////////////////////
            string strCVFlags = GetFlags(ds, BaseMstr.APPMaster.UserType, 4);
            if (strCVFlags.Length > 2)
            {
                divFlagReview.InnerHtml += GetProviderCardiovascularRiskPara(bAltLang);
                divFlagReview.InnerHtml += "<br><br><br>";
                //CV
                divFlagReview.InnerHtml += strCVFlags;
                divFlagReview.InnerHtml += "<br><br>";
            }

            ////////////////////////////////////////////////////
            //high - only show if we have good flags
            //this will let us use the same report for all types
            //of flags fired by assessments
            ///////////////////////////////////////////////////
            string strHIGHFlags = GetFlags(ds, BaseMstr.APPMaster.UserType, 2);
            if (strHIGHFlags.Length > 2)
            {
                divFlagReview.InnerHtml += GetProviderHighPara(bAltLang);
                divFlagReview.InnerHtml += "<br><br><br>";
                //
                divFlagReview.InnerHtml += strHIGHFlags;
                divFlagReview.InnerHtml += "<br><br>";
            }

            ///////////////////////////////////////////////////
            //all flags by topic
            divFlagReview.InnerHtml += GetProviderTopicFlags(ds, BaseMstr.APPMaster.UserType, bAltLang);
            ///////////////////////////////////////////////////

            divFlagReview.InnerHtml += "<font size=\"-2\"><br/>";
            divFlagReview.InnerHtml += "Privacy Act of 1974, 5 U.S.C 552a, \"No agency shall disclose any record which is ";
            divFlagReview.InnerHtml += "contained in a system of records by any means of communication to any person, or to ";
            divFlagReview.InnerHtml += "another agency, except pursuant to a written request by, or with the prior written ";
            divFlagReview.InnerHtml += "consent of, the individual to whom the record pertains.\"</font>";
        }

        return(true);
    }