Exemple #1
0
        public DischargeEpicrisisReportBuilder(ConnectionFactory factory, Config config, Patient patient)
            : base(ReportBuilderId.DischargeEpicrisis)
        {
            using (GmConnection conn = factory.CreateConnection())
            {
                AddParameter("Age", patient.GetAgeStr(conn));
                AddParameter("PatientName", patient.GetPatientName(conn));
                AddParameter("DoctorName", patient.GetDoctorName(conn));
                AddParameter("ChiefName", patient.GetChiefName(conn));
                GenderId genderId = patient.GetGender(conn);
                AddParameter("EndingOi", GenderUtils.GetEndingOi(genderId));
                AddParameter("EndingA", GenderUtils.GetEndingA(genderId));
                AddParameter("Treatment", patient.GetTreatment(conn));
                AddParameter("PatientExamination", patient.GetExamination(conn));
                AddParameter("PatientStateDynamics", patient.GetPatientStateDynamics(conn));
            }

            AddParameter("Department", config.DepartmentFullName);
            AddParameter("AdmissionDiagnosis", patient.patientDiagnoses.admissionDiagnosis);
            AddParameter("FinalDiagnosis", patient.patientDiagnoses.clinicalDiagnosis);
            AddParameter("Complication", patient.patientDiagnoses.complicationDiagnosis);
            AddParameter("GeneralCondition", patient.patientDescription);
            AddParameter("Coverlet", patient.patientDescription);
            AddParameter("SystolicBloodPressure", patient.patientDescription);
            AddParameter("DiastolicBloodPressure", patient.patientDescription);
            AddParameter("HeartRate", patient.patientDescription);
            AddParameter("RespiratoryRate", patient.patientDescription);
        }
Exemple #2
0
 public PatientDescriptionReportBuilder(ConnectionFactory factory, Config config, Patient patient)
     : base(ReportBuilderId.PatientDescription)
 {
     AddDataSource("ReportsDataSet_Prescriptions", PrescriptionsReportBuilder.GetPrescriptionsTable(factory, patient.Id));
     AddHandbooksInfo(patient.patientDescription, config[HandbookGroupId.PatientDescription]);
     AddHandbooksInfo(patient.patientData, config[HandbookGroupId.PatientData]);
     using (GmConnection conn = factory.CreateConnection())
     {
         AddParameter("Age", patient.GetAgeStr(conn));
         AddParameter("DoctorName", patient.GetDoctorName(conn));
         AddParameter("ChiefName", patient.GetChiefName(conn));
         AddParameter("PatientName", patient.GetPatientName(conn));
         GenderId genderId = patient.GetGender(conn);
         AddParameter("EndingOi", GenderUtils.GetEndingOi(genderId));                //2	Больн(ой) (-ая)
         AddParameter("EndingA", GenderUtils.GetEndingA(genderId));
         AddParameter("EndingGo", GenderUtils.GetEndingGo(genderId));
         AddParameter("PatientSex", GenderUtils.GetGender(genderId));
         AddParameter("Analyses", patient.GetAnalysesList(conn));
         AddParameter("Examinations", patient.GetExamination(conn));                         //80 Обследования
     }
     AddParameter("DescriptionTime", patient.patientData.descriptionTime, "dd.MM.yy HH:mm"); //1 Дата и время жалоб
     AddParameter("AdmissionDiagnosis", patient.patientDiagnoses.admissionDiagnosis);        //3	Предварительный диагноз
     AddParameter("SickListStartDate", patient.patientData.sickListStartDate);               //15 Дата начала больничного
     AddParameter("DepartmentName", config.departmentConfig.departmentName);
     AddParameter("HospitalName", config.departmentConfig.hospitalName);
     AddParameter("PulseShortage", GetPulseShortage(patient.patientDescription));
     AddParameter("ECGData", patient.patientData["ECG"]);
 }
        public DischargeReportBuilder(ConnectionFactory factory, Config config, Patient patient)
            : base(ReportBuilderId.Discharge)
        {
            using (GmConnection conn = factory.CreateConnection())
            {
                AddParameter("Age", patient.GetAgeStr(conn));
                AddParameter("PatientName", patient.GetPatientName(conn));
                AddParameter("DoctorName", patient.GetDoctorName(conn));
                AddParameter("ChiefName", patient.GetChiefName(conn));
                AddParameter("Address", patient.GetAddress(conn));
                GenderId genderId = patient.GetGender(conn);
                AddParameter("EndingOi", GenderUtils.GetEndingOi(genderId));
                AddParameter("EndingA", GenderUtils.GetEndingA(genderId));
                AddParameter("Treatment", patient.GetTreatment(conn));
                AddParameter("PatientInvestigation", patient.GetAnalysesReport(conn, config));
                AddParameter("PatientExamination", patient.GetExamination(conn));
                AddParameter("PatientStateDynamics", patient.GetPatientStateDynamics(conn));
            }

            AddHandbooksInfo(patient.patientData, config[HandbookGroupId.PatientData]);

            AddParameter("Department", config.DepartmentFullName);
            AddParameter("AdmissionDiagnosis", patient.patientDiagnoses.admissionDiagnosis);
            AddParameter("FinalDiagnosis", patient.patientDiagnoses.finalDiagnosis);
            AddParameter("GeneralCondition", patient.patientDescription);
            AddParameter("Coverlet", patient.patientDescription);
            AddParameter("SystolicBloodPressure", patient.patientDescription);
            AddParameter("DiastolicBloodPressure", patient.patientDescription);
            AddParameter("HeartRate", patient.patientDescription);
            AddParameter("RespiratoryRate", patient.patientDescription);
            AddParameter("AdmissionDate", patient.admissionDate);
            AddParameter("DischargeDate", patient.dischargeDate);
            AddParameter("Breath", patient.patientDescription);
            AddParameter("HeartSounds", patient.patientDescription);
            AddParameter("AbdomenPalpation", patient.patientDescription);
            AddParameter("Liver", patient.patientDescription);
            AddParameter("Spleen", patient.patientDescription);
            AddParameter("LumbarKnocking", patient.patientDescription);
            AddParameter("Hypostases", patient.patientDescription);
            AddParameter("Complaints", patient.patientDescription);
            AddParameter("Pulse", patient.patientDescription);
            AddParameter("Complication", patient.patientDiagnoses.complicationDiagnosis);
            AddParameter("ÑoncomitantDiagnosis", patient.patientDiagnoses.concomitantDiagnosis);
            AddParameter("RecommendationsToCardiologist", patient.dischargeData);
        }
Exemple #4
0
        public PostmortalEpicrisisReportBuilder(ConnectionFactory factory, Config config, Patient patient)
			: base(ReportBuilderId.PostmortalEpicrisis)
		{
			using (GmConnection conn = factory.CreateConnection())
			{
				GenderId genderId = patient.GetGender(conn);
				AddParameter("Age", patient.GetAgeStr(conn));
				AddParameter("PatientName", patient.GetPatientName(conn));
				AddParameter("DoctorName", patient.GetDoctorName(conn));
				AddParameter("ChiefName", patient.GetChiefName(conn));
				AddParameter("EndingOi", GenderUtils.GetEndingOi(genderId));
				AddParameter("EndingA", GenderUtils.GetEndingA(genderId));
				AddParameter("Treatment", patient.GetTreatment(conn));
				AddParameter("PatientInvestigation", patient.GetAnalysesList(conn));
				AddParameter("PatientExamination", patient.GetExamination(conn));
				AddParameter("PatientStateDynamics", patient.GetPatientStateDynamics(conn));
			}
  			AddHandbooksInfo(patient.dischargeData, config[HandbookGroupId.Postmortal]);
			AddParameter("Department", config.DepartmentFullName);
			AddParameter("AdmissionDiagnosis", patient.patientDiagnoses.admissionDiagnosis);
			AddParameter("FinalDiagnosis", patient.patientDiagnoses.finalDiagnosis);
			AddParameter("Complication", patient.patientDiagnoses.complicationDiagnosis);
			AddParameter("GeneralCondition", patient.patientDescription);
			AddParameter("Coverlet", patient.patientDescription);
			AddParameter("SystolicBloodPressure", patient.patientDescription);
			AddParameter("DiastolicBloodPressure", patient.patientDescription);
			AddParameter("HeartRate", patient.patientDescription);
			AddParameter("RespiratoryRate", patient.patientDescription);

/*			ArrayList ar=new ArrayList(parameters);
			foreach (KeyValuePair<string,string> pair in ar)
			{
				if (pair.Value.Trim().Length == 0)
				{
					parameters[pair.Key]= "-";
				}
			}	*/		
		}