public PatientIdentificationReportBuilder(ConnectionFactory factory, Config config, Patient patient)
            : base(ReportBuilderId.PatientIdentification)
        {
            AddDataSource("ReportsDataSet_Dummy", new ReportsDataSet.DummyDataTable());
            PatientIdentification patientIdentification;

            using (GmConnection conn = factory.CreateConnection())
            {
                AddParameter("DoctorName", patient.GetDoctorName(conn));
                AddParameter("ChiefName", patient.GetChiefName(conn));
                patientIdentification = patient.GetPatientIdentification(conn);
            }
            if (patientIdentification == null)
            {
                patientIdentification = new PatientIdentification();
            }
            AddHandbooksInfo(patientIdentification.identificationData, config[HandbookGroupId.PatientIdentification]);
            AddParameter("PatientName", patientIdentification.PatientName);
            AddParameter("Birthday", patientIdentification.birthday);
            AddParameter("Date", DateTime.Today.ToString("dd.MM.yy"));
            AddParameter("DepartmentFullName", config.DepartmentFullName);
            AddParameter("AdmissionDate", patient.admissionDate.ToString("dd.MM.yy"));
            AddParameter("LPUChief", config.departmentConfig.headDoctor);//ֳכאגם�י גנאק ֻֿ׃
            base.ReplaceEmptyStrings("-");
        }
Exemplo n.º 2
0
 public PatientAdmissionForm(Patient patient)
 {
     InitializeComponent();
     using (WaitCursor wc = new WaitCursor())
     {
         this.patient = patient;
         using (GmConnection conn = App.CreateConnection())
         {
             passport              = patient.GetPassport(conn);
             insurance             = patient.GetInsurance(conn);
             patientIdentification = patient.GetPatientIdentification(conn);
         }
         if (passport == null)
         {
             passport = new Passport();
         }
         if (insurance == null)
         {
             insurance = new Insurance();
         }
         if (patientIdentification == null)
         {
             patientIdentification = new PatientIdentification();
         }
         ucPassport.Init(passport);
         ucInsurance.Init(insurance);
         ucPatientIdentification.Init(patientIdentification);
         ucPatientData.Init(patient);
         ucPatientDescription.Init(patient.patientDescription);
         ucPrescriptions.Init(patient);
         ucDiagnoses.Init(patient);
         ucAnalyses.Init(patient);
     }
     FormUtils.Init(this);
 }
 public void Init(PatientIdentification patientIdentification)
 {
     this.patientIdentification = patientIdentification;
 }