Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

The Making of a Doctor
The Making of a Doctor
The Making of a Doctor
Ebook1,301 pages21 hours

The Making of a Doctor

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Part Two of Java coding formulated by Segun using hundreds of pre-defined MySQL queries to query (or question) the GP databases created by Segun, the physician, of his consultations.
LanguageEnglish
Release dateJan 12, 2022
ISBN9781982284985
The Making of a Doctor

Read more from Julius Adebiyi Sodipo

Related to The Making of a Doctor

Related ebooks

Medical For You

View More

Related articles

Reviews for The Making of a Doctor

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    The Making of a Doctor - Julius Adebiyi Sodipo

    Copyright © 2022 Julius Adebiyi Sodipo.

    All rights reserved. No part of this book may be used or reproduced by any means, graphic, electronic, or mechanical, including photocopying, recording, taping or by any information storage retrieval system without the written permission of the author except in the case of brief quotations embodied in critical articles and reviews.

    Balboa Press

    A Division of Hay House

    1663 Liberty Drive

    Bloomington, IN 47403

    www.balboapress.co.uk

    UK TFN: 0800 0148647 (Toll Free inside the UK)

    UK Local: (02) 0369 56325 (+44 20 3695 6325 from outside the UK)

    Because of the dynamic nature of the Internet, any web addresses or links contained in this book may have changed since publication and may no longer be valid. The views expressed in this work are solely those of the author and do not necessarily reflect the views of the publisher, and the publisher hereby disclaims any responsibility for them.

    The author of this book does not dispense medical advice or prescribe the use of any technique as a form of treatment for physical, emotional, or medical problems without the advice of a physician, either directly or indirectly. The intent of the author is only to offer information of a general nature to help you in your quest for emotional and spiritual well-being. In the event you use any of the information in this book for yourself, which is your constitutional right, the author and the publisher assume no responsibility for your actions.

    Any people depicted in stock imagery provided by Getty Images are models, and such images are being used for illustrative purposes only.

    Certain stock imagery © Getty Images.

    ISBN: 978-1-9822-8499-2 (sc)

    ISBN: 978-1-9822-8497-8 (hc)

    ISBN: 978-1-9822-8498-5 (e)

    Balboa Press rev. date:   01/12/2022

    CONTENTS

    Dedication

    Appreciation

    Aim

    Introduction

    Experience of a solo GP (virtually) Practice in suburban England (Java coding) Part 2

    DEDICATION

    I dedicate this book to my four sons:

    Julius Adedeji, John Adesola, Isaac Adetokunbo and Johnson Adeyinka;

    their mother Gloria Adanma;

    to the memory of my:

    father’s father Papa (Chief) Isaac Omolaja Sodipo;

    father’s mother Madam Bilewunmi-omo Sodipo (alias Iya Ita-oloti);

    mother’s mother Nee Alice Aina Ero-Phillips (alias Iya Alakara);

    mother Madam (Chief) Harriet Olufunke Ibidunni Sodipo

    father, Dr (Chief) John Adewunmi Akanbi Sodipo.

    APPRECIATION

    I will like to thank my wife, Gloria Adanma (Nee Okoroafor), for showing fleeting interests during the production of the whole project and to thank my son, Isaac Adetokunbo, for editing and proof-reading the book.

    AIM

    Any proceeds from the sale(s) or distribution of this book should be used in setting up a Fund, which should be invested in a safe investment. This fund should be called Dr Julius Adebiyi Sodipo’s Fund.

    All the proceeds being generated from the sale of the book (or project) as well as all the proceeds from his estate should be deposited as Capital into the fund. The managers of the Estate Fund should not get more than 10% of the income generated by the Fund each year. The proceeds in the Fund should be invested in a relatively safe investment and what is generated should be called the Fund Income.

    So, should any of the remaining of my estate, after deduction of any debts and taxes should be added to the Dr Julius Adebiyi Sodipo’s Fund. The monies in the fund should be distributed from time to time occasionally but regularly to my biological grandchildren, biological great grandchildren, biological great great grandchildren, and biological generations yet to be born with no conditions attached. For example, for those who are eligible i.e., my biological descendants, 30 percent of the yearly income should be distributed equally yearly rather than 5 percent monthly. Those who are managing the Fund and its distribution should receive 5 to 10 percent of the yearly income, as appropriate to use in maintaining the fund and as their fees.

    The remaining 90% (or 95%) of the yearly income generated by the Estate Fund, reiterated here, should be equally divided between the biological posterity of Dr Julius Adebiyi Sodipo for generations to come including those yet unborn for as long as possible as far as the Estate exists.

    The division of the Estate Fund’s income should be as follows:

    Each member of his (my) biological posterity should get their own share from the age of 30 years old until the age of 55 years old, or they are no longer alive if this should happen earlier. As reiterated earlier their own share should be given to them yearly or more frequently if the managers feel it is in the best interest of the recipient to do so.

    An independent legal firm (team) mutually agreeable to most of the stakeholders must be employed. The legal firm is to ensure the smooth running by the Fund Managers, to ensure that the managers keep to the protocol set out above or not to significantly deviate from it. The legal team should receive 5% of the yearly income of the fund as their renumeration.

    INTRODUCTION

    This idea and realism of writing this book came to me to write a brief overview of Segun as a teenager in his country of birth of Nigeria and to travel through his journey from then until about his retirement as a doctor. There will be inevitable gaps, for which Segun whole-heartedly apologises. A sizeable amount is allocated to life before his university days. There is a noticeable abrupt end and allocation of the book towards his experience as a medical student. This is done on purpose in view of the way Segun felt and still feels being unfairly treated towards the end of his period as a student in the University.

    Efforts to introduce his experiences as a doctor are deliberate and apologies for any perceived idea of turning the contents of the book to more of science. Segun feels this is necessary to be able to show his experiences and knowledge as a medical doctor.

    268297.png

    EXPERIENCE OF A SOLO

    GP (VIRTUALLY) PRACTICE

    IN SUBURBAN ENGLAND

    (JAVA CODING) PART 2

            private void btnNewRecordActionPerformed(java.awt.event.ActionEvent evt) {

                    // TODO add your handling code here:

                    try {

                            curRow = rs.getRow();

                            textSurgeryDate.setText();

                            textDateOfBirth.setText();

                            textSex.setText();

                            textDiagnosis.setText();

                            textTimeIn.setText();

                            textTimeOut.setText();

                            textComplaints.setText();

                            textTreatments.setText();

                            textInitials.setText();

                            textNotes.setText();

                            btnFirst.setEnabled(false);

                            btnPrevious.setEnabled(false);

                            btnNext.setEnabled(false);

                            btnLast.setEnabled(false);

                            btnUpdateRecord.setEnabled(false);

                            btnDelete.setEnabled(false);

                            btnNewRecord.setEnabled(false);

                            btnSaveRecord.setEnabled(true);

                            btnCancelNewRecord.setEnabled(true);

                    } catch (SQLException err) {

                            System.out.println(err.getMessage());

                    }

            }

            private void btnSaveRecordActionPerformed(java.awt.event.ActionEvent evt) {

                    // TODO add your handling code here:

                    String surgery_date = textSurgeryDate.getText();

                    String date_of_birth = textDateOfBirth.getText();

                    String sex = textSex.getText();

                    String diagnosis = textDiagnosis.getText();

                    //int time_in = rs.getInt();

                    String TimeIn = textTimeIn.getText();

                    //int time_out = rs.getInt(TimeOut);

                    String TimeOut = textTimeOut.getText();

                    String complaints = textComplaints.getText();

                    String treatments = textTreatments.getText();

                    String numbersID = textInitials.getText();

                    String notes = textNotes.getText();

                    int newtime_in = Integer.parseInt(TimeIn);

                    int newtime_out = Integer.parseInt(TimeOut);

                    try {

                            rs.moveToInsertRow();

                            rs.updateString(SurgeryDate, surgery_date);

                            rs.updateString(DateOfBirth, date_of_birth);

                            rs.updateString(Sex, sex);

                            rs.updateString(Diagnosis, diagnosis);

                            rs.updateInt(TimeIn, newtime_in);

                            rs.updateInt(TimeOut, newtime_out);

                            rs.updateString(Complaints, complaints);

                            rs.updateString(Treatments, treatments);

                            rs.updateString(NumbersID, numbersID);

                            rs.updateString(Notes, notes);

                            rs.insertRow();

                            stmt.close();

                            rs.close();

                            //stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,

    ResultSet.CONCUR_UPDATABLE);

                            stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

                            String SQL = SELECT * FROM march2006;

                            rs = stmt.executeQuery(SQL);

                            rs.next();

                            String surgery_date2 = rs.getString(SurgeryDate);

                            String date_of_birth2 = rs.getString(DateOfBirth);

                            String sex2 = rs.getString(Sex);

                            String diagnosis2 = rs.getString(Diagnosis);

                            int time_in = rs.getInt(TimeIn);

                            String TimeIn2 = Integer.toString(time_in);

                            int time_out = rs.getInt(TimeOut);

                            String TimeOut2 = Integer.toString(time_out);

                            /*String time_in = rs.getString(TimeIn);

                            String time_out = rs.getString(TimeOut);*/

                            String complaints2 = rs.getString(Complaints);

                            String treatments2 = rs.getString(Treatments);

                            String numbersID2 = rs.getString(NumbersID);

                            String notes2 = rs.getString(Notes);

                            textSurgeryDate.setText(rs.getString(surgery_date2));

                            textDateOfBirth.setText(rs.getString(date_of_birth2));

                            textSex.setText(rs.getString(sex2));

                            textDiagnosis.setText(rs.getString(diagnosis2));

                            textTimeIn.setText(Integer.toString(rs.getInt(TimeIn2)));

                            textTimeOut.setText(Integer.toString(rs.getInt(TimeOut2)));

                            textComplaints.setText(rs.getString(complaints2));

                            textTreatments.setText(rs.getString(treatments2));

                            textInitials.setText(rs.getString(numbersID2));

                            textNotes.setText(rs.getString(notes2));

                            btnFirst.setEnabled(true);

                            btnPrevious.setEnabled(true);

                            btnNext.setEnabled(true);

                            btnLast.setEnabled(true);

                            btnUpdateRecord.setEnabled(true);

                            btnDelete.setEnabled(true);

                            btnNewRecord.setEnabled(true);

                            btnSaveRecord.setEnabled(false);

                            btnCancelNewRecord.setEnabled(false);

                    } catch (SQLException err) {

                            System.out.println(err.getMessage());

                    }

            }

            private void btnCancelNewRecordActionPerformed(java.awt.event.ActionEvent evt) {

                    // TODO add your handling code here:

                    try {

                            rs.absolute(curRow);

                            textSurgeryDate.setText(rs.getString(SurgeryDate));

                            textDateOfBirth.setText(rs.getString(DateOfBirth));

                            textSex.setText(rs.getString(Sex));

                            textDiagnosis.setText(rs.getString(Diagnosis));

                            textTimeIn.setText(Integer.toString(rs.getInt(TimeIn)));

                            textTimeOut.setText(Integer.toString(rs.getInt(TimeOut)));

                            textComplaints.setText(rs.getString(Complaints));

                            textTreatments.setText(rs.getString(Treatments));

                            textInitials.setText(rs.getString(NumbersID));

                            textNotes.setText(rs.getString(Notes));

                            btnFirst.setEnabled(true);

                            btnPrevious.setEnabled(true);

                            btnNext.setEnabled(true);

                            btnLast.setEnabled(true);

                            btnUpdateRecord.setEnabled(true);

                            btnDelete.setEnabled(true);

                            btnNewRecord.setEnabled(true);

                            btnSaveRecord.setEnabled(false);

                            btnCancelNewRecord.setEnabled(false);

                    } catch (SQLException err) {

                            System.out.println(err.getMessage());

                    }

            }

            public void DoConnect() {

                    try {

                            //CONNECT TO THE DATABASE

                            String host = jdbc:mysql://localhost:3306/july_surgery_consultations;

                            String uName = root;

                            String uPass = 97531;

                            con = DriverManager.getConnection(host, uName, uPass);

                            //EXECUTE SOME SQL AND LOAD THE RECORDS INTO THE RESULTSET

                            stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);

                            //Query();

                            //String SQL = ;

                            //SQL = SQLa;

                            //SQL = SELECT * FROM july2015 WHERE Diagnosis = ‘URTI’ UNION SELECT * FROM july2014 WHERE Diagnosis = ‘URTI’;

                            SQL = SELECT * FROM july2011 ORDER BY TimeOut DESC LIMIT 50;

                            //SQL = query[16];

                            rs = stmt.executeQuery(SQL);

                            //String itemText = (String)comboOne.getSelectedItem();

                            //txtComboBoxItem.setText(itemText);

                            //MOVE THE CURSOR TO THE FIRST RECORD AND GET THE DATA

                            rs.next();

                            String surgery_date = rs.getString(SurgeryDate);

                            String date_of_birth = rs.getString(DateOfBirth);

                            String sex = rs.getString(Sex);

                            String diagnosis = rs.getString(Diagnosis);

                            int time_in = rs.getInt(TimeIn);

                            String TimeIn = Integer.toString(time_in);

                            int time_out = rs.getInt(TimeOut);

                            String TimeOut = Integer.toString(time_out);

                            /*String time_in = rs.getString(TimeIn);

                            String time_out = rs.getString(TimeOut);*/

                            String complaints = rs.getString(Complaints);

                            String treatments = rs.getString(Treatments);

                            //String numbersID = rs.getString(NumbersID);

                            String initials = rs.getString(Initials);

                            String notes = rs.getString(Notes);

                            //DISPLAY THE FIRST RECORD IN THE TEXT FIELDS

                            textSurgeryDate.setText(surgery_date);

                            textDateOfBirth.setText(date_of_birth);

                            textSex.setText(sex);

                            textDiagnosis.setText(diagnosis);

                            textTimeIn.setText(TimeIn);

                            textTimeOut.setText(TimeOut);

                            textComplaints.setText(complaints);

                            textTreatments.setText(treatments);

                            //textNumbersID.setText(numbersID);

                            textInitials.setText(initials);

                            textNotes.setText(notes);

                    } catch (SQLException err) {

                            JOptionPane.showMessageDialog(JavaJuly2006_July2015_Surgery_Consultations2.this, err.getMessage());

                    }

            }

    Java June 1997 to June 2005 Surgery Consultations 2.java

    /*

      * To change this license header, choose License Headers in Project Properties.

      * To change this template file, choose Tools | Templates

      * and open the template in the editor.

      */

    package jJune1997_June2005_Surgery_Consultations2;

    import java.sql.Connection;

    import java.sql.DriverManager;

    import java.sql.SQLException;

    import java.sql.Statement;

    import java.sql.ResultSet;

    import javax.swing.JOptionPane;

    public class JavaJune1997_June2005_Surgery_Consultations2 extends javax.swing.JFrame {

            String SQLa = ;

            String SQL = ;

            Connection con;

            Statement stmt;

            ResultSet rs;

            int curRow = 0;

            int m = 0;

            int n = 0;

            int i = 0;

            int u = 0;

            boolean Year2002Present;

            String[] sqlResult;

            String[] query;

            public JavaJune1997_June2005_Surgery_Consultations2() {

                    initComponents();

                    DoConnect();

                    QueryResult();

                    FirstRecordNumber();

            }

            /**

              * This method is called from within the constructor to initialize the form.

              * WARNING: Do NOT modify this code. The content of this method is always

              * regenerated by the Form Editor.

              */

            @SuppressWarnings(unchecked)

            // collapsed desc=Generated Code>

            private void initComponents() {

                    jPanel1 = new javax.swing.JPanel();

                    textSurgeryDate = new javax.swing.JTextField();

                    textDateOfBirth = new javax.swing.JTextField();

                    textSex = new javax.swing.JTextField();

                    textDiagnosis = new javax.swing.JTextField();

                    textTimeIn = new javax.swing.JTextField();

                    textTimeOut = new javax.swing.JTextField();

                    jScrollPane1 = new javax.swing.JScrollPane();

                    textComplaints = new javax.swing.JTextArea();

                    textNumbersID = new javax.swing.JTextField();

                    jScrollPane2 = new javax.swing.JScrollPane();

                    textTreatments = new javax.swing.JTextArea();

                    jScrollPane3 = new javax.swing.JScrollPane();

                    textNotes = new javax.swing.JTextArea();

                    jLabel1 = new javax.swing.JLabel();

                    jLabel2 = new javax.swing.JLabel();

                    jLabel3 = new javax.swing.JLabel();

                    jLabel4 = new javax.swing.JLabel();

                    jLabel5 = new javax.swing.JLabel();

                    jLabel6 = new javax.swing.JLabel();

                    jLabel7 = new javax.swing.JLabel();

                    jLabel8 = new javax.swing.JLabel();

                    jLabel9 = new javax.swing.JLabel();

                    jLabel10 = new javax.swing.JLabel();

                    jScrollPane4 = new javax.swing.JScrollPane();

                    textQueryResult = new javax.swing.JTextArea();

                    jLabel12 = new javax.swing.JLabel();

                    jPanel2 = new javax.swing.JPanel();

                    btnFirst = new javax.swing.JButton();

                    btnPrevious = new javax.swing.JButton();

                    btnNext = new javax.swing.JButton();

                    btnLast = new javax.swing.JButton();

                    jPanel3 = new javax.swing.JPanel();

                    btnUpdateRecord = new javax.swing.JButton();

                    btnDelete = new javax.swing.JButton();

                    btnNewRecord = new javax.swing.JButton();

                    btnSaveRecord = new javax.swing.JButton();

                    btnCancelNewRecord = new javax.swing.JButton();

                    jLabel11 = new javax.swing.JLabel();

                    textRecordNumber = new javax.swing.JTextField();

                    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

                    textSex.setName(); // NOI18N

                    textComplaints.setColumns(20);

                    textComplaints.setFont(new java.awt.Font(Monospaced, 1, 13)); // NOI18N

                    textComplaints.setLineWrap(true);

                    textComplaints.setRows(5);

                    textComplaints.setWrapStyleWord(true);

                    jScrollPane1.setViewportView(textComplaints);

                    textNumbersID.setName(); // NOI18N

                    textTreatments.setColumns(20);

                    textTreatments.setFont(new java.awt.Font(Monospaced, 1, 13)); // NOI18N

                    textTreatments.setLineWrap(true);

                    textTreatments.setRows(5);

                    textTreatments.setWrapStyleWord(true);

                    jScrollPane2.setViewportView(textTreatments);

                    textNotes.setColumns(20);

                    textNotes.setFont(new java.awt.Font(Monospaced, 1, 13)); // NOI18N

                    textNotes.setLineWrap(true);

                    textNotes.setRows(5);

                    textNotes.setWrapStyleWord(true);

                    jScrollPane3.setViewportView(textNotes);

                    jLabel1.setText(Surgery Date);

                    jLabel2.setText(Date Of Birth);

                    jLabel3.setText(Sex);

                    jLabel4.setText(Diagnosis);

                    jLabel5.setText(Time In);

                    jLabel6.setText(Time Out);

                    jLabel7.setText(Numbers ID);

                    jLabel8.setText(Complaints);

                    jLabel9.setText(Treatments);

                    jLabel10.setText(Notes);

                    textQueryResult.setColumns(20);

                    textQueryResult.setFont(new java.awt.Font(Monospaced, 1, 13)); // NOI18N

                    textQueryResult.setLineWrap(true);

                    textQueryResult.setRows(5);

                    textQueryResult.setWrapStyleWord(true);

                    textQueryResult.setAutoscrolls(false);

                    textQueryResult.setName(textQueryResult); // NOI18N

                    jScrollPane4.setViewportView(textQueryResult);

                    jLabel12.setFont(new java.awt.Font(Tahoma, 1, 12)); // NOI18N

                    jLabel12.setText(Query Result);

                    btnFirst.setText(First);

                    btnFirst.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnFirstActionPerformed(evt);

                            }

                    });

                    btnPrevious.setText(Previous);

                    btnPrevious.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnPreviousActionPerformed(evt);

                            }

                    });

                    btnNext.setText(Next);

                    btnNext.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnNextActionPerformed(evt);

                            }

                    });

                    btnLast.setText(Last);

                    btnLast.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnLastActionPerformed(evt);

                            }

                    });

                    btnUpdateRecord.setText(Update Record);

                    btnUpdateRecord.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnUpdateRecordActionPerformed(evt);

                            }

                    });

                    btnDelete.setText(Delete Record);

                    btnDelete.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnDeleteActionPerformed(evt);

                            }

                    });

                    btnNewRecord.setText(New Record);

                    btnNewRecord.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnNewRecordActionPerformed(evt);

                            }

                    });

                    btnSaveRecord.setText(Save New Record);

                    btnSaveRecord.setEnabled(false);

                    btnSaveRecord.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnSaveRecordActionPerformed(evt);

                            }

                    });

                    btnCancelNewRecord.setText(Cancel New Record);

                    btnCancelNewRecord.setEnabled(false);

                    btnCancelNewRecord.addActionListener(new java.awt.event.ActionListener() {

                            public void actionPerformed(java.awt.event.ActionEvent evt) {

                                    btnCancelNewRecordActionPerformed(evt);

                            }

                    });

                    jLabel11.setFont(new java.awt.Font(Tahoma, 1, 12)); // NOI18N

                    jLabel11.setText(Record Number);

                    textRecordNumber.setName(textRecordNumber); // NOI18N

                    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);

                    jPanel3.setLayout(jPanel3Layout);

                    jPanel3Layout.setHorizontalGroup(

                            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                            .addGroup(jPanel3Layout.createSequentialGroup()

                                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                            .addGroup(jPanel3Layout.createSequentialGroup()

                                                    .addContainerGap()

                                                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                            .addComponent(btnSaveRecord)

                                                            .addGroup(jPanel3Layout.createSequentialGroup()

                                                                    .addComponent(btnUpdateRecord)

                                                                    .addGap(73, 73, 73)

                                                                    .addComponent(btnDelete)))

                                                    .addGap(115, 115, 115)

                                                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                            .addComponent(btnCancelNewRecord)

                                                            .addComponent(btnNewRecord)))

                                            .addGroup(jPanel3Layout.createSequentialGroup()

                                                    .addGap(75, 75, 75)

                                                    .addComponent(textRecordNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                    .addGap(48, 48, 48)

                                                    .addComponent(jLabel11)))

                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

                    );

                    jPanel3Layout.setVerticalGroup(

                            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                            .addGroup(jPanel3Layout.createSequentialGroup()

                                    .addContainerGap()

                                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                            .addGroup(jPanel3Layout.createSequentialGroup()

                                                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)

                                                            .addComponent(btnUpdateRecord)

                                                            .addComponent(btnNewRecord))

                                                    .addGap(29, 29, 29))

                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()

                                                    .addComponent(btnDelete)

                                                    .addGap(18, 18, 18)))

                                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)

                                            .addComponent(btnSaveRecord)

                                            .addComponent(btnCancelNewRecord))

                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)

                                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                            .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING)

                                            .addComponent(textRecordNumber, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))

                                    .addContainerGap())

                    );

                    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);

                    jPanel2.setLayout(jPanel2Layout);

                    jPanel2Layout.setHorizontalGroup(

                            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                            .addGroup(jPanel2Layout.createSequentialGroup()

                                    .addContainerGap()

                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                            .addGroup(jPanel2Layout.createSequentialGroup()

                                                    .addComponent(btnFirst)

                                                    .addGap(84, 84, 84)

                                                    .addComponent(btnPrevious)

                                                    .addGap(116, 116, 116)

                                                    .addComponent(btnNext)

                                                    .addGap(128, 128, 128)

                                                    .addComponent(btnLast)

                                                    .addGap(0, 187, Short.MAX_VALUE))

                                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

                                    .addContainerGap())

                    );

                    jPanel2Layout.setVerticalGroup(

                            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                            .addGroup(jPanel2Layout.createSequentialGroup()

                                    .addGap(19, 19, 19)

                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)

                                            .addComponent(btnFirst)

                                            .addComponent(btnPrevious)

                                            .addComponent(btnNext)

                                            .addComponent(btnLast))

                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)

                                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))

                    );

                    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);

                    jPanel1.setLayout(jPanel1Layout);

                    jPanel1Layout.setHorizontalGroup(

                            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                            .addGroup(jPanel1Layout.createSequentialGroup()

                                    .addContainerGap()

                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)

                                                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                                    .addGroup(jPanel1Layout.createSequentialGroup()

                                                                            .addGroup(jPanel1Layout.createParallel

    Group(javax.swing.GroupLayout.Alignment.LEADING)

                                                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)

                                                                                            .addComponent(textSurgeryDate, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)

                                                                                            .addComponent(textDateOfBirth))

                                                                                    .addComponent(jLabel2)

                                                                                    .addComponent(jLabel3))

                                                                            .addGap(18, 18, 18)

                                                                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))

                                                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()

                                                                            .addGroup(jPanel1Layout.createParallel

    Group(javax.swing.GroupLayout.Alignment.LEADING)

                                                                                    .addComponent(jLabel6)

                                                                                    .addComponent(textTimeOut, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))

                                                                            .addGap(69, 69, 69)

                                                                            .addGroup(jPanel1Layout.create

    ParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                                                    .addComponent(jLabel7)

                                                                                    .addComponent(textNumbersID, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))))

                                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                                    .addComponent(textTimeIn)

                                                                    .addGap(201, 201, 201)))

                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 74, Short.MAX_VALUE)

                                                                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                                    .addGap(73, 73, 73)

                                                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                                    .addGap(22, 22, 22))

                                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                                    .addGap(117, 117, 117)

                                                                    .addComponent(jLabel12)

                                                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))

                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                    .addComponent(textSex, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                    .addGap(59, 59, 59)

                                                    .addComponent(jLabel8)

                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

                                                    .addComponent(jLabel9)

                                                    .addGap(190, 190, 190)

                                                    .addComponent(jLabel10)

                                                    .addGap(90, 90, 90))

                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                            .addComponent(jLabel1)

                                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                                            .addComponent(jLabel5)

                                                                            .addComponent(jLabel4)

                                                                            .addComponent(textDiagnosis, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))

                                                                    .addGap(127, 127, 127)

                                                                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 395, javax.swing.GroupLayout.PREFERRED_SIZE)))

                                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()

                                                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

                                                    .addContainerGap())))

                    );

                    jPanel1Layout.setVerticalGroup(

                            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                            .addGroup(jPanel1Layout.createSequentialGroup()

                                    .addComponent(jLabel1)

                                    .addGap(11, 11, 11)

                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)

                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                    .addComponent(textSurgeryDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                    .addGap(13, 13, 13)

                                                    .addComponent(jLabel2)

                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

                                                    .addComponent(textDateOfBirth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                    .addGap(24, 24, 24)

                                                    .addComponent(jLabel3)

                                                    .addPreferredGap(javax.swing.LayoutStyle.Component

    Placement.RELATED)

                                                    .addComponent(textSex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))

                                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))

                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                                    .addGap(24, 24, 24)

                                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)

                                                                            .addComponent(jLabel9)

                                                                            .addComponent(jLabel10)))

                                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()

                                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

                                                                    .addComponent(jLabel8)))))

                                    .addGap(18, 18, 18)

                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                    .addComponent(jLabel4)

                                                    .addPreferredGap(javax.swing.LayoutStyle.Component

    Placement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

                                                    .addComponent(textDiagnosis, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                    .addGap(10, 10, 10)

                                                    .addComponent(jLabel5))

                                            .addGroup(jPanel1Layout.createSequentialGroup()

                                                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                                                    .addGap(0, 14, Short.MAX_VALUE)))

                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

                                    .addComponent(textTimeIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

                           

    Enjoying the preview?
    Page 1 of 1