private void ucSelectReport_OnShowReport(object sender, HospitalDepartment.UserControls.SelectReportEventArgs e)
        {
            if (patient != null)
            {
                switch (BaseReportBuilder.GetReportBuilderId(e.Report.ReportBuilderId))
                {
                case ReportBuilderId.Discharge:
                    e.ReportBuilder = new DischargeReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;

                case ReportBuilderId.DischargeEpicrisis:
                    e.ReportBuilder = new DischargeEpicrisisReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;

                case ReportBuilderId.DepartmentTransferEpicrisis:
                    e.ReportBuilder = new DepartmentTransferEpicrisisReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;

                case ReportBuilderId.SanatoriumTransferEpicrisis:
                    e.ReportBuilder = new SanatoriumTransferEpicrisisReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;

                case ReportBuilderId.PostmortalEpicrisis:
                    e.ReportBuilder = new PostmortalEpicrisisReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;
                }
            }
        }
Beispiel #2
0
 private void ucSelectReport_OnShowReport(object sender, HospitalDepartment.UserControls.SelectReportEventArgs e)
 {
     if (patient != null)
     {
         switch (BaseReportBuilder.GetReportBuilderId(e.Report.ReportBuilderId))
         {
         case ReportBuilderId.Observations:
             e.ReportBuilder = new ObservationsReportBuilder(App.ConnectionFactory, App.Config, patient);
             break;
         }
     }
 }
        private void ucSelectReport_OnShowReport(object sender, HospitalDepartment.UserControls.SelectReportEventArgs e)
        {
            PatientConsultation patientConsultation = GetPatientConsultation();

            if (patientConsultation != null)
            {
                switch (BaseReportBuilder.GetReportBuilderId(e.Report.ReportBuilderId))
                {
                case ReportBuilderId.ConsultationRequest:
                    e.ReportBuilder = new ConsultationRequestReportBuilder(App.ConnectionFactory, App.Config, patient, patientConsultation);
                    break;
                }
            }
        }
Beispiel #4
0
        private void ucSelectReport_OnShowReport(object sender, HospitalDepartment.UserControls.SelectReportEventArgs e)
        {
            ExpertBoard expertBoard = GetExpertBoard();

            if (expertBoard != null)
            {
                switch (BaseReportBuilder.GetReportBuilderId(e.Report.ReportBuilderId))
                {
                case ReportBuilderId.ExpertBoard:
                    e.ReportBuilder = new ExpertBoardReportBuilder(App.ConnectionFactory, App.Config, patient, expertBoard);
                    break;
                }
            }
        }
        private void ucSelectReport_OnShowReport(object sender, HospitalDepartment.UserControls.SelectReportEventArgs e)
        {
            Patient patient = SelectedPatient;

            if (patient != null)
            {
                switch (BaseReportBuilder.GetReportBuilderId(e.Report.ReportBuilderId))
                {
                case ReportBuilderId.PatientIdentification:
                    e.ReportBuilder = new PatientIdentificationReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;

                case ReportBuilderId.PatientDescription:
                    e.ReportBuilder = new PatientDescriptionReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;

                case ReportBuilderId.Prescriptions:
                    e.ReportBuilder = new PrescriptionsReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;

                case ReportBuilderId.Observations:
                    e.ReportBuilder = new ObservationsReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;

                case ReportBuilderId.TemperatureCard:
                    e.ReportBuilder = new TemperatureCardReportBuilder(App.ConnectionFactory, App.Config, patient, 0);
                    break;

                case ReportBuilderId.AnalysisRequest:
                    e.ReportBuilder = new AnalysisRequestReportBuilder(App.ConnectionFactory, App.Config, patient, 0);
                    break;

                case ReportBuilderId.AnalysisResult:
                    e.ReportBuilder = new AnalysisResultReportBuilder(App.ConnectionFactory, App.Config, patient, 0);
                    break;

                case ReportBuilderId.PatientMedicaments:
                    e.ReportBuilder = new PatientMedicamentsReportBuilder(App.ConnectionFactory, App.Config, patient);
                    break;
                }
            }
        }
Beispiel #6
0
        private void ucSelectReport_OnShowReport(object sender, HospitalDepartment.UserControls.SelectReportEventArgs e)
        {
            int id = SelectedId;

            if (id != 0)
            {
                Document doc = null;
                using (GmConnection conn = App.CreateConnection())
                {
                    doc = Document.GetDocument(conn, id);
                }
                if (doc != null)
                {
                    switch (BaseReportBuilder.GetReportBuilderId(e.Report.ReportBuilderId))
                    {
                    case ReportBuilderId.PrescriptionsOrder:
                        e.ReportBuilder = new PrescriptionsOrderReportBuilder(App.ConnectionFactory, App.Config, doc);
                        break;
                    }
                }
            }
        }