コード例 #1
0
        private void dateTimePicker1_ValueChanged_1(object sender, EventArgs e)
        {
            {
                SetPatientInformation();
                SetProviderInformation();

                Font header             = new Font("Bahnschrift Bold", 15);
                Font smallheader        = new Font("Bahnschrift Bold", 14);
                Font smallheadernonbold = new Font("Bahnschrift Light", 14);
                _ = new Font("Bahnschrift Light", 12);
                Font nonBoldHeader = new Font("Bahnschrift Light", 15);

                report.Clear();

                report.SelectionFont      = smallheadernonbold;
                report.SelectionAlignment = HorizontalAlignment.Left;
                report.SelectedText       = "Date: " + dateTimePicker1.Value.ToShortDateString() + "\n\n";


                report.SelectionAlignment = HorizontalAlignment.Center;
                report.SelectionFont      = header;
                report.SelectedText       = "Attending: " + AttendingPhysicianLabel.Text + "\n";
                report.SelectionFont      = nonBoldHeader;
                report.SelectedText       = PhysicianNumberLabel.Text + "\n\n";


                report.SelectionAlignment = HorizontalAlignment.Center;
                report.SelectedText       = "----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";
                report.SelectionAlignment = HorizontalAlignment.Left;


                //Add patient info
                report.SelectionAlignment = HorizontalAlignment.Center;
                report.SelectionFont      = smallheader;
                report.SelectedText       = PatientNameLabel.Text + " " + PatientNameValueLabel.Text + "\n";
                report.SelectionFont      = smallheadernonbold;
                report.SelectedText       = PhoneNumberLabel.Text + " " + PhoneNumberValueLabel.Text + "\n";



                report.SelectedText = "----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";
                report.SelectedText = "\n\n";


                report.SelectionAlignment = HorizontalAlignment.Left;



                SetScans(report, dateTimePicker1.Value);


                report.Size     = new Size(738, 1377);
                report.Location = new Point(14, 64);



                report.BorderStyle = BorderStyle.None;
            }
        }
コード例 #2
0
        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {
            Font header             = new Font("Bahnschrift Bold", 15);
            Font smallheader        = new Font("Bahnschrift Bold", 14);
            Font smallheadernonbold = new Font("Bahnschrift Light", 14);

            Font content       = new Font("Bahnschrift Light", 12);
            Font nonBoldHeader = new Font("Bahnschrift Light", 15);

            report.Clear();

            report.SelectedText = "Date: " + dateTimePicker1.Value.ToShortDateString() + "\n\n";

            SetProviderInformation();
            SetPatientInformation();

            report.BorderStyle = BorderStyle.None;
            report.Multiline   = true;
            report.ScrollBars  = RichTextBoxScrollBars.Vertical;

            report.SelectionFont = smallheadernonbold;
            report.SelectionFont = header;
            report.SelectedText  = (PatientNameLabel.Text + "\n");
            report.SelectionFont = nonBoldHeader;
            report.SelectedText  = PhoneNumberLabel.Text + "\n\n";


            //Add Attending info

            report.SelectionFont = smallheader;
            report.SelectedText  = "Attending: " + AttendingPhysicianLabel.Text + "\n";
            report.SelectionFont = content;
            report.SelectedText  = PhysicianNumberLabel.Text + "\n\n";

            //Add background info

            report.SelectionAlignment = HorizontalAlignment.Center;
            report.SelectedText       = "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";
            report.SelectionAlignment = HorizontalAlignment.Left;

            report.SelectionFont   = smallheader;
            report.SelectionIndent = 30;
            report.SelectedText    = "Patient Background Information" + "\n";

            report.SelectionIndent = 60;
            report.SelectionFont   = smallheadernonbold;
            report.SelectedText    = PatientGenderLabel.Text + "\n";
            report.SelectionFont   = smallheadernonbold;
            report.SelectedText    = MaritalStatusLabel.Text + "\n";
            report.SelectionFont   = smallheadernonbold;
            if (PatientGenderLabel.Text == "Female")
            {
                report.SelectedText = PregnantLabel.Text + "\n";
            }
            report.SelectionFont = smallheadernonbold;
            report.SelectedText  = PatientAgeLabel.Text + "\n";
            report.SelectionFont = smallheadernonbold;
            report.SelectedText  = (DOBLabel.Text) + "\n";
            report.SelectionFont = smallheadernonbold;
            report.SelectedText  = "\n";

            report.SelectionIndent    = 0;
            report.SelectionAlignment = HorizontalAlignment.Center;
            report.SelectedText       = "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";
            report.SelectionAlignment = HorizontalAlignment.Left;

            report.SelectionFont   = smallheader;
            report.SelectionIndent = 30;
            report.SelectedText    = "Patient Vitals" + "\n";
            report.SelectionFont   = smallheadernonbold;
            report.SelectionBullet = true;
            report.SelectionIndent = 60;
            report.SelectedText    = "Blood Pressure: " + BloodPressureValueLabel.Text + "\n";
            report.SelectionFont   = smallheadernonbold;
            report.SelectedText    = "Pulse: " + PulseValueLabel.Text + " \n";
            report.SelectionFont   = smallheadernonbold;
            report.SelectedText    = "Temperature: " + TemperatureValueLabel.Text + "\n";
            report.SelectionFont   = smallheadernonbold;
            report.SelectedText    = "Height: " + HeightValueLabel.Text + "\n";
            report.SelectionFont   = smallheadernonbold;
            report.SelectedText    = "Weight: " + WeightValueLabel.Text + "\n";
            report.SelectionFont   = smallheadernonbold;
            report.SelectedText    = "BMI: " + BMIValueLabel.Text + "\n";
            report.SelectionBullet = false;
            report.SelectedText    = "\n";

            report.SelectionIndent    = 0;
            report.SelectionAlignment = HorizontalAlignment.Center;
            report.SelectedText       = "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";
            report.SelectionAlignment = HorizontalAlignment.Left;
            report.SelectionFont      = smallheader;
            report.SelectionIndent    = 30;
            report.SelectedText       = "Problems List" + "\n";
            report.SelectionFont      = smallheadernonbold;
            SetProblems(report);

            report.SelectedText       = "\n";
            report.SelectionIndent    = 0;
            report.SelectionAlignment = HorizontalAlignment.Center;
            report.SelectedText       = "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";

            report.SelectionAlignment = HorizontalAlignment.Left;
            report.SelectionIndent    = 30;
            report.SelectionFont      = smallheader;
            report.SelectedText       = "Notes" + "\n";
            report.SelectionFont      = content;
            SetNotes(report);
            report.SelectedText = "\n";

            report.SelectionIndent    = 0;
            report.SelectionAlignment = HorizontalAlignment.Center;
            report.SelectedText       = "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";
            report.SelectionAlignment = HorizontalAlignment.Left;
            report.SelectionFont      = smallheader;
            report.SelectionIndent    = 30;
            report.SelectedText       = "Medication List" + "\n";
            SetMedications(report);

            report.SelectedText = "\n";



            report.Size     = new Size(738, 1377);
            report.Location = new Point(14, 64);
        }
コード例 #3
0
        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {
            report.Clear();
            SetProviderInformation();
            SetPatientInformation();

            Font header             = new Font("Bahnschrift Bold", 15);
            Font smallheader        = new Font("Bahnschrift Bold", 14);
            Font smallheadernonbold = new Font("Bahnschrift Light", 14);

            _ = new Font("Bahnschrift Light", 12);
            Font nonBoldHeader = new Font("Bahnschrift Light", 15);

            //Add Attending info
            report.SelectionAlignment = HorizontalAlignment.Center;
            report.SelectionFont      = smallheadernonbold;
            report.SelectedText       = "Date: " + dateTimePicker1.Value.ToShortDateString() + "\n";
            report.SelectionFont      = header;
            report.SelectedText       = "Attending: " + AttendingPhysicianLabel.Text + "\n";

            report.SelectionFont = nonBoldHeader;
            report.SelectedText  = PhysicianNumberLabel.Text + "\n\n";


            report.SelectionAlignment = HorizontalAlignment.Center;
            report.SelectedText       = "----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";
            report.SelectionAlignment = HorizontalAlignment.Left;


            //Add patient info
            report.SelectionAlignment = HorizontalAlignment.Center;
            report.SelectionFont      = smallheader;
            report.SelectedText       = PatientNameLabel.Text + " " + PatientNameValueLabel.Text + "\n";
            report.SelectionFont      = smallheadernonbold;
            report.SelectedText       = PhoneNumberLabel.Text + " " + PhoneNumberValueLabel.Text + "\n";



            report.SelectedText = "----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" + "\n";
            report.SelectedText = "\n\n         ";

            Clipboard.Clear();

            DataFormats.Format df = DataFormats.GetFormat(DataFormats.Bitmap);

            Image img;

            WebClient wc = new WebClient();

            byte[]       bytes = wc.DownloadData("https://i.etsystatic.com/13221305/r/il/62d971/1484186367/il_1588xN.1484186367_7h0c.jpg");
            MemoryStream ms    = new MemoryStream(bytes);

            img = System.Drawing.Image.FromStream(ms);


            //FromFile("C:/Users/coder/Source/Repos/lxa215/Shifaa-EMR-System/Shifaa EMR System/RxIcon.png");

            report.SelectionAlignment = HorizontalAlignment.Left;

            img = ResizeImage(img, new Size(104, 91));
            Clipboard.SetImage(img);
            report.Paste(df);

            Clipboard.Clear();



            report.SelectedText = "\n\n";


            SetMedications(report);


            report.Size     = new Size(738, 1377);
            report.Location = new Point(14, 64);



            report.BorderStyle = BorderStyle.None;
        }