⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 patientoverviewreport.aspx.cs

📁 医疗决策支持系统
💻 CS
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

using System.Data.SqlClient;

using Caisis.Security;	
using Caisis.Controller;
using Caisis.DataAccess;
using Caisis.BusinessObject;

using Caisis.UI.Core.Classes;

namespace Caisis.UI.Modules.All.Reports
{
	/// <summary>
	/// Summary description for PatientOverviewReport.
	/// </summary>
	
	public class PatientOverviewReport : BasePage
	{
		//Constant set to determine when to start the next HPI column based on the number of rows KR
		protected static int NumHpiRowsAllowed = 10;

		protected string patientName;
		protected string reportTitle;

		protected Label preRPNomo, preXRTNomo, preBrachyNomo, postRP2yrNomo, postRP5yrNomo, postRP7yrNomo;
		protected Repeater rptHPI, rptAllergies, rptMedications, rptComorbidities, rptNarrator, rptNarrative;

		protected Repeater rptChrono;
		protected int recordCount;
		protected string chronListName = "ListCommon";


		protected System.Web.UI.HtmlControls.HtmlContainerControl ReportContentBody;
		
		override protected void Page_Load(object sender, System.EventArgs e)
		{
			if(Session[SessionKey.PatientId] != null && !Session[SessionKey.PatientId].ToString().Equals(""))
			{
				int patientID = (int)Session[SessionKey.PatientId];
			
				SecurityController sc = new SecurityController();
				string userName = sc.GetUserName();

				reportTitle = "Patient Summary Report";
				patientName = Session[SessionKey.PtFirstName].ToString() + " " + Session[SessionKey.PtLastName].ToString() + "&nbsp;&nbsp;&nbsp;MRN:&nbsp;" + Session[SessionKey.PtMRN].ToString() + "&nbsp;&nbsp;&nbsp;&nbsp;" + System.DateTime.Now;

				//Narrator
				NarrativeDa narrativeDa  = new NarrativeDa();
				DataSet narratorDs	   = narrativeDa.GetRecords(patientID);
				rptNarrator.DataSource = narratorDs.Tables[0].DefaultView;
				rptNarrator.DataBind();
				//Narrative
				//DataSet narrativeDs	= narrativeDa.GetRecords(patientID);
				//rptNarrative.DataSource = narrativeDs.Tables[0].DefaultView;
				//rptNarrative.DataBind();
						
				//Allergies
				AllergyDa allergyDa		= new AllergyDa();
				DataSet allergiesDs		= allergyDa.GetRecords(patientID);
				rptAllergies.DataSource = allergiesDs.Tables[0].DefaultView;
				rptAllergies.DataBind();
			
				//Medications
				MedicationDa medDa		= new MedicationDa();
				DataSet medDs			= medDa.GetRecords(patientID);
				rptMedications.DataSource = medDs.Tables[0].DefaultView;
				rptMedications.DataBind();
			
				//Comorbidities
				ComorbidityDa comDa		= new ComorbidityDa();
				DataSet comDs			= comDa.GetRecords(patientID);
				rptComorbidities.DataSource = comDs.Tables[0].DefaultView;
				rptComorbidities.DataBind();

				//HPI SUmmary
				PatientDa hpiDa = new PatientDa();
				DataSet hpiDs = hpiDa.GetPatientHPI(patientID, 1, 1);
				//DataSet hpiDs = DataAccessHelper.GetList(phiCom);
				rptHPI.DataSource = hpiDs.Tables[0].DefaultView;
				rptHPI.DataBind();
				//nomograms are in a second result set
				preRPNomo.Text = hpiDs.Tables[1].Rows[0]["preRPNomo"].ToString();
				preXRTNomo.Text = hpiDs.Tables[1].Rows[0]["preXRTNomo"].ToString();
				preBrachyNomo.Text = hpiDs.Tables[1].Rows[0]["preBrachyNomo"].ToString();
				postRP2yrNomo.Text = hpiDs.Tables[1].Rows[0]["postRP2yrNomo"].ToString();
				postRP5yrNomo.Text = hpiDs.Tables[1].Rows[0]["postRP5yrNomo"].ToString();
				postRP7yrNomo.Text = hpiDs.Tables[1].Rows[0]["postRP7yrNomo"].ToString();
		
			
				//Chron List: displays most relevant/common list
				ChronoDa da = new ChronoDa();
				DataSet ds  = da.GetChronoList(patientID, chronListName, User.Identity.Name);
		
				rptChrono.DataSource = ds.Tables[0].DefaultView;
				rptChrono.DataBind();
				recordCount = ds.Tables[0].Rows.Count;
			}
			else // no patient in session
			{
				patientName = "Please select a patient before generating this report.";
			}
			
			ReportContentBody.Attributes.Add("onLoad","top.DataAnalysisContainer.setFormTitle('"+this.reportTitle+"');");
			//OLD:ReportContentBody.Attributes.Add("onLoad","top.ReportContainer.setFormTitle('"+this.reportTitle+"');top.ReportContainer.MM_showHideLayers('buttonsLayer','','show');");

		}
	}

}

	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -