diff --git a/.DS_Store b/.DS_Store
index 953c41e94..3abea4b64 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..b3f5f2c12
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,50 @@
+### IntelliJ IDEA ###
+out/
+!**/src/main/**/out/
+!**/src/test/**/out/
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+bin/
+!**/src/main/**/bin/
+!**/src/test/**/bin/
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
+
+### Random Ass .Class Files ###
+/AddPatient$1.class
+/AddPatient.class
+/GUI.class
+/HomePage$1.class
+/HomePage$2.class
+/HomePage$SwingAction.class
+/HomePage.class
+/LoginWindow$1.class
+/LoginWindow$2.class
+/LoginWindow$3.class
+/LoginWindow.class
+/PatientData$1.class
+/PatientData.class
+/RoomView$1.class
+/RoomView.class
+/SearchFunction$1.class
+/SearchFunction$2.class
+/SearchFunction.class
+/SearchPage.class
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 000000000..13566b81b
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 000000000..703f09a7c
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+355UC1
\ No newline at end of file
diff --git a/.idea/355GroupProject.iml b/.idea/355GroupProject.iml
new file mode 100644
index 000000000..105d80dea
--- /dev/null
+++ b/.idea/355GroupProject.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml
new file mode 100644
index 000000000..77c908bb8
--- /dev/null
+++ b/.idea/dataSources.xml
@@ -0,0 +1,18 @@
+
+
+
+
+ mysql.8
+ true
+ com.mysql.cj.jdbc.Driver
+ jdbc:mysql://localhost:3306/HospitalManagement
+
+
+
+
+
+
+ $ProjectFileDir$
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/mysql_connector_j_9_1_0.xml b/.idea/libraries/mysql_connector_j_9_1_0.xml
new file mode 100644
index 000000000..66b3a1d87
--- /dev/null
+++ b/.idea/libraries/mysql_connector_j_9_1_0.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 000000000..2b0ee1ed3
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 000000000..12095e8f5
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml
new file mode 100644
index 000000000..1fb23c3c2
--- /dev/null
+++ b/.idea/sqldialects.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 000000000..35eb1ddfb
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 000000000..ca61988ec
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "associatedIndex": 2
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1730130433665
+
+
+ 1730130433665
+
+
+
+
+
+
+
+
+ 1730497486632
+
+
+
+ 1730497486632
+
+
+
+ 1731469839998
+
+
+
+ 1731469839998
+
+
+
+ 1731474687803
+
+
+
+ 1731474687803
+
+
+
+ 1731705332181
+
+
+
+ 1731705332181
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ file://$PROJECT_DIR$/Sprint 2/src/UI/Windows/EditPatientData.java
+ 199
+
+
+
+ file://$PROJECT_DIR$/Sprint 2/src/src/Main.java
+ 282
+
+
+
+ file://$PROJECT_DIR$/Sprint 2/src/src/Main.java
+ 317
+
+
+
+ file://$PROJECT_DIR$/Sprint 2/src/src/Main.java
+ 291
+
+
+
+ file://$PROJECT_DIR$/Sprint 2/src/src/Main.java
+ 320
+
+
+
+ file://$PROJECT_DIR$/Sprint 2/src/src/Main.java
+ 309
+
+
+
+ file://$PROJECT_DIR$/Sprint 2/src/src/Main.java
+ 350
+
+
+
+ file://$PROJECT_DIR$/Sprint 2/src/src/Main.java
+ 345
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.project b/.project
new file mode 100644
index 000000000..ff48bfcdf
--- /dev/null
+++ b/.project
@@ -0,0 +1,22 @@
+
+
+ 355GroupProject
+
+
+
+
+
+
+
+
+
+ 1730141042644
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 000000000..0bf619489
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,6 @@
+{
+ "java.debug.settings.onBuildFailureProceed": true,
+ "files.exclude": {
+ "**/*.class": true
+ }
+}
\ No newline at end of file
diff --git a/README.md b/README.md
index b2588bc51..b754cce1e 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,20 @@
-My groupmembers are:
-- XXXX
-- XXXX
-- XXXX
-- XXXX
+My group members are:
+- Ryan Brady
+- Nick Augustus
+- Eli Borum
+- Victoria Castagnola
+- Jacob Alexander
+- Aaron Matthews
------------------ Fill in some information about your project under this ------------------
+
+The main goals for this program is to have a streamlined system for adding and discharging patients as well as
+booking E.R., in-patient, and O.R. rooms. The user will also be able to utilize an advanced search for patients
+(both present and past) and provide useful information about them such as a patientโs room number, chart, unique
+identifier number, and schedule. There will also be an easy way for doctors/nurses to book rooms and what times
+they need those rooms as well as a visual interface to show which rooms are available and if not the rooms will
+be color coded to let you know the availability of that room and or any other rooms that may fit your need and
+if theyโre available. There will be security and failsafe procedures put into place to make sure the program
+continues to run smoothly without any interruptions.
+
diff --git a/Requirements Activity 2.pdf b/Requirements Activity 2.pdf
new file mode 100644
index 000000000..3ffcb0af9
Binary files /dev/null and b/Requirements Activity 2.pdf differ
diff --git a/Software Development Process Activity 1.pdf b/Software Development Process Activity 1.pdf
new file mode 100644
index 000000000..199045126
Binary files /dev/null and b/Software Development Process Activity 1.pdf differ
diff --git a/SoftwareProcessPlaceholder.txt b/SoftwareProcessPlaceholder.txt
deleted file mode 100644
index e69de29bb..000000000
diff --git a/Sprint 1/.DS_Store b/Sprint 1/.DS_Store
new file mode 100644
index 000000000..90d7a9dbe
Binary files /dev/null and b/Sprint 1/.DS_Store differ
diff --git a/Sprint 1/.project b/Sprint 1/.project
new file mode 100644
index 000000000..d7d7eee52
--- /dev/null
+++ b/Sprint 1/.project
@@ -0,0 +1,22 @@
+
+
+ Sprint 1
+
+
+
+
+
+
+
+
+
+ 1730225072447
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/Sprint 1/Group+Project+-+Test+Case+Planning+Template.pdf b/Sprint 1/Group+Project+-+Test+Case+Planning+Template.pdf
new file mode 100644
index 000000000..4581a2442
Binary files /dev/null and b/Sprint 1/Group+Project+-+Test+Case+Planning+Template.pdf differ
diff --git a/Sprint 1/Sprint1_TestCases_Video.mp4 b/Sprint 1/Sprint1_TestCases_Video.mp4
new file mode 100644
index 000000000..f24030743
Binary files /dev/null and b/Sprint 1/Sprint1_TestCases_Video.mp4 differ
diff --git a/Sprint 1/src/UI/Parts/.gitignore b/Sprint 1/src/UI/Parts/.gitignore
new file mode 100644
index 000000000..3419cc2c6
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/.gitignore
@@ -0,0 +1,8 @@
+/Button.class
+/Dropdown.class
+/GroupLayoutPanel.class
+/Label.class
+/MainPanel.class
+/ScrollPanel.class
+/TextInput.class
+/Window.class
diff --git a/Sprint 1/src/UI/Parts/Button.java b/Sprint 1/src/UI/Parts/Button.java
new file mode 100644
index 000000000..20b14e743
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/Button.java
@@ -0,0 +1,18 @@
+package UI.Parts;
+
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.Dimension;
+
+public class Button extends JButton{
+ String ID;
+
+ public Button(String text, String ID){
+ super(text);
+ this.ID = ID;
+ }
+
+ public String getID(){
+ return this.ID;
+ }
+}
diff --git a/Sprint 1/src/UI/Parts/Dropdown.java b/Sprint 1/src/UI/Parts/Dropdown.java
new file mode 100644
index 000000000..b2483dcff
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/Dropdown.java
@@ -0,0 +1,21 @@
+package UI.Parts;
+
+import javax.swing.JComboBox;
+
+public class Dropdown extends JComboBox {
+ public Dropdown(String[] options){
+ super(options);
+ }
+
+ public String getSelectedItem(){
+ return (String) super.getSelectedItem();
+ }
+
+ // public void addItem(String option){
+ // addItem(option);
+ // }
+
+ // public void removeItem(String option){
+ // removeItem(option);
+ // }
+}
\ No newline at end of file
diff --git a/Sprint 1/src/UI/Parts/GroupLayoutPanel.java b/Sprint 1/src/UI/Parts/GroupLayoutPanel.java
new file mode 100644
index 000000000..49320e935
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/GroupLayoutPanel.java
@@ -0,0 +1,68 @@
+package UI.Parts;
+
+import javax.swing.*;
+import javax.swing.GroupLayout.ParallelGroup;
+import javax.swing.GroupLayout.SequentialGroup;
+import java.awt.*;
+
+// https://docs.oracle.com/javase/tutorial/uiswing/layout/group.html
+//Reference above site for how to use GroupLayout
+
+public class GroupLayoutPanel extends JPanel{
+ private GroupLayout layout = new GroupLayout(this);
+ private SequentialGroup horizontalGroup = layout.createSequentialGroup();
+ private SequentialGroup verticalGroup = layout.createSequentialGroup();
+
+ public GroupLayoutPanel(){
+ super();
+ super.setLayout(layout);
+ // super.setAutoCreateGaps(true);
+ // super.setAutoCreateContainerGaps(true);
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+
+ public void addHorizontalItem(Component item){
+ horizontalGroup.addComponent(item);
+ }
+
+ public void addHorizontalItems(Component items[]){
+ for(Component item : items){
+ horizontalGroup.addComponent(item);
+ }
+ }
+
+ public void addHorizontalParallelGroup(Component items[], GroupLayout.Alignment align){
+ ParallelGroup group = layout.createParallelGroup(align);
+ for(Component item : items){
+ group.addComponent(item);
+ }
+ horizontalGroup.addGroup(group);
+ }
+
+ public void addVerticalItem(Component item){
+ verticalGroup.addComponent(item);
+ }
+
+ public void addVerticalItems(Component items[]){
+ for(Component item : items){
+ verticalGroup.addComponent(item);
+ }
+ }
+
+ public void addVerticalParallelGroup(Component items[], GroupLayout.Alignment align){
+ ParallelGroup group = layout.createParallelGroup(align);
+ for(Component item : items){
+ group.addComponent(item);
+ }
+ verticalGroup.addGroup(group);
+ }
+
+ public void finish(){
+ layout.setHorizontalGroup(horizontalGroup);
+ layout.setVerticalGroup(verticalGroup);
+ }
+}
diff --git a/Sprint 1/src/UI/Parts/Label.java b/Sprint 1/src/UI/Parts/Label.java
new file mode 100644
index 000000000..05b1edfc5
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/Label.java
@@ -0,0 +1,19 @@
+package UI.Parts;
+
+import javax.swing.JLabel;
+
+public class Label extends JLabel {
+
+ public Label(String text){
+ super();
+ setText(text);
+ }
+
+ public void setText(String text){
+ super.setText(text);
+ }
+
+ public String getText(){
+ return super.getText();
+ }
+}
diff --git a/Sprint 1/src/UI/Parts/MainPanel.java b/Sprint 1/src/UI/Parts/MainPanel.java
new file mode 100644
index 000000000..0f4356ed5
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/MainPanel.java
@@ -0,0 +1,29 @@
+package UI.Parts;
+
+import javax.swing.JPanel;
+import javax.swing.BoxLayout;
+import java.awt.GridBagConstraints;
+import java.awt.Component;
+
+public class MainPanel extends JPanel{
+ GridBagConstraints gbc = null;
+
+ public MainPanel(boolean isYAxis){ //For main panel
+ super();
+ if(isYAxis){super.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));}
+ else{super.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));}
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+
+ public void addItem(int gridx, int gridy, Component comp){
+ if(gbc != null){
+ gbc.gridx = gridx;
+ gbc.gridy = gridy;
+ }
+ this.addItem(comp);
+ }
+}
diff --git a/Sprint 1/src/UI/Parts/ScrollPanel.java b/Sprint 1/src/UI/Parts/ScrollPanel.java
new file mode 100644
index 000000000..6e222e02b
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/ScrollPanel.java
@@ -0,0 +1,27 @@
+package UI.Parts;
+
+import javax.swing.JScrollPane;
+import java.awt.Component;
+
+public class ScrollPanel extends JScrollPane{
+ final String DEFAULTTITLE = "";
+ final int DEFAULTSIZE = 500;
+ final int DEFAULTLOCATION = 300;
+
+ public ScrollPanel(Component panel){
+ super(panel);
+ super.setSize(DEFAULTSIZE, DEFAULTSIZE);
+ super.setLocation(DEFAULTLOCATION, DEFAULTLOCATION);
+ }
+
+ public ScrollPanel(Component panel, int x, int y, int width, int height){
+ super(panel);
+ super.setSize(width, height);
+ super.setLocation(x, y);
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+}
diff --git a/Sprint 1/src/UI/Parts/TextInput.java b/Sprint 1/src/UI/Parts/TextInput.java
new file mode 100644
index 000000000..1cdc9a024
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/TextInput.java
@@ -0,0 +1,19 @@
+package UI.Parts;
+
+import javax.swing.JTextField;
+
+public class TextInput extends JTextField{
+ final int COLUMNS = 24;
+ final String INITIALTEXT = "";
+
+ public TextInput(String initialText, int columns){
+ super(
+ ((Object) initialText == null) ? ("") : (initialText),
+ ((Object) columns == null) ? (24) : (columns)
+ );
+ }
+
+ public String getText(){
+ return super.getText();
+ }
+}
diff --git a/Sprint 1/src/UI/Parts/Window.java b/Sprint 1/src/UI/Parts/Window.java
new file mode 100644
index 000000000..08a2c1c69
--- /dev/null
+++ b/Sprint 1/src/UI/Parts/Window.java
@@ -0,0 +1,51 @@
+package UI.Parts;
+
+import java.awt.Component;
+import javax.swing.JFrame;
+
+public class Window extends JFrame{
+ final String DEFAULTTITLE = "";
+ final int DEFAULTSIZE = 500;
+ final int DEFAULTLOCATION = 300;
+
+ public Window (String title){
+ super(title);
+ super.setSize(DEFAULTSIZE, DEFAULTSIZE);
+ super.setLocationRelativeTo(null);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public Window (String title, int width, int height){
+ super(title);
+ super.setSize(width, height);
+ super.setLocationRelativeTo(null);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public Window(String title, int x, int y, int width, int height){
+ super(title);
+ super.setSize(width, height);
+ super.setLocation(x, y);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public void addItem(String borderLayout, Component comp){
+ super.getContentPane().add(borderLayout, comp);
+ }
+
+ public void setContentPanel(MainPanel panel){
+ super.setContentPane(panel);
+ super.pack(); // Set size to preferred size of buttons and stuff in the content panel
+ }
+
+ public void setVisible(boolean visible){
+ super.setVisible(visible);
+ }
+
+ public boolean isVisible(){
+ return super.isVisible();
+ }
+}
\ No newline at end of file
diff --git a/Sprint 1/src/UI/Windows/.gitignore b/Sprint 1/src/UI/Windows/.gitignore
new file mode 100644
index 000000000..6aed67352
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/.gitignore
@@ -0,0 +1,19 @@
+/AddPatient$1.class
+/AddPatient.class
+/GUI.class
+/HomePage$1.class
+/HomePage$2.class
+/HomePage$SwingAction.class
+/HomePage.class
+/LoginWindow$1.class
+/LoginWindow$2.class
+/LoginWindow$3.class
+/LoginWindow.class
+/PatientData$1.class
+/PatientData.class
+/RoomView$1.class
+/RoomView.class
+/SearchFunction$1.class
+/SearchFunction$2.class
+/SearchFunction.class
+/SearchPage.class
diff --git a/Sprint 1/src/UI/Windows/AddPatient$2.class b/Sprint 1/src/UI/Windows/AddPatient$2.class
new file mode 100644
index 000000000..61d73b12e
Binary files /dev/null and b/Sprint 1/src/UI/Windows/AddPatient$2.class differ
diff --git a/Sprint 1/src/UI/Windows/AddPatient.java b/Sprint 1/src/UI/Windows/AddPatient.java
new file mode 100644
index 000000000..7005b56c4
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/AddPatient.java
@@ -0,0 +1,57 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+
+public class AddPatient {
+
+ private JFrame frame;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ AddPatient window = new AddPatient();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public AddPatient() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 450, 300);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ frame.getContentPane().add(backButton);
+ }
+
+}
diff --git a/Sprint 1/src/UI/Windows/EditPatientData$1.class b/Sprint 1/src/UI/Windows/EditPatientData$1.class
new file mode 100644
index 000000000..248035a3d
Binary files /dev/null and b/Sprint 1/src/UI/Windows/EditPatientData$1.class differ
diff --git a/Sprint 1/src/UI/Windows/EditPatientData$2.class b/Sprint 1/src/UI/Windows/EditPatientData$2.class
new file mode 100644
index 000000000..144f9c27b
Binary files /dev/null and b/Sprint 1/src/UI/Windows/EditPatientData$2.class differ
diff --git a/Sprint 1/src/UI/Windows/EditPatientData$3.class b/Sprint 1/src/UI/Windows/EditPatientData$3.class
new file mode 100644
index 000000000..2edfd6365
Binary files /dev/null and b/Sprint 1/src/UI/Windows/EditPatientData$3.class differ
diff --git a/Sprint 1/src/UI/Windows/EditPatientData.class b/Sprint 1/src/UI/Windows/EditPatientData.class
new file mode 100644
index 000000000..8b2438d2e
Binary files /dev/null and b/Sprint 1/src/UI/Windows/EditPatientData.class differ
diff --git a/Sprint 1/src/UI/Windows/EditPatientData.java b/Sprint 1/src/UI/Windows/EditPatientData.java
new file mode 100644
index 000000000..5372e0b22
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/EditPatientData.java
@@ -0,0 +1,169 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JSeparator;
+import javax.swing.JLabel;
+import java.awt.Color;
+import java.awt.Dimension;
+import javax.swing.JTextArea;
+
+public class EditPatientData {
+
+ private JFrame frmEditPatientData;
+ private JButton editButton;
+ private JTextArea eventsBox;
+ private JTextArea notesBox;
+ private JTextField idenNum;
+ private JTextField roomNum;
+ private JTextField PCPBox;
+ private JTextField patientName;
+
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ EditPatientData window = new EditPatientData(args);
+ window.frmEditPatientData.setVisible(true);
+ window.frmEditPatientData.setLocationRelativeTo(null);
+ window.frmEditPatientData.setMinimumSize(new Dimension(450, 450));
+ window.frmEditPatientData.setBounds(100, 100, 450, 450);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+
+ }
+
+ /**
+ * Create the application.
+ */
+ public EditPatientData(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frmEditPatientData = new JFrame();
+ frmEditPatientData.setVisible(true);
+ frmEditPatientData.setResizable(false);
+ frmEditPatientData.setLocationRelativeTo(null);
+ frmEditPatientData.setTitle("Edit Patient Data");
+ frmEditPatientData.getContentPane().setFont(new Font("Cambria", Font.PLAIN, 11));
+ frmEditPatientData.setSize(450, 450);
+ frmEditPatientData.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frmEditPatientData.getContentPane().setLayout(null);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(10, 46, 414, 2);
+ frmEditPatientData.getContentPane().add(separator);
+
+ JLabel lblNewLabel = new JLabel("Identifier #:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNewLabel.setBounds(10, 59, 101, 19);
+ frmEditPatientData.getContentPane().add(lblNewLabel);
+
+ JLabel lblRoom = new JLabel("Room #:");
+ lblRoom.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblRoom.setBounds(10, 89, 70, 19);
+ frmEditPatientData.getContentPane().add(lblRoom);
+
+ JLabel lblPmc = new JLabel("Primary Care Provider:");
+ lblPmc.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblPmc.setBounds(10, 119, 217, 19);
+ frmEditPatientData.getContentPane().add(lblPmc);
+
+ JLabel lblEvents = new JLabel("Events:");
+ lblEvents.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblEvents.setBounds(10, 149, 55, 19);
+ frmEditPatientData.getContentPane().add(lblEvents);
+
+ JLabel lblNotes = new JLabel("Notes:");
+ lblNotes.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNotes.setBounds(10, 261, 55, 19);
+ frmEditPatientData.getContentPane().add(lblNotes);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frmEditPatientData.dispose();
+ String[] args2 = updateArgs();
+ String[] newArgs = {args[0], args[1], args[2], args[3], args[4], args[5], args2[0], args2[1], args2[2], args2[3], args2[4], args2[5]};
+ exitOrNo.main(newArgs);
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ backButton.setMinimumSize(new Dimension (30, 30));
+ backButton.setMaximumSize(new Dimension (30, 30));
+ frmEditPatientData.getContentPane().add(backButton);
+
+ editButton = new JButton("Save And Exit");
+ editButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] newArgs = updateArgs();
+ PatientData.main(newArgs);
+ frmEditPatientData.dispose();
+ }
+ });
+ editButton.setBackground(new Color(255, 255, 255));
+ editButton.setBounds(321, 374, 123, 29);
+ editButton.setMinimumSize(new Dimension (123, 29));
+ editButton.setMaximumSize(new Dimension (123, 29));
+ frmEditPatientData.getContentPane().add(editButton);
+
+ eventsBox = new JTextArea(args[4]);
+ eventsBox.setBounds(10, 180, 434, 63);
+ frmEditPatientData.getContentPane().add(eventsBox);
+
+ notesBox = new JTextArea(args[5]);
+ notesBox.setBounds(10, 292, 434, 63);
+ frmEditPatientData.getContentPane().add(notesBox);
+
+ idenNum = new JTextField(args[1]);
+ idenNum.setBounds(104, 51, 340, 31);
+ frmEditPatientData.getContentPane().add(idenNum);
+ idenNum.setColumns(10);
+
+ roomNum = new JTextField(args[2]);
+ roomNum.setColumns(10);
+ roomNum.setBounds(79, 84, 365, 31);
+ frmEditPatientData.getContentPane().add(roomNum);
+
+ PCPBox = new JTextField(args[3]);
+ PCPBox.setColumns(10);
+ PCPBox.setBounds(191, 116, 253, 31);
+ frmEditPatientData.getContentPane().add(PCPBox);
+
+ patientName = new JTextField(args[0]);
+ patientName.setBounds(42, 0, 402, 41);
+ frmEditPatientData.getContentPane().add(patientName);
+ patientName.setColumns(10);
+ }
+
+ private String[] updateArgs(){
+ String[] alteredArgs = new String[6];
+ alteredArgs[0] = patientName.getText();
+ alteredArgs[1] = idenNum.getText();
+ alteredArgs[2] = roomNum.getText();
+ alteredArgs[3] = PCPBox.getText();
+ alteredArgs[4] = eventsBox.getText();
+ alteredArgs[5] = notesBox.getText();
+
+ return alteredArgs;
+ }
+}
diff --git a/Sprint 1/src/UI/Windows/HomePage$3.class b/Sprint 1/src/UI/Windows/HomePage$3.class
new file mode 100644
index 000000000..fa9221284
Binary files /dev/null and b/Sprint 1/src/UI/Windows/HomePage$3.class differ
diff --git a/Sprint 1/src/UI/Windows/HomePage$4.class b/Sprint 1/src/UI/Windows/HomePage$4.class
new file mode 100644
index 000000000..83d3529f2
Binary files /dev/null and b/Sprint 1/src/UI/Windows/HomePage$4.class differ
diff --git a/Sprint 1/src/UI/Windows/HomePage$5.class b/Sprint 1/src/UI/Windows/HomePage$5.class
new file mode 100644
index 000000000..7321e3a01
Binary files /dev/null and b/Sprint 1/src/UI/Windows/HomePage$5.class differ
diff --git a/Sprint 1/src/UI/Windows/HomePage.java b/Sprint 1/src/UI/Windows/HomePage.java
new file mode 100644
index 000000000..0b92f8c45
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/HomePage.java
@@ -0,0 +1,132 @@
+package UI.Windows;
+
+import java.awt.Container;
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import java.awt.GridLayout;
+import javax.swing.JButton;
+import javax.swing.JLabel;
+import javax.swing.GroupLayout;
+import javax.swing.GroupLayout.Alignment;
+import javax.swing.LayoutStyle.ComponentPlacement;
+import javax.swing.AbstractAction;
+import java.awt.event.ActionEvent;
+import javax.swing.Action;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+
+public class HomePage {
+
+ private JFrame frame;
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ HomePage window = new HomePage();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public HomePage() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 905, 278);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
+ JButton searchButton = new JButton("Search");
+ searchButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ SearchFunction.main(null);
+ frame.dispose();
+ }
+ });
+ searchButton.setFont(new Font("Cambria", Font.BOLD, 35));
+
+ JButton addPatientButton = new JButton("Add Patient/Event");
+ addPatientButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ addPatientButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ AddPatient.main(null);
+ frame.dispose();
+ }
+ });
+
+ JButton removePatientButton = new JButton("Remove Patient/Event");
+ removePatientButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ removePatientButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ RemovePatient.main(null);
+ frame.dispose();
+ }
+ });
+
+ JButton roomViewButton = new JButton("Room View");
+ roomViewButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ RoomView.main(null);
+ frame.dispose();
+ }
+ });
+ roomViewButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
+ groupLayout.setHorizontalGroup(
+ groupLayout.createParallelGroup(Alignment.TRAILING)
+ .addGroup(groupLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
+ .addComponent(searchButton, GroupLayout.PREFERRED_SIZE, 438, GroupLayout.PREFERRED_SIZE)
+ .addComponent(addPatientButton, GroupLayout.PREFERRED_SIZE, 434, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(roomViewButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(removePatientButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addContainerGap(14, Short.MAX_VALUE))
+ );
+ groupLayout.setVerticalGroup(
+ groupLayout.createParallelGroup(Alignment.LEADING)
+ .addGroup(groupLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(roomViewButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
+ .addComponent(searchButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE))
+ .addGap(18)
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(removePatientButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
+ .addComponent(addPatientButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE))
+ .addGap(259))
+ );
+ frame.getContentPane().setLayout(groupLayout);
+ }
+
+ private class SwingAction extends AbstractAction {
+ public SwingAction() {
+ putValue(NAME, "SwingAction");
+ putValue(SHORT_DESCRIPTION, "Some short description");
+ }
+ public void actionPerformed(ActionEvent e) {
+ }
+ }
+
+ public static Container getContentPane() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+}
diff --git a/Sprint 1/src/UI/Windows/LoginWindow.java b/Sprint 1/src/UI/Windows/LoginWindow.java
new file mode 100644
index 000000000..968cd546b
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/LoginWindow.java
@@ -0,0 +1,132 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+
+import java.awt.BorderLayout;
+import java.awt.Font;
+import javax.swing.SwingConstants;
+import javax.swing.JTextField;
+import java.awt.Color;
+import javax.swing.JPasswordField;
+import java.awt.SystemColor;
+import javax.swing.JSplitPane;
+import javax.swing.JSeparator;
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+
+public class LoginWindow {
+
+ private JFrame frame;
+ private JTextField textField;
+ private JPasswordField passwordField;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ LoginWindow window = new LoginWindow();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public LoginWindow() {
+ initialize("Login Window");
+
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String title) {
+ frame = new JFrame();
+ frame.setResizable(false);
+ frame.setBounds(100, 100, 450, 244);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.setTitle(title);
+ frame.setLocationRelativeTo(null);
+ frame.getContentPane().setLayout(null);
+
+ JLabel lblNewLabel = new JLabel("USERNAME:");
+ lblNewLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
+ lblNewLabel.setBounds(6, 59, 118, 22);
+ frame.getContentPane().add(lblNewLabel);
+
+ JLabel lblPassword = new JLabel("PASSWORD:");
+ lblPassword.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
+ lblPassword.setBounds(6, 110, 118, 22);
+ frame.getContentPane().add(lblPassword);
+
+ textField = new JTextField();
+ textField.setBackground(Color.WHITE);
+ textField.setBounds(123, 57, 308, 26);
+ frame.getContentPane().add(textField);
+ textField.setColumns(10);
+
+ passwordField = new JPasswordField();
+ passwordField.setBounds(123, 109, 308, 26);
+ frame.getContentPane().add(passwordField);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(6, 144, 438, 12);
+ frame.getContentPane().add(separator);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(6, 36, 438, 12);
+ frame.getContentPane().add(separator_1);
+
+ JLabel lblNewLabel_1 = new JLabel("USER LOGIN");
+ lblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);
+ lblNewLabel_1.setFont(new Font("Lucida Grande", Font.PLAIN, 30));
+ lblNewLabel_1.setBounds(6, -3, 438, 47);
+ frame.getContentPane().add(lblNewLabel_1);
+
+ JButton btnNewButton = new JButton("LOGIN");
+ btnNewButton.addActionListener(new ActionListener() {
+
+ public void actionPerformed(ActionEvent e) {
+ String username = textField.getText();
+ String password = passwordField.getText();
+ if (username.contains("User") && password.contains("1234")){
+ textField.setText(null);
+ passwordField.setText(null);
+ HomePage.main(null);
+ frame.dispose();
+ }
+ else {
+ JOptionPane.showMessageDialog(null, "INVALID USERNAME OR PASSWORD", "ERROR", JOptionPane.ERROR_MESSAGE);
+ textField.setText(null);
+ passwordField.setText(null);
+ }
+ }
+ });
+ btnNewButton.setBounds(54, 168, 117, 29);
+ frame.getContentPane().add(btnNewButton);
+
+ JButton btnNewButton_1_1 = new JButton("RESET");
+ btnNewButton_1_1.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ textField.setText(null);
+ passwordField.setText(null);
+ }
+ });
+ btnNewButton_1_1.setBounds(279, 168, 117, 29);
+ frame.getContentPane().add(btnNewButton_1_1);
+
+ }
+}
diff --git a/Sprint 1/src/UI/Windows/PatientData$2.class b/Sprint 1/src/UI/Windows/PatientData$2.class
new file mode 100644
index 000000000..ecbfcd972
Binary files /dev/null and b/Sprint 1/src/UI/Windows/PatientData$2.class differ
diff --git a/Sprint 1/src/UI/Windows/PatientData$3.class b/Sprint 1/src/UI/Windows/PatientData$3.class
new file mode 100644
index 000000000..02c834748
Binary files /dev/null and b/Sprint 1/src/UI/Windows/PatientData$3.class differ
diff --git a/Sprint 1/src/UI/Windows/PatientData.java b/Sprint 1/src/UI/Windows/PatientData.java
new file mode 100644
index 000000000..a6219ec55
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/PatientData.java
@@ -0,0 +1,160 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JSeparator;
+import javax.swing.JLabel;
+import java.awt.Color;
+import java.awt.Dimension;
+import javax.swing.JTextArea;
+
+public class PatientData {
+
+ private JFrame frame;
+ private JButton editButton;
+ private JTextField idenNum;
+ private JTextField roomNum;
+ private JTextField PCPBox;
+ private JTextArea eventsBox;
+ private JTextArea notesBox;
+ private JTextField patientName;
+
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ PatientData window = new PatientData(args);
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ window.frame.setMinimumSize(new Dimension(450, 450));
+ window.frame.setBounds(100, 100, 450, 450);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+
+ }
+
+ /**
+ * Create the application.
+ */
+ public PatientData(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setVisible(true);
+ frame.setResizable(false);
+ frame.setTitle("Patient Data");
+ frame.setLocationRelativeTo(null);
+ frame.getContentPane().setFont(new Font("Cambria", Font.PLAIN, 11));
+ frame.setSize(450, 450);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(10, 46, 414, 2);
+ frame.getContentPane().add(separator);
+
+ JLabel lblNewLabel = new JLabel("Identifier #:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNewLabel.setBounds(10, 59, 101, 19);
+ frame.getContentPane().add(lblNewLabel);
+
+ JLabel lblRoom = new JLabel("Room #:");
+ lblRoom.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblRoom.setBounds(10, 89, 70, 19);
+ frame.getContentPane().add(lblRoom);
+
+ JLabel lblPmc = new JLabel("Primary Care Provider:");
+ lblPmc.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblPmc.setBounds(10, 119, 217, 19);
+ frame.getContentPane().add(lblPmc);
+
+ JLabel lblEvents = new JLabel("Events:");
+ lblEvents.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblEvents.setBounds(10, 149, 55, 19);
+ frame.getContentPane().add(lblEvents);
+
+ JLabel lblNotes = new JLabel("Notes:");
+ lblNotes.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNotes.setBounds(10, 261, 55, 19);
+ frame.getContentPane().add(lblNotes);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frame.dispose();
+ HomePage.main(null);
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ backButton.setMinimumSize(new Dimension (30, 30));
+ backButton.setMaximumSize(new Dimension (30, 30));
+ frame.getContentPane().add(backButton);
+
+ editButton = new JButton("Edit");
+ editButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frame.dispose();
+ EditPatientData.main(args);
+ }
+ });
+ editButton.setBackground(new Color(255, 255, 255));
+ editButton.setBounds(321, 374, 123, 29);
+ editButton.setMinimumSize(new Dimension (123, 29));
+ editButton.setMaximumSize(new Dimension (123, 29));
+ frame.getContentPane().add(editButton);
+
+ idenNum = new JTextField(args[1]);
+ idenNum.setEditable(false);
+ idenNum.setColumns(10);
+ idenNum.setBounds(104, 54, 340, 31);
+ frame.getContentPane().add(idenNum);
+
+ roomNum = new JTextField(args[2]);
+ roomNum.setEditable(false);
+ roomNum.setColumns(10);
+ roomNum.setBounds(79, 84, 365, 31);
+ frame.getContentPane().add(roomNum);
+
+ PCPBox = new JTextField(args[3]);
+ PCPBox.setEditable(false);
+ PCPBox.setColumns(10);
+ PCPBox.setBounds(191, 116, 253, 31);
+ frame.getContentPane().add(PCPBox);
+
+ eventsBox = new JTextArea(args[4]);
+ eventsBox.setEditable(false);
+ eventsBox.setBounds(10, 180, 434, 63);
+ frame.getContentPane().add(eventsBox);
+
+ notesBox = new JTextArea(args[5]);
+ notesBox.setEditable(false);
+ notesBox.setBounds(10, 292, 434, 63);
+ frame.getContentPane().add(notesBox);
+
+ patientName = new JTextField(args[0]);
+ patientName.setEditable(false);
+ patientName.setColumns(10);
+ patientName.setBounds(42, 0, 402, 41);
+ frame.getContentPane().add(patientName);
+ }
+}
diff --git a/Sprint 1/src/UI/Windows/RemovePatient$1.class b/Sprint 1/src/UI/Windows/RemovePatient$1.class
new file mode 100644
index 000000000..bd36c05ac
Binary files /dev/null and b/Sprint 1/src/UI/Windows/RemovePatient$1.class differ
diff --git a/Sprint 1/src/UI/Windows/RemovePatient$2.class b/Sprint 1/src/UI/Windows/RemovePatient$2.class
new file mode 100644
index 000000000..24157a389
Binary files /dev/null and b/Sprint 1/src/UI/Windows/RemovePatient$2.class differ
diff --git a/Sprint 1/src/UI/Windows/RemovePatient.class b/Sprint 1/src/UI/Windows/RemovePatient.class
new file mode 100644
index 000000000..03c5122fa
Binary files /dev/null and b/Sprint 1/src/UI/Windows/RemovePatient.class differ
diff --git a/Sprint 1/src/UI/Windows/RemovePatient.java b/Sprint 1/src/UI/Windows/RemovePatient.java
new file mode 100644
index 000000000..009636a4b
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/RemovePatient.java
@@ -0,0 +1,57 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+
+public class RemovePatient {
+
+ private JFrame frame;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ RemovePatient window = new RemovePatient();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public RemovePatient() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 450, 300);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ frame.getContentPane().add(backButton);
+ }
+
+}
diff --git a/Sprint 1/src/UI/Windows/RoomView$2.class b/Sprint 1/src/UI/Windows/RoomView$2.class
new file mode 100644
index 000000000..197ccba27
Binary files /dev/null and b/Sprint 1/src/UI/Windows/RoomView$2.class differ
diff --git a/Sprint 1/src/UI/Windows/RoomView.java b/Sprint 1/src/UI/Windows/RoomView.java
new file mode 100644
index 000000000..a1afe4fb6
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/RoomView.java
@@ -0,0 +1,58 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+
+public class RoomView {
+
+ private JFrame frame;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ RoomView window = new RoomView();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public RoomView() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 450, 300);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 7, 30, 30);
+ frame.getContentPane().add(backButton);
+ }
+
+}
diff --git a/Sprint 1/src/UI/Windows/SearchFunction$3.class b/Sprint 1/src/UI/Windows/SearchFunction$3.class
new file mode 100644
index 000000000..dd2654b57
Binary files /dev/null and b/Sprint 1/src/UI/Windows/SearchFunction$3.class differ
diff --git a/Sprint 1/src/UI/Windows/SearchFunction$4.class b/Sprint 1/src/UI/Windows/SearchFunction$4.class
new file mode 100644
index 000000000..051d02385
Binary files /dev/null and b/Sprint 1/src/UI/Windows/SearchFunction$4.class differ
diff --git a/Sprint 1/src/UI/Windows/SearchFunction.java b/Sprint 1/src/UI/Windows/SearchFunction.java
new file mode 100644
index 000000000..dff234f05
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/SearchFunction.java
@@ -0,0 +1,180 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+
+import javax.swing.JLabel;
+import java.awt.Font;
+import javax.swing.JSeparator;
+import javax.swing.JScrollPane;
+import javax.swing.JInternalFrame;
+import javax.swing.ScrollPaneConstants;
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.ListSelectionModel;
+import javax.swing.JComboBox;
+import java.awt.GridLayout;
+
+import UI.Parts.Button;
+import src.Main;
+
+public class SearchFunction {
+
+ private JFrame frame;
+ private JTextField searchBar;
+ private JSeparator separator_1;
+ private JButton searchButton;
+ private JLabel lblAdvanced;
+ private JScrollPane dontDoAnything;
+ private JComboBox advList;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ SearchFunction window = new SearchFunction();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ window.frame.setMinimumSize(new Dimension(435, 345));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public SearchFunction() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setTitle("Search Page");
+ frame.setBounds(100, 100, 435, 345);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ searchBar = new JTextField();
+ searchBar.setFont(new Font("Cambria", Font.BOLD, 15));
+ searchBar.setBounds(107, 5, 259, 32);
+ frame.getContentPane().add(searchBar);
+ searchBar.setColumns(10);
+
+ JLabel lblNewLabel = new JLabel("Search:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 17));
+ lblNewLabel.setBounds(40, 2, 76, 34);
+ frame.getContentPane().add(lblNewLabel);
+
+ separator_1 = new JSeparator();
+ separator_1.setBounds(10, 97, 414, 2);
+ frame.getContentPane().add(separator_1);
+
+ dontDoAnything = new JScrollPane();
+ dontDoAnything.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
+ dontDoAnything.setBounds(10, 110, 414, 192);
+ frame.getContentPane().add(dontDoAnything);
+
+ searchButton = new JButton("GO");
+ searchButton.setFont(new Font("Cambria", Font.BOLD, 15));
+ searchButton.setBounds(367, 22, 57, 43);
+ frame.getContentPane().add(searchButton);
+
+ lblAdvanced = new JLabel("Advanced:");
+ lblAdvanced.setFont(new Font("Cambria", Font.BOLD, 17));
+ lblAdvanced.setBounds(40, 43, 106, 34);
+ frame.getContentPane().add(lblAdvanced);
+
+ String advancedSearchOptions[] = {"Last Name First Name", "Room Number", "Medical Record Number", "Primary Care Provider", "Admission Date"};
+ advList = new JComboBox(advancedSearchOptions);
+ advList.setFont(new Font("Cambria", Font.BOLD, 15));
+ advList.setBounds(129, 45, 233, 34);
+ frame.getContentPane().add(advList);
+
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ frame.getContentPane().add(backButton);
+
+ addSearchFunction(searchButton);
+ }
+
+ private void addSearchFunction(JButton button){
+ button.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ String searchType = (String) advList.getSelectedItem();
+ String searchParam = searchBar.getText();
+ //TODO
+ try {
+ String names[] = Main.searchSelect(searchType, searchParam);
+ populateScrollPane(names);
+ } catch (Exception except) {
+ System.out.println(except.getMessage());
+ }
+ // String names[] = {"Doe John 1", "Doe John 1", "Doe John 1", "Doe John 1", "Doe John 1"};
+ }
+ });
+ }
+
+ private void addGetPatientDataFunction(Button button) {
+ button.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ try {
+ String concatenatedData = button.getText() + " " + button.getID();
+ if (concatenatedData.split(" ").length < 3) {
+ throw new IllegalArgumentException("Button text and ID must result in at least three parts separated by spaces.");
+ }
+ String patientData[] = Main.ptnSelected(concatenatedData);
+ PatientData.main(patientData);
+ frame.dispose();
+ } catch (Exception except) {
+ System.out.println(except.getMessage());
+ }
+ }
+ });
+ }
+
+ private void populateScrollPane(String names[]){
+ JPanel panel = new JPanel();
+ panel.setLayout(new GridLayout(names.length, 1, 5, 5));
+
+ for(String name : names){
+ String data[] = name.split(" ");
+ Button button = new Button(data[0]+" "+data[1], data[2]);
+ button.setBounds(50, 50, 50, 50);
+ addGetPatientDataFunction(button);
+ panel.add(button);
+ }
+
+ dontDoAnything.setViewportView(panel);
+
+ frame.getContentPane().revalidate();
+ frame.getContentPane().repaint();
+ frame.revalidate();
+ frame.repaint();
+ frame.pack();
+ }
+}
diff --git a/Sprint 1/src/UI/Windows/SimpleSearchTest$1.class b/Sprint 1/src/UI/Windows/SimpleSearchTest$1.class
new file mode 100644
index 000000000..6840467bd
Binary files /dev/null and b/Sprint 1/src/UI/Windows/SimpleSearchTest$1.class differ
diff --git a/Sprint 1/src/UI/Windows/SimpleSearchTest.class b/Sprint 1/src/UI/Windows/SimpleSearchTest.class
new file mode 100644
index 000000000..0936ac8ac
Binary files /dev/null and b/Sprint 1/src/UI/Windows/SimpleSearchTest.class differ
diff --git a/Sprint 1/src/UI/Windows/SimpleSearchTest.java b/Sprint 1/src/UI/Windows/SimpleSearchTest.java
new file mode 100644
index 000000000..cd0c285d1
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/SimpleSearchTest.java
@@ -0,0 +1,38 @@
+package UI.Windows;
+
+import javax.swing.*;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+public class SimpleSearchTest {
+ private JFrame frame;
+ private JTextField searchBar;
+ private JButton searchButton;
+
+ public static void main(String[] args) {
+ SwingUtilities.invokeLater(() -> {
+ SimpleSearchTest window = new SimpleSearchTest();
+ window.frame.setVisible(true);
+ });
+ }
+
+ public SimpleSearchTest() {
+ frame = new JFrame("Search Test");
+ frame.setBounds(100, 100, 300, 200);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.setLayout(null);
+
+ searchBar = new JTextField();
+ searchBar.setBounds(50, 20, 200, 30);
+ frame.add(searchBar);
+
+ searchButton = new JButton("GO");
+ searchButton.setBounds(100, 70, 100, 30);
+ searchButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ System.out.println("GO button clicked");
+ }
+ });
+ frame.add(searchButton);
+ }
+}
diff --git a/Sprint 1/src/UI/Windows/exitOrNo$1.class b/Sprint 1/src/UI/Windows/exitOrNo$1.class
new file mode 100644
index 000000000..58da8932d
Binary files /dev/null and b/Sprint 1/src/UI/Windows/exitOrNo$1.class differ
diff --git a/Sprint 1/src/UI/Windows/exitOrNo$2.class b/Sprint 1/src/UI/Windows/exitOrNo$2.class
new file mode 100644
index 000000000..db01e3584
Binary files /dev/null and b/Sprint 1/src/UI/Windows/exitOrNo$2.class differ
diff --git a/Sprint 1/src/UI/Windows/exitOrNo$3.class b/Sprint 1/src/UI/Windows/exitOrNo$3.class
new file mode 100644
index 000000000..e3a5cfb4a
Binary files /dev/null and b/Sprint 1/src/UI/Windows/exitOrNo$3.class differ
diff --git a/Sprint 1/src/UI/Windows/exitOrNo.class b/Sprint 1/src/UI/Windows/exitOrNo.class
new file mode 100644
index 000000000..017daadf7
Binary files /dev/null and b/Sprint 1/src/UI/Windows/exitOrNo.class differ
diff --git a/Sprint 1/src/UI/Windows/exitOrNo.java b/Sprint 1/src/UI/Windows/exitOrNo.java
new file mode 100644
index 000000000..8b943896a
--- /dev/null
+++ b/Sprint 1/src/UI/Windows/exitOrNo.java
@@ -0,0 +1,87 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JDesktopPane;
+import javax.swing.JTextPane;
+import java.awt.BorderLayout;
+import javax.swing.JButton;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JRadioButton;
+import javax.swing.SwingConstants;
+
+public class exitOrNo{
+
+ private JFrame frame;
+ private JTextField txtExitWithoutSaving;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ exitOrNo window = new exitOrNo(args);
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public exitOrNo(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 250, 100);
+ frame.setLocationRelativeTo(null);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton exitButton = new JButton("EXIT");
+ exitButton.setBounds(6, 37, 117, 29);
+ frame.getContentPane().add(exitButton);
+ exitButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String newArgs[] = {args[0], args[1], args[2], args[3], args[4], args[5]};
+ PatientData.main(newArgs);
+ frame.dispose();
+ }
+ });
+
+ JButton exAndSave = new JButton("EXIT AND SAVE");
+ exAndSave.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
+ exAndSave.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String newArgs[] = {args[6], args[7], args[8], args[9], args[10], args[11]};
+ PatientData.main(newArgs);
+ frame.dispose();
+ }
+ });
+ exAndSave.setBounds(127, 37, 117, 29);
+ frame.getContentPane().add(exAndSave);
+
+ txtExitWithoutSaving = new JTextField();
+ txtExitWithoutSaving.setHorizontalAlignment(SwingConstants.CENTER);
+ txtExitWithoutSaving.setEditable(false);
+ txtExitWithoutSaving.setText("Exit Without Saving?");
+ txtExitWithoutSaving.setFont(new Font("Lucida Grande", Font.BOLD, 13));
+ txtExitWithoutSaving.setBounds(50, -1, 150, 36);
+ frame.getContentPane().add(txtExitWithoutSaving);
+ txtExitWithoutSaving.setColumns(10);
+ }
+}
diff --git a/Sprint 1/src/src/AddElements.class b/Sprint 1/src/src/AddElements.class
new file mode 100644
index 000000000..2e5ef1d89
Binary files /dev/null and b/Sprint 1/src/src/AddElements.class differ
diff --git a/Sprint 1/src/src/AddElements.java b/Sprint 1/src/src/AddElements.java
new file mode 100644
index 000000000..5002e11d5
--- /dev/null
+++ b/Sprint 1/src/src/AddElements.java
@@ -0,0 +1,42 @@
+package src;
+
+import java.util.LinkedList;
+
+//Test class for making sure patient information is retrievable
+public class AddElements {
+ public void execute() {
+ boolean on = true;
+ //create list of patients
+ LinkedList patientList = new LinkedList();
+
+ //Need to create a pcp list as well?
+ //pcps created for testing
+ pcpType Dr1 = new pcpType("Renata", "Glasc", "General Surgery");
+ pcpType Dr2 = new pcpType("Margaret", "Levy", "Cardio Thoracic Surgery");
+
+ //patients created for testing
+ //PatientType patient1 = new PatientType("John", "Smith", "123-45-6789", "23132312", "123",
+ //1, 2, 2001, Dr1, true, "This is a chart", "placeholder");
+ //PatientType patient2 = new PatientType("Jane", "Smith", "321-54-9876", "80085", "124",
+ //11, 12, 2005, Dr2, true, "This is also a chart", "placeholder");
+ //Testing adding events to patients
+ /*patient2.newEvent(new Event("Appendectomy","General Surgery","Patient will be receiving a laparoscopic appendectomy due to burst appendix", LocalDateTime.of(2022,1,12,6,0),"124"));
+ patient1.newEvent(new Event("General Check-up","Check-up","Will be seeing John for his annual visit", LocalDateTime.of(2022,1,12,10,30),"125"));
+ patient1.newEvent(new Event("Knee Replacement", "Orthopedic Surgery", "Patient will be receiving total knee replacement due to loss of cartilage", LocalDateTime.of(2021,3,15,15,30),"225"));
+
+
+ //Testing adding patients to patient list
+ patientList.add(patient1);
+ patientList.add(patient2); */
+
+ printList(patientList);
+ }
+
+ //Prints all patients in the list
+ public static void printList(LinkedList patientList) {
+ for (int i = 0; i < patientList.size(); i++) {
+ PatientType currentpatient = patientList.get(i);
+ currentpatient.printPatient();
+ }
+ }
+}
diff --git a/Sprint 1/src/src/DataSeeder.class b/Sprint 1/src/src/DataSeeder.class
new file mode 100644
index 000000000..fca84c861
Binary files /dev/null and b/Sprint 1/src/src/DataSeeder.class differ
diff --git a/Sprint 1/src/src/DataSeeder.java b/Sprint 1/src/src/DataSeeder.java
new file mode 100644
index 000000000..17faabded
--- /dev/null
+++ b/Sprint 1/src/src/DataSeeder.java
@@ -0,0 +1,119 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.Date;
+import java.sql.DriverManager;
+import java.sql.PreparedStatement;
+import java.sql.SQLException;
+import java.util.Random;
+
+public class DataSeeder {
+
+ private static final String URL = "jdbc:mysql://localhost:3306/HospitalManagement?useSSL=false&serverTimezone=America/New_York";
+ private static final String USER = "root";
+ private static final String PASSWORD = "SQL355%Grouppa55";
+ private static final int NUMBER_OF_PATIENTS = 1000; // Number of patients to generate
+ private static final int NUMBER_OF_PHYSICIANS = 10; // Number of physicians to generate
+
+ private static final String[] firstNames = {
+ "John", "Jane", "Alice", "Bob", "Carol", "Dave", "Eva", "Frank", "Grace", "Henry",
+ "Liam", "Olivia", "Noah", "Emma", "Ava", "Sophia", "Mason", "Lucas", "Amelia", "Ethan",
+ "Isabella", "James", "Alexander", "Charlotte", "Michael", "Benjamin", "Mia", "Elijah",
+ "Daniel", "Emily", "Matthew", "Ella", "Samuel", "Victoria", "Nathan", "Chloe", "Oliver",
+ "Madison", "Sebastian", "Jack", "Harper", "Jacob", "Leo", "Nora", "Sophie", "Abigail",
+ "Nathaniel", "Zoe", "Logan", "Isla", "Jackson", "Evelyn", "Joshua", "Aiden", "Lily"
+ };
+ private static final String[] lastNames = {
+ "Smith", "Johnson", "Williams", "Brown", "Jones", "Garcia", "Miller", "Davis",
+ "Rodriguez", "Martinez", "Wilson", "Anderson", "Taylor", "Thomas", "Hernandez",
+ "Moore", "Martin", "Jackson", "Lee", "Perez", "Clark", "Walker", "Hall", "Allen",
+ "Young", "Harris", "King", "Wright", "Lopez", "Hill", "Scott", "Green", "Adams",
+ "Baker", "Gonzalez", "Nelson", "Carter", "Mitchell", "Roberts", "Turner", "Phillips",
+ "Campbell", "Parker", "Evans", "Edwards", "Collins", "Stewart", "Sanchez", "Morris",
+ "Murphy", "Reed", "Cook", "Morgan", "Bell", "Bailey", "Rivera", "Cooper", "Richardson",
+ "Cox", "Howard", "Ward", "Torres", "Peterson", "Gray", "Ramirez", "James"
+ };
+ private static final String[] specialties = {
+ "Cardiology", "Neurology", "Orthopedics", "Pediatrics", "General Practice",
+ "Gastroenterology", "Pulmonology", "Dermatology", "Oncology", "Endocrinology"
+ };
+ private static final String[] diagnoses = {
+ "Hypertension", "Migraine", "Fracture", "Asthma", "Diabetes", "Infection",
+ "Allergy", "Depression", "Anxiety", "Arthritis", "Bronchitis", "Covid-19",
+ "Heart Disease", "Kidney Stones", "Gastroenteritis", "Pneumonia", "Chronic Fatigue",
+ "Obesity", "Liver Disease", "Pancreatitis", "COPD", "Stroke", "High Cholesterol",
+ "Appendicitis", "Sleep Apnea", "Acid Reflux", "Gout", "Osteoporosis", "Vertigo",
+ "Epilepsy", "Gallbladder Disease", "Skin Rash", "Ulcer", "Hepatitis", "Parkinson's Disease",
+ "Tuberculosis", "Herniated Disc", "Multiple Sclerosis", "Fibromyalgia", "Scoliosis",
+ "Hemorrhoids", "Conjunctivitis", "Sinusitis", "Ear Infection", "Seasonal Flu",
+ "Bipolar Disorder", "Panic Disorder", "PTSD"
+ };
+
+ public static void main(String[] args) {
+ Random random = new Random();
+
+ try (Connection conn = DriverManager.getConnection(URL, USER, PASSWORD)) {
+ seedPhysicians(conn, random);
+ seedPatients(conn, random);
+ System.out.println(NUMBER_OF_PATIENTS + " patients have been successfully added to the database.");
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ private static void seedPhysicians(Connection conn, Random random) throws SQLException {
+ String sql = "INSERT INTO Physicians (first_name, last_name, specialty) VALUES (?, ?, ?)";
+ try (PreparedStatement pstmt = conn.prepareStatement(sql)) {
+ for (int i = 0; i < NUMBER_OF_PHYSICIANS; i++) {
+ String firstName = firstNames[random.nextInt(firstNames.length)];
+ String lastName = lastNames[random.nextInt(lastNames.length)];
+ String specialty = specialties[random.nextInt(specialties.length)];
+
+ pstmt.setString(1, firstName);
+ pstmt.setString(2, lastName);
+ pstmt.setString(3, specialty);
+
+ pstmt.addBatch();
+ }
+ pstmt.executeBatch();
+ System.out.println(NUMBER_OF_PHYSICIANS + " physicians have been successfully added to the database.");
+ }
+ }
+
+ private static void seedPatients(Connection conn, Random random) throws SQLException {
+ String sql = "INSERT INTO Patients (first_name, last_name, date_of_birth, gender, admission_date, discharge_date, room_number, attending_physician, diagnosis) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
+ try (PreparedStatement pstmt = conn.prepareStatement(sql)) {
+ for (int i = 0; i < NUMBER_OF_PATIENTS; i++) {
+ // Generating random patient data
+ String firstName = firstNames[random.nextInt(firstNames.length)];
+ String lastName = lastNames[random.nextInt(lastNames.length)];
+ Date dateOfBirth = new Date(System.currentTimeMillis() - ((random.nextInt(60) + 20) * 365L * 24 * 60 * 60 * 1000L + random.nextInt(365) * 24L * 60 * 60 * 1000L)); // Age 20-80 with more variation
+ String gender = random.nextBoolean() ? "M" : "F";
+ Date admissionDate = new Date(System.currentTimeMillis() - (random.nextInt(10) * 24L * 60L * 60L * 1000L)); // Past 10 days
+ Date dischargeDate = random.nextBoolean() ? new Date(admissionDate.getTime() + (random.nextInt(5) * 24L * 60L * 60L * 1000L)) : null; // Within 5 days or null
+ int roomNumber = random.nextInt(100) + 1; // Rooms 1-100 for more diversity
+ int attendingPhysician = random.nextInt(NUMBER_OF_PHYSICIANS) + 1; // Physicians 1-10 for more diversity
+ String diagnosis = diagnoses[random.nextInt(diagnoses.length)];
+
+ // Setting values for SQL statement
+ pstmt.setString(1, firstName);
+ pstmt.setString(2, lastName);
+ pstmt.setDate(3, dateOfBirth);
+ pstmt.setString(4, gender);
+ pstmt.setDate(5, admissionDate);
+ if (dischargeDate != null) {
+ pstmt.setDate(6, dischargeDate);
+ } else {
+ pstmt.setNull(6, java.sql.Types.DATE);
+ }
+ pstmt.setInt(7, roomNumber);
+ pstmt.setInt(8, attendingPhysician);
+ pstmt.setString(9, diagnosis);
+
+ // Add to batch
+ pstmt.addBatch();
+ }
+ pstmt.executeBatch();
+ }
+ }
+}
diff --git a/Sprint 1/src/src/DatabaseConnection.class b/Sprint 1/src/src/DatabaseConnection.class
new file mode 100644
index 000000000..91250c8fb
Binary files /dev/null and b/Sprint 1/src/src/DatabaseConnection.class differ
diff --git a/Sprint 1/src/src/DatabaseConnection.java b/Sprint 1/src/src/DatabaseConnection.java
new file mode 100644
index 000000000..327927686
--- /dev/null
+++ b/Sprint 1/src/src/DatabaseConnection.java
@@ -0,0 +1,15 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+
+public class DatabaseConnection {
+ private static final String URL = "jdbc:mysql://localhost:3306/HospitalManagement?useSSL=false&serverTimezone=America/New_York";
+ private static final String USER = "root";
+ private static final String PASSWORD = "SQL355%Grouppa55"; // Replace with your root password
+
+ public static Connection getConnection() throws SQLException {
+ return DriverManager.getConnection(URL, USER, PASSWORD);
+ }
+}
diff --git a/Sprint 1/src/src/DatabaseOutline.sql b/Sprint 1/src/src/DatabaseOutline.sql
new file mode 100644
index 000000000..858b413c3
--- /dev/null
+++ b/Sprint 1/src/src/DatabaseOutline.sql
@@ -0,0 +1,22 @@
+CREATE TABLE Patients
+(
+ patient_id INT PRIMARY KEY AUTO_INCREMENT,
+ first_name VARCHAR(50) NOT NULL,
+ last_name VARCHAR(50) NOT NULL,
+ date_of_birth DATE NOT NULL,
+ gender CHAR(1),
+ admission_date DATE NOT NULL,
+ discharge_date DATE,
+ room_number INT NOT NULL,
+ attending_physician VARCHAR(50),
+ diagnosis VARCHAR(100),
+);
+
+CREATE TABLE Physicians
+(
+ physician_id INT PRIMARY KEY AUTO_INCREMENT,
+ first_name VARCHAR(50) NOT NULL,
+ last_name VARCHAR(50) NOT NULL,
+ specialty VARCHAR(50),
+);
+
diff --git a/Sprint 1/src/src/Event.class b/Sprint 1/src/src/Event.class
new file mode 100644
index 000000000..03b7d89fc
Binary files /dev/null and b/Sprint 1/src/src/Event.class differ
diff --git a/Sprint 1/src/src/Event.java b/Sprint 1/src/src/Event.java
new file mode 100644
index 000000000..bb907be8f
--- /dev/null
+++ b/Sprint 1/src/src/Event.java
@@ -0,0 +1,58 @@
+package src;
+
+import java.time.LocalDateTime;
+//Class for creating event objects
+public class Event {
+ private String eventName;
+ private String eventType;
+ private String eventDescription;
+ private LocalDateTime eventTime; // date and time of event
+ private String eventRoom;
+
+ //default constructor
+ public Event() {
+ this.eventName = "";
+ this.eventType = "";
+ this.eventDescription = "";
+ this.eventTime = null;
+ this.eventRoom = "";
+ }
+
+ //initialized constructor
+ public Event(String eventName, String eventType, String eventDescription, LocalDateTime eventTime, String eventRoom) {
+ this.eventName = eventName;
+ this.eventType = eventType;
+ this.eventTime = eventTime;
+ this.eventDescription = eventDescription;
+ this.eventRoom = eventRoom;
+ }
+ //getters
+ public String getEventName() {return eventName;}
+ public String getEventType() {return eventType;}
+ public String getEventDescription() {return eventDescription;}
+ public LocalDateTime getEventTime() {return eventTime;}
+ public String getEventRoom() {return eventRoom;}
+ //setters
+ public void setEventName(String eventName) {this.eventName = eventName;}
+ public void setEventType(String eventType) {this.eventType = eventType;}
+ public void setEventDescription(String eventDescription) {this.eventDescription = eventDescription;}
+ public void setEventTime(LocalDateTime eventTime) {this.eventTime = eventTime;}
+ public void setEventRoom(String eventRoom) {this.eventRoom = eventRoom;}
+
+ //print method for current patient event information
+ public void printEvent() {
+ System.out.println("Patient Event: " + this.getEventName() + " occuring at " + this.getEventTime());
+ System.out.println("Type: " + this.getEventType());
+ System.out.println("Description: " + this.getEventDescription());
+ System.out.println("Room: " + this.getEventRoom());
+ System.out.println("----------------------------------------");
+ }
+
+ //print function for chosen event
+ public void printChosenEvent(Event chosenEvent) {
+ System.out.println("Patient Event: " + chosenEvent.getEventName() + " occuring at " + chosenEvent.getEventTime());
+ System.out.println("Type: " + chosenEvent.getEventType());
+ System.out.println("Description: " + chosenEvent.getEventDescription());
+ System.out.println("Room: " + chosenEvent.getEventRoom());
+ }
+}
diff --git a/Sprint 1/src/src/Main.class b/Sprint 1/src/src/Main.class
new file mode 100644
index 000000000..ebdab877a
Binary files /dev/null and b/Sprint 1/src/src/Main.class differ
diff --git a/Sprint 1/src/src/Main.java b/Sprint 1/src/src/Main.java
new file mode 100644
index 000000000..56000d5a8
--- /dev/null
+++ b/Sprint 1/src/src/Main.java
@@ -0,0 +1,264 @@
+package src;
+
+import java.sql.SQLException;
+import java.util.List;
+import java.util.Scanner;
+
+public class Main {
+
+ public static void showmenu1() throws SQLException {
+ Scanner scanner = new Scanner(System.in);
+ String choice;
+ do {
+ System.out.printf("-------------Main Menu---------------\n");
+ System.out.printf("What search would you like? \n");
+ System.out.printf("1. Basic search...\n");
+ System.out.printf("2. Advanced search...\n");
+ System.out.printf("3. Print all Patients...\n");
+ System.out.printf("4. Call a doctor...\n");
+ System.out.printf("9. Exit\n");
+
+ choice = scanner.nextLine();
+
+ if (choice.equalsIgnoreCase("1")) {
+ System.out.printf("--------Basic Search-------------\n");
+ System.out.printf("Enter patient first name...\n");
+ String firstName = scanner.nextLine();
+ System.out.printf("Enter patient last name...\n");
+ String lastName = scanner.nextLine();
+ String[] patientNames = basicPatientSearch(firstName, lastName);
+ if (patientNames.length == 0) {
+ System.out.printf("No patients found with that name.\n");
+ } else {
+ System.out.printf("Patients found:\n");
+ for (String name : patientNames) {
+ System.out.println(name);
+ }
+ }
+ } else if (choice.equalsIgnoreCase("2")) {
+ showmenu2();
+ } else if (choice.equalsIgnoreCase("3")) {
+ List patients = PatientDBService.getAllPatients();
+ int start = 0;
+ int end = Math.min(100, patients.size());
+ scanner = new Scanner(System.in);
+
+ while (start < patients.size()) {
+ for (int i = start; i < end; i++) {
+ PatientType patient = patients.get(i);
+ System.out.println(patient.getPatientFName() + " " + patient.getPatientLName());
+ }
+ if (end == patients.size()) {
+ break;
+ }
+ System.out.println("Press Enter to see the next 100 patients...");
+ scanner.nextLine();
+ start = end;
+ end = Math.min(end + 100, patients.size());
+ }
+ } else if (choice.equalsIgnoreCase("4")) {
+ System.out.printf("Calling doctor on call");
+ callingDr();
+ }
+ } while (!(choice.equals("9")));
+ }
+
+ public static void showmenu2() throws SQLException {
+ Scanner scanner = new Scanner(System.in);
+ String choice;
+
+ do {
+ System.out.printf("--------Advanced Search-------------\n");
+ System.out.printf("Search by... \n");
+ System.out.printf("1. Room number \n");
+ System.out.printf("2. Medical Record Number \n");
+ System.out.printf("3. Admission Date \n");
+ System.out.printf("4. Primary Care Provider \n");
+ System.out.printf("9. Exit \n");
+ choice = scanner.nextLine();
+ String[] patientNames = new String[0];
+
+ if (choice.equalsIgnoreCase("1")) {
+ System.out.printf("Enter the room\n");
+ String room = scanner.nextLine();
+ patientNames = roomSearch(room);
+ } else if (choice.equalsIgnoreCase("2")) {
+ System.out.printf("Enter the MRN\n");
+ String MRN = scanner.nextLine();
+ patientNames = mrnSearch(MRN);
+ } else if (choice.equalsIgnoreCase("3")) {
+ System.out.printf("Enter the Admission Date in day, month, year \n");
+ int addDay = scanner.nextInt();
+ int addMonth = scanner.nextInt();
+ int addYear = scanner.nextInt();
+ scanner.nextLine(); // Consume the newline character
+ patientNames = admissionDateSearch(addDay, addMonth, addYear);
+ } else if (choice.equalsIgnoreCase("4")) {
+ System.out.printf("Enter the PCP\n");
+ String PCP = scanner.nextLine();
+ patientNames = pcpSearch(PCP);
+ }
+
+ if (patientNames.length == 0) {
+ System.out.printf("No patients found.\n");
+ } else {
+ System.out.printf("Patients found:\n");
+ for (String name : patientNames) {
+ System.out.println(name);
+ }
+ }
+ } while (!(choice.equals("9")));
+ }
+
+ public static void callingDr() {
+ for (int i = 0; i < 3; i++) {
+ try {
+ Thread.sleep(900);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.printf(".");
+ if (i == 2)
+ System.out.printf("\n");
+ }
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.println("But no one answered...");
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.println("Good luck lol");
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ }
+
+ public static String[] basicPatientSearch(String fname, String lname) throws SQLException {
+ List patients = PatientDBService.searchPatientName(fname, lname);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] roomSearch(String roomNum) throws SQLException {
+ List patients = PatientDBService.searchPatientByRoom(roomNum);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] mrnSearch(String MRN) throws SQLException {
+ List patients = PatientDBService.searchPatientsByMRN(MRN);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] pcpSearch(String PCP) throws SQLException {
+ List patients = PatientDBService.searchPatientByPCP(PCP);
+ String[] patientNames = new String[patients.size()];
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] admissionSearch(String search) throws SQLException {
+ List patients = PatientDBService.searchPatientAdmissionDate(search);
+ String[] patientNames = new String[patients.size()];
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] admissionDateSearch(int day, int month, int year) throws SQLException {
+ String search = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day);
+ return admissionSearch(search);
+ }
+
+ public static String[] ptnSelected(String ptn) throws SQLException {
+ String parts[] = ptn.split(" ",3);
+ if (parts.length < 3) {
+ throw new IllegalArgumentException("Input string does not contain enough parts");
+ }
+ String mrn = parts[2];
+ //PatientType patient = mrnSearch(mrn);
+ List patients = PatientDBService.searchPatientsByMRN(mrn);
+ PatientType newpatient = null;
+ if (!patients.isEmpty()) {
+ newpatient = patients.get(0);
+ }
+ String ptnInfo[] = new String[6];
+ if (newpatient != null) {
+ ptnInfo[0] = newpatient.getPatientLName() + " " + newpatient.getPatientFName();
+ ptnInfo[1] = newpatient.getMRN();
+ ptnInfo[2] = newpatient.getRoomNumber();
+ ptnInfo[3] = newpatient.getPcpString();
+ ptnInfo[4] = newpatient.getDiagnosis();
+ ptnInfo[5] = newpatient.getGender();
+ }
+ return ptnInfo;
+ }
+
+ public static String[] searchSelect(String searchType, String searchParam) throws SQLException {
+ switch (searchType) {
+ case "Last Name First Name":
+ String parts[] = searchParam.split(" ", 2);
+ String lastName = parts[0];
+ String firstName = parts[1];
+ return basicPatientSearch(firstName, lastName);
+ case "Room Number":
+ return roomSearch(searchParam);
+ case "Medical Record Number":
+ return mrnSearch(searchParam);
+ case "Primary Care Provider ":
+ return pcpSearch(searchParam);
+ case "Admission Date":
+ return admissionSearch(searchParam);
+ default:
+ return null;
+ }
+ }
+
+ public static void main(String[] args) throws SQLException {
+ PatientType patient = new PatientType();
+ showmenu1();
+ }
+}
\ No newline at end of file
diff --git a/Sprint 1/src/src/PatientDBService.class b/Sprint 1/src/src/PatientDBService.class
new file mode 100644
index 000000000..577c784df
Binary files /dev/null and b/Sprint 1/src/src/PatientDBService.class differ
diff --git a/Sprint 1/src/src/PatientDBService.java b/Sprint 1/src/src/PatientDBService.java
new file mode 100644
index 000000000..56c433095
--- /dev/null
+++ b/Sprint 1/src/src/PatientDBService.java
@@ -0,0 +1,280 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+
+//change the multiple methods into one method that varies the string query depending on the menu instruction chosen
+//pls ignore how bulky this is, it will be streamlined later
+public class PatientDBService {
+
+ public static List searchPatientName(String first_name, String last_name) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "select * from patients WHERE first_name=? AND last_name=? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, first_name);
+ stmt.setString(2, last_name);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+
+ query = "select * from patients WHERE first_name=? OR last_name=? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, first_name);
+ stmt.setString(2, last_name);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+
+
+ public static List searchPatientByRoom(String roomNumber) throws SQLException{
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE room_number = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, roomNumber);
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List searchPatientsByMRN(String mrn) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE patient_id = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+
+ stmt.setString(1, mrn);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+
+ public static List searchPatientByPCP(String attending_physician) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE attending_physician = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, attending_physician);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List searchPatientAdmissionDate(String admissionDate) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE admission_date = ? LIMIT 10";
+ //pick up from here and modify all other search functions to incorporate lists to hold multiple returns
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, admissionDate);
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List getAllPatients() throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM patients";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query);
+ ResultSet rs = stmt.executeQuery()) {
+
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ LocalDateTime admissionDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(admissionDate.getYear());
+ patient.setAdminMonth(admissionDate.getMonthValue());
+ patient.setAdminDay(admissionDate.getDayOfMonth());
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+}
diff --git a/Sprint 1/src/src/PatientType.class b/Sprint 1/src/src/PatientType.class
new file mode 100644
index 000000000..f9a8cb749
Binary files /dev/null and b/Sprint 1/src/src/PatientType.class differ
diff --git a/Sprint 1/src/src/PatientType.java b/Sprint 1/src/src/PatientType.java
new file mode 100644
index 000000000..21f1c83f1
--- /dev/null
+++ b/Sprint 1/src/src/PatientType.java
@@ -0,0 +1,192 @@
+package src;
+
+import java.time.LocalDateTime;
+import java.util.Scanner;
+
+//Class for creating patient objects
+public class PatientType {
+ String patientFName;
+ String patientLName;
+ String SSN;
+ String MRN;
+ String roomNumber;
+ int birthDay;
+ int birthMonth;
+ int birthYear;
+ int adminDay;
+ int adminMonth;
+ int adminYear;
+ pcpType pcp;
+ boolean insurance;
+ String chart;
+ //Need to change this to schedule type
+ String event;
+ Schedule schedule;
+ int disDay;
+ int disMonth;
+ int disYear;
+ String gender;
+ String diagnosis;
+ String pcpString;
+
+ //default constructor
+ public PatientType()
+ {
+ this.patientFName = "";
+ this.patientLName = "";
+ this.SSN = "";
+ this.MRN = "";
+ this.roomNumber = "";
+ this.birthDay = 1;
+ this.birthMonth = 1;
+ this.birthYear = 1900;
+ this.adminDay = 1;
+ this.adminMonth = 1;
+ this.adminYear = 1900;
+ this.pcp = null;
+ this.insurance = false;
+ this.chart = "";
+ this.event = "";
+ this.schedule = new Schedule();
+ this.disDay = 1;
+ this.disMonth = 1;
+ this.disYear = 1900;
+ this.gender = "";
+ this.diagnosis = "";
+ this.pcpString = "";
+ }
+
+ //initialized constructor
+ public PatientType(String fname, String lname, String SSN, String MRN, String newRoom, int birthDay, int birthMonth, int birthYear, int aDay,
+ int aMonth, int aYear, pcpType newpcp, boolean insurance, String chart, String event, int disDay, int disMonth, int disYear, String gender, String diagnosis, String pcpString ) {
+ this.patientFName = fname;
+ this.patientLName = lname;
+ this.SSN = SSN;
+ this.MRN = MRN;
+ this.roomNumber = newRoom;
+ this.birthDay = birthDay;
+ this.birthMonth = birthMonth;
+ this.birthYear = birthYear;
+ this.adminDay = aDay;
+ this.adminMonth = aMonth;
+ this.adminYear = aYear;
+ this.pcp = newpcp;
+ this.insurance = insurance;
+ this.chart = chart;
+ this.event = event;
+ this.schedule = new Schedule();
+ this.disDay = disDay;
+ this.disMonth = disMonth;
+ this.disYear = disYear;
+ this.gender = gender;
+ this.diagnosis = diagnosis;
+ this.pcpString = pcpString;
+ }
+
+ //getters
+ public String getPatientFName() {return patientFName;}
+ public String getPatientLName() {return patientLName;}
+ public String getSSN() {return SSN;}
+ public String getMRN() {return MRN;}
+ public String getRoomNumber() {return roomNumber;}
+ public int getBirthDay() {return birthDay;}
+ public int getBirthMonth() {return birthMonth;}
+ public int getBirthYear() {return birthYear;}
+ public int getAdminDay() {return adminDay;}
+ public int getAdminMonth() {return adminMonth;}
+ public int getAdminYear() {return adminYear;}
+ public pcpType getPcp() {return pcp;}
+ public boolean getInsurance() {return insurance;}
+ public String getChart() {return chart;}
+ public String getEvent() {return event;}
+ public Schedule getSchedule() {return schedule;}
+ public int getDisDay() {return disDay;}
+ public int getDisMonth() {return disMonth;}
+ public int getDisYear() {return disYear;}
+ public String getGender() {return gender;}
+ public String getDiagnosis() {return diagnosis;}
+ public String getPcpString() {return pcpString;}
+
+
+ //setters
+ public void setfname(String fname) { this.patientFName = fname;}
+ public void setlname(String lname) { this.patientLName = lname; }
+ public void setSSN(String SSN) { this.SSN = SSN; }
+ public void setMRN(String MRN) { this.MRN = MRN; }
+ public void setRoomNumber(String roomNumber) { this.roomNumber = roomNumber; }
+ public void setBirthDay(int birthDay) { this.birthDay = birthDay; }
+ public void setBirthMonth(int birthMonth) { this.birthMonth = birthMonth; }
+ public void setBirthYear(int birthYear) { this.birthYear = birthYear; }
+ public void setAdminDay(int aDay) { this.adminDay = aDay; }
+ public void setAdminMonth(int aMonth) { this.adminMonth = aMonth; }
+ public void setAdminYear(int aYear) { this.adminYear = aYear; }
+ public void setPcp(pcpType pcp) { this.pcp = pcp; }
+ public void setInsurance(boolean insurance) { this.insurance = insurance; }
+ public void setChart(String chart) { this.chart = chart; }
+ public void setEvent(String event) { this.event = event; }
+ public void setSchedule(Schedule schedule) { this.schedule = schedule; }
+ public void setDisDay(int disDay) { this.disDay = disDay; }
+ public void setDisMonth(int disMonth) { this.disMonth = disMonth; }
+ public void setDisYear(int disYear) { this.disYear = disYear; }
+ public void setGender(String gender) { this.gender = gender; }
+ public void setDiagnosis(String diagnosis) { this.diagnosis = diagnosis; }
+ public void setPcpString(String pcpString) { this.pcpString = pcpString; }
+
+ //Method for creating a new event for the patient via user input
+ public void createEvent() {
+ Scanner scanner = new Scanner(System.in);
+ System.out.println("Enter the name of the event: ");
+ String ename = scanner.nextLine();
+ System.out.println("Enter the type of the event: ");
+ String etype = scanner.nextLine();
+ System.out.println("Enter some information about the event: ");
+ String einfo = scanner.nextLine();
+ System.out.println("Enter the day of the event: ");
+ int day = scanner.nextInt();
+ System.out.println("Enter the month of the event: ");
+ int month = scanner.nextInt();
+ System.out.println("Enter the year of the event: ");
+ int year = scanner.nextInt();
+ System.out.println("Enter time of event: ");
+ int hr = scanner.nextInt();
+ int min = scanner.nextInt();
+ LocalDateTime date = LocalDateTime.of(month,day,year,hr,min);
+ System.out.println("Enter the patient room number");
+ String room = scanner.nextLine();
+ Event newEvent = new Event(ename,etype,einfo,date,room);
+ this.schedule.addEvent(newEvent);
+
+ }
+
+ //Method for adding already initalized event to patient schedule
+ public void newEvent(Event newEvent) {
+ this.schedule.addEvent(newEvent);
+ }
+
+ //prints entire patient schedule
+ //need to find way to organize schedule by date
+ public void showSchedule() {
+ System.out.println("------------Paitient Schedule------------");
+ this.schedule.printAllEvents();
+
+ }
+
+ //Method for printing all patient information
+ public void printPatient() {
+ System.out.println("----------Info for patient: " + this.getPatientFName() + "-----------");
+ System.out.println("First name: " + this.getPatientFName());
+ System.out.println("Last name: " + this.getPatientLName());
+ System.out.println("Gender: " + this.getGender());
+ System.out.println("DOB: " + this.getBirthMonth() + "/" + this.getBirthDay() + "/" + this.getBirthYear());
+ System.out.println("Social Security Number: " + this.getSSN());
+ System.out.println("Patient MRN: " + this.getMRN());
+ System.out.println("Room Number: " + this.getRoomNumber());
+ System.out.println("Admission date: " + this.getAdminMonth() + "/" + this.getAdminDay() + "/" + this.getAdminYear());
+ System.out.println("Discharge date: " + this.getDisMonth() + "/" + this.getDisDay() + "/" + this.getDisYear());
+ System.out.println("PCP: Dr." + this.pcp.drLname);
+ System.out.println("Insured?: " + this.getInsurance());
+ System.out.println("Chart: " + this.getChart());
+ System.out.println("Upcoming event: " + this.getEvent());
+ this.showSchedule();
+ }
+}
diff --git a/Sprint 1/src/src/Schedule.class b/Sprint 1/src/src/Schedule.class
new file mode 100644
index 000000000..d5e0a6217
Binary files /dev/null and b/Sprint 1/src/src/Schedule.class differ
diff --git a/Sprint 1/src/src/Schedule.java b/Sprint 1/src/src/Schedule.java
new file mode 100644
index 000000000..bfbb49a0d
--- /dev/null
+++ b/Sprint 1/src/src/Schedule.java
@@ -0,0 +1,42 @@
+package src;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+//Schedule class designed to hold multiple event class objects
+public class Schedule {
+ //Holding them in a list
+ private List events;
+ public Schedule() {
+ this.events = new ArrayList<>();
+ }
+ //method for adding a new event
+ public void addEvent(Event newevent) {
+ this.events.add(newevent);
+ }
+ //method for removing a specific event
+ public void removeEvent(Event newevent) {
+ this.events.remove(newevent);
+ }
+ //returns events in this schedule
+ public List getEvents() {
+ return this.events;
+ }
+ //prints all events in the schedule
+ public void printAllEvents() {
+ List result = new ArrayList<>();
+ for (Event event : this.events) {
+ event.printEvent();
+ }
+ }
+ //Searches list and returns events that match by specifc date
+ public List getEventbyDate(LocalDateTime date) {
+ List result = new ArrayList<>();
+ for (Event event : this.events) {
+ if(event.getEventTime().toLocalDate().equals(date)) {
+ result.add(event);
+ }
+ }
+ return result;
+ }
+}
diff --git a/Sprint 1/src/src/TestConnection.class b/Sprint 1/src/src/TestConnection.class
new file mode 100644
index 000000000..5af530a47
Binary files /dev/null and b/Sprint 1/src/src/TestConnection.class differ
diff --git a/Sprint 1/src/src/TestConnection.java b/Sprint 1/src/src/TestConnection.java
new file mode 100644
index 000000000..a8875dd40
--- /dev/null
+++ b/Sprint 1/src/src/TestConnection.java
@@ -0,0 +1,18 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+
+public class TestConnection {
+ public static void main(String[] args) {
+ try (Connection conn = DatabaseConnection.getConnection()) {
+ if (conn != null) {
+ System.out.println("Successfully connected to the database.");
+ } else {
+ System.out.println("Failed to make connection!");
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/Sprint 1/src/src/database_dump.sql b/Sprint 1/src/src/database_dump.sql
new file mode 100644
index 000000000..7861aea04
--- /dev/null
+++ b/Sprint 1/src/src/database_dump.sql
@@ -0,0 +1,87 @@
+-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
+--
+-- Host: localhost Database: hospitalmanagement
+-- ------------------------------------------------------
+-- Server version 8.0.11
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!50503 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `patients`
+--
+
+DROP TABLE IF EXISTS `patients`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `patients` (
+ `patient_id` int(11) NOT NULL AUTO_INCREMENT,
+ `first_name` varchar(50) NOT NULL,
+ `last_name` varchar(50) NOT NULL,
+ `date_of_birth` date NOT NULL,
+ `gender` char(1) DEFAULT NULL,
+ `admission_date` date NOT NULL,
+ `discharge_date` date DEFAULT NULL,
+ `room_number` int(11) NOT NULL,
+ `attending_physician` int(11) DEFAULT NULL,
+ `diagnosis` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`patient_id`),
+ KEY `attending_physician` (`attending_physician`),
+ CONSTRAINT `patients_ibfk_1` FOREIGN KEY (`attending_physician`) REFERENCES `physicians` (`physician_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `patients`
+--
+
+LOCK TABLES `patients` WRITE;
+/*!40000 ALTER TABLE `patients` DISABLE KEYS */;
+INSERT INTO `patients` VALUES (1001,'Leo','Hall','1960-11-09','F','2024-10-28','2024-10-29',16,9,'Kidney Stones'),(1002,'Ella','Torres','1965-09-26','F','2024-10-27','2024-10-31',87,6,'Chronic Fatigue'),(1003,'Grace','Wilson','1988-08-03','F','2024-10-24',NULL,19,4,'COPD'),(1004,'Nathan','Gonzalez','1947-05-13','M','2024-10-28','2024-10-28',6,8,'Kidney Stones'),(1005,'Aiden','Hernandez','1953-10-18','F','2024-10-29',NULL,91,5,'Herniated Disc'),(1006,'Elijah','Campbell','1977-08-01','F','2024-10-24','2024-10-27',61,8,'Epilepsy'),(1007,'Evelyn','Stewart','1995-04-29','M','2024-10-30','2024-11-01',33,1,'Covid-19'),(1008,'Michael','Smith','1992-10-08','F','2024-10-24',NULL,63,2,'Tuberculosis'),(1009,'Charlotte','Bailey','1962-07-15','M','2024-10-27','2024-10-31',34,8,'High Cholesterol'),(1010,'Noah','Miller','1950-08-13','M','2024-10-27',NULL,44,4,'PTSD'),(1011,'Eva','Cox','2003-06-08','M','2024-11-01',NULL,52,3,'Appendicitis'),(1012,'James','Rivera','1959-08-18','F','2024-10-30','2024-11-02',42,5,'Fibromyalgia'),(1013,'Eva','Rodriguez','1968-03-08','M','2024-10-31',NULL,40,5,'COPD'),(1014,'Mia','Hill','1979-04-18','F','2024-10-30',NULL,52,1,'Infection'),(1015,'Carol','James','1948-12-13','F','2024-10-25',NULL,24,4,'Liver Disease'),(1016,'Jane','Gray','1985-09-18','F','2024-10-31',NULL,12,2,'Herniated Disc'),(1017,'Nathaniel','Martin','1973-06-14','F','2024-11-01','2024-11-04',92,10,'Hypertension'),(1018,'Jacob','Stewart','1961-04-26','M','2024-10-26','2024-10-29',71,8,'Arthritis'),(1019,'Elijah','Richardson','1955-10-25','F','2024-10-28',NULL,47,6,'Covid-19'),(1020,'Isabella','Martin','1950-12-30','M','2024-10-26',NULL,17,4,'Bipolar Disorder'),(1021,'Isabella','Martinez','1957-10-13','M','2024-10-25','2024-10-26',79,3,'Hemorrhoids'),(1022,'Mason','Scott','1983-06-14','M','2024-10-26',NULL,39,9,'Migraine'),(1023,'Sophia','Morris','1994-02-07','M','2024-10-27','2024-10-31',95,5,'Seasonal Flu'),(1024,'Jackson','Thomas','1997-11-08','F','2024-11-01',NULL,86,7,'Panic Disorder'),(1025,'Lily','Gonzalez','2004-07-29','M','2024-10-29',NULL,96,10,'Ear Infection'),(1026,'Ella','Walker','1966-01-31','M','2024-10-30',NULL,1,2,'Scoliosis'),(1027,'Sophie','Rodriguez','1962-07-16','F','2024-11-01',NULL,18,8,'Hemorrhoids'),(1028,'Eva','Ramirez','1966-08-28','F','2024-10-27','2024-10-29',99,2,'High Cholesterol'),(1029,'Abigail','Taylor','1972-05-11','M','2024-10-26','2024-10-29',4,3,'Ulcer'),(1030,'Jack','Baker','1997-09-15','F','2024-11-01',NULL,100,10,'Allergy'),(1031,'Logan','Martinez','2000-03-05','M','2024-10-27',NULL,30,2,'Ulcer'),(1032,'Abigail','Gonzalez','1957-03-01','F','2024-10-25','2024-10-27',43,1,'High Cholesterol'),(1033,'Madison','Johnson','1982-02-26','M','2024-10-23',NULL,21,10,'Conjunctivitis'),(1034,'Leo','Morris','1966-01-16','F','2024-11-01',NULL,3,9,'Fibromyalgia'),(1035,'Nora','Nelson','1969-05-23','M','2024-10-28',NULL,85,1,'Hemorrhoids'),(1036,'Nora','Murphy','1955-01-24','F','2024-10-30',NULL,2,1,'Bronchitis'),(1037,'Jackson','Garcia','1967-01-21','M','2024-10-25','2024-10-27',84,8,'Tuberculosis'),(1038,'Jack','Lee','1996-09-04','M','2024-10-24','2024-10-27',60,8,'Sleep Apnea'),(1039,'Jack','Scott','1995-01-06','M','2024-10-30','2024-11-02',84,7,'Scoliosis'),(1040,'Liam','Bailey','1983-05-15','F','2024-10-23','2024-10-24',83,8,'Appendicitis'),(1041,'Joshua','Cox','1991-03-11','F','2024-10-27',NULL,44,3,'Ear Infection'),(1042,'Alexander','Reed','1960-09-10','M','2024-10-31','2024-11-03',35,4,'Gallbladder Disease'),(1043,'Ethan','Scott','1973-01-11','F','2024-10-26','2024-10-29',47,9,'Herniated Disc'),(1044,'Michael','Wilson','1985-12-14','F','2024-10-27',NULL,59,10,'Herniated Disc'),(1045,'Noah','Gray','1985-06-16','F','2024-10-23','2024-10-26',23,1,'Allergy'),(1046,'Isla','Smith','1988-07-06','M','2024-10-31',NULL,63,3,'Tuberculosis'),(1047,'Carol','Sanchez','1969-01-28','M','2024-10-24','2024-10-28',96,8,'Sleep Apnea'),(1048,'Lucas','Bailey','1991-03-31','M','2024-10-29','2024-11-02',57,2,'Asthma'),(1049,'Alexander','Mitchell','1970-12-12','F','2024-10-23','2024-10-25',73,2,'Hemorrhoids'),(1050,'Jackson','Gray','1992-09-11','F','2024-10-26',NULL,95,3,'Gout'),(1051,'Liam','Cox','1984-11-26','F','2024-10-26',NULL,33,9,'Kidney Stones'),(1052,'Nora','King','1974-01-07','F','2024-10-28','2024-10-29',68,4,'Heart Disease'),(1053,'Ava','Gonzalez','1947-07-09','M','2024-10-24','2024-10-26',52,9,'Panic Disorder'),(1054,'Ethan','Green','1976-03-20','M','2024-11-01','2024-11-01',96,8,'Bronchitis'),(1055,'Amelia','Miller','1951-07-20','M','2024-10-28','2024-10-28',74,5,'Ulcer'),(1056,'Nathan','Hill','2000-06-20','F','2024-10-29','2024-11-01',88,4,'Bipolar Disorder'),(1057,'Alexander','Collins','2002-02-05','F','2024-10-24',NULL,16,8,'Epilepsy'),(1058,'Bob','Smith','1948-12-03','M','2024-10-30',NULL,62,5,'Acid Reflux'),(1059,'Ella','King','1955-02-18','M','2024-10-29',NULL,27,9,'Migraine'),(1060,'Frank','Baker','1954-04-13','M','2024-10-27','2024-10-27',74,10,'Allergy'),(1061,'Michael','Williams','1986-02-10','F','2024-10-25',NULL,27,10,'Parkinson\'s Disease'),(1062,'Alice','Stewart','1964-08-28','M','2024-10-24','2024-10-24',30,5,'Sinusitis'),(1063,'Ethan','Baker','1982-11-02','M','2024-10-30',NULL,81,4,'Sinusitis'),(1064,'Liam','Collins','1949-05-07','M','2024-10-24','2024-10-27',3,9,'Asthma'),(1065,'Leo','Morris','1966-05-30','M','2024-10-26','2024-10-27',39,9,'Gallbladder Disease'),(1066,'Charlotte','Torres','1967-12-10','M','2024-11-01','2024-11-01',14,3,'Obesity'),(1067,'Nathan','Edwards','1950-12-28','M','2024-11-01',NULL,26,10,'Gallbladder Disease'),(1068,'Logan','Gonzalez','1973-12-28','M','2024-10-26',NULL,73,8,'Epilepsy'),(1069,'Amelia','Bailey','1959-10-16','F','2024-10-31',NULL,27,2,'Anxiety'),(1070,'Oliver','Parker','1956-01-28','F','2024-10-26',NULL,18,7,'Skin Rash'),(1071,'Alexander','Torres','1949-09-06','F','2024-11-01','2024-11-02',62,8,'Bronchitis'),(1072,'Elijah','Bell','1944-12-31','F','2024-10-26',NULL,2,4,'High Cholesterol'),(1073,'Michael','Mitchell','1976-12-17','M','2024-10-29','2024-11-02',9,10,'Pancreatitis'),(1074,'Jane','Jones','1989-12-21','M','2024-10-28',NULL,14,3,'Covid-19'),(1075,'Chloe','Peterson','1968-07-12','F','2024-10-25',NULL,23,2,'Skin Rash'),(1076,'James','Perez','2001-09-06','F','2024-10-25','2024-10-29',92,7,'Osteoporosis'),(1077,'Michael','Martinez','1957-04-21','M','2024-11-01','2024-11-01',76,7,'Vertigo'),(1078,'John','Scott','1979-01-09','F','2024-10-25',NULL,75,1,'Panic Disorder'),(1079,'Nathaniel','Martin','1974-11-06','F','2024-10-23','2024-10-26',35,2,'Pneumonia'),(1080,'Benjamin','Baker','1958-05-20','F','2024-10-24','2024-10-26',98,8,'Bipolar Disorder'),(1081,'Olivia','Torres','1971-11-23','M','2024-10-30','2024-10-30',45,1,'Asthma'),(1082,'Eva','Morris','1968-11-26','F','2024-10-27',NULL,67,4,'PTSD'),(1083,'Logan','Cox','1967-11-25','M','2024-10-26','2024-10-30',71,9,'Fracture'),(1084,'John','Hall','1954-09-05','F','2024-10-25',NULL,20,10,'Bronchitis'),(1085,'Elijah','Davis','1966-07-02','M','2024-11-01','2024-11-05',53,5,'Pneumonia'),(1086,'Elijah','Roberts','1999-08-13','M','2024-10-26','2024-10-27',68,8,'PTSD'),(1087,'Ava','Gray','2001-03-01','F','2024-10-29',NULL,6,10,'Gastroenteritis'),(1088,'Matthew','James','1972-03-13','M','2024-10-27',NULL,76,1,'Vertigo'),(1089,'Logan','Gray','1977-06-11','F','2024-10-27',NULL,83,4,'Pancreatitis'),(1090,'Chloe','Gonzalez','1977-02-21','M','2024-10-24',NULL,18,5,'Hemorrhoids'),(1091,'Mason','Martin','1967-06-20','M','2024-10-31',NULL,64,3,'Fracture'),(1092,'Amelia','Williams','1996-11-03','M','2024-10-24',NULL,39,6,'Hemorrhoids'),(1093,'Victoria','Jackson','1988-06-04','M','2024-10-27',NULL,35,4,'Arthritis'),(1094,'Harper','Clark','2004-02-07','M','2024-10-28',NULL,4,10,'Tuberculosis'),(1095,'Jacob','Ward','1962-10-15','M','2024-10-29',NULL,19,10,'Fracture'),(1096,'Sophia','Morris','1947-01-31','M','2024-10-27','2024-10-27',70,5,'Allergy'),(1097,'James','Williams','1983-06-20','F','2024-10-31','2024-11-03',47,9,'Fracture'),(1098,'Charlotte','Ramirez','1985-05-14','M','2024-10-26',NULL,12,9,'PTSD'),(1099,'Jack','Moore','1950-11-24','F','2024-10-26',NULL,61,8,'Hypertension'),(1100,'Alexander','Nelson','1968-02-10','F','2024-10-24','2024-10-25',70,10,'High Cholesterol'),(1101,'Isabella','Edwards','1986-01-09','M','2024-10-27',NULL,37,3,'Anxiety'),(1102,'Lucas','Martinez','1981-05-26','F','2024-10-27',NULL,10,7,'Ear Infection'),(1103,'Madison','Cook','1978-11-02','M','2024-10-26','2024-10-27',72,4,'Migraine'),(1104,'Jack','Davis','1975-02-16','M','2024-11-01','2024-11-02',94,8,'Gallbladder Disease'),(1105,'Grace','Ward','1945-01-11','F','2024-10-30',NULL,79,8,'Ear Infection'),(1106,'Grace','Reed','1976-07-26','M','2024-11-01','2024-11-03',92,4,'Epilepsy'),(1107,'Aiden','Moore','1983-07-22','F','2024-10-30',NULL,12,9,'Liver Disease'),(1108,'Dave','Nelson','1997-12-11','M','2024-10-29','2024-10-31',57,9,'Kidney Stones'),(1109,'Grace','Clark','1946-10-07','F','2024-10-25',NULL,51,6,'Heart Disease'),(1110,'James','Sanchez','1946-12-12','M','2024-10-31',NULL,89,8,'COPD'),(1111,'Sophie','Davis','1944-12-21','M','2024-10-27',NULL,34,4,'Depression'),(1112,'Emma','Davis','1982-08-26','M','2024-10-29',NULL,50,2,'Tuberculosis'),(1113,'Nathan','Moore','1950-07-30','F','2024-10-24','2024-10-25',92,8,'Panic Disorder'),(1114,'John','Cox','1998-02-05','F','2024-10-29','2024-10-29',36,9,'Multiple Sclerosis'),(1115,'Chloe','Bell','1953-03-07','F','2024-10-27',NULL,53,1,'Diabetes'),(1116,'Sophie','Adams','2001-07-24','F','2024-10-27',NULL,50,9,'Fracture'),(1117,'Emma','James','2000-04-21','M','2024-10-23','2024-10-24',13,4,'Diabetes'),(1118,'Jacob','Cox','1997-08-03','F','2024-10-23',NULL,77,2,'Liver Disease'),(1119,'Evelyn','Ward','2003-11-11','M','2024-11-01',NULL,79,3,'Fracture'),(1120,'Sophia','Roberts','1978-01-28','M','2024-10-29',NULL,96,5,'Bipolar Disorder'),(1121,'Leo','Davis','1987-10-17','F','2024-10-31',NULL,55,6,'Hemorrhoids'),(1122,'Mason','Jackson','1961-12-18','M','2024-10-30','2024-11-03',18,3,'Pancreatitis'),(1123,'Frank','Allen','1969-02-12','F','2024-10-26','2024-10-27',76,8,'Infection'),(1124,'Harper','Torres','1996-06-07','F','2024-10-23','2024-10-23',91,4,'COPD'),(1125,'Oliver','Murphy','1997-09-26','M','2024-10-26',NULL,85,4,'Sinusitis'),(1126,'Carol','Mitchell','1962-12-24','F','2024-10-28','2024-11-01',22,7,'Gastroenteritis'),(1127,'Lucas','Walker','1954-12-28','F','2024-10-31','2024-10-31',73,3,'Gastroenteritis'),(1128,'Grace','Scott','1965-06-17','M','2024-11-01','2024-11-01',87,3,'Multiple Sclerosis'),(1129,'Amelia','Allen','1982-12-15','F','2024-11-01',NULL,49,6,'Sinusitis'),(1130,'Frank','Evans','1997-01-31','F','2024-10-25',NULL,63,10,'Infection'),(1131,'Liam','Cooper','1983-02-13','F','2024-10-27',NULL,88,9,'Heart Disease'),(1132,'Abigail','Morgan','1990-02-01','M','2024-10-27','2024-10-31',75,1,'Hypertension'),(1133,'Benjamin','King','1994-04-29','M','2024-10-28','2024-10-31',78,4,'Hepatitis'),(1134,'Alice','Cox','1998-10-27','M','2024-10-30',NULL,17,7,'Gout'),(1135,'Olivia','Peterson','1961-07-07','F','2024-10-24',NULL,4,10,'Liver Disease'),(1136,'Joshua','Johnson','1998-07-08','M','2024-10-31','2024-11-04',57,3,'Depression'),(1137,'Oliver','Ramirez','1999-11-08','F','2024-10-25','2024-10-26',72,6,'Hypertension'),(1138,'Isla','Martin','1984-01-15','F','2024-10-25',NULL,56,8,'Bipolar Disorder'),(1139,'Amelia','Phillips','1991-12-08','F','2024-11-01',NULL,2,6,'Covid-19'),(1140,'Sophie','Harris','1956-11-11','F','2024-10-30',NULL,16,7,'Osteoporosis'),(1141,'Logan','Adams','1992-11-24','F','2024-10-24','2024-10-27',68,5,'Fracture'),(1142,'Ethan','Ward','1950-03-21','F','2024-10-26','2024-10-26',37,9,'Herniated Disc'),(1143,'Nora','Collins','1952-10-30','F','2024-10-29',NULL,64,8,'Bronchitis'),(1144,'Grace','Young','1980-02-14','M','2024-10-24','2024-10-26',33,4,'Epilepsy'),(1145,'Lucas','Harris','1966-12-10','M','2024-10-24',NULL,49,7,'Conjunctivitis'),(1146,'Madison','Murphy','1987-12-31','F','2024-10-25',NULL,94,2,'Multiple Sclerosis'),(1147,'Ella','Lee','1945-07-18','F','2024-10-23','2024-10-25',23,8,'Panic Disorder'),(1148,'Isla','Ramirez','1958-04-27','M','2024-10-29','2024-11-02',19,10,'Hepatitis'),(1149,'Samuel','Moore','1975-11-14','F','2024-10-23',NULL,41,5,'Covid-19'),(1150,'Nathaniel','Stewart','1947-01-08','F','2024-10-25','2024-10-27',33,8,'Tuberculosis'),(1151,'Mason','Hill','1976-06-20','M','2024-10-23',NULL,49,7,'Migraine'),(1152,'Lily','Cook','1948-08-19','M','2024-11-01','2024-11-03',3,4,'Gastroenteritis'),(1153,'Henry','Gray','1956-04-02','M','2024-10-28','2024-11-01',98,1,'Hepatitis'),(1154,'Mia','Howard','1961-01-02','M','2024-10-30','2024-10-30',55,7,'Depression'),(1155,'John','Williams','2003-12-06','M','2024-10-27',NULL,88,3,'Parkinson\'s Disease'),(1156,'Eva','Peterson','1981-03-01','M','2024-11-01','2024-11-01',30,8,'Heart Disease'),(1157,'Sebastian','Mitchell','1956-02-26','F','2024-10-27',NULL,84,2,'Osteoporosis'),(1158,'Zoe','Smith','1989-01-23','M','2024-10-31',NULL,94,3,'Anxiety'),(1159,'Emma','Adams','1995-10-26','M','2024-11-01','2024-11-03',60,5,'Liver Disease'),(1160,'Chloe','Wright','1999-12-27','F','2024-10-30','2024-11-02',65,2,'Ear Infection'),(1161,'John','Carter','1951-11-24','M','2024-10-29','2024-10-29',49,3,'Bronchitis'),(1162,'Abigail','Ward','1962-10-28','M','2024-10-27','2024-10-27',50,10,'Sinusitis'),(1163,'Nathaniel','Rodriguez','1948-07-09','F','2024-10-26',NULL,51,6,'Gallbladder Disease'),(1164,'Isla','Adams','1960-02-16','M','2024-10-27','2024-10-30',64,10,'Scoliosis'),(1165,'James','Roberts','1991-02-26','F','2024-10-24',NULL,66,3,'Conjunctivitis'),(1166,'Logan','Brown','1989-11-30','F','2024-10-23','2024-10-24',36,8,'Sleep Apnea'),(1167,'Noah','Cook','1976-03-25','F','2024-11-01',NULL,84,9,'Liver Disease'),(1168,'Nathan','Stewart','1993-11-28','M','2024-10-25','2024-10-27',83,3,'Hypertension'),(1169,'Henry','Williams','1947-12-17','M','2024-10-31',NULL,33,6,'Seasonal Flu'),(1170,'Leo','Ward','1986-12-12','F','2024-11-01','2024-11-04',52,7,'Acid Reflux'),(1171,'Ethan','Martin','1985-12-19','M','2024-10-23','2024-10-25',46,3,'Asthma'),(1172,'Dave','Martinez','1990-05-05','F','2024-10-29','2024-11-01',65,1,'Gallbladder Disease'),(1173,'Jackson','Wright','1945-06-28','M','2024-10-28',NULL,14,8,'Allergy'),(1174,'Jackson','Hernandez','1961-12-31','F','2024-10-28',NULL,48,1,'Infection'),(1175,'Logan','Nelson','1996-10-30','F','2024-11-01',NULL,87,8,'Tuberculosis'),(1176,'Emma','Taylor','1968-06-04','M','2024-10-29',NULL,21,9,'Chronic Fatigue'),(1177,'Victoria','Hall','1988-03-15','M','2024-10-24',NULL,39,3,'Arthritis'),(1178,'Isla','Clark','1951-06-11','F','2024-10-26','2024-10-26',13,7,'Sleep Apnea'),(1179,'Ella','Wright','1991-05-20','F','2024-11-01',NULL,73,9,'Depression'),(1180,'Amelia','Lee','1968-09-07','F','2024-10-29','2024-11-01',68,6,'Scoliosis'),(1181,'Elijah','Wright','1954-01-18','F','2024-10-25',NULL,14,8,'Liver Disease'),(1182,'Nora','Mitchell','1965-05-09','M','2024-10-30','2024-10-30',9,1,'Infection'),(1183,'Nathaniel','Brown','1955-03-14','F','2024-10-30','2024-10-30',11,7,'Pancreatitis'),(1184,'Carol','Garcia','2002-12-09','M','2024-10-29',NULL,96,8,'Heart Disease'),(1185,'Dave','Anderson','1947-09-19','M','2024-10-26',NULL,46,5,'Diabetes'),(1186,'Henry','Baker','1954-03-16','F','2024-10-30','2024-11-01',61,9,'Heart Disease'),(1187,'Abigail','King','1952-01-31','M','2024-10-25',NULL,76,3,'Herniated Disc'),(1188,'Joshua','Nelson','1980-11-23','M','2024-10-25',NULL,28,6,'Sleep Apnea'),(1189,'Olivia','Reed','1969-03-17','F','2024-10-28',NULL,82,5,'Sleep Apnea'),(1190,'Leo','Parker','1945-05-26','F','2024-10-31','2024-11-02',93,1,'Conjunctivitis'),(1191,'Liam','Hernandez','1983-04-13','F','2024-10-31',NULL,33,7,'Liver Disease'),(1192,'Ella','Williams','1962-08-31','F','2024-10-26',NULL,66,5,'PTSD'),(1193,'Nathaniel','Hernandez','2000-06-03','F','2024-10-31','2024-11-03',90,10,'Parkinson\'s Disease'),(1194,'Jane','Williams','1994-12-26','F','2024-10-28',NULL,78,2,'Appendicitis'),(1195,'Henry','Collins','1993-09-27','M','2024-10-24',NULL,35,7,'Gout'),(1196,'Eva','Peterson','1998-10-19','M','2024-10-27','2024-10-31',63,5,'PTSD'),(1197,'Nora','Murphy','1977-12-07','F','2024-10-30',NULL,59,2,'Parkinson\'s Disease'),(1198,'Ethan','Mitchell','1992-08-11','M','2024-10-28',NULL,46,2,'Migraine'),(1199,'Eva','James','1945-09-18','M','2024-10-23',NULL,98,7,'Kidney Stones'),(1200,'Sophie','Bailey','1999-03-10','M','2024-10-24','2024-10-28',43,1,'Pancreatitis'),(1201,'Michael','Richardson','1990-05-12','F','2024-10-23','2024-10-26',82,7,'Herniated Disc'),(1202,'Eva','Jones','1964-11-12','M','2024-10-25',NULL,34,4,'Gastroenteritis'),(1203,'Liam','Evans','1983-06-21','F','2024-10-30',NULL,12,5,'Seasonal Flu'),(1204,'Eva','Johnson','1988-03-27','F','2024-10-25',NULL,99,8,'Sinusitis'),(1205,'Michael','Martinez','1957-07-27','F','2024-11-01','2024-11-01',66,4,'Panic Disorder'),(1206,'Amelia','Morgan','1987-03-30','F','2024-10-27','2024-10-30',29,3,'Infection'),(1207,'Sophie','Cook','1965-12-22','M','2024-10-31',NULL,88,4,'Bipolar Disorder'),(1208,'Abigail','Collins','1982-12-12','F','2024-10-31',NULL,63,5,'Diabetes'),(1209,'Logan','Phillips','1968-10-02','M','2024-10-23',NULL,89,2,'Heart Disease'),(1210,'Henry','Taylor','1956-01-07','M','2024-10-24',NULL,63,10,'Tuberculosis'),(1211,'Alice','Baker','1979-01-31','F','2024-10-25',NULL,36,2,'Fibromyalgia'),(1212,'Evelyn','Green','1992-11-08','F','2024-11-01','2024-11-01',31,4,'Hepatitis'),(1213,'Benjamin','Parker','1987-08-12','M','2024-11-01','2024-11-03',97,10,'Panic Disorder'),(1214,'Henry','Baker','1989-01-10','F','2024-10-31',NULL,30,2,'Migraine'),(1215,'Samuel','Peterson','1969-06-08','M','2024-11-01','2024-11-04',13,7,'Gallbladder Disease'),(1216,'Chloe','Clark','1954-12-05','F','2024-10-23','2024-10-26',82,6,'COPD'),(1217,'Nathan','Jackson','1991-01-10','F','2024-10-25','2024-10-27',92,7,'Tuberculosis'),(1218,'Nathan','Cooper','1987-03-06','F','2024-10-31','2024-11-04',76,3,'Gallbladder Disease'),(1219,'Bob','Hall','1977-12-12','M','2024-10-25','2024-10-25',100,3,'Liver Disease'),(1220,'Jackson','Walker','1990-02-13','F','2024-10-26',NULL,93,1,'Gastroenteritis'),(1221,'Isabella','Wilson','1970-12-16','M','2024-10-26','2024-10-27',25,7,'High Cholesterol'),(1222,'Evelyn','Edwards','1968-07-18','M','2024-10-29','2024-10-31',10,7,'Seasonal Flu'),(1223,'Ava','Mitchell','1949-11-26','M','2024-11-01',NULL,90,6,'Covid-19'),(1224,'Evelyn','Evans','1947-05-31','F','2024-10-27','2024-10-30',62,4,'Ulcer'),(1225,'Mason','Bell','1995-05-02','F','2024-10-28','2024-10-30',88,10,'Heart Disease'),(1226,'Ethan','King','2003-11-08','F','2024-10-29','2024-11-02',63,8,'Liver Disease'),(1227,'Olivia','Turner','1957-09-02','M','2024-11-01','2024-11-04',70,5,'Osteoporosis'),(1228,'John','Brown','1995-06-03','F','2024-10-30',NULL,90,2,'Sleep Apnea'),(1229,'Jane','Williams','1976-11-05','F','2024-11-01','2024-11-05',95,6,'Covid-19'),(1230,'Abigail','Morgan','1969-12-02','M','2024-10-25',NULL,11,1,'Sinusitis'),(1231,'Isabella','Johnson','1999-04-20','M','2024-11-01','2024-11-03',96,6,'Herniated Disc'),(1232,'Daniel','Thomas','1973-11-20','M','2024-10-29',NULL,75,1,'Tuberculosis'),(1233,'Eva','Hernandez','2002-04-11','F','2024-10-31',NULL,81,6,'Obesity'),(1234,'Aiden','Cooper','1969-05-26','F','2024-10-26','2024-10-30',83,10,'Heart Disease'),(1235,'Victoria','Parker','1956-06-24','M','2024-11-01','2024-11-01',85,8,'Gastroenteritis'),(1236,'Evelyn','Hernandez','1961-05-23','M','2024-10-24','2024-10-26',40,5,'Epilepsy'),(1237,'Alice','Clark','1966-07-10','F','2024-10-30','2024-11-03',32,5,'Acid Reflux'),(1238,'Noah','Stewart','1960-09-27','F','2024-10-28','2024-11-01',98,3,'Gout'),(1239,'Henry','Anderson','1991-05-23','M','2024-10-27','2024-10-30',41,1,'Diabetes'),(1240,'Lily','Rodriguez','1972-08-28','F','2024-11-01','2024-11-03',73,9,'Hypertension'),(1241,'Jackson','Jones','1951-10-23','F','2024-10-29',NULL,9,9,'Scoliosis'),(1242,'Lily','Collins','1990-12-27','F','2024-10-28','2024-10-28',97,6,'COPD'),(1243,'Evelyn','Gonzalez','1957-11-09','F','2024-10-25',NULL,69,8,'Bronchitis'),(1244,'John','Brown','1967-01-16','M','2024-11-01',NULL,77,4,'Chronic Fatigue'),(1245,'Elijah','Hall','1963-06-14','M','2024-10-26','2024-10-29',68,9,'Liver Disease'),(1246,'Matthew','Green','1999-01-12','M','2024-10-25','2024-10-25',75,1,'Gastroenteritis'),(1247,'Jack','Cox','1991-11-09','F','2024-10-24','2024-10-24',26,4,'Panic Disorder'),(1248,'Sophia','Nelson','1949-09-29','F','2024-10-23','2024-10-24',79,8,'Kidney Stones'),(1249,'James','Cooper','1948-04-14','F','2024-10-24','2024-10-25',59,6,'Obesity'),(1250,'Ethan','Martin','2000-06-30','F','2024-10-27',NULL,8,8,'Ulcer'),(1251,'Charlotte','Williams','1968-05-23','F','2024-10-26',NULL,40,5,'Gastroenteritis'),(1252,'Bob','Reed','1967-10-13','F','2024-10-28',NULL,18,2,'Gallbladder Disease'),(1253,'Lucas','Morgan','1982-06-29','F','2024-10-28','2024-11-01',12,7,'Chronic Fatigue'),(1254,'Victoria','Adams','1998-09-28','F','2024-11-01',NULL,95,2,'Appendicitis'),(1255,'Frank','Jones','1997-02-17','F','2024-10-29',NULL,6,2,'Stroke'),(1256,'Michael','Green','1966-05-18','F','2024-10-26',NULL,13,10,'Pancreatitis'),(1257,'Benjamin','Bell','1974-12-08','F','2024-10-30',NULL,56,2,'Tuberculosis'),(1258,'Henry','Garcia','1980-08-06','M','2024-10-30','2024-11-01',96,9,'Kidney Stones'),(1259,'Amelia','Rivera','1962-02-16','M','2024-10-28',NULL,61,5,'Osteoporosis'),(1260,'Victoria','Morris','1987-11-07','F','2024-10-24','2024-10-28',36,1,'Allergy'),(1261,'Amelia','Martin','1949-07-28','F','2024-10-26','2024-10-28',57,5,'Obesity'),(1262,'Noah','Cook','1998-03-04','M','2024-10-25','2024-10-25',18,5,'Diabetes'),(1263,'Leo','Anderson','1998-03-13','F','2024-11-01','2024-11-01',22,3,'Allergy'),(1264,'Chloe','Mitchell','1972-04-07','F','2024-10-23','2024-10-26',2,8,'Hepatitis'),(1265,'Zoe','Taylor','1973-01-11','F','2024-10-24',NULL,48,10,'Kidney Stones'),(1266,'Dave','Young','1950-01-06','M','2024-11-01',NULL,60,5,'Vertigo'),(1267,'Grace','Murphy','1994-02-05','M','2024-10-23','2024-10-26',55,1,'Anxiety'),(1268,'Samuel','Ward','2003-08-08','F','2024-10-29','2024-10-30',40,5,'High Cholesterol'),(1269,'Mason','Sanchez','1966-03-24','M','2024-10-28',NULL,76,3,'Scoliosis'),(1270,'Aiden','Howard','1991-11-23','M','2024-10-26','2024-10-27',40,6,'Liver Disease'),(1271,'Ethan','King','1977-04-22','F','2024-10-30',NULL,68,6,'Hypertension'),(1272,'Olivia','Anderson','1979-06-08','F','2024-10-31','2024-10-31',73,7,'Vertigo'),(1273,'Nathan','Smith','1999-11-21','M','2024-10-31','2024-11-03',17,5,'Ear Infection'),(1274,'John','Williams','1984-06-19','M','2024-11-01',NULL,73,3,'Covid-19'),(1275,'Victoria','Edwards','1996-10-11','M','2024-10-23',NULL,41,8,'Stroke'),(1276,'Ava','Campbell','1947-02-10','F','2024-10-23',NULL,76,5,'Fracture'),(1277,'Olivia','Perez','1977-02-05','F','2024-10-29',NULL,26,10,'Infection'),(1278,'Isla','Mitchell','1953-07-13','F','2024-10-28','2024-10-28',17,3,'Gallbladder Disease'),(1279,'Samuel','Lopez','1958-08-26','M','2024-10-31',NULL,79,7,'Covid-19'),(1280,'Harper','Hill','1989-12-05','F','2024-10-24',NULL,11,4,'Appendicitis'),(1281,'Samuel','Rivera','1999-03-02','M','2024-10-24','2024-10-27',76,8,'Liver Disease'),(1282,'Harper','Jackson','1989-04-05','F','2024-10-27','2024-10-28',91,5,'Migraine'),(1283,'Noah','Martin','1983-06-11','M','2024-10-30','2024-11-02',29,8,'Hemorrhoids'),(1284,'Bob','Wilson','1964-02-13','M','2024-10-31','2024-11-04',32,3,'Allergy'),(1285,'Frank','Garcia','1948-09-04','F','2024-10-27','2024-10-31',68,4,'Tuberculosis'),(1286,'Victoria','Mitchell','1985-05-27','F','2024-10-25','2024-10-27',75,10,'Asthma'),(1287,'Jacob','Anderson','1960-07-02','F','2024-10-28','2024-10-28',66,2,'Anxiety'),(1288,'Abigail','Bell','1972-12-29','F','2024-10-31',NULL,17,9,'Seasonal Flu'),(1289,'Jacob','Williams','1966-02-04','F','2024-10-28',NULL,79,7,'Covid-19'),(1290,'Mia','Peterson','1986-06-06','F','2024-10-25','2024-10-26',6,1,'Parkinson\'s Disease'),(1291,'Zoe','James','1991-10-26','M','2024-11-01',NULL,85,7,'Arthritis'),(1292,'Bob','Williams','1988-03-03','F','2024-10-29','2024-10-29',75,2,'Conjunctivitis'),(1293,'Samuel','Collins','1986-03-11','F','2024-10-28','2024-10-29',60,10,'Ulcer'),(1294,'James','Bailey','1995-12-17','F','2024-10-30','2024-11-02',41,2,'Pneumonia'),(1295,'Emma','Brown','1997-05-21','M','2024-10-30','2024-11-03',21,2,'Kidney Stones'),(1296,'Amelia','Murphy','1977-05-19','M','2024-10-24',NULL,81,5,'Diabetes'),(1297,'Zoe','King','1950-06-13','M','2024-10-24',NULL,45,2,'Multiple Sclerosis'),(1298,'Jack','Williams','1987-03-03','F','2024-10-29','2024-10-31',13,2,'Migraine'),(1299,'Bob','Roberts','1987-10-24','M','2024-10-30','2024-11-01',83,4,'Ulcer'),(1300,'Ella','Williams','1982-11-27','F','2024-11-01',NULL,11,8,'Seasonal Flu'),(1301,'Madison','Taylor','1977-07-20','M','2024-11-01',NULL,78,9,'Hepatitis'),(1302,'Benjamin','Rivera','1982-06-02','M','2024-10-30','2024-11-01',98,3,'Asthma'),(1303,'Sophia','Martinez','1979-03-22','F','2024-10-29',NULL,82,7,'Osteoporosis'),(1304,'Alexander','Anderson','1996-12-02','F','2024-10-30','2024-11-02',59,1,'Hypertension'),(1305,'Charlotte','Cook','1996-07-18','F','2024-10-28',NULL,13,4,'Stroke'),(1306,'Jane','Morris','1963-04-24','M','2024-10-31',NULL,27,10,'COPD'),(1307,'Harper','Cooper','1981-06-13','F','2024-10-31',NULL,44,5,'Chronic Fatigue'),(1308,'Isabella','Ward','1991-03-16','F','2024-10-25',NULL,97,10,'Bronchitis'),(1309,'Grace','Allen','1951-03-03','M','2024-10-26',NULL,75,5,'Chronic Fatigue'),(1310,'Isla','Rodriguez','2002-01-20','F','2024-10-25',NULL,59,7,'Hypertension'),(1311,'Logan','Davis','1957-11-09','M','2024-10-25',NULL,53,7,'Infection'),(1312,'Chloe','Roberts','1988-09-18','M','2024-10-26','2024-10-30',2,10,'High Cholesterol'),(1313,'Bob','Jackson','1993-03-22','M','2024-11-01',NULL,81,9,'Skin Rash'),(1314,'Daniel','Cox','1985-12-31','M','2024-10-27','2024-10-28',23,5,'Diabetes'),(1315,'Lily','Adams','1952-12-05','F','2024-10-23',NULL,30,4,'Parkinson\'s Disease'),(1316,'Daniel','Young','1992-03-03','M','2024-10-28',NULL,84,9,'Tuberculosis'),(1317,'Grace','Hill','1962-08-23','F','2024-10-31','2024-11-02',59,2,'Hepatitis'),(1318,'Jacob','Johnson','1957-10-07','M','2024-10-24','2024-10-28',53,4,'PTSD'),(1319,'Sophia','Jones','2002-05-27','F','2024-10-25',NULL,65,3,'Osteoporosis'),(1320,'Elijah','Young','1966-03-05','F','2024-11-01','2024-11-02',7,10,'Bipolar Disorder'),(1321,'Benjamin','Cook','1991-03-21','M','2024-10-25','2024-10-26',83,10,'Panic Disorder'),(1322,'Isabella','Collins','2002-03-05','M','2024-10-29',NULL,4,1,'Allergy'),(1323,'Samuel','Bell','1992-05-04','M','2024-10-27',NULL,28,4,'Seasonal Flu'),(1324,'Noah','Morgan','1983-04-23','M','2024-10-30','2024-10-31',43,1,'Sleep Apnea'),(1325,'Chloe','Stewart','1978-07-23','M','2024-10-31','2024-11-02',27,10,'Acid Reflux'),(1326,'Olivia','Howard','1957-06-07','F','2024-10-26','2024-10-29',69,9,'Seasonal Flu'),(1327,'Frank','Phillips','1965-01-13','M','2024-10-29',NULL,69,6,'Allergy'),(1328,'Noah','Baker','1989-07-27','F','2024-10-29',NULL,92,8,'Panic Disorder'),(1329,'Harper','Stewart','1967-03-16','M','2024-10-29',NULL,30,7,'Gastroenteritis'),(1330,'Lucas','Martinez','1963-11-06','F','2024-10-26',NULL,68,5,'Infection'),(1331,'Bob','Howard','2004-07-13','M','2024-10-23',NULL,90,3,'Gout'),(1332,'Alexander','Clark','1985-02-13','M','2024-10-29',NULL,2,8,'Infection'),(1333,'Ella','Parker','1980-10-13','M','2024-10-26','2024-10-29',27,3,'Acid Reflux'),(1334,'Nora','Mitchell','1951-09-20','F','2024-10-28','2024-11-01',73,10,'Kidney Stones'),(1335,'Chloe','Edwards','1990-08-10','F','2024-10-29',NULL,1,2,'Hepatitis'),(1336,'Benjamin','Baker','2000-04-19','F','2024-10-27','2024-10-29',18,4,'Kidney Stones'),(1337,'Isabella','Moore','1958-10-23','F','2024-10-30',NULL,89,3,'Ulcer'),(1338,'Emma','Young','1965-01-04','M','2024-10-28',NULL,94,2,'Skin Rash'),(1339,'Henry','Walker','2003-06-24','M','2024-10-31',NULL,13,3,'Epilepsy'),(1340,'Nathan','Parker','1961-10-14','M','2024-10-29','2024-10-30',70,2,'Vertigo'),(1341,'Matthew','Bell','1952-07-16','M','2024-10-25',NULL,38,6,'Heart Disease'),(1342,'Sebastian','Scott','1977-09-25','F','2024-10-26','2024-10-27',61,7,'Sleep Apnea'),(1343,'Harper','Allen','1972-12-19','F','2024-11-01','2024-11-03',11,6,'Bipolar Disorder'),(1344,'Amelia','Gray','1965-05-27','M','2024-10-23',NULL,7,10,'Diabetes'),(1345,'James','Morgan','1959-12-27','M','2024-10-29',NULL,6,5,'Osteoporosis'),(1346,'Frank','Allen','1951-02-20','F','2024-10-23','2024-10-26',4,5,'Ulcer'),(1347,'Alice','Perez','1960-04-07','F','2024-10-25',NULL,81,2,'Fibromyalgia'),(1348,'John','Perez','1977-02-28','M','2024-11-01','2024-11-02',21,7,'Pancreatitis'),(1349,'Oliver','Williams','1946-10-29','F','2024-11-01','2024-11-02',54,10,'Ear Infection'),(1350,'John','Cook','1964-08-04','F','2024-10-25',NULL,73,10,'Covid-19'),(1351,'Nathan','Stewart','1955-12-25','M','2024-10-23',NULL,54,1,'Sinusitis'),(1352,'Olivia','Moore','2003-06-26','M','2024-10-27','2024-10-28',70,1,'COPD'),(1353,'Logan','Hernandez','1946-01-12','M','2024-11-01','2024-11-01',75,2,'Stroke'),(1354,'Isabella','Anderson','1995-10-19','M','2024-11-01',NULL,12,6,'Multiple Sclerosis'),(1355,'Oliver','Baker','1996-10-15','F','2024-10-23',NULL,21,5,'Panic Disorder'),(1356,'Eva','Miller','2001-03-04','M','2024-10-24','2024-10-25',21,5,'Pancreatitis'),(1357,'Amelia','Allen','1966-03-08','F','2024-10-29','2024-10-29',21,10,'Chronic Fatigue'),(1358,'Leo','Cox','1963-07-20','F','2024-10-31','2024-11-04',13,2,'Covid-19'),(1359,'Jacob','Morris','1968-07-25','M','2024-10-27',NULL,71,10,'Infection'),(1360,'Jackson','Wright','1987-12-15','M','2024-10-25','2024-10-28',54,2,'Chronic Fatigue'),(1361,'Dave','Richardson','1977-01-11','M','2024-10-28','2024-10-30',40,8,'Pneumonia'),(1362,'Nora','Hall','1994-08-07','M','2024-10-26',NULL,10,7,'Herniated Disc'),(1363,'Frank','Wright','1990-03-07','M','2024-10-23','2024-10-25',98,8,'Sleep Apnea'),(1364,'Lucas','Jones','1986-08-30','F','2024-10-23',NULL,31,2,'Stroke'),(1365,'Ava','Hall','1957-12-17','M','2024-10-27',NULL,97,7,'Parkinson\'s Disease'),(1366,'Madison','Cooper','1959-04-28','M','2024-10-28',NULL,90,2,'Infection'),(1367,'Grace','Morgan','1977-02-06','M','2024-10-26',NULL,66,5,'Skin Rash'),(1368,'Amelia','Garcia','1971-05-07','F','2024-10-28','2024-10-28',4,6,'PTSD'),(1369,'Matthew','Anderson','1977-06-06','M','2024-10-27','2024-10-27',25,6,'Heart Disease'),(1370,'Victoria','Lopez','1949-07-07','M','2024-10-29','2024-10-29',11,1,'Infection'),(1371,'Charlotte','Thomas','1970-02-21','F','2024-10-29',NULL,82,10,'Asthma'),(1372,'Elijah','Bailey','1984-09-17','M','2024-10-25',NULL,37,1,'Heart Disease'),(1373,'Eva','James','1964-12-12','F','2024-10-27','2024-10-28',89,7,'Covid-19'),(1374,'James','Miller','1964-10-20','M','2024-10-29',NULL,33,3,'Skin Rash'),(1375,'Noah','Turner','1951-10-25','F','2024-10-29',NULL,59,4,'Obesity'),(1376,'Zoe','Brown','1982-08-30','F','2024-10-29',NULL,24,1,'Vertigo'),(1377,'Emma','Morris','1997-05-27','M','2024-10-23','2024-10-27',54,1,'Ear Infection'),(1378,'Nathaniel','Lopez','1951-05-22','M','2024-10-28',NULL,77,1,'Hypertension'),(1379,'Jack','Evans','1964-04-04','F','2024-10-28',NULL,81,10,'Heart Disease'),(1380,'Sebastian','Young','1950-07-19','F','2024-10-30',NULL,33,3,'Gallbladder Disease'),(1381,'Joshua','Hall','1998-09-09','F','2024-10-28','2024-10-31',4,9,'Vertigo'),(1382,'Nora','Gonzalez','1966-07-24','M','2024-10-23',NULL,58,5,'COPD'),(1383,'Jackson','Reed','1966-11-08','F','2024-10-27',NULL,46,4,'Gout'),(1384,'Madison','Cooper','1995-09-12','M','2024-10-27',NULL,39,1,'Heart Disease'),(1385,'Jack','Rodriguez','1995-07-23','M','2024-10-26','2024-10-29',5,7,'Bipolar Disorder'),(1386,'Jack','Reed','1967-11-15','M','2024-10-25',NULL,81,2,'Depression'),(1387,'Nora','Collins','1972-09-20','M','2024-10-26',NULL,30,6,'Diabetes'),(1388,'Jacob','Roberts','1982-12-02','M','2024-10-25',NULL,17,3,'Depression'),(1389,'Ava','Moore','1977-03-01','M','2024-10-29','2024-10-30',48,5,'Parkinson\'s Disease'),(1390,'Elijah','Stewart','1970-11-08','F','2024-10-27','2024-10-29',60,1,'Arthritis'),(1391,'Charlotte','Brown','1994-08-08','M','2024-10-28','2024-10-29',19,10,'Arthritis'),(1392,'John','Scott','1965-09-03','F','2024-10-30',NULL,72,4,'Chronic Fatigue'),(1393,'Lily','Lee','1989-06-22','F','2024-10-23','2024-10-26',8,3,'Hypertension'),(1394,'Benjamin','Carter','1980-12-20','F','2024-10-31',NULL,99,4,'Stroke'),(1395,'Lily','Mitchell','1950-07-04','F','2024-10-24','2024-10-24',16,8,'Multiple Sclerosis'),(1396,'Sophie','Martinez','1963-06-11','M','2024-10-29','2024-10-31',54,3,'Bipolar Disorder'),(1397,'Eva','Walker','2002-10-22','M','2024-10-27','2024-10-29',53,10,'Arthritis'),(1398,'Amelia','Jones','1949-05-09','F','2024-10-24',NULL,34,6,'Diabetes'),(1399,'Leo','Allen','1977-11-07','F','2024-10-24','2024-10-26',57,5,'COPD'),(1400,'James','Ramirez','1991-10-04','M','2024-10-29',NULL,5,5,'Appendicitis'),(1401,'Jackson','Smith','1957-10-05','M','2024-10-23',NULL,31,4,'Panic Disorder'),(1402,'Madison','Taylor','1959-11-18','M','2024-10-26',NULL,15,6,'Chronic Fatigue'),(1403,'Harper','Wilson','1993-06-23','F','2024-10-25','2024-10-27',47,1,'Infection'),(1404,'Emily','Lee','2003-05-16','M','2024-10-28','2024-11-01',61,6,'Skin Rash'),(1405,'Victoria','Morgan','1984-03-14','F','2024-10-30','2024-11-01',98,10,'Scoliosis'),(1406,'Sophia','Ward','1992-09-12','F','2024-10-27','2024-10-30',87,2,'Epilepsy'),(1407,'Eva','Johnson','1999-04-08','M','2024-10-27','2024-10-30',92,5,'Infection'),(1408,'Emma','Martinez','2003-12-27','F','2024-10-26',NULL,76,10,'Pneumonia'),(1409,'Leo','Mitchell','1984-02-15','M','2024-10-26',NULL,42,10,'Acid Reflux'),(1410,'Frank','Evans','1983-06-12','M','2024-10-30','2024-10-31',65,10,'Vertigo'),(1411,'Mia','Peterson','1997-11-15','F','2024-10-26','2024-10-26',61,8,'Scoliosis'),(1412,'Henry','Sanchez','1984-07-06','M','2024-10-24',NULL,46,10,'Skin Rash'),(1413,'Eva','Phillips','1989-07-02','M','2024-10-24',NULL,98,7,'Asthma'),(1414,'Mia','Harris','1988-09-17','F','2024-10-26',NULL,29,9,'Vertigo'),(1415,'Grace','Allen','1990-10-15','M','2024-10-26',NULL,64,7,'Parkinson\'s Disease'),(1416,'Jane','Cook','1970-02-20','M','2024-10-23',NULL,11,3,'Depression'),(1417,'Mason','Rivera','1973-01-13','M','2024-10-23','2024-10-25',88,9,'Kidney Stones'),(1418,'Olivia','Gray','1964-05-26','F','2024-10-24','2024-10-26',71,8,'Obesity'),(1419,'Nora','Martinez','1959-07-28','F','2024-11-01','2024-11-04',94,1,'Liver Disease'),(1420,'Jane','Martinez','1994-07-04','F','2024-10-28',NULL,73,9,'Anxiety'),(1421,'Jack','Morgan','1970-07-17','M','2024-10-27',NULL,25,10,'Chronic Fatigue'),(1422,'Logan','Hill','1957-02-05','F','2024-10-31',NULL,6,4,'Osteoporosis'),(1423,'Joshua','Young','1982-03-13','M','2024-10-26',NULL,81,5,'Diabetes'),(1424,'Charlotte','Moore','1955-09-09','M','2024-10-27','2024-10-27',27,5,'Acid Reflux'),(1425,'Amelia','Rodriguez','1978-11-26','M','2024-10-31','2024-10-31',76,7,'High Cholesterol'),(1426,'Daniel','Ramirez','1952-06-09','M','2024-10-25',NULL,7,1,'PTSD'),(1427,'Grace','Ramirez','1958-07-16','M','2024-10-29','2024-10-31',56,8,'Hemorrhoids'),(1428,'Samuel','Moore','1965-10-26','F','2024-10-30',NULL,9,7,'Obesity'),(1429,'Matthew','Lopez','1965-03-18','M','2024-10-26','2024-10-30',11,4,'Infection'),(1430,'Mia','Evans','1977-02-20','F','2024-10-23','2024-10-25',98,1,'Heart Disease'),(1431,'Mia','Lee','2003-10-24','M','2024-10-26','2024-10-26',33,7,'Scoliosis'),(1432,'Benjamin','Moore','2004-10-03','F','2024-10-24','2024-10-28',74,5,'Obesity'),(1433,'Isabella','Collins','1989-01-22','F','2024-11-01','2024-11-03',21,6,'Pneumonia'),(1434,'Carol','Turner','1991-05-12','F','2024-10-29',NULL,38,8,'Multiple Sclerosis'),(1435,'Samuel','Morris','1953-01-26','F','2024-10-25','2024-10-27',73,5,'Epilepsy'),(1436,'Elijah','Lee','1946-04-03','M','2024-10-29','2024-11-01',84,7,'COPD'),(1437,'Emily','Cooper','2003-08-16','F','2024-10-24',NULL,44,8,'Scoliosis'),(1438,'James','Collins','1970-11-30','M','2024-10-24',NULL,31,2,'Fracture'),(1439,'Alexander','Garcia','1984-09-22','F','2024-10-30',NULL,88,3,'Chronic Fatigue'),(1440,'John','Howard','1963-11-27','M','2024-10-31',NULL,24,2,'Anxiety'),(1441,'Sebastian','Campbell','1946-10-09','F','2024-10-28',NULL,19,10,'Acid Reflux'),(1442,'Madison','Anderson','1986-11-09','F','2024-10-25','2024-10-25',75,2,'Gastroenteritis'),(1443,'Isla','Morris','1959-08-12','F','2024-10-24',NULL,44,6,'Osteoporosis'),(1444,'Harper','Anderson','1977-08-14','M','2024-10-26',NULL,34,2,'Allergy'),(1445,'Grace','Martin','1973-05-07','M','2024-10-29',NULL,75,10,'Liver Disease'),(1446,'Charlotte','Evans','2002-04-20','M','2024-10-28',NULL,21,4,'Tuberculosis'),(1447,'Ella','Wilson','2004-06-26','M','2024-10-27','2024-10-28',20,7,'Heart Disease'),(1448,'Evelyn','Adams','1978-10-07','M','2024-10-29',NULL,79,1,'Herniated Disc'),(1449,'Madison','Harris','1962-11-25','F','2024-10-28','2024-10-28',43,10,'Obesity'),(1450,'Charlotte','James','1948-07-16','F','2024-10-29',NULL,28,9,'High Cholesterol'),(1451,'Jackson','Cox','1984-10-03','M','2024-10-23','2024-10-26',90,10,'Anxiety'),(1452,'Emma','Johnson','1954-03-17','F','2024-11-01',NULL,38,3,'Conjunctivitis'),(1453,'Sebastian','Richardson','1962-08-28','M','2024-10-29','2024-11-01',77,9,'Sinusitis'),(1454,'Victoria','Clark','1993-10-10','F','2024-10-25',NULL,99,5,'Gallbladder Disease'),(1455,'John','Smith','2003-10-03','F','2024-11-01','2024-11-03',42,7,'Arthritis'),(1456,'Sophia','Reed','1952-04-13','F','2024-10-30',NULL,82,3,'Parkinson\'s Disease'),(1457,'Mia','Morris','1957-09-30','F','2024-10-30',NULL,5,9,'Obesity'),(1458,'James','Scott','1955-10-18','F','2024-10-30',NULL,31,6,'Kidney Stones'),(1459,'Emma','Richardson','1993-04-21','F','2024-10-24','2024-10-27',97,4,'Skin Rash'),(1460,'Isabella','Rodriguez','1964-02-10','M','2024-10-29','2024-10-30',72,3,'Infection'),(1461,'Sophia','Nelson','2003-04-24','M','2024-10-27','2024-10-30',51,1,'Bipolar Disorder'),(1462,'Sebastian','Evans','1969-04-29','F','2024-10-23',NULL,57,9,'Conjunctivitis'),(1463,'Sophie','Carter','1965-10-15','M','2024-10-24','2024-10-24',43,4,'Covid-19'),(1464,'Abigail','Carter','1992-11-04','F','2024-10-29',NULL,41,6,'Epilepsy'),(1465,'Michael','Cook','1963-07-22','M','2024-10-27','2024-10-30',60,9,'Bronchitis'),(1466,'Ava','Baker','1998-05-15','M','2024-10-25',NULL,38,1,'Pneumonia'),(1467,'Nora','Young','1972-02-17','M','2024-10-31','2024-10-31',96,6,'Stroke'),(1468,'Oliver','Hernandez','1981-09-03','M','2024-10-28',NULL,37,8,'Fibromyalgia'),(1469,'Eva','Martin','1962-05-03','M','2024-10-28','2024-10-29',31,2,'Allergy'),(1470,'Ethan','Taylor','2001-07-27','F','2024-10-26',NULL,29,10,'Heart Disease'),(1471,'Ava','Cook','1978-11-26','M','2024-10-30','2024-11-02',26,2,'Asthma'),(1472,'Nora','Stewart','1972-05-29','M','2024-10-27','2024-10-29',7,9,'Acid Reflux'),(1473,'Nora','Hernandez','1984-01-08','M','2024-10-30',NULL,33,2,'Fracture'),(1474,'Ella','Bailey','1992-09-03','F','2024-10-23','2024-10-27',63,3,'Bronchitis'),(1475,'Ella','Taylor','1976-02-19','M','2024-11-01','2024-11-02',8,9,'Bronchitis'),(1476,'Mia','Reed','1974-04-28','F','2024-10-27','2024-10-31',69,7,'Chronic Fatigue'),(1477,'Samuel','Lopez','1983-06-15','F','2024-10-26','2024-10-29',63,4,'Multiple Sclerosis'),(1478,'Emily','Taylor','2002-12-20','F','2024-10-26','2024-10-27',43,3,'Bipolar Disorder'),(1479,'Lucas','Bell','1981-02-26','F','2024-11-01',NULL,67,6,'Vertigo'),(1480,'Noah','Adams','1956-11-20','F','2024-10-24',NULL,93,4,'Fibromyalgia'),(1481,'Joshua','Lee','1986-04-06','M','2024-10-31',NULL,100,1,'Stroke'),(1482,'Frank','Green','1962-12-19','M','2024-11-01','2024-11-04',87,3,'High Cholesterol'),(1483,'Sophie','Perez','1959-05-19','F','2024-10-30',NULL,74,5,'Allergy'),(1484,'Emma','Walker','1952-04-29','M','2024-10-31','2024-10-31',71,4,'Scoliosis'),(1485,'Noah','Ward','1981-12-22','M','2024-10-28',NULL,34,6,'Multiple Sclerosis'),(1486,'Grace','Bell','1945-04-26','F','2024-10-25','2024-10-26',73,10,'Arthritis'),(1487,'Madison','Murphy','1986-06-01','F','2024-10-26','2024-10-30',1,1,'Arthritis'),(1488,'Carol','Allen','2001-04-07','M','2024-10-30',NULL,28,3,'Tuberculosis'),(1489,'Ella','Thomas','1960-11-15','M','2024-11-01','2024-11-02',74,7,'Gout'),(1490,'Alice','Rivera','1993-01-11','F','2024-10-24','2024-10-26',50,9,'Gastroenteritis'),(1491,'Dave','Cooper','1971-07-21','F','2024-11-01',NULL,95,1,'Pancreatitis'),(1492,'Mason','Collins','1987-10-17','F','2024-11-01',NULL,8,8,'Sinusitis'),(1493,'Eva','Rodriguez','1970-12-23','M','2024-11-01','2024-11-03',83,9,'Asthma'),(1494,'Henry','Perez','1960-05-20','M','2024-10-23','2024-10-25',59,3,'Gout'),(1495,'Matthew','Hernandez','1996-02-06','F','2024-11-01',NULL,75,6,'PTSD'),(1496,'Frank','Murphy','1983-11-25','F','2024-10-24','2024-10-25',53,8,'Hemorrhoids'),(1497,'Evelyn','Hernandez','1983-08-22','M','2024-10-26',NULL,2,9,'Fracture'),(1498,'Mason','Cox','1999-09-16','F','2024-10-23',NULL,64,5,'Skin Rash'),(1499,'Lily','Carter','1987-04-23','F','2024-10-31',NULL,35,1,'Obesity'),(1500,'Matthew','Brown','1982-09-09','F','2024-11-01','2024-11-04',26,4,'Fracture'),(1501,'Nathan','Lee','1988-05-17','M','2024-10-24','2024-10-25',58,1,'Pancreatitis'),(1502,'Alexander','Cooper','1948-09-14','F','2024-10-27',NULL,12,8,'Conjunctivitis'),(1503,'Lily','Reed','1959-08-31','M','2024-10-26',NULL,75,5,'Bipolar Disorder'),(1504,'Alice','Miller','1985-06-26','M','2024-10-25','2024-10-27',57,2,'Ulcer'),(1505,'Sophia','Richardson','1981-07-23','M','2024-10-25',NULL,8,10,'Infection'),(1506,'Michael','Baker','1977-10-12','M','2024-10-25','2024-10-26',23,4,'Arthritis'),(1507,'Alice','Howard','1984-02-02','F','2024-10-27','2024-10-28',70,10,'Acid Reflux'),(1508,'Eva','Brown','1977-01-02','M','2024-10-26',NULL,37,1,'Chronic Fatigue'),(1509,'John','Perez','1996-04-11','F','2024-10-23',NULL,84,9,'Anxiety'),(1510,'Henry','Taylor','1950-05-26','M','2024-10-24','2024-10-27',90,3,'Anxiety'),(1511,'Jack','Perez','1949-06-29','F','2024-10-31',NULL,75,10,'Obesity'),(1512,'Lily','Evans','1982-10-30','M','2024-10-25',NULL,38,4,'Multiple Sclerosis'),(1513,'Ethan','Jackson','2004-01-07','M','2024-10-26',NULL,7,10,'Bipolar Disorder'),(1514,'Aiden','Nelson','1993-09-28','F','2024-10-24','2024-10-28',74,6,'Covid-19'),(1515,'Henry','Torres','1984-05-27','F','2024-10-24','2024-10-24',36,5,'Heart Disease'),(1516,'Victoria','Jones','1962-03-08','M','2024-10-24',NULL,99,5,'Heart Disease'),(1517,'Amelia','Hall','1957-04-01','M','2024-10-29',NULL,35,8,'Tuberculosis'),(1518,'Logan','Adams','1957-10-27','M','2024-10-31','2024-10-31',32,1,'Epilepsy'),(1519,'Alice','Parker','1955-10-02','F','2024-10-29','2024-11-01',3,6,'Chronic Fatigue'),(1520,'Eva','Davis','1961-05-19','F','2024-10-30',NULL,50,1,'Epilepsy'),(1521,'Oliver','Lee','1950-01-25','F','2024-10-28','2024-11-01',18,6,'Hypertension'),(1522,'Nora','Rodriguez','1966-07-01','F','2024-10-30',NULL,54,3,'Osteoporosis'),(1523,'Abigail','Evans','1970-02-19','F','2024-10-24','2024-10-26',41,10,'Multiple Sclerosis'),(1524,'Zoe','Torres','1951-02-18','F','2024-10-29','2024-10-30',85,7,'Migraine'),(1525,'Emma','Parker','1987-11-20','M','2024-11-01','2024-11-01',19,5,'Heart Disease'),(1526,'Emma','Murphy','1990-07-03','F','2024-11-01','2024-11-03',37,6,'Sleep Apnea'),(1527,'Isabella','Bailey','1985-03-07','F','2024-10-26',NULL,25,4,'COPD'),(1528,'Samuel','Smith','1969-01-26','M','2024-10-30',NULL,12,10,'Gallbladder Disease'),(1529,'Charlotte','Wright','1966-02-13','M','2024-10-23','2024-10-27',8,7,'Chronic Fatigue'),(1530,'Emma','Peterson','1985-03-28','M','2024-10-28',NULL,99,10,'Epilepsy'),(1531,'Logan','Green','1948-05-05','M','2024-10-30','2024-11-02',6,6,'Asthma'),(1532,'Ethan','Cook','2004-07-25','F','2024-11-01',NULL,69,6,'Panic Disorder'),(1533,'Isla','Anderson','1950-01-10','F','2024-10-28','2024-11-01',87,10,'Covid-19'),(1534,'Lily','Hill','1966-02-26','F','2024-11-01','2024-11-05',22,10,'Fibromyalgia'),(1535,'Zoe','Sanchez','1969-08-11','F','2024-10-27','2024-10-29',90,3,'Multiple Sclerosis'),(1536,'Logan','Evans','1971-10-09','M','2024-11-01',NULL,2,5,'Heart Disease'),(1537,'Eva','Richardson','1959-02-19','F','2024-10-28','2024-10-29',41,5,'Acid Reflux'),(1538,'Jacob','Murphy','1984-06-28','M','2024-10-28',NULL,47,8,'Stroke'),(1539,'Grace','Stewart','1988-04-27','M','2024-10-24',NULL,81,7,'Osteoporosis'),(1540,'Noah','Richardson','1962-10-11','F','2024-10-28','2024-10-28',7,7,'Diabetes'),(1541,'Olivia','Walker','1970-04-24','M','2024-10-24',NULL,73,3,'Anxiety'),(1542,'Sebastian','Morris','1999-12-06','F','2024-10-29','2024-11-01',81,9,'Sleep Apnea'),(1543,'Abigail','Rivera','1991-12-14','F','2024-10-25',NULL,83,3,'PTSD'),(1544,'Noah','Williams','1974-03-24','M','2024-10-29','2024-11-01',34,9,'Heart Disease'),(1545,'Sophie','Reed','1964-02-18','F','2024-10-30',NULL,55,5,'Chronic Fatigue'),(1546,'Frank','Walker','1946-06-23','M','2024-10-25','2024-10-27',36,4,'Scoliosis'),(1547,'Mia','Richardson','1970-12-16','M','2024-10-28',NULL,8,2,'Tuberculosis'),(1548,'Olivia','Howard','1971-05-17','F','2024-10-27',NULL,1,4,'Chronic Fatigue'),(1549,'Olivia','Collins','1959-02-10','F','2024-10-28','2024-10-28',37,8,'Ulcer'),(1550,'Isabella','Gray','1945-04-24','F','2024-10-31',NULL,27,1,'Herniated Disc'),(1551,'Sebastian','James','1995-02-22','M','2024-10-30',NULL,45,1,'Bipolar Disorder'),(1552,'Ella','Lee','1966-12-07','F','2024-11-01','2024-11-03',56,7,'Appendicitis'),(1553,'Bob','Rodriguez','2000-01-05','M','2024-10-29','2024-10-31',25,3,'Fracture'),(1554,'Joshua','Smith','1971-11-22','F','2024-10-27',NULL,88,3,'Liver Disease'),(1555,'Nora','Murphy','1986-12-05','F','2024-10-25',NULL,83,6,'PTSD'),(1556,'Samuel','Evans','1947-04-12','F','2024-10-24',NULL,56,3,'Conjunctivitis'),(1557,'Sebastian','Mitchell','1965-09-22','M','2024-10-26','2024-10-26',78,5,'Panic Disorder'),(1558,'Abigail','Roberts','1998-01-17','M','2024-10-24',NULL,39,8,'Ear Infection'),(1559,'Sophia','Morgan','2000-12-05','M','2024-10-29','2024-10-30',9,9,'Chronic Fatigue'),(1560,'Madison','Brown','1957-07-19','F','2024-10-29',NULL,23,5,'Epilepsy'),(1561,'Ethan','Brown','1998-06-05','M','2024-10-24',NULL,88,7,'Epilepsy'),(1562,'Eva','Hall','2001-08-13','M','2024-10-25',NULL,71,6,'Depression'),(1563,'Harper','Clark','1960-12-26','F','2024-11-01',NULL,96,2,'Infection'),(1564,'Ethan','Taylor','1963-08-17','M','2024-10-25',NULL,29,5,'Fracture'),(1565,'Harper','Murphy','2000-05-22','F','2024-10-30','2024-11-03',59,8,'Hemorrhoids'),(1566,'Oliver','Bailey','1974-06-03','M','2024-10-31','2024-11-02',24,3,'Vertigo'),(1567,'Evelyn','Harris','1987-11-10','M','2024-10-27',NULL,69,4,'Bronchitis'),(1568,'James','Baker','1994-04-08','M','2024-10-24',NULL,23,2,'Gallbladder Disease'),(1569,'Elijah','Harris','2004-08-03','F','2024-10-30','2024-10-30',36,3,'Gout'),(1570,'Aiden','Johnson','1972-03-18','M','2024-10-23',NULL,52,6,'Multiple Sclerosis'),(1571,'Benjamin','Morgan','1978-09-01','F','2024-10-29','2024-10-30',17,3,'Kidney Stones'),(1572,'Evelyn','Cooper','1974-08-22','F','2024-10-25',NULL,17,2,'Panic Disorder'),(1573,'Henry','Rodriguez','1953-07-25','M','2024-10-24','2024-10-26',54,8,'Infection'),(1574,'Sophie','Wright','1976-09-13','F','2024-10-31',NULL,71,10,'Skin Rash'),(1575,'Mason','Edwards','1956-10-28','M','2024-10-30','2024-11-02',60,4,'Kidney Stones'),(1576,'Joshua','Brown','1993-11-27','M','2024-10-29',NULL,19,3,'Vertigo'),(1577,'Mason','Wright','1973-08-30','M','2024-10-27',NULL,47,2,'Sinusitis'),(1578,'Eva','Mitchell','2001-12-23','M','2024-10-25','2024-10-29',60,7,'Scoliosis'),(1579,'Amelia','Morgan','1982-10-22','F','2024-10-23',NULL,83,2,'Multiple Sclerosis'),(1580,'Jack','Nelson','1966-06-21','M','2024-10-29','2024-11-01',23,6,'Liver Disease'),(1581,'Ethan','Davis','1991-10-08','F','2024-11-01','2024-11-01',66,5,'Hemorrhoids'),(1582,'Aiden','Green','1990-03-19','F','2024-10-31','2024-11-04',33,2,'Depression'),(1583,'Benjamin','Morgan','1999-03-01','M','2024-10-29','2024-10-30',74,4,'Covid-19'),(1584,'Isla','Scott','1976-01-19','M','2024-10-29',NULL,42,5,'Tuberculosis'),(1585,'Lily','Wright','1954-04-27','M','2024-10-30',NULL,34,3,'Tuberculosis'),(1586,'Carol','Morgan','1946-03-25','M','2024-10-28','2024-10-30',4,6,'Hepatitis'),(1587,'Noah','Johnson','1988-04-26','F','2024-10-31',NULL,82,1,'Gastroenteritis'),(1588,'Nora','Adams','1995-02-09','F','2024-11-01',NULL,13,8,'Asthma'),(1589,'Leo','Gonzalez','2001-08-25','F','2024-10-23',NULL,63,6,'Vertigo'),(1590,'Isabella','Morris','1956-07-18','M','2024-10-29','2024-10-29',45,6,'Hepatitis'),(1591,'Alexander','Hall','1950-03-12','M','2024-10-29','2024-10-29',91,1,'Gastroenteritis'),(1592,'Olivia','Allen','1990-10-22','F','2024-10-24','2024-10-24',36,3,'Covid-19'),(1593,'Abigail','Edwards','2004-05-21','M','2024-10-24','2024-10-28',39,8,'Hemorrhoids'),(1594,'Jacob','Jackson','1962-02-17','F','2024-10-30','2024-10-30',30,9,'Bipolar Disorder'),(1595,'Chloe','Lee','1960-08-27','F','2024-10-24','2024-10-26',6,1,'Skin Rash'),(1596,'Jack','Jackson','1994-03-18','F','2024-10-31','2024-11-04',45,4,'Scoliosis'),(1597,'Lucas','Gray','1976-03-01','F','2024-11-01',NULL,55,2,'Diabetes'),(1598,'Elijah','Campbell','2003-05-07','F','2024-10-27',NULL,88,4,'Ear Infection'),(1599,'Nathan','Wright','1984-04-08','M','2024-10-28','2024-11-01',82,7,'Gallbladder Disease'),(1600,'Chloe','Brown','1999-08-11','M','2024-10-28','2024-10-31',55,4,'Chronic Fatigue'),(1601,'Elijah','Martin','1954-04-29','F','2024-10-25',NULL,64,2,'Covid-19'),(1602,'Abigail','Walker','1972-09-03','F','2024-10-25','2024-10-28',81,10,'Sleep Apnea'),(1603,'Madison','Richardson','1974-03-31','F','2024-11-01','2024-11-05',22,4,'Appendicitis'),(1604,'Logan','Morris','1953-03-23','F','2024-10-25','2024-10-29',11,6,'Ulcer'),(1605,'Sophie','Allen','1994-06-07','F','2024-10-25',NULL,17,1,'Ulcer'),(1606,'Sophie','Hill','1993-05-18','F','2024-10-28','2024-11-01',57,7,'Sinusitis'),(1607,'Jacob','Campbell','1964-02-28','M','2024-10-28',NULL,68,10,'Migraine'),(1608,'Nathan','Williams','1979-03-20','F','2024-10-27',NULL,12,1,'Gout'),(1609,'Emma','Rodriguez','1983-07-15','F','2024-10-27','2024-10-28',47,1,'Fibromyalgia'),(1610,'Sophie','Nelson','2001-08-03','M','2024-10-28','2024-10-30',92,10,'Gastroenteritis'),(1611,'Henry','James','1961-12-23','F','2024-10-29',NULL,29,7,'High Cholesterol'),(1612,'Lily','Parker','1981-02-15','F','2024-10-23','2024-10-24',45,6,'Herniated Disc'),(1613,'Mason','Gonzalez','1993-10-19','M','2024-10-24',NULL,71,8,'Depression'),(1614,'Matthew','Edwards','1992-02-28','M','2024-10-27','2024-10-28',22,1,'Herniated Disc'),(1615,'Bob','Martin','2003-12-03','M','2024-10-28',NULL,93,3,'Heart Disease'),(1616,'Logan','Richardson','1991-08-11','M','2024-10-24',NULL,75,10,'Liver Disease'),(1617,'Jack','Bailey','1993-12-12','F','2024-10-29','2024-11-02',72,4,'PTSD'),(1618,'Matthew','Harris','1952-12-10','F','2024-10-26','2024-10-30',63,5,'Vertigo'),(1619,'Frank','Adams','1994-05-14','M','2024-10-28',NULL,40,10,'Gallbladder Disease'),(1620,'Olivia','Hall','1948-04-08','M','2024-10-25',NULL,67,2,'Fibromyalgia'),(1621,'Jacob','Stewart','1991-06-27','F','2024-11-01',NULL,38,5,'Skin Rash'),(1622,'Nathan','Jones','1960-10-06','F','2024-10-30','2024-11-03',46,8,'Depression'),(1623,'Ethan','Harris','1945-09-28','M','2024-10-29',NULL,20,3,'Gastroenteritis'),(1624,'Dave','Torres','1949-10-19','M','2024-10-23','2024-10-24',71,4,'Skin Rash'),(1625,'Liam','Green','1964-12-16','F','2024-10-24','2024-10-28',62,5,'Kidney Stones'),(1626,'Nathan','Hall','1998-06-02','F','2024-10-28',NULL,37,5,'Ulcer'),(1627,'Logan','Morris','1983-08-26','F','2024-10-29',NULL,70,8,'Pancreatitis'),(1628,'Elijah','Williams','1967-04-29','F','2024-10-29',NULL,7,10,'Stroke'),(1629,'Amelia','Turner','1949-12-26','M','2024-11-01','2024-11-05',61,1,'Fibromyalgia'),(1630,'Amelia','Perez','1997-03-16','M','2024-10-27',NULL,67,3,'Herniated Disc'),(1631,'Jack','Anderson','1972-10-24','M','2024-10-27',NULL,14,8,'Tuberculosis'),(1632,'Alexander','Lee','1998-11-08','F','2024-10-30','2024-11-02',47,2,'Chronic Fatigue'),(1633,'Abigail','Roberts','2000-12-19','M','2024-10-24','2024-10-28',87,3,'Vertigo'),(1634,'Liam','Clark','1989-06-19','M','2024-10-28',NULL,88,7,'Fracture'),(1635,'Sophia','Scott','1975-10-25','F','2024-10-24','2024-10-25',61,6,'Gallbladder Disease'),(1636,'Michael','Anderson','1965-05-13','M','2024-10-29','2024-11-02',79,9,'Migraine'),(1637,'Carol','Campbell','1971-06-07','M','2024-10-26','2024-10-28',75,5,'Bronchitis'),(1638,'Bob','King','1946-11-27','F','2024-10-31',NULL,40,8,'Chronic Fatigue'),(1639,'Zoe','Carter','2001-08-09','M','2024-10-23',NULL,48,1,'Panic Disorder'),(1640,'Matthew','Carter','1953-01-16','M','2024-10-31','2024-11-01',33,8,'Panic Disorder'),(1641,'Daniel','Scott','1947-11-26','M','2024-10-23','2024-10-24',30,3,'Epilepsy'),(1642,'Dave','Mitchell','1977-02-09','M','2024-10-30',NULL,21,1,'Chronic Fatigue'),(1643,'Abigail','Morris','1954-07-07','F','2024-10-24','2024-10-25',64,6,'Liver Disease'),(1644,'Olivia','Moore','1972-02-27','M','2024-10-24','2024-10-28',86,10,'Allergy'),(1645,'Elijah','Cook','1985-08-24','M','2024-10-30',NULL,72,4,'PTSD'),(1646,'Alice','Morgan','1955-11-20','F','2024-10-23',NULL,100,9,'Bipolar Disorder'),(1647,'Evelyn','Williams','1961-08-28','F','2024-10-30','2024-10-30',59,6,'Appendicitis'),(1648,'Grace','Jackson','1976-03-08','F','2024-10-24','2024-10-24',30,7,'Bipolar Disorder'),(1649,'Mia','Johnson','1990-08-24','M','2024-10-30','2024-11-03',88,5,'Gout'),(1650,'Joshua','Thomas','1960-09-22','F','2024-10-29',NULL,30,2,'PTSD'),(1651,'Jack','Taylor','1997-10-10','F','2024-10-31',NULL,72,6,'Scoliosis'),(1652,'Isabella','Davis','1971-04-29','F','2024-10-24','2024-10-25',27,6,'Heart Disease'),(1653,'Sophia','Mitchell','1956-01-15','M','2024-10-28',NULL,63,7,'Epilepsy'),(1654,'Benjamin','Gonzalez','1957-09-14','F','2024-10-27',NULL,75,2,'Pancreatitis'),(1655,'Sebastian','Richardson','1968-08-13','M','2024-10-31','2024-11-01',92,6,'Sleep Apnea'),(1656,'James','Rivera','1985-03-18','F','2024-10-26','2024-10-30',95,8,'Kidney Stones'),(1657,'Nathaniel','Evans','1989-11-07','F','2024-10-30',NULL,47,3,'Anxiety'),(1658,'Zoe','Bailey','1969-08-04','M','2024-11-01','2024-11-04',84,5,'Herniated Disc'),(1659,'Frank','Jones','1962-10-29','F','2024-10-30','2024-10-30',95,8,'Osteoporosis'),(1660,'Bob','Murphy','1953-03-10','M','2024-11-01',NULL,66,2,'Skin Rash'),(1661,'Frank','Young','1997-01-10','F','2024-10-24',NULL,80,9,'Depression'),(1662,'Chloe','Evans','1991-04-30','M','2024-11-01','2024-11-01',24,6,'Allergy'),(1663,'Logan','Johnson','1986-06-13','F','2024-11-01',NULL,45,2,'Scoliosis'),(1664,'Matthew','Howard','1977-09-08','F','2024-10-26',NULL,34,9,'Osteoporosis'),(1665,'Nora','Adams','1977-02-28','F','2024-10-25','2024-10-29',81,1,'Epilepsy'),(1666,'Bob','Anderson','1974-11-28','F','2024-10-29',NULL,1,6,'Obesity'),(1667,'Daniel','Sanchez','1963-04-01','F','2024-10-30',NULL,47,9,'Acid Reflux'),(1668,'Oliver','Clark','1970-01-29','M','2024-10-30','2024-11-02',38,9,'Diabetes'),(1669,'Jack','Cook','1959-03-26','F','2024-10-28','2024-10-31',47,1,'Obesity'),(1670,'James','Evans','1951-07-30','F','2024-10-28',NULL,41,9,'Vertigo'),(1671,'Carol','Walker','1985-06-29','M','2024-10-23',NULL,64,5,'Fracture'),(1672,'Samuel','Scott','1978-10-25','M','2024-10-25','2024-10-25',78,8,'Pneumonia'),(1673,'Jack','Ward','1963-01-29','F','2024-10-26',NULL,39,8,'Skin Rash'),(1674,'Ethan','Mitchell','1960-11-20','F','2024-10-30',NULL,45,8,'Fracture'),(1675,'Olivia','Torres','1948-03-31','F','2024-10-28','2024-10-29',69,9,'High Cholesterol'),(1676,'Sebastian','Gonzalez','1975-08-15','M','2024-10-31',NULL,63,1,'Fibromyalgia'),(1677,'Logan','Morris','1996-09-28','F','2024-10-31',NULL,12,3,'Sleep Apnea'),(1678,'Logan','Gray','1954-06-11','F','2024-11-01',NULL,60,6,'Parkinson\'s Disease'),(1679,'Isabella','Hill','1952-12-23','F','2024-10-30',NULL,55,6,'Depression'),(1680,'Nathaniel','Hall','2003-09-01','F','2024-10-28','2024-10-29',18,4,'Kidney Stones'),(1681,'Nora','Torres','1947-02-12','M','2024-10-24','2024-10-24',37,8,'PTSD'),(1682,'Sophie','Cooper','1956-05-15','F','2024-10-25','2024-10-28',9,2,'Hepatitis'),(1683,'Lily','Peterson','1947-09-26','M','2024-10-26','2024-10-28',6,4,'Depression'),(1684,'Sophie','Harris','1955-08-15','F','2024-10-28',NULL,83,5,'Liver Disease'),(1685,'Lucas','Nelson','1995-11-28','F','2024-10-30',NULL,8,1,'Fibromyalgia'),(1686,'Charlotte','Hernandez','1956-06-29','M','2024-10-23','2024-10-27',86,2,'Pneumonia'),(1687,'Leo','Brown','1977-07-26','F','2024-10-24','2024-10-26',27,10,'Skin Rash'),(1688,'Lucas','Nelson','1947-10-12','F','2024-10-31',NULL,76,1,'PTSD'),(1689,'Chloe','Rivera','1986-09-11','F','2024-10-25',NULL,36,8,'Scoliosis'),(1690,'Ethan','Ramirez','1972-02-29','F','2024-11-01','2024-11-02',10,3,'Panic Disorder'),(1691,'Dave','Young','1957-05-24','F','2024-10-24','2024-10-26',100,1,'Ulcer'),(1692,'Zoe','Gonzalez','1964-03-21','M','2024-10-24',NULL,15,1,'Acid Reflux'),(1693,'Olivia','Allen','1952-08-06','F','2024-10-31',NULL,32,3,'Seasonal Flu'),(1694,'Abigail','Martin','1973-02-25','M','2024-10-24','2024-10-27',19,5,'Chronic Fatigue'),(1695,'Aiden','Wilson','1954-03-07','M','2024-10-26',NULL,5,1,'Ulcer'),(1696,'John','Miller','1961-04-13','M','2024-10-23',NULL,49,1,'Hemorrhoids'),(1697,'Nora','Cook','1953-02-06','F','2024-10-30',NULL,17,4,'Tuberculosis'),(1698,'Jack','Collins','1979-12-28','F','2024-10-30','2024-10-30',45,2,'Panic Disorder'),(1699,'Sebastian','James','1964-12-22','F','2024-10-28','2024-11-01',97,1,'High Cholesterol'),(1700,'Alice','Bailey','1985-10-27','M','2024-10-28',NULL,59,10,'Stroke'),(1701,'Chloe','Perez','1983-06-23','M','2024-10-23','2024-10-26',47,8,'COPD'),(1702,'Chloe','Allen','1946-08-15','M','2024-10-26','2024-10-29',12,4,'High Cholesterol'),(1703,'Nathaniel','Williams','1951-06-21','M','2024-10-30','2024-10-31',63,4,'Sleep Apnea'),(1704,'Daniel','Bailey','1962-11-25','M','2024-10-30',NULL,42,9,'Parkinson\'s Disease'),(1705,'Emma','Thomas','1950-07-02','M','2024-11-01',NULL,5,5,'Obesity'),(1706,'Liam','Hill','1983-06-20','M','2024-10-31','2024-11-03',75,2,'Panic Disorder'),(1707,'Grace','Bell','1946-06-23','M','2024-10-31','2024-11-01',58,9,'Covid-19'),(1708,'Nathan','Anderson','1990-08-27','M','2024-10-25',NULL,94,7,'Hypertension'),(1709,'Abigail','King','1953-10-30','M','2024-10-24',NULL,73,1,'Asthma'),(1710,'Sophia','Campbell','1954-05-23','F','2024-10-25',NULL,31,6,'Arthritis'),(1711,'Harper','Cook','2003-11-08','M','2024-10-30','2024-10-30',45,6,'Diabetes'),(1712,'Charlotte','Perez','1961-07-12','F','2024-10-28','2024-10-29',20,3,'COPD'),(1713,'Noah','Thomas','1951-06-30','F','2024-10-28','2024-10-31',36,10,'Fibromyalgia'),(1714,'Grace','Garcia','1965-06-15','F','2024-10-31',NULL,29,2,'Fibromyalgia'),(1715,'Benjamin','Hall','1974-04-04','M','2024-10-30',NULL,95,5,'Covid-19'),(1716,'Jack','Bell','1999-09-18','F','2024-10-25',NULL,4,6,'Allergy'),(1717,'Aiden','Howard','1990-03-31','M','2024-10-31',NULL,37,10,'Tuberculosis'),(1718,'Chloe','Jones','1985-05-28','M','2024-10-31','2024-10-31',40,8,'Migraine'),(1719,'Joshua','Taylor','1987-01-21','M','2024-10-25',NULL,28,9,'Conjunctivitis'),(1720,'Isabella','Martin','2002-03-14','F','2024-10-30',NULL,59,1,'Obesity'),(1721,'Sebastian','Turner','1945-09-17','F','2024-10-26','2024-10-28',36,6,'Pancreatitis'),(1722,'Grace','Brown','1977-02-06','M','2024-10-26',NULL,25,1,'Anxiety'),(1723,'Liam','Parker','1974-03-19','M','2024-10-27',NULL,1,6,'Fibromyalgia'),(1724,'Benjamin','Richardson','2001-12-08','M','2024-10-25','2024-10-29',81,1,'Epilepsy'),(1725,'Sophia','Morris','1947-11-04','M','2024-10-29','2024-11-01',14,8,'PTSD'),(1726,'Elijah','King','1999-08-09','M','2024-10-25',NULL,8,6,'Pneumonia'),(1727,'Leo','Bailey','1977-11-12','M','2024-10-24','2024-10-28',43,5,'Herniated Disc'),(1728,'Victoria','Perez','2003-01-01','F','2024-10-27',NULL,36,7,'Herniated Disc'),(1729,'Michael','Roberts','1980-03-24','M','2024-10-25','2024-10-29',67,7,'Liver Disease'),(1730,'Jane','Cooper','1950-08-10','F','2024-11-01',NULL,34,2,'Pancreatitis'),(1731,'Frank','Reed','1986-07-22','F','2024-10-30',NULL,84,9,'Skin Rash'),(1732,'Carol','Reed','1948-12-03','F','2024-10-29',NULL,97,10,'Bipolar Disorder'),(1733,'Daniel','Parker','1994-01-07','M','2024-10-25',NULL,94,10,'Obesity'),(1734,'Madison','Morgan','1990-11-27','M','2024-11-01',NULL,20,6,'Fibromyalgia'),(1735,'Sophia','Ward','1993-04-10','F','2024-10-27','2024-10-31',100,7,'Hemorrhoids'),(1736,'Nathan','Sanchez','1983-09-25','M','2024-10-29','2024-11-02',85,4,'Herniated Disc'),(1737,'Sophia','Wright','1966-02-09','F','2024-11-01','2024-11-02',94,10,'Hepatitis'),(1738,'Bob','Bailey','1953-01-06','F','2024-10-23','2024-10-25',66,9,'Migraine'),(1739,'Alexander','Thomas','1968-01-10','M','2024-10-28',NULL,2,7,'Ear Infection'),(1740,'Emma','Lee','1988-09-27','M','2024-10-30',NULL,56,2,'Migraine'),(1741,'Emily','Perez','1951-04-03','F','2024-10-25',NULL,46,8,'Fracture'),(1742,'Sophie','Brown','1958-03-03','M','2024-10-25',NULL,48,8,'Bronchitis'),(1743,'Henry','Stewart','2003-02-10','F','2024-10-27',NULL,35,5,'Gallbladder Disease'),(1744,'Lily','King','1999-02-17','M','2024-10-26','2024-10-26',50,6,'Herniated Disc'),(1745,'Emily','Murphy','1974-06-08','M','2024-10-24','2024-10-26',50,1,'Liver Disease'),(1746,'Benjamin','Torres','1990-10-06','F','2024-10-28',NULL,5,8,'Gastroenteritis'),(1747,'Abigail','Sanchez','1965-08-31','M','2024-10-23','2024-10-27',8,6,'Liver Disease'),(1748,'Harper','Morgan','1989-07-23','M','2024-11-01',NULL,34,7,'Multiple Sclerosis'),(1749,'Elijah','Reed','1981-02-16','F','2024-10-25','2024-10-25',90,3,'Sinusitis'),(1750,'Jackson','Taylor','1948-09-30','F','2024-10-24','2024-10-26',23,2,'Stroke'),(1751,'Noah','Miller','1955-08-16','M','2024-10-28',NULL,42,2,'Heart Disease'),(1752,'Madison','Ward','1991-10-08','F','2024-10-31',NULL,34,4,'Hepatitis'),(1753,'Nora','Roberts','1970-08-08','M','2024-10-29','2024-10-29',93,8,'Multiple Sclerosis'),(1754,'Isabella','Harris','1981-01-11','F','2024-10-28',NULL,79,9,'Scoliosis'),(1755,'Jacob','Allen','1974-10-02','F','2024-10-29','2024-11-01',27,2,'Skin Rash'),(1756,'Grace','Walker','1974-07-18','F','2024-10-23',NULL,55,5,'Hepatitis'),(1757,'Carol','Howard','1967-05-12','F','2024-10-28','2024-10-29',47,4,'Gallbladder Disease'),(1758,'Aiden','Stewart','1990-02-04','F','2024-10-31','2024-11-02',56,10,'Skin Rash'),(1759,'Jack','Morris','1984-09-25','F','2024-10-26',NULL,10,6,'Parkinson\'s Disease'),(1760,'Joshua','Hill','1977-10-06','M','2024-10-25','2024-10-26',70,1,'Bronchitis'),(1761,'Lucas','Jones','1987-10-12','M','2024-10-31',NULL,2,7,'Obesity'),(1762,'Eva','Rodriguez','1973-02-10','M','2024-11-01',NULL,100,6,'Ear Infection'),(1763,'Henry','Morris','1980-09-05','F','2024-11-01',NULL,5,3,'Ulcer'),(1764,'Harper','Richardson','1988-10-22','M','2024-10-23','2024-10-24',91,6,'Anxiety'),(1765,'Zoe','Allen','1971-08-19','M','2024-10-27','2024-10-31',47,10,'Bipolar Disorder'),(1766,'Henry','Williams','2003-07-19','F','2024-10-30',NULL,52,8,'Acid Reflux'),(1767,'Mason','Richardson','1955-06-26','M','2024-10-25','2024-10-28',37,8,'Acid Reflux'),(1768,'Lucas','Roberts','1995-06-03','M','2024-10-25',NULL,42,2,'Kidney Stones'),(1769,'Jacob','James','1991-04-18','M','2024-10-28',NULL,51,6,'Sleep Apnea'),(1770,'Mason','Collins','1971-01-13','M','2024-10-31',NULL,72,1,'Bipolar Disorder'),(1771,'Ethan','James','1988-05-21','F','2024-10-24','2024-10-27',8,4,'Sleep Apnea'),(1772,'Oliver','Nelson','1950-02-01','M','2024-10-30',NULL,77,6,'Liver Disease'),(1773,'Ava','Smith','1957-02-08','M','2024-10-27','2024-10-30',20,2,'Covid-19'),(1774,'Ethan','Perez','1971-11-25','F','2024-10-29','2024-10-29',87,7,'Fibromyalgia'),(1775,'Daniel','Smith','1955-07-20','F','2024-10-23','2024-10-27',46,4,'PTSD'),(1776,'Isla','Gray','2001-03-03','F','2024-10-27',NULL,35,4,'PTSD'),(1777,'Jack','Garcia','1981-06-04','F','2024-10-25','2024-10-29',21,9,'Pneumonia'),(1778,'Isla','Murphy','2003-05-23','F','2024-10-30',NULL,80,4,'Pancreatitis'),(1779,'Nora','Walker','1980-04-26','F','2024-10-31','2024-10-31',57,6,'Epilepsy'),(1780,'Ella','Allen','1956-11-02','M','2024-10-23',NULL,29,4,'Sleep Apnea'),(1781,'Liam','Adams','1957-10-21','F','2024-10-23',NULL,59,9,'Gout'),(1782,'Leo','Rivera','1982-05-19','M','2024-10-29','2024-10-31',2,1,'Hemorrhoids'),(1783,'Ethan','Lee','1974-12-07','F','2024-10-24',NULL,41,7,'Hepatitis'),(1784,'Matthew','Cooper','1989-06-08','M','2024-10-23','2024-10-23',92,6,'Depression'),(1785,'Victoria','Ward','1994-12-20','M','2024-10-27',NULL,73,4,'Ear Infection'),(1786,'Abigail','Ward','1994-09-28','M','2024-10-30','2024-11-01',74,7,'Vertigo'),(1787,'Evelyn','Parker','2000-08-26','F','2024-10-26',NULL,76,2,'Arthritis'),(1788,'Madison','Gray','1954-08-26','F','2024-11-01','2024-11-04',59,10,'Hemorrhoids'),(1789,'Madison','Murphy','1989-10-01','M','2024-10-25','2024-10-25',81,10,'Osteoporosis'),(1790,'Joshua','Allen','1988-01-29','M','2024-10-27',NULL,47,2,'Anxiety'),(1791,'Aiden','Miller','1956-06-25','M','2024-10-24',NULL,62,6,'Sinusitis'),(1792,'John','Perez','1986-04-21','F','2024-10-26',NULL,55,4,'Covid-19'),(1793,'Alice','Turner','1949-04-15','F','2024-10-28','2024-10-31',48,3,'Migraine'),(1794,'Carol','James','1975-01-01','M','2024-10-29','2024-11-01',92,4,'Skin Rash'),(1795,'Bob','Morgan','1955-01-19','F','2024-10-23','2024-10-23',64,8,'Sinusitis'),(1796,'Jacob','Martinez','1997-07-03','F','2024-10-26',NULL,91,1,'Asthma'),(1797,'Ella','Peterson','1945-02-16','M','2024-10-30','2024-10-30',23,4,'COPD'),(1798,'Oliver','Davis','1987-02-28','M','2024-10-31',NULL,12,7,'Multiple Sclerosis'),(1799,'Nathan','Campbell','1981-09-10','M','2024-10-24','2024-10-28',2,7,'Fracture'),(1800,'Charlotte','Baker','1968-07-20','M','2024-10-31','2024-11-04',87,5,'Seasonal Flu'),(1801,'Chloe','Young','1985-07-28','F','2024-10-31','2024-10-31',45,2,'Heart Disease'),(1802,'Nathaniel','Baker','1963-04-10','F','2024-10-30','2024-11-03',95,4,'Hemorrhoids'),(1803,'Charlotte','Murphy','2002-12-23','M','2024-10-26','2024-10-29',59,3,'Pneumonia'),(1804,'Madison','Scott','1956-08-13','M','2024-10-26',NULL,15,9,'Asthma'),(1805,'John','Evans','1955-02-11','M','2024-10-26','2024-10-29',27,5,'Stroke'),(1806,'Madison','Anderson','1989-06-13','F','2024-10-27',NULL,28,10,'Hemorrhoids'),(1807,'Aiden','Rodriguez','1963-03-02','F','2024-11-01',NULL,76,9,'Bronchitis'),(1808,'James','Hernandez','1957-05-04','F','2024-10-26','2024-10-28',66,5,'Pancreatitis'),(1809,'Charlotte','Evans','1991-01-03','M','2024-10-27',NULL,83,9,'Liver Disease'),(1810,'Grace','Roberts','1988-10-27','F','2024-10-31',NULL,2,2,'Kidney Stones'),(1811,'Frank','Cox','1975-01-19','M','2024-10-28',NULL,42,5,'PTSD'),(1812,'Ethan','Hernandez','1948-08-20','F','2024-10-28',NULL,34,4,'Sinusitis'),(1813,'James','Adams','1970-06-23','M','2024-10-30','2024-11-01',11,3,'Pancreatitis'),(1814,'Abigail','Rodriguez','1959-08-07','M','2024-11-01',NULL,68,4,'Multiple Sclerosis'),(1815,'Charlotte','Baker','2002-04-07','F','2024-10-30','2024-11-03',98,9,'Ear Infection'),(1816,'Benjamin','Martinez','1967-06-25','F','2024-10-26',NULL,22,3,'Infection'),(1817,'Charlotte','Morris','1969-07-16','M','2024-10-29','2024-11-01',78,9,'Epilepsy'),(1818,'Mason','Stewart','1997-03-22','F','2024-10-29','2024-10-31',51,1,'Ear Infection'),(1819,'Zoe','Lee','1985-06-05','F','2024-10-29',NULL,31,2,'Ear Infection'),(1820,'Harper','Green','1946-06-21','F','2024-10-29','2024-10-29',42,4,'High Cholesterol'),(1821,'Noah','Wright','1988-02-02','M','2024-10-28','2024-10-28',5,4,'Bipolar Disorder'),(1822,'Dave','Wright','1999-01-05','M','2024-10-23','2024-10-25',16,1,'Infection'),(1823,'Isabella','Nelson','1951-09-13','F','2024-10-27','2024-10-29',98,3,'Epilepsy'),(1824,'Emily','Walker','1972-02-15','F','2024-10-25','2024-10-27',90,8,'Chronic Fatigue'),(1825,'Ella','Mitchell','1997-01-08','M','2024-10-24',NULL,77,7,'Liver Disease'),(1826,'Sophia','Edwards','1965-02-17','M','2024-10-23',NULL,86,2,'Hypertension'),(1827,'Isla','King','1949-09-17','M','2024-10-24','2024-10-25',51,4,'Allergy'),(1828,'Bob','Nelson','1968-03-12','M','2024-10-30',NULL,88,7,'Hepatitis'),(1829,'Elijah','Scott','1997-01-09','M','2024-10-28','2024-10-29',95,7,'Anxiety'),(1830,'Bob','Howard','1988-04-19','F','2024-10-28',NULL,42,7,'Gallbladder Disease'),(1831,'Benjamin','Ward','1979-07-25','F','2024-10-23','2024-10-26',45,5,'Appendicitis'),(1832,'John','Jackson','1954-04-30','M','2024-10-30','2024-11-02',61,4,'Hepatitis'),(1833,'Isabella','Allen','1954-06-27','F','2024-10-31','2024-10-31',17,10,'Hemorrhoids'),(1834,'Benjamin','Murphy','1965-12-06','F','2024-10-30','2024-11-03',7,9,'Tuberculosis'),(1835,'Ethan','Lee','1964-10-29','F','2024-10-25','2024-10-25',38,2,'Depression'),(1836,'Joshua','Wright','1958-02-21','F','2024-10-24','2024-10-24',51,7,'Bipolar Disorder'),(1837,'Sophie','Peterson','1950-03-03','F','2024-10-30','2024-11-01',20,6,'Bronchitis'),(1838,'Olivia','Gray','1971-12-11','M','2024-10-24','2024-10-24',39,4,'Asthma'),(1839,'Liam','Mitchell','2004-03-03','M','2024-10-27',NULL,29,9,'Sleep Apnea'),(1840,'John','Bailey','1978-04-02','F','2024-10-26',NULL,11,2,'Scoliosis'),(1841,'Grace','Allen','1994-08-12','F','2024-10-31',NULL,98,7,'Obesity'),(1842,'Chloe','Moore','1966-07-27','F','2024-10-23','2024-10-27',36,3,'Migraine'),(1843,'Nathaniel','Scott','1999-06-24','F','2024-10-24',NULL,31,9,'Conjunctivitis'),(1844,'Madison','Taylor','1988-03-07','M','2024-10-24','2024-10-27',7,3,'Bronchitis'),(1845,'Matthew','Wright','2000-02-03','M','2024-10-25',NULL,13,5,'Anxiety'),(1846,'Alexander','Evans','1998-03-22','F','2024-10-28','2024-10-31',91,7,'Depression'),(1847,'Alexander','Rivera','1989-02-03','F','2024-10-28',NULL,13,1,'Gastroenteritis'),(1848,'Aiden','Roberts','2003-10-27','M','2024-10-25',NULL,15,1,'Conjunctivitis'),(1849,'Amelia','Harris','1952-08-09','F','2024-11-01','2024-11-01',2,8,'Ulcer'),(1850,'Mason','Rodriguez','1976-01-30','F','2024-10-30',NULL,23,7,'Hemorrhoids'),(1851,'Harper','Parker','1999-03-08','F','2024-10-29',NULL,1,3,'Gallbladder Disease'),(1852,'Elijah','King','1990-11-19','F','2024-10-30','2024-10-30',88,4,'Osteoporosis'),(1853,'Alice','Wright','1971-09-02','M','2024-10-24',NULL,12,8,'Tuberculosis'),(1854,'Olivia','Gray','1970-12-11','F','2024-10-30',NULL,78,5,'Chronic Fatigue'),(1855,'Eva','Evans','1996-06-29','M','2024-10-24','2024-10-25',79,10,'Chronic Fatigue'),(1856,'Eva','Stewart','1986-02-06','M','2024-10-30',NULL,2,7,'Scoliosis'),(1857,'Victoria','Williams','1955-05-17','F','2024-10-31',NULL,46,2,'Ear Infection'),(1858,'Ava','Miller','1956-06-30','M','2024-10-27','2024-10-28',73,10,'Kidney Stones'),(1859,'Ella','Wilson','1976-08-01','M','2024-10-29',NULL,60,9,'Sleep Apnea'),(1860,'Ethan','Hernandez','1949-08-20','M','2024-10-23','2024-10-24',18,4,'Migraine'),(1861,'John','Mitchell','1952-09-08','F','2024-10-24',NULL,76,9,'Herniated Disc'),(1862,'Jane','Cook','1957-01-01','M','2024-10-31',NULL,12,4,'Gout'),(1863,'Liam','Walker','1947-07-05','F','2024-10-31','2024-11-01',23,5,'Obesity'),(1864,'Dave','Clark','1989-11-23','M','2024-10-30',NULL,18,6,'High Cholesterol'),(1865,'Chloe','Howard','1989-11-28','F','2024-10-23','2024-10-25',34,3,'Vertigo'),(1866,'Elijah','Harris','1994-07-06','F','2024-10-26','2024-10-27',64,4,'Acid Reflux'),(1867,'Noah','Martin','1960-11-28','M','2024-11-01',NULL,1,10,'Acid Reflux'),(1868,'Elijah','Reed','1974-02-05','M','2024-10-25',NULL,82,6,'Chronic Fatigue'),(1869,'Isabella','Phillips','1987-03-21','M','2024-10-28',NULL,93,8,'Kidney Stones'),(1870,'Benjamin','Stewart','2002-02-26','F','2024-10-25',NULL,93,3,'Bipolar Disorder'),(1871,'Eva','Jackson','1981-06-02','M','2024-10-27',NULL,98,7,'Sleep Apnea'),(1872,'Ella','Carter','1988-04-23','M','2024-10-26','2024-10-29',91,6,'Gallbladder Disease'),(1873,'Samuel','Morris','1993-10-09','M','2024-10-26',NULL,89,5,'Sinusitis'),(1874,'Jack','Taylor','1957-09-03','F','2024-10-29',NULL,47,10,'Infection'),(1875,'Olivia','Howard','1977-07-29','M','2024-11-01',NULL,87,2,'Skin Rash'),(1876,'Mia','Williams','1954-11-24','F','2024-10-29',NULL,64,5,'Chronic Fatigue'),(1877,'Zoe','Lee','2003-05-27','F','2024-10-31',NULL,7,6,'Heart Disease'),(1878,'Zoe','Turner','1966-07-12','M','2024-10-23','2024-10-23',80,6,'Scoliosis'),(1879,'Matthew','Roberts','1998-08-07','M','2024-10-25',NULL,6,1,'Obesity'),(1880,'Sophia','Brown','1977-06-04','F','2024-10-26',NULL,61,9,'Fibromyalgia'),(1881,'Benjamin','Davis','1990-07-15','F','2024-10-30','2024-10-31',46,6,'Conjunctivitis'),(1882,'Nathaniel','Evans','2003-05-07','F','2024-10-29','2024-10-29',46,1,'Osteoporosis'),(1883,'Liam','Martinez','1995-01-04','M','2024-10-24',NULL,3,4,'Pneumonia'),(1884,'Isabella','Walker','1949-05-03','F','2024-10-31',NULL,75,1,'Tuberculosis'),(1885,'Nathaniel','Baker','1997-10-27','F','2024-10-26',NULL,58,7,'Gout'),(1886,'Abigail','Moore','1952-11-24','M','2024-10-23','2024-10-25',23,10,'Epilepsy'),(1887,'Abigail','Torres','1956-10-16','M','2024-11-01',NULL,51,8,'Gallbladder Disease'),(1888,'Alexander','Scott','1986-06-06','F','2024-10-27','2024-10-27',24,3,'Hepatitis'),(1889,'Zoe','Gonzalez','1989-02-27','F','2024-10-23',NULL,46,10,'Hepatitis'),(1890,'Ethan','Hill','1951-05-19','M','2024-10-27',NULL,25,8,'Seasonal Flu'),(1891,'Jackson','Martin','1953-11-22','F','2024-10-26',NULL,3,8,'Allergy'),(1892,'Elijah','Green','2000-09-05','F','2024-11-01',NULL,4,4,'Heart Disease'),(1893,'Jacob','Hernandez','1945-01-31','M','2024-10-24',NULL,42,5,'Ulcer'),(1894,'Ava','Cook','1996-10-05','M','2024-10-23',NULL,80,3,'Multiple Sclerosis'),(1895,'Victoria','Perez','1973-10-13','F','2024-10-27','2024-10-30',90,6,'Infection'),(1896,'Nathan','Sanchez','1994-05-17','F','2024-10-23','2024-10-25',10,3,'Pneumonia'),(1897,'Nora','Bailey','1950-11-09','M','2024-10-28','2024-10-29',82,2,'Epilepsy'),(1898,'Emma','Green','2002-07-29','M','2024-11-01',NULL,99,10,'Liver Disease'),(1899,'Alexander','Perez','1975-08-02','F','2024-10-26','2024-10-28',10,2,'Herniated Disc'),(1900,'Joshua','Collins','1976-03-06','M','2024-10-25','2024-10-28',19,4,'Liver Disease'),(1901,'Eva','Turner','1966-02-08','F','2024-10-31','2024-10-31',55,1,'Hepatitis'),(1902,'Charlotte','Adams','2001-06-23','F','2024-10-31','2024-11-03',70,9,'Covid-19'),(1903,'Emma','Bell','1955-08-04','F','2024-11-01',NULL,44,8,'Heart Disease'),(1904,'Nathan','Taylor','1947-01-01','F','2024-11-01','2024-11-02',14,5,'Bronchitis'),(1905,'Liam','Rivera','1990-02-15','F','2024-10-30','2024-10-31',23,2,'Infection'),(1906,'Jackson','Turner','1966-06-26','F','2024-10-24',NULL,6,6,'Skin Rash'),(1907,'Abigail','Baker','1983-03-17','M','2024-10-31','2024-10-31',49,8,'Gastroenteritis'),(1908,'Aiden','Lopez','2001-09-10','F','2024-10-24',NULL,21,5,'Multiple Sclerosis'),(1909,'Isabella','Roberts','1963-01-23','F','2024-10-23','2024-10-27',79,6,'Epilepsy'),(1910,'Henry','King','1966-04-30','M','2024-10-28',NULL,71,10,'Epilepsy'),(1911,'Olivia','Parker','1952-03-28','M','2024-10-26',NULL,11,7,'High Cholesterol'),(1912,'Jackson','Edwards','1985-03-20','F','2024-10-30',NULL,51,10,'Chronic Fatigue'),(1913,'Noah','Collins','1984-03-22','F','2024-10-28','2024-11-01',77,8,'COPD'),(1914,'Sophie','Martinez','1954-12-25','M','2024-10-24',NULL,41,3,'Depression'),(1915,'Nathan','Gray','1972-10-08','F','2024-10-23',NULL,93,10,'Multiple Sclerosis'),(1916,'Madison','Martin','1988-04-27','F','2024-10-29','2024-10-31',62,5,'Infection'),(1917,'Lily','Perez','1992-04-04','M','2024-10-26',NULL,95,7,'Panic Disorder'),(1918,'Nora','Garcia','1993-02-15','F','2024-10-25','2024-10-26',37,5,'Anxiety'),(1919,'Isabella','Lee','1948-05-04','F','2024-10-25',NULL,7,2,'Pancreatitis'),(1920,'Benjamin','Phillips','1977-12-27','M','2024-11-01','2024-11-02',51,2,'Skin Rash'),(1921,'Benjamin','Bailey','1945-05-09','F','2024-10-27',NULL,23,6,'Pneumonia'),(1922,'Madison','Scott','1974-04-03','M','2024-10-29','2024-10-31',91,9,'Vertigo'),(1923,'Joshua','Miller','1986-12-16','F','2024-10-25','2024-10-26',5,3,'Obesity'),(1924,'Frank','Roberts','1973-10-20','M','2024-10-26',NULL,31,5,'Stroke'),(1925,'Frank','Lopez','2000-12-09','F','2024-11-01',NULL,21,4,'Epilepsy'),(1926,'Charlotte','Torres','1995-05-14','F','2024-10-29',NULL,47,10,'Infection'),(1927,'Lucas','Garcia','1945-02-22','M','2024-10-29','2024-10-29',10,7,'COPD'),(1928,'Ella','Martinez','1949-05-26','M','2024-10-25','2024-10-29',80,9,'Diabetes'),(1929,'Sophie','King','1990-03-24','M','2024-11-01','2024-11-01',2,6,'PTSD'),(1930,'Bob','Miller','1990-05-31','F','2024-10-28','2024-11-01',100,7,'Obesity'),(1931,'Elijah','Nelson','1992-01-16','M','2024-10-27','2024-10-31',87,8,'Liver Disease'),(1932,'James','Miller','1953-04-11','F','2024-10-27','2024-10-29',78,6,'Parkinson\'s Disease'),(1933,'Evelyn','Sanchez','1973-08-15','F','2024-10-23','2024-10-27',86,6,'Heart Disease'),(1934,'Lily','Taylor','1949-04-23','M','2024-10-26',NULL,6,10,'Covid-19'),(1935,'Charlotte','Collins','1968-07-19','F','2024-10-25',NULL,75,10,'Multiple Sclerosis'),(1936,'Mason','Williams','1974-12-02','M','2024-10-31','2024-11-02',27,5,'Asthma'),(1937,'John','Brown','1995-10-24','M','2024-10-23','2024-10-24',21,7,'Panic Disorder'),(1938,'Michael','Adams','1962-12-04','M','2024-11-01','2024-11-05',60,3,'PTSD'),(1939,'Ava','Bailey','1997-04-16','M','2024-10-25',NULL,36,5,'Hemorrhoids'),(1940,'Aiden','Roberts','1973-06-30','F','2024-10-24',NULL,42,8,'Gallbladder Disease'),(1941,'Charlotte','Martin','1999-07-01','F','2024-10-23','2024-10-25',24,10,'Herniated Disc'),(1942,'Daniel','Rodriguez','1972-07-12','F','2024-10-30','2024-10-31',93,8,'Gallbladder Disease'),(1943,'Noah','Davis','1966-04-04','M','2024-10-25','2024-10-26',55,3,'Fracture'),(1944,'Carol','Green','1961-11-25','F','2024-11-01',NULL,69,1,'Ear Infection'),(1945,'Jacob','Murphy','1996-10-06','F','2024-10-23',NULL,20,7,'High Cholesterol'),(1946,'Lily','Thomas','1983-03-05','M','2024-10-26',NULL,99,6,'Herniated Disc'),(1947,'Abigail','Thomas','1971-08-09','F','2024-10-24','2024-10-26',20,9,'Diabetes'),(1948,'Noah','Smith','1970-11-21','M','2024-10-27',NULL,34,1,'Conjunctivitis'),(1949,'Ethan','Cooper','1977-10-23','F','2024-10-25','2024-10-28',92,2,'Pancreatitis'),(1950,'Carol','Green','1966-11-01','M','2024-10-27','2024-10-31',35,10,'Ulcer'),(1951,'Amelia','Morgan','1988-11-07','M','2024-10-25',NULL,22,9,'Sleep Apnea'),(1952,'Jack','Williams','1961-08-05','F','2024-10-26',NULL,84,5,'Obesity'),(1953,'Dave','Baker','1948-12-08','F','2024-10-26',NULL,8,4,'Heart Disease'),(1954,'Jacob','Reed','1997-11-17','M','2024-10-28','2024-10-30',59,3,'Bipolar Disorder'),(1955,'Emily','Roberts','1947-04-16','F','2024-11-01',NULL,58,4,'Panic Disorder'),(1956,'Carol','Jackson','1983-03-17','M','2024-10-26',NULL,60,6,'Gastroenteritis'),(1957,'Frank','Gray','1970-03-29','M','2024-10-30',NULL,55,7,'Covid-19'),(1958,'Charlotte','Cook','1993-07-04','F','2024-10-30','2024-11-02',67,7,'Liver Disease'),(1959,'Chloe','Richardson','1996-10-11','M','2024-11-01','2024-11-03',15,4,'Multiple Sclerosis'),(1960,'Jacob','Baker','1946-09-21','M','2024-10-30','2024-11-03',10,10,'Seasonal Flu'),(1961,'Michael','Brown','1982-03-01','M','2024-10-28',NULL,45,10,'Anxiety'),(1962,'Jacob','Gonzalez','1979-03-15','M','2024-10-31',NULL,37,5,'Obesity'),(1963,'Noah','Thomas','1966-07-16','F','2024-11-01',NULL,85,10,'Heart Disease'),(1964,'Dave','Garcia','1988-12-05','M','2024-10-30',NULL,53,7,'Liver Disease'),(1965,'Sophia','Williams','2003-11-26','M','2024-10-30','2024-10-31',79,5,'Ulcer'),(1966,'Madison','Hernandez','1986-04-13','M','2024-11-01','2024-11-03',68,9,'Gallbladder Disease'),(1967,'Nathan','Hall','1946-10-26','M','2024-10-24',NULL,50,4,'COPD'),(1968,'Nora','Hernandez','1977-08-18','M','2024-10-31','2024-10-31',4,2,'Gallbladder Disease'),(1969,'Aiden','Cox','1948-12-12','M','2024-11-01','2024-11-01',96,8,'Panic Disorder'),(1970,'Jack','Peterson','1989-05-09','F','2024-10-31','2024-11-02',77,8,'Heart Disease'),(1971,'Dave','Bell','1951-01-15','F','2024-10-25',NULL,95,3,'Osteoporosis'),(1972,'Amelia','Rodriguez','1999-09-01','F','2024-10-31','2024-11-04',93,8,'Fracture'),(1973,'Dave','Harris','1964-09-24','M','2024-10-24',NULL,67,6,'Pancreatitis'),(1974,'Elijah','Hall','1988-08-19','F','2024-10-30','2024-11-03',43,4,'Ear Infection'),(1975,'Ethan','Scott','1967-05-15','F','2024-10-29',NULL,89,4,'Gout'),(1976,'Oliver','Harris','1992-09-26','M','2024-10-25','2024-10-28',24,8,'High Cholesterol'),(1977,'Victoria','Cooper','1977-04-02','F','2024-11-01',NULL,38,10,'Obesity'),(1978,'Abigail','Ward','1988-03-30','F','2024-10-24',NULL,88,10,'Heart Disease'),(1979,'Harper','Evans','1953-01-11','M','2024-10-24','2024-10-25',34,4,'Skin Rash'),(1980,'Jack','Nelson','1961-08-27','F','2024-10-31','2024-11-03',66,10,'Sinusitis'),(1981,'Emily','Gonzalez','1985-05-17','M','2024-10-30',NULL,34,1,'Hemorrhoids'),(1982,'Mia','Allen','1971-01-02','M','2024-11-01',NULL,68,2,'Parkinson\'s Disease'),(1983,'Isla','Green','1950-01-13','M','2024-10-30','2024-10-30',49,10,'Obesity'),(1984,'Michael','Clark','1999-06-13','M','2024-10-26',NULL,19,5,'Vertigo'),(1985,'Nathan','Evans','1979-06-17','M','2024-10-26',NULL,20,1,'Diabetes'),(1986,'Nathan','Anderson','1972-11-05','M','2024-10-26',NULL,18,8,'Hypertension'),(1987,'Lily','Bailey','1951-09-19','M','2024-10-27','2024-10-31',94,8,'Sleep Apnea'),(1988,'Jacob','Bell','1951-02-15','F','2024-10-25','2024-10-28',52,6,'Liver Disease'),(1989,'Emma','Green','1966-02-15','M','2024-10-25',NULL,70,9,'Hepatitis'),(1990,'Charlotte','Scott','1976-08-24','F','2024-11-01',NULL,29,7,'Fibromyalgia'),(1991,'James','Wilson','2004-08-07','F','2024-10-28','2024-10-31',25,1,'Asthma'),(1992,'Oliver','Wright','1981-03-14','F','2024-10-29',NULL,71,2,'Vertigo'),(1993,'Ethan','Miller','1976-08-10','M','2024-10-29',NULL,38,2,'Gout'),(1994,'Eva','Young','1967-04-29','F','2024-10-24','2024-10-27',90,5,'Bipolar Disorder'),(1995,'Joshua','Cox','1947-11-03','M','2024-10-25',NULL,39,4,'Gastroenteritis'),(1996,'Jane','Morgan','1993-11-06','F','2024-10-24','2024-10-28',41,3,'Fracture'),(1997,'Jane','Wilson','1967-11-01','M','2024-10-25','2024-10-28',1,1,'Covid-19'),(1998,'Isabella','Clark','1961-09-04','F','2024-10-28','2024-10-31',92,4,'Asthma'),(1999,'Mia','Campbell','1977-02-02','M','2024-10-27',NULL,79,7,'Diabetes'),(2000,'Chloe','Taylor','1959-01-02','M','2024-10-31',NULL,62,3,'Depression');
+/*!40000 ALTER TABLE `patients` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `physicians`
+--
+
+DROP TABLE IF EXISTS `physicians`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `physicians` (
+ `physician_id` int(11) NOT NULL AUTO_INCREMENT,
+ `first_name` varchar(50) NOT NULL,
+ `last_name` varchar(50) NOT NULL,
+ `specialty` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`physician_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `physicians`
+--
+
+LOCK TABLES `physicians` WRITE;
+/*!40000 ALTER TABLE `physicians` DISABLE KEYS */;
+INSERT INTO `physicians` VALUES (1,'Henry','Cox','Endocrinology'),(2,'Michael','Garcia','General Practice'),(3,'Leo','Richardson','Pediatrics'),(4,'Nathan','Davis','General Practice'),(5,'Noah','Peterson','Dermatology'),(6,'Daniel','Adams','Orthopedics'),(7,'Carol','Stewart','Pulmonology'),(8,'Michael','Hernandez','Gastroenterology'),(9,'Amelia','Parker','General Practice'),(10,'Isabella','Torres','Endocrinology');
+/*!40000 ALTER TABLE `physicians` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2024-11-01 18:21:43
diff --git a/Sprint 1/src/src/pcpType.class b/Sprint 1/src/src/pcpType.class
new file mode 100644
index 000000000..bd4884aa6
Binary files /dev/null and b/Sprint 1/src/src/pcpType.class differ
diff --git a/Sprint 1/src/src/pcpType.java b/Sprint 1/src/src/pcpType.java
new file mode 100644
index 000000000..0a695c86d
--- /dev/null
+++ b/Sprint 1/src/src/pcpType.java
@@ -0,0 +1,43 @@
+package src;
+
+//Class for creating objects for Primary Care Providers
+public class pcpType {
+ String drFname;
+ String drLname;
+ String specialty;
+ //Chose not to assign patient to Dr since Dr is already assigned to patient in PatientType class
+
+ //default constructor
+ public pcpType() {
+ this.drFname = "";
+ this.drLname = "";
+ this.specialty = "";
+ }
+
+ //constructor
+ public pcpType(String drFname, String drLname, String specialty) {
+ this.drFname = drFname;
+ this.drLname = drLname;
+ this.specialty = specialty;
+ }
+
+ //Getters
+ public String getDrFname() {return drFname;}
+ public String getDrLname() {return drLname;}
+ public String getSpecialty() {return specialty;}
+
+ //Setters
+ public void setDrFname(String drFname) {this.drFname = drFname;}
+ public void setDrLname(String drLname) {this.drLname = drLname;}
+ public void setSpecialty(String specialty) {this.specialty = specialty;}
+
+ //Print function for all Dr info
+ public void printDrInfo(){
+ System.out.println("Dr: " + drLname + " Info\n");
+ System.out.println(drFname + " " + drLname);
+ System.out.println("Specialty: " + specialty);
+
+ }
+
+
+}
diff --git a/Sprint 2/Sprint 2 Test Cases Video.mp4 b/Sprint 2/Sprint 2 Test Cases Video.mp4
new file mode 100644
index 000000000..2baea5ea1
Binary files /dev/null and b/Sprint 2/Sprint 2 Test Cases Video.mp4 differ
diff --git a/Sprint 2/Use Case 2 Tests.pdf b/Sprint 2/Use Case 2 Tests.pdf
new file mode 100644
index 000000000..3b85aa05f
Binary files /dev/null and b/Sprint 2/Use Case 2 Tests.pdf differ
diff --git a/Sprint 2/src/UI/Parts/.gitignore b/Sprint 2/src/UI/Parts/.gitignore
new file mode 100644
index 000000000..3419cc2c6
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/.gitignore
@@ -0,0 +1,8 @@
+/Button.class
+/Dropdown.class
+/GroupLayoutPanel.class
+/Label.class
+/MainPanel.class
+/ScrollPanel.class
+/TextInput.class
+/Window.class
diff --git a/Sprint 2/src/UI/Parts/Button.java b/Sprint 2/src/UI/Parts/Button.java
new file mode 100644
index 000000000..20b14e743
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/Button.java
@@ -0,0 +1,18 @@
+package UI.Parts;
+
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.Dimension;
+
+public class Button extends JButton{
+ String ID;
+
+ public Button(String text, String ID){
+ super(text);
+ this.ID = ID;
+ }
+
+ public String getID(){
+ return this.ID;
+ }
+}
diff --git a/Sprint 2/src/UI/Parts/Dropdown.java b/Sprint 2/src/UI/Parts/Dropdown.java
new file mode 100644
index 000000000..b2483dcff
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/Dropdown.java
@@ -0,0 +1,21 @@
+package UI.Parts;
+
+import javax.swing.JComboBox;
+
+public class Dropdown extends JComboBox {
+ public Dropdown(String[] options){
+ super(options);
+ }
+
+ public String getSelectedItem(){
+ return (String) super.getSelectedItem();
+ }
+
+ // public void addItem(String option){
+ // addItem(option);
+ // }
+
+ // public void removeItem(String option){
+ // removeItem(option);
+ // }
+}
\ No newline at end of file
diff --git a/Sprint 2/src/UI/Parts/GroupLayoutPanel.java b/Sprint 2/src/UI/Parts/GroupLayoutPanel.java
new file mode 100644
index 000000000..49320e935
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/GroupLayoutPanel.java
@@ -0,0 +1,68 @@
+package UI.Parts;
+
+import javax.swing.*;
+import javax.swing.GroupLayout.ParallelGroup;
+import javax.swing.GroupLayout.SequentialGroup;
+import java.awt.*;
+
+// https://docs.oracle.com/javase/tutorial/uiswing/layout/group.html
+//Reference above site for how to use GroupLayout
+
+public class GroupLayoutPanel extends JPanel{
+ private GroupLayout layout = new GroupLayout(this);
+ private SequentialGroup horizontalGroup = layout.createSequentialGroup();
+ private SequentialGroup verticalGroup = layout.createSequentialGroup();
+
+ public GroupLayoutPanel(){
+ super();
+ super.setLayout(layout);
+ // super.setAutoCreateGaps(true);
+ // super.setAutoCreateContainerGaps(true);
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+
+ public void addHorizontalItem(Component item){
+ horizontalGroup.addComponent(item);
+ }
+
+ public void addHorizontalItems(Component items[]){
+ for(Component item : items){
+ horizontalGroup.addComponent(item);
+ }
+ }
+
+ public void addHorizontalParallelGroup(Component items[], GroupLayout.Alignment align){
+ ParallelGroup group = layout.createParallelGroup(align);
+ for(Component item : items){
+ group.addComponent(item);
+ }
+ horizontalGroup.addGroup(group);
+ }
+
+ public void addVerticalItem(Component item){
+ verticalGroup.addComponent(item);
+ }
+
+ public void addVerticalItems(Component items[]){
+ for(Component item : items){
+ verticalGroup.addComponent(item);
+ }
+ }
+
+ public void addVerticalParallelGroup(Component items[], GroupLayout.Alignment align){
+ ParallelGroup group = layout.createParallelGroup(align);
+ for(Component item : items){
+ group.addComponent(item);
+ }
+ verticalGroup.addGroup(group);
+ }
+
+ public void finish(){
+ layout.setHorizontalGroup(horizontalGroup);
+ layout.setVerticalGroup(verticalGroup);
+ }
+}
diff --git a/Sprint 2/src/UI/Parts/Label.java b/Sprint 2/src/UI/Parts/Label.java
new file mode 100644
index 000000000..05b1edfc5
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/Label.java
@@ -0,0 +1,19 @@
+package UI.Parts;
+
+import javax.swing.JLabel;
+
+public class Label extends JLabel {
+
+ public Label(String text){
+ super();
+ setText(text);
+ }
+
+ public void setText(String text){
+ super.setText(text);
+ }
+
+ public String getText(){
+ return super.getText();
+ }
+}
diff --git a/Sprint 2/src/UI/Parts/MainPanel.java b/Sprint 2/src/UI/Parts/MainPanel.java
new file mode 100644
index 000000000..0f4356ed5
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/MainPanel.java
@@ -0,0 +1,29 @@
+package UI.Parts;
+
+import javax.swing.JPanel;
+import javax.swing.BoxLayout;
+import java.awt.GridBagConstraints;
+import java.awt.Component;
+
+public class MainPanel extends JPanel{
+ GridBagConstraints gbc = null;
+
+ public MainPanel(boolean isYAxis){ //For main panel
+ super();
+ if(isYAxis){super.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));}
+ else{super.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));}
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+
+ public void addItem(int gridx, int gridy, Component comp){
+ if(gbc != null){
+ gbc.gridx = gridx;
+ gbc.gridy = gridy;
+ }
+ this.addItem(comp);
+ }
+}
diff --git a/Sprint 2/src/UI/Parts/ScrollPanel.java b/Sprint 2/src/UI/Parts/ScrollPanel.java
new file mode 100644
index 000000000..6e222e02b
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/ScrollPanel.java
@@ -0,0 +1,27 @@
+package UI.Parts;
+
+import javax.swing.JScrollPane;
+import java.awt.Component;
+
+public class ScrollPanel extends JScrollPane{
+ final String DEFAULTTITLE = "";
+ final int DEFAULTSIZE = 500;
+ final int DEFAULTLOCATION = 300;
+
+ public ScrollPanel(Component panel){
+ super(panel);
+ super.setSize(DEFAULTSIZE, DEFAULTSIZE);
+ super.setLocation(DEFAULTLOCATION, DEFAULTLOCATION);
+ }
+
+ public ScrollPanel(Component panel, int x, int y, int width, int height){
+ super(panel);
+ super.setSize(width, height);
+ super.setLocation(x, y);
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+}
diff --git a/Sprint 2/src/UI/Parts/TextInput.java b/Sprint 2/src/UI/Parts/TextInput.java
new file mode 100644
index 000000000..1cdc9a024
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/TextInput.java
@@ -0,0 +1,19 @@
+package UI.Parts;
+
+import javax.swing.JTextField;
+
+public class TextInput extends JTextField{
+ final int COLUMNS = 24;
+ final String INITIALTEXT = "";
+
+ public TextInput(String initialText, int columns){
+ super(
+ ((Object) initialText == null) ? ("") : (initialText),
+ ((Object) columns == null) ? (24) : (columns)
+ );
+ }
+
+ public String getText(){
+ return super.getText();
+ }
+}
diff --git a/Sprint 2/src/UI/Parts/Window.java b/Sprint 2/src/UI/Parts/Window.java
new file mode 100644
index 000000000..08a2c1c69
--- /dev/null
+++ b/Sprint 2/src/UI/Parts/Window.java
@@ -0,0 +1,51 @@
+package UI.Parts;
+
+import java.awt.Component;
+import javax.swing.JFrame;
+
+public class Window extends JFrame{
+ final String DEFAULTTITLE = "";
+ final int DEFAULTSIZE = 500;
+ final int DEFAULTLOCATION = 300;
+
+ public Window (String title){
+ super(title);
+ super.setSize(DEFAULTSIZE, DEFAULTSIZE);
+ super.setLocationRelativeTo(null);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public Window (String title, int width, int height){
+ super(title);
+ super.setSize(width, height);
+ super.setLocationRelativeTo(null);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public Window(String title, int x, int y, int width, int height){
+ super(title);
+ super.setSize(width, height);
+ super.setLocation(x, y);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public void addItem(String borderLayout, Component comp){
+ super.getContentPane().add(borderLayout, comp);
+ }
+
+ public void setContentPanel(MainPanel panel){
+ super.setContentPane(panel);
+ super.pack(); // Set size to preferred size of buttons and stuff in the content panel
+ }
+
+ public void setVisible(boolean visible){
+ super.setVisible(visible);
+ }
+
+ public boolean isVisible(){
+ return super.isVisible();
+ }
+}
\ No newline at end of file
diff --git a/Sprint 2/src/UI/Windows/.gitignore b/Sprint 2/src/UI/Windows/.gitignore
new file mode 100644
index 000000000..6aed67352
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/.gitignore
@@ -0,0 +1,19 @@
+/AddPatient$1.class
+/AddPatient.class
+/GUI.class
+/HomePage$1.class
+/HomePage$2.class
+/HomePage$SwingAction.class
+/HomePage.class
+/LoginWindow$1.class
+/LoginWindow$2.class
+/LoginWindow$3.class
+/LoginWindow.class
+/PatientData$1.class
+/PatientData.class
+/RoomView$1.class
+/RoomView.class
+/SearchFunction$1.class
+/SearchFunction$2.class
+/SearchFunction.class
+/SearchPage.class
diff --git a/Sprint 2/src/UI/Windows/AddPatient$2.class b/Sprint 2/src/UI/Windows/AddPatient$2.class
new file mode 100644
index 000000000..61d73b12e
Binary files /dev/null and b/Sprint 2/src/UI/Windows/AddPatient$2.class differ
diff --git a/Sprint 2/src/UI/Windows/EditPatientData$1.class b/Sprint 2/src/UI/Windows/EditPatientData$1.class
new file mode 100644
index 000000000..248035a3d
Binary files /dev/null and b/Sprint 2/src/UI/Windows/EditPatientData$1.class differ
diff --git a/Sprint 2/src/UI/Windows/EditPatientData$2.class b/Sprint 2/src/UI/Windows/EditPatientData$2.class
new file mode 100644
index 000000000..144f9c27b
Binary files /dev/null and b/Sprint 2/src/UI/Windows/EditPatientData$2.class differ
diff --git a/Sprint 2/src/UI/Windows/EditPatientData$3.class b/Sprint 2/src/UI/Windows/EditPatientData$3.class
new file mode 100644
index 000000000..2edfd6365
Binary files /dev/null and b/Sprint 2/src/UI/Windows/EditPatientData$3.class differ
diff --git a/Sprint 2/src/UI/Windows/EditPatientData.class b/Sprint 2/src/UI/Windows/EditPatientData.class
new file mode 100644
index 000000000..8b2438d2e
Binary files /dev/null and b/Sprint 2/src/UI/Windows/EditPatientData.class differ
diff --git a/Sprint 2/src/UI/Windows/EditPatientData.java b/Sprint 2/src/UI/Windows/EditPatientData.java
new file mode 100644
index 000000000..5bbdc1ba1
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/EditPatientData.java
@@ -0,0 +1,296 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import javax.swing.JOptionPane;
+
+import javax.swing.JSeparator;
+import javax.swing.JLabel;
+import java.awt.Color;
+import java.awt.Dimension;
+import javax.swing.JTextArea;
+
+import src.Main;
+
+public class EditPatientData {
+
+ private JFrame frmEditPatientData;
+ private JButton saveButton;
+ private JTextArea eventsBox;
+ private JTextArea notesBox;
+ private JTextField idenNum;
+ private JTextField roomNum;
+ private JTextField PCPBox;
+ private JTextField patientName;
+ private JButton backButton;
+
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ EditPatientData window = new EditPatientData(args);
+ window.frmEditPatientData.setVisible(true);
+ window.frmEditPatientData.setLocationRelativeTo(null);
+ window.frmEditPatientData.setMinimumSize(new Dimension(450, 450));
+ window.frmEditPatientData.setBounds(100, 100, 450, 450);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+
+ }
+
+ /**
+ * Create the application.
+ */
+ public EditPatientData(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frmEditPatientData = new JFrame();
+ frmEditPatientData.setVisible(true);
+ frmEditPatientData.setResizable(false);
+ frmEditPatientData.setLocationRelativeTo(null);
+ frmEditPatientData.setTitle("Edit Patient Data");
+ frmEditPatientData.getContentPane().setFont(new Font("Cambria", Font.PLAIN, 11));
+ frmEditPatientData.setSize(450, 450);
+ frmEditPatientData.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frmEditPatientData.getContentPane().setLayout(null);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(10, 46, 414, 2);
+ frmEditPatientData.getContentPane().add(separator);
+
+ JLabel lblNewLabel = new JLabel("Identifier #:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNewLabel.setBounds(10, 59, 101, 19);
+ frmEditPatientData.getContentPane().add(lblNewLabel);
+
+ JLabel lblRoom = new JLabel("Room #:");
+ lblRoom.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblRoom.setBounds(10, 89, 70, 19);
+ frmEditPatientData.getContentPane().add(lblRoom);
+
+ JLabel lblPmc = new JLabel("Primary Care Provider ID:");
+ lblPmc.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblPmc.setBounds(10, 119, 217, 19);
+ frmEditPatientData.getContentPane().add(lblPmc);
+
+ JLabel lblEvents = new JLabel("Events:");
+ lblEvents.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblEvents.setBounds(10, 149, 55, 19);
+ frmEditPatientData.getContentPane().add(lblEvents);
+
+ JLabel lblNotes = new JLabel("Notes:");
+ lblNotes.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNotes.setBounds(10, 261, 55, 19);
+ frmEditPatientData.getContentPane().add(lblNotes);
+
+ backButton = new JButton("๐");
+ backButton.setBounds(6, 6, 30, 30);
+ backButton.setMinimumSize(new Dimension (30, 30));
+ backButton.setMaximumSize(new Dimension (30, 30));
+ frmEditPatientData.getContentPane().add(backButton);
+
+ saveButton = new JButton("Save And Exit");
+ saveButton.setBackground(new Color(255, 255, 255));
+ saveButton.setBounds(321, 374, 123, 29);
+ saveButton.setMinimumSize(new Dimension (123, 29));
+ saveButton.setMaximumSize(new Dimension (123, 29));
+ frmEditPatientData.getContentPane().add(saveButton);
+
+ setup(args);
+ backButtonFunctionality(args);
+ saveButtonFunctionality(args);
+
+ eventsBox.setBounds(10, 180, 434, 63);
+ frmEditPatientData.getContentPane().add(eventsBox);
+
+ notesBox.setBounds(10, 292, 434, 63);
+ frmEditPatientData.getContentPane().add(notesBox);
+
+ idenNum.setBounds(104, 51, 340, 31);
+ idenNum.setEditable(false);
+ frmEditPatientData.getContentPane().add(idenNum);
+ idenNum.setColumns(10);
+
+ roomNum.setColumns(10);
+ roomNum.setBounds(79, 84, 365, 31);
+ frmEditPatientData.getContentPane().add(roomNum);
+
+ PCPBox.setColumns(10);
+ PCPBox.setBounds(191, 116, 253, 31);
+ frmEditPatientData.getContentPane().add(PCPBox);
+
+ patientName.setBounds(42, 0, 402, 41);
+ frmEditPatientData.getContentPane().add(patientName);
+ patientName.setColumns(10);
+ }
+
+ protected String[] updateArgs(){
+ String[] alteredArgs = new String[6];
+ alteredArgs[0] = patientName.getText();
+ alteredArgs[1] = idenNum.getText();
+ alteredArgs[2] = roomNum.getText();
+ alteredArgs[3] = PCPBox.getText();
+ alteredArgs[4] = eventsBox.getText();
+ alteredArgs[5] = notesBox.getText();
+
+ return alteredArgs;
+ }
+
+ protected void backButtonFunctionality(String[] args){
+ if(args == null){}
+ else if(args.length == 1){
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frmEditPatientData.dispose();
+ String[] args2 = updateArgs();
+ if(isGoodFormat(args2)){
+ try {
+ Main.addPtn(args2);
+ exitOrNo.main(args2);
+ frmEditPatientData.dispose();
+ } catch (Exception exception) {
+ // TODO: handle exception
+ }
+ }
+ else{
+ exitWithoutSaving.main(args2);
+ }
+ }
+ });
+ }
+ else{
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frmEditPatientData.dispose();
+ String[] args2 = updateArgs();
+ String[] newArgs = {args[0], args[1], args[2], args[3], args[4], args[5], args2[0], args2[1], args2[2], args2[3], args2[4], args2[5]};
+ exitOrNo.main(newArgs);
+ }
+ });
+ }
+ }
+
+ protected void saveButtonFunctionality(String[] args){
+ if(args == null){}
+ else if(args.length == 1){
+ saveButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] newArgs = updateArgs();
+ if(isGoodFormat(newArgs)){
+ try {
+ Main.addPtn(newArgs);
+ HomePage.main(null);
+ frmEditPatientData.dispose();
+ } catch (Exception exception) {
+ JOptionPane.showMessageDialog(null, "Error with Nick's stuff", "ERROR", JOptionPane.ERROR_MESSAGE);
+ }
+ }
+ }
+ });
+ }
+ else{
+ saveButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] newArgs = updateArgs();
+ if(isGoodFormat(newArgs)){
+ try {
+ Main.updatePtn(newArgs);
+ PatientData.main(newArgs);
+ frmEditPatientData.dispose();
+ } catch (Exception exception) {
+ JOptionPane.showMessageDialog(null, "Error with Nick's stuff", "ERROR", JOptionPane.ERROR_MESSAGE);
+ }
+ }
+ }
+ });
+ }
+ }
+
+ protected void setup(String[] args){
+ if(args == null){}
+ else if(args.length == 1){
+ patientName = new JTextField();
+ idenNum = new JTextField(args[0]);
+ roomNum = new JTextField();
+ PCPBox = new JTextField();
+ eventsBox = new JTextArea();
+ notesBox = new JTextArea();
+ }
+ else{
+ patientName = new JTextField(args[0]);
+ idenNum = new JTextField(args[1]);
+ roomNum = new JTextField(args[2]);
+ PCPBox = new JTextField(args[3]);
+ eventsBox = new JTextArea(args[4]);
+ notesBox = new JTextArea(args[5]);
+ }
+ }
+
+ protected Boolean isGoodFormat(String[] args2){
+ return checkName(args2[0]) && checkPCP(args2[3]) && checkRoom(args2[2]);
+ }
+
+ private Boolean checkName(String name){
+ try{
+ String splitName[] = name.split(" ");
+ if(!(splitName.length == 2)){
+ JOptionPane.showMessageDialog(null, "Name must inclue Last Name and First Name separated by a single space", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ return true;
+ }
+ catch(Exception e){
+ JOptionPane.showMessageDialog(null, "Name must inclue Last Name and First Name separated by a single space", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ }
+
+ private Boolean checkPCP(String PCP){
+ try{
+ int PCPnum = Integer.parseInt(PCP);
+ if(!(PCPnum < 11 && PCPnum > 0)){
+ JOptionPane.showMessageDialog(null, "PCP must be an integer between 1 and 10", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ return true;
+ }
+ catch(Exception e){
+ JOptionPane.showMessageDialog(null, "PCP must be an integer between 1 and 10", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ }
+
+ private Boolean checkRoom(String room){
+ try{
+ int roomNum = Integer.parseInt(room);
+ if(!(roomNum < 110 && roomNum > 99)){
+ JOptionPane.showMessageDialog(null, "Room number must be an integer value within 100 and 109", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ return true;
+ }
+ catch(Exception e){
+ JOptionPane.showMessageDialog(null, "Room number must be an integer value within 100 and 109", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Sprint 2/src/UI/Windows/HomePage$3.class b/Sprint 2/src/UI/Windows/HomePage$3.class
new file mode 100644
index 000000000..fa9221284
Binary files /dev/null and b/Sprint 2/src/UI/Windows/HomePage$3.class differ
diff --git a/Sprint 2/src/UI/Windows/HomePage$4.class b/Sprint 2/src/UI/Windows/HomePage$4.class
new file mode 100644
index 000000000..83d3529f2
Binary files /dev/null and b/Sprint 2/src/UI/Windows/HomePage$4.class differ
diff --git a/Sprint 2/src/UI/Windows/HomePage$5.class b/Sprint 2/src/UI/Windows/HomePage$5.class
new file mode 100644
index 000000000..7321e3a01
Binary files /dev/null and b/Sprint 2/src/UI/Windows/HomePage$5.class differ
diff --git a/Sprint 2/src/UI/Windows/HomePage.java b/Sprint 2/src/UI/Windows/HomePage.java
new file mode 100644
index 000000000..fcace0fc8
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/HomePage.java
@@ -0,0 +1,140 @@
+package UI.Windows;
+
+import java.awt.Container;
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import java.awt.GridLayout;
+import javax.swing.JButton;
+import javax.swing.JLabel;
+import javax.swing.GroupLayout;
+import javax.swing.GroupLayout.Alignment;
+import javax.swing.LayoutStyle.ComponentPlacement;
+import javax.swing.AbstractAction;
+import java.awt.event.ActionEvent;
+import javax.swing.Action;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+
+import src.*;
+
+public class HomePage {
+
+ private JFrame frame;
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ HomePage window = new HomePage();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public HomePage() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 905, 278);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
+ JButton searchButton = new JButton("Search");
+ searchButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ SearchFunction.main(null);
+ frame.dispose();
+ }
+ });
+ searchButton.setFont(new Font("Cambria", Font.BOLD, 35));
+
+ JButton addPatientButton = new JButton("Add Patient/Event");
+ addPatientButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ addPatientButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ try {
+ String mrn[] = {src.Main.getNextPatientId()};
+ EditPatientData.main(mrn);
+ frame.dispose();
+ } catch (Exception exception) {
+ // TODO: handle exception
+ }
+ // EditPatientData.main(null);
+ }
+ });
+
+ JButton removePatientButton = new JButton("Remove Patient/Event");
+ removePatientButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ removePatientButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ RemovePatient.main(null);
+ frame.dispose();
+ }
+ });
+
+ JButton roomViewButton = new JButton("Room View");
+ roomViewButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ RoomView.main(null);
+ frame.dispose();
+ }
+ });
+ roomViewButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
+ groupLayout.setHorizontalGroup(
+ groupLayout.createParallelGroup(Alignment.TRAILING)
+ .addGroup(groupLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
+ .addComponent(searchButton, GroupLayout.PREFERRED_SIZE, 438, GroupLayout.PREFERRED_SIZE)
+ .addComponent(addPatientButton, GroupLayout.PREFERRED_SIZE, 434, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(roomViewButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(removePatientButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addContainerGap(14, Short.MAX_VALUE))
+ );
+ groupLayout.setVerticalGroup(
+ groupLayout.createParallelGroup(Alignment.LEADING)
+ .addGroup(groupLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(roomViewButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
+ .addComponent(searchButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE))
+ .addGap(18)
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(removePatientButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
+ .addComponent(addPatientButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE))
+ .addGap(259))
+ );
+ frame.getContentPane().setLayout(groupLayout);
+ }
+
+ private class SwingAction extends AbstractAction {
+ public SwingAction() {
+ putValue(NAME, "SwingAction");
+ putValue(SHORT_DESCRIPTION, "Some short description");
+ }
+ public void actionPerformed(ActionEvent e) {
+ }
+ }
+
+ public static Container getContentPane() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+}
diff --git a/Sprint 2/src/UI/Windows/LoginWindow.java b/Sprint 2/src/UI/Windows/LoginWindow.java
new file mode 100644
index 000000000..968cd546b
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/LoginWindow.java
@@ -0,0 +1,132 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+
+import java.awt.BorderLayout;
+import java.awt.Font;
+import javax.swing.SwingConstants;
+import javax.swing.JTextField;
+import java.awt.Color;
+import javax.swing.JPasswordField;
+import java.awt.SystemColor;
+import javax.swing.JSplitPane;
+import javax.swing.JSeparator;
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+
+public class LoginWindow {
+
+ private JFrame frame;
+ private JTextField textField;
+ private JPasswordField passwordField;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ LoginWindow window = new LoginWindow();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public LoginWindow() {
+ initialize("Login Window");
+
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String title) {
+ frame = new JFrame();
+ frame.setResizable(false);
+ frame.setBounds(100, 100, 450, 244);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.setTitle(title);
+ frame.setLocationRelativeTo(null);
+ frame.getContentPane().setLayout(null);
+
+ JLabel lblNewLabel = new JLabel("USERNAME:");
+ lblNewLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
+ lblNewLabel.setBounds(6, 59, 118, 22);
+ frame.getContentPane().add(lblNewLabel);
+
+ JLabel lblPassword = new JLabel("PASSWORD:");
+ lblPassword.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
+ lblPassword.setBounds(6, 110, 118, 22);
+ frame.getContentPane().add(lblPassword);
+
+ textField = new JTextField();
+ textField.setBackground(Color.WHITE);
+ textField.setBounds(123, 57, 308, 26);
+ frame.getContentPane().add(textField);
+ textField.setColumns(10);
+
+ passwordField = new JPasswordField();
+ passwordField.setBounds(123, 109, 308, 26);
+ frame.getContentPane().add(passwordField);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(6, 144, 438, 12);
+ frame.getContentPane().add(separator);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(6, 36, 438, 12);
+ frame.getContentPane().add(separator_1);
+
+ JLabel lblNewLabel_1 = new JLabel("USER LOGIN");
+ lblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);
+ lblNewLabel_1.setFont(new Font("Lucida Grande", Font.PLAIN, 30));
+ lblNewLabel_1.setBounds(6, -3, 438, 47);
+ frame.getContentPane().add(lblNewLabel_1);
+
+ JButton btnNewButton = new JButton("LOGIN");
+ btnNewButton.addActionListener(new ActionListener() {
+
+ public void actionPerformed(ActionEvent e) {
+ String username = textField.getText();
+ String password = passwordField.getText();
+ if (username.contains("User") && password.contains("1234")){
+ textField.setText(null);
+ passwordField.setText(null);
+ HomePage.main(null);
+ frame.dispose();
+ }
+ else {
+ JOptionPane.showMessageDialog(null, "INVALID USERNAME OR PASSWORD", "ERROR", JOptionPane.ERROR_MESSAGE);
+ textField.setText(null);
+ passwordField.setText(null);
+ }
+ }
+ });
+ btnNewButton.setBounds(54, 168, 117, 29);
+ frame.getContentPane().add(btnNewButton);
+
+ JButton btnNewButton_1_1 = new JButton("RESET");
+ btnNewButton_1_1.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ textField.setText(null);
+ passwordField.setText(null);
+ }
+ });
+ btnNewButton_1_1.setBounds(279, 168, 117, 29);
+ frame.getContentPane().add(btnNewButton_1_1);
+
+ }
+}
diff --git a/Sprint 2/src/UI/Windows/PatientData$2.class b/Sprint 2/src/UI/Windows/PatientData$2.class
new file mode 100644
index 000000000..ecbfcd972
Binary files /dev/null and b/Sprint 2/src/UI/Windows/PatientData$2.class differ
diff --git a/Sprint 2/src/UI/Windows/PatientData$3.class b/Sprint 2/src/UI/Windows/PatientData$3.class
new file mode 100644
index 000000000..02c834748
Binary files /dev/null and b/Sprint 2/src/UI/Windows/PatientData$3.class differ
diff --git a/Sprint 2/src/UI/Windows/PatientData.java b/Sprint 2/src/UI/Windows/PatientData.java
new file mode 100644
index 000000000..a6219ec55
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/PatientData.java
@@ -0,0 +1,160 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JSeparator;
+import javax.swing.JLabel;
+import java.awt.Color;
+import java.awt.Dimension;
+import javax.swing.JTextArea;
+
+public class PatientData {
+
+ private JFrame frame;
+ private JButton editButton;
+ private JTextField idenNum;
+ private JTextField roomNum;
+ private JTextField PCPBox;
+ private JTextArea eventsBox;
+ private JTextArea notesBox;
+ private JTextField patientName;
+
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ PatientData window = new PatientData(args);
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ window.frame.setMinimumSize(new Dimension(450, 450));
+ window.frame.setBounds(100, 100, 450, 450);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+
+ }
+
+ /**
+ * Create the application.
+ */
+ public PatientData(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setVisible(true);
+ frame.setResizable(false);
+ frame.setTitle("Patient Data");
+ frame.setLocationRelativeTo(null);
+ frame.getContentPane().setFont(new Font("Cambria", Font.PLAIN, 11));
+ frame.setSize(450, 450);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(10, 46, 414, 2);
+ frame.getContentPane().add(separator);
+
+ JLabel lblNewLabel = new JLabel("Identifier #:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNewLabel.setBounds(10, 59, 101, 19);
+ frame.getContentPane().add(lblNewLabel);
+
+ JLabel lblRoom = new JLabel("Room #:");
+ lblRoom.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblRoom.setBounds(10, 89, 70, 19);
+ frame.getContentPane().add(lblRoom);
+
+ JLabel lblPmc = new JLabel("Primary Care Provider:");
+ lblPmc.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblPmc.setBounds(10, 119, 217, 19);
+ frame.getContentPane().add(lblPmc);
+
+ JLabel lblEvents = new JLabel("Events:");
+ lblEvents.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblEvents.setBounds(10, 149, 55, 19);
+ frame.getContentPane().add(lblEvents);
+
+ JLabel lblNotes = new JLabel("Notes:");
+ lblNotes.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNotes.setBounds(10, 261, 55, 19);
+ frame.getContentPane().add(lblNotes);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frame.dispose();
+ HomePage.main(null);
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ backButton.setMinimumSize(new Dimension (30, 30));
+ backButton.setMaximumSize(new Dimension (30, 30));
+ frame.getContentPane().add(backButton);
+
+ editButton = new JButton("Edit");
+ editButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frame.dispose();
+ EditPatientData.main(args);
+ }
+ });
+ editButton.setBackground(new Color(255, 255, 255));
+ editButton.setBounds(321, 374, 123, 29);
+ editButton.setMinimumSize(new Dimension (123, 29));
+ editButton.setMaximumSize(new Dimension (123, 29));
+ frame.getContentPane().add(editButton);
+
+ idenNum = new JTextField(args[1]);
+ idenNum.setEditable(false);
+ idenNum.setColumns(10);
+ idenNum.setBounds(104, 54, 340, 31);
+ frame.getContentPane().add(idenNum);
+
+ roomNum = new JTextField(args[2]);
+ roomNum.setEditable(false);
+ roomNum.setColumns(10);
+ roomNum.setBounds(79, 84, 365, 31);
+ frame.getContentPane().add(roomNum);
+
+ PCPBox = new JTextField(args[3]);
+ PCPBox.setEditable(false);
+ PCPBox.setColumns(10);
+ PCPBox.setBounds(191, 116, 253, 31);
+ frame.getContentPane().add(PCPBox);
+
+ eventsBox = new JTextArea(args[4]);
+ eventsBox.setEditable(false);
+ eventsBox.setBounds(10, 180, 434, 63);
+ frame.getContentPane().add(eventsBox);
+
+ notesBox = new JTextArea(args[5]);
+ notesBox.setEditable(false);
+ notesBox.setBounds(10, 292, 434, 63);
+ frame.getContentPane().add(notesBox);
+
+ patientName = new JTextField(args[0]);
+ patientName.setEditable(false);
+ patientName.setColumns(10);
+ patientName.setBounds(42, 0, 402, 41);
+ frame.getContentPane().add(patientName);
+ }
+}
diff --git a/Sprint 2/src/UI/Windows/RemovePatient$1.class b/Sprint 2/src/UI/Windows/RemovePatient$1.class
new file mode 100644
index 000000000..bd36c05ac
Binary files /dev/null and b/Sprint 2/src/UI/Windows/RemovePatient$1.class differ
diff --git a/Sprint 2/src/UI/Windows/RemovePatient$2.class b/Sprint 2/src/UI/Windows/RemovePatient$2.class
new file mode 100644
index 000000000..24157a389
Binary files /dev/null and b/Sprint 2/src/UI/Windows/RemovePatient$2.class differ
diff --git a/Sprint 2/src/UI/Windows/RemovePatient.class b/Sprint 2/src/UI/Windows/RemovePatient.class
new file mode 100644
index 000000000..03c5122fa
Binary files /dev/null and b/Sprint 2/src/UI/Windows/RemovePatient.class differ
diff --git a/Sprint 2/src/UI/Windows/RemovePatient.java b/Sprint 2/src/UI/Windows/RemovePatient.java
new file mode 100644
index 000000000..009636a4b
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/RemovePatient.java
@@ -0,0 +1,57 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+
+public class RemovePatient {
+
+ private JFrame frame;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ RemovePatient window = new RemovePatient();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public RemovePatient() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 450, 300);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ frame.getContentPane().add(backButton);
+ }
+
+}
diff --git a/Sprint 2/src/UI/Windows/RoomView$2.class b/Sprint 2/src/UI/Windows/RoomView$2.class
new file mode 100644
index 000000000..197ccba27
Binary files /dev/null and b/Sprint 2/src/UI/Windows/RoomView$2.class differ
diff --git a/Sprint 2/src/UI/Windows/RoomView.java b/Sprint 2/src/UI/Windows/RoomView.java
new file mode 100644
index 000000000..a1afe4fb6
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/RoomView.java
@@ -0,0 +1,58 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+
+public class RoomView {
+
+ private JFrame frame;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ RoomView window = new RoomView();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public RoomView() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 450, 300);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 7, 30, 30);
+ frame.getContentPane().add(backButton);
+ }
+
+}
diff --git a/Sprint 2/src/UI/Windows/SearchFunction$3.class b/Sprint 2/src/UI/Windows/SearchFunction$3.class
new file mode 100644
index 000000000..dd2654b57
Binary files /dev/null and b/Sprint 2/src/UI/Windows/SearchFunction$3.class differ
diff --git a/Sprint 2/src/UI/Windows/SearchFunction$4.class b/Sprint 2/src/UI/Windows/SearchFunction$4.class
new file mode 100644
index 000000000..051d02385
Binary files /dev/null and b/Sprint 2/src/UI/Windows/SearchFunction$4.class differ
diff --git a/Sprint 2/src/UI/Windows/SearchFunction.java b/Sprint 2/src/UI/Windows/SearchFunction.java
new file mode 100644
index 000000000..390c8e83e
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/SearchFunction.java
@@ -0,0 +1,180 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+
+import javax.swing.JLabel;
+import java.awt.Font;
+import javax.swing.JSeparator;
+import javax.swing.JScrollPane;
+import javax.swing.JInternalFrame;
+import javax.swing.ScrollPaneConstants;
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.ListSelectionModel;
+import javax.swing.JComboBox;
+import java.awt.GridLayout;
+import javax.swing.JOptionPane;
+
+import UI.Parts.Button;
+import src.Main;
+
+public class SearchFunction {
+
+ private JFrame frame;
+ private JTextField searchBar;
+ private JSeparator separator_1;
+ private JButton searchButton;
+ private JLabel lblAdvanced;
+ private JScrollPane dontDoAnything;
+ private JComboBox advList;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ SearchFunction window = new SearchFunction();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ window.frame.setMinimumSize(new Dimension(435, 345));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public SearchFunction() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setTitle("Search Page");
+ frame.setBounds(100, 100, 435, 345);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ searchBar = new JTextField();
+ searchBar.setFont(new Font("Cambria", Font.BOLD, 15));
+ searchBar.setBounds(107, 5, 259, 32);
+ frame.getContentPane().add(searchBar);
+ searchBar.setColumns(10);
+
+ JLabel lblNewLabel = new JLabel("Search:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 17));
+ lblNewLabel.setBounds(40, 2, 76, 34);
+ frame.getContentPane().add(lblNewLabel);
+
+ separator_1 = new JSeparator();
+ separator_1.setBounds(10, 97, 414, 2);
+ frame.getContentPane().add(separator_1);
+
+ dontDoAnything = new JScrollPane();
+ dontDoAnything.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
+ dontDoAnything.setBounds(10, 110, 414, 192);
+ frame.getContentPane().add(dontDoAnything);
+
+ searchButton = new JButton("GO");
+ searchButton.setFont(new Font("Cambria", Font.BOLD, 15));
+ searchButton.setBounds(367, 22, 57, 43);
+ frame.getContentPane().add(searchButton);
+
+ lblAdvanced = new JLabel("Advanced:");
+ lblAdvanced.setFont(new Font("Cambria", Font.BOLD, 17));
+ lblAdvanced.setBounds(40, 43, 106, 34);
+ frame.getContentPane().add(lblAdvanced);
+
+ String advancedSearchOptions[] = {"Last Name First Name", "Room Number", "Medical Record Number", "Primary Care Provider", "Admission Date"};
+ advList = new JComboBox(advancedSearchOptions);
+ advList.setFont(new Font("Cambria", Font.BOLD, 15));
+ advList.setBounds(129, 45, 233, 34);
+ frame.getContentPane().add(advList);
+
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ frame.getContentPane().add(backButton);
+
+ addSearchFunction(searchButton);
+ }
+
+ private void addSearchFunction(JButton button){
+ button.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ String searchType = (String) advList.getSelectedItem();
+ String searchParam = searchBar.getText();
+ try {
+ String names[] = Main.searchSelect(searchType, searchParam);
+ populateScrollPane(names);
+ } catch (Exception exception) {
+ JOptionPane.showMessageDialog(null, exception.getMessage(), "ERROR", JOptionPane.ERROR_MESSAGE);
+ }
+ // String names[] = {"Doe John 1", "Doe John 1", "Doe John 1", "Doe John 1", "Doe John 1"};
+ }
+ });
+ }
+
+ private void addGetPatientDataFunction(Button button) {
+ button.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ try {
+ String concatenatedData = button.getText() + " " + button.getID();
+ if (concatenatedData.split(" ").length < 3) {
+ throw new IllegalArgumentException("Button text and ID must result in at least three parts separated by spaces.");
+ }
+ String patientData[] = Main.ptnSelected(concatenatedData);
+ PatientData.main(patientData);
+ frame.dispose();
+ } catch (Exception exception) {
+ JOptionPane.showMessageDialog(null, exception.getMessage(), "ERROR", JOptionPane.ERROR_MESSAGE);
+ }
+ }
+ });
+ }
+
+ private void populateScrollPane(String names[]){
+ JPanel panel = new JPanel();
+ panel.setLayout(new GridLayout(names.length, 1, 5, 5));
+
+ for(String name : names){
+ String data[] = name.split(" ");
+ Button button = new Button(data[0]+" "+data[1], data[2]);
+ button.setBounds(50, 50, 50, 50);
+ addGetPatientDataFunction(button);
+ panel.add(button);
+ }
+
+ dontDoAnything.setViewportView(panel);
+
+ frame.getContentPane().revalidate();
+ frame.getContentPane().repaint();
+ frame.revalidate();
+ frame.repaint();
+ frame.pack();
+ }
+}
diff --git a/Sprint 2/src/UI/Windows/SimpleSearchTest$1.class b/Sprint 2/src/UI/Windows/SimpleSearchTest$1.class
new file mode 100644
index 000000000..6840467bd
Binary files /dev/null and b/Sprint 2/src/UI/Windows/SimpleSearchTest$1.class differ
diff --git a/Sprint 2/src/UI/Windows/SimpleSearchTest.class b/Sprint 2/src/UI/Windows/SimpleSearchTest.class
new file mode 100644
index 000000000..0936ac8ac
Binary files /dev/null and b/Sprint 2/src/UI/Windows/SimpleSearchTest.class differ
diff --git a/Sprint 2/src/UI/Windows/SimpleSearchTest.java b/Sprint 2/src/UI/Windows/SimpleSearchTest.java
new file mode 100644
index 000000000..cd0c285d1
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/SimpleSearchTest.java
@@ -0,0 +1,38 @@
+package UI.Windows;
+
+import javax.swing.*;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+public class SimpleSearchTest {
+ private JFrame frame;
+ private JTextField searchBar;
+ private JButton searchButton;
+
+ public static void main(String[] args) {
+ SwingUtilities.invokeLater(() -> {
+ SimpleSearchTest window = new SimpleSearchTest();
+ window.frame.setVisible(true);
+ });
+ }
+
+ public SimpleSearchTest() {
+ frame = new JFrame("Search Test");
+ frame.setBounds(100, 100, 300, 200);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.setLayout(null);
+
+ searchBar = new JTextField();
+ searchBar.setBounds(50, 20, 200, 30);
+ frame.add(searchBar);
+
+ searchButton = new JButton("GO");
+ searchButton.setBounds(100, 70, 100, 30);
+ searchButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ System.out.println("GO button clicked");
+ }
+ });
+ frame.add(searchButton);
+ }
+}
diff --git a/Sprint 2/src/UI/Windows/exitOrNo$1.class b/Sprint 2/src/UI/Windows/exitOrNo$1.class
new file mode 100644
index 000000000..58da8932d
Binary files /dev/null and b/Sprint 2/src/UI/Windows/exitOrNo$1.class differ
diff --git a/Sprint 2/src/UI/Windows/exitOrNo$2.class b/Sprint 2/src/UI/Windows/exitOrNo$2.class
new file mode 100644
index 000000000..db01e3584
Binary files /dev/null and b/Sprint 2/src/UI/Windows/exitOrNo$2.class differ
diff --git a/Sprint 2/src/UI/Windows/exitOrNo$3.class b/Sprint 2/src/UI/Windows/exitOrNo$3.class
new file mode 100644
index 000000000..e3a5cfb4a
Binary files /dev/null and b/Sprint 2/src/UI/Windows/exitOrNo$3.class differ
diff --git a/Sprint 2/src/UI/Windows/exitOrNo.class b/Sprint 2/src/UI/Windows/exitOrNo.class
new file mode 100644
index 000000000..017daadf7
Binary files /dev/null and b/Sprint 2/src/UI/Windows/exitOrNo.class differ
diff --git a/Sprint 2/src/UI/Windows/exitOrNo.java b/Sprint 2/src/UI/Windows/exitOrNo.java
new file mode 100644
index 000000000..8629e0ba5
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/exitOrNo.java
@@ -0,0 +1,106 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JDesktopPane;
+import javax.swing.JTextPane;
+import java.awt.BorderLayout;
+import javax.swing.JButton;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JRadioButton;
+import javax.swing.SwingConstants;
+
+import src.Main;
+
+public class exitOrNo{
+
+ private JFrame frame;
+ private JTextField txtExitWithoutSaving;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ exitOrNo window = new exitOrNo(args);
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public exitOrNo(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 250, 100);
+ frame.setLocationRelativeTo(null);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton exitButton = new JButton("DISCARD CHANGES");
+ exitButton.setBounds(6, 37, 117, 29);
+ frame.getContentPane().add(exitButton);
+ exitButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ if(args.length == 6){
+ HomePage.main(null);
+ frame.dispose();
+ }
+ else{
+ String newArgs[] = {args[0], args[1], args[2], args[3], args[4], args[5]};
+ PatientData.main(newArgs);
+ frame.dispose();
+ }
+ }
+ });
+
+ JButton exAndSave = new JButton("EXIT AND SAVE");
+ exAndSave.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
+ exAndSave.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ if(args.length == 6){
+ try {
+ Main.addPtn(args);
+ HomePage.main(null);
+ frame.dispose();
+ } catch (Exception exception) {
+ // TODO: handle exception
+ }
+ }
+ else{
+ String newArgs[] = {args[6], args[7], args[8], args[9], args[10], args[11]};
+ PatientData.main(newArgs);
+ frame.dispose();
+ }
+ }
+ });
+ exAndSave.setBounds(127, 37, 117, 29);
+ frame.getContentPane().add(exAndSave);
+
+ txtExitWithoutSaving = new JTextField();
+ txtExitWithoutSaving.setHorizontalAlignment(SwingConstants.CENTER);
+ txtExitWithoutSaving.setEditable(false);
+ txtExitWithoutSaving.setText("Exit Without Saving?");
+ txtExitWithoutSaving.setFont(new Font("Lucida Grande", Font.BOLD, 13));
+ txtExitWithoutSaving.setBounds(50, -1, 150, 36);
+ frame.getContentPane().add(txtExitWithoutSaving);
+ txtExitWithoutSaving.setColumns(10);
+ }
+}
diff --git a/Sprint 2/src/UI/Windows/exitWithoutSaving.java b/Sprint 2/src/UI/Windows/exitWithoutSaving.java
new file mode 100644
index 000000000..10b190168
--- /dev/null
+++ b/Sprint 2/src/UI/Windows/exitWithoutSaving.java
@@ -0,0 +1,85 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JDesktopPane;
+import javax.swing.JTextPane;
+import java.awt.BorderLayout;
+import javax.swing.JButton;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JRadioButton;
+import javax.swing.SwingConstants;
+
+public class exitWithoutSaving{
+
+ private JFrame frame;
+ private JTextField txtExitWithoutSaving;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ exitWithoutSaving window = new exitWithoutSaving(args);
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public exitWithoutSaving(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 250, 100);
+ frame.setLocationRelativeTo(null);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton exitButton = new JButton("DISCARD CHANGES");
+ exitButton.setBounds(6, 37, 117, 29);
+ frame.getContentPane().add(exitButton);
+ exitButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+
+ JButton exAndSave = new JButton("CONTINUE EDITING");
+ exAndSave.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
+ exAndSave.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ EditPatientData.main(args);
+ frame.dispose();
+ }
+ });
+ exAndSave.setBounds(127, 37, 117, 29);
+ frame.getContentPane().add(exAndSave);
+
+ txtExitWithoutSaving = new JTextField();
+ txtExitWithoutSaving.setHorizontalAlignment(SwingConstants.CENTER);
+ txtExitWithoutSaving.setEditable(false);
+ txtExitWithoutSaving.setText("Exit Without Saving?");
+ txtExitWithoutSaving.setFont(new Font("Lucida Grande", Font.BOLD, 13));
+ txtExitWithoutSaving.setBounds(50, -1, 150, 36);
+ frame.getContentPane().add(txtExitWithoutSaving);
+ txtExitWithoutSaving.setColumns(10);
+ }
+}
\ No newline at end of file
diff --git a/Sprint 2/src/src/AddElements.class b/Sprint 2/src/src/AddElements.class
new file mode 100644
index 000000000..2e5ef1d89
Binary files /dev/null and b/Sprint 2/src/src/AddElements.class differ
diff --git a/Sprint 2/src/src/AddElements.java b/Sprint 2/src/src/AddElements.java
new file mode 100644
index 000000000..5002e11d5
--- /dev/null
+++ b/Sprint 2/src/src/AddElements.java
@@ -0,0 +1,42 @@
+package src;
+
+import java.util.LinkedList;
+
+//Test class for making sure patient information is retrievable
+public class AddElements {
+ public void execute() {
+ boolean on = true;
+ //create list of patients
+ LinkedList patientList = new LinkedList();
+
+ //Need to create a pcp list as well?
+ //pcps created for testing
+ pcpType Dr1 = new pcpType("Renata", "Glasc", "General Surgery");
+ pcpType Dr2 = new pcpType("Margaret", "Levy", "Cardio Thoracic Surgery");
+
+ //patients created for testing
+ //PatientType patient1 = new PatientType("John", "Smith", "123-45-6789", "23132312", "123",
+ //1, 2, 2001, Dr1, true, "This is a chart", "placeholder");
+ //PatientType patient2 = new PatientType("Jane", "Smith", "321-54-9876", "80085", "124",
+ //11, 12, 2005, Dr2, true, "This is also a chart", "placeholder");
+ //Testing adding events to patients
+ /*patient2.newEvent(new Event("Appendectomy","General Surgery","Patient will be receiving a laparoscopic appendectomy due to burst appendix", LocalDateTime.of(2022,1,12,6,0),"124"));
+ patient1.newEvent(new Event("General Check-up","Check-up","Will be seeing John for his annual visit", LocalDateTime.of(2022,1,12,10,30),"125"));
+ patient1.newEvent(new Event("Knee Replacement", "Orthopedic Surgery", "Patient will be receiving total knee replacement due to loss of cartilage", LocalDateTime.of(2021,3,15,15,30),"225"));
+
+
+ //Testing adding patients to patient list
+ patientList.add(patient1);
+ patientList.add(patient2); */
+
+ printList(patientList);
+ }
+
+ //Prints all patients in the list
+ public static void printList(LinkedList patientList) {
+ for (int i = 0; i < patientList.size(); i++) {
+ PatientType currentpatient = patientList.get(i);
+ currentpatient.printPatient();
+ }
+ }
+}
diff --git a/Sprint 2/src/src/DataSeeder.class b/Sprint 2/src/src/DataSeeder.class
new file mode 100644
index 000000000..fca84c861
Binary files /dev/null and b/Sprint 2/src/src/DataSeeder.class differ
diff --git a/Sprint 2/src/src/DataSeeder.java b/Sprint 2/src/src/DataSeeder.java
new file mode 100644
index 000000000..17faabded
--- /dev/null
+++ b/Sprint 2/src/src/DataSeeder.java
@@ -0,0 +1,119 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.Date;
+import java.sql.DriverManager;
+import java.sql.PreparedStatement;
+import java.sql.SQLException;
+import java.util.Random;
+
+public class DataSeeder {
+
+ private static final String URL = "jdbc:mysql://localhost:3306/HospitalManagement?useSSL=false&serverTimezone=America/New_York";
+ private static final String USER = "root";
+ private static final String PASSWORD = "SQL355%Grouppa55";
+ private static final int NUMBER_OF_PATIENTS = 1000; // Number of patients to generate
+ private static final int NUMBER_OF_PHYSICIANS = 10; // Number of physicians to generate
+
+ private static final String[] firstNames = {
+ "John", "Jane", "Alice", "Bob", "Carol", "Dave", "Eva", "Frank", "Grace", "Henry",
+ "Liam", "Olivia", "Noah", "Emma", "Ava", "Sophia", "Mason", "Lucas", "Amelia", "Ethan",
+ "Isabella", "James", "Alexander", "Charlotte", "Michael", "Benjamin", "Mia", "Elijah",
+ "Daniel", "Emily", "Matthew", "Ella", "Samuel", "Victoria", "Nathan", "Chloe", "Oliver",
+ "Madison", "Sebastian", "Jack", "Harper", "Jacob", "Leo", "Nora", "Sophie", "Abigail",
+ "Nathaniel", "Zoe", "Logan", "Isla", "Jackson", "Evelyn", "Joshua", "Aiden", "Lily"
+ };
+ private static final String[] lastNames = {
+ "Smith", "Johnson", "Williams", "Brown", "Jones", "Garcia", "Miller", "Davis",
+ "Rodriguez", "Martinez", "Wilson", "Anderson", "Taylor", "Thomas", "Hernandez",
+ "Moore", "Martin", "Jackson", "Lee", "Perez", "Clark", "Walker", "Hall", "Allen",
+ "Young", "Harris", "King", "Wright", "Lopez", "Hill", "Scott", "Green", "Adams",
+ "Baker", "Gonzalez", "Nelson", "Carter", "Mitchell", "Roberts", "Turner", "Phillips",
+ "Campbell", "Parker", "Evans", "Edwards", "Collins", "Stewart", "Sanchez", "Morris",
+ "Murphy", "Reed", "Cook", "Morgan", "Bell", "Bailey", "Rivera", "Cooper", "Richardson",
+ "Cox", "Howard", "Ward", "Torres", "Peterson", "Gray", "Ramirez", "James"
+ };
+ private static final String[] specialties = {
+ "Cardiology", "Neurology", "Orthopedics", "Pediatrics", "General Practice",
+ "Gastroenterology", "Pulmonology", "Dermatology", "Oncology", "Endocrinology"
+ };
+ private static final String[] diagnoses = {
+ "Hypertension", "Migraine", "Fracture", "Asthma", "Diabetes", "Infection",
+ "Allergy", "Depression", "Anxiety", "Arthritis", "Bronchitis", "Covid-19",
+ "Heart Disease", "Kidney Stones", "Gastroenteritis", "Pneumonia", "Chronic Fatigue",
+ "Obesity", "Liver Disease", "Pancreatitis", "COPD", "Stroke", "High Cholesterol",
+ "Appendicitis", "Sleep Apnea", "Acid Reflux", "Gout", "Osteoporosis", "Vertigo",
+ "Epilepsy", "Gallbladder Disease", "Skin Rash", "Ulcer", "Hepatitis", "Parkinson's Disease",
+ "Tuberculosis", "Herniated Disc", "Multiple Sclerosis", "Fibromyalgia", "Scoliosis",
+ "Hemorrhoids", "Conjunctivitis", "Sinusitis", "Ear Infection", "Seasonal Flu",
+ "Bipolar Disorder", "Panic Disorder", "PTSD"
+ };
+
+ public static void main(String[] args) {
+ Random random = new Random();
+
+ try (Connection conn = DriverManager.getConnection(URL, USER, PASSWORD)) {
+ seedPhysicians(conn, random);
+ seedPatients(conn, random);
+ System.out.println(NUMBER_OF_PATIENTS + " patients have been successfully added to the database.");
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ private static void seedPhysicians(Connection conn, Random random) throws SQLException {
+ String sql = "INSERT INTO Physicians (first_name, last_name, specialty) VALUES (?, ?, ?)";
+ try (PreparedStatement pstmt = conn.prepareStatement(sql)) {
+ for (int i = 0; i < NUMBER_OF_PHYSICIANS; i++) {
+ String firstName = firstNames[random.nextInt(firstNames.length)];
+ String lastName = lastNames[random.nextInt(lastNames.length)];
+ String specialty = specialties[random.nextInt(specialties.length)];
+
+ pstmt.setString(1, firstName);
+ pstmt.setString(2, lastName);
+ pstmt.setString(3, specialty);
+
+ pstmt.addBatch();
+ }
+ pstmt.executeBatch();
+ System.out.println(NUMBER_OF_PHYSICIANS + " physicians have been successfully added to the database.");
+ }
+ }
+
+ private static void seedPatients(Connection conn, Random random) throws SQLException {
+ String sql = "INSERT INTO Patients (first_name, last_name, date_of_birth, gender, admission_date, discharge_date, room_number, attending_physician, diagnosis) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
+ try (PreparedStatement pstmt = conn.prepareStatement(sql)) {
+ for (int i = 0; i < NUMBER_OF_PATIENTS; i++) {
+ // Generating random patient data
+ String firstName = firstNames[random.nextInt(firstNames.length)];
+ String lastName = lastNames[random.nextInt(lastNames.length)];
+ Date dateOfBirth = new Date(System.currentTimeMillis() - ((random.nextInt(60) + 20) * 365L * 24 * 60 * 60 * 1000L + random.nextInt(365) * 24L * 60 * 60 * 1000L)); // Age 20-80 with more variation
+ String gender = random.nextBoolean() ? "M" : "F";
+ Date admissionDate = new Date(System.currentTimeMillis() - (random.nextInt(10) * 24L * 60L * 60L * 1000L)); // Past 10 days
+ Date dischargeDate = random.nextBoolean() ? new Date(admissionDate.getTime() + (random.nextInt(5) * 24L * 60L * 60L * 1000L)) : null; // Within 5 days or null
+ int roomNumber = random.nextInt(100) + 1; // Rooms 1-100 for more diversity
+ int attendingPhysician = random.nextInt(NUMBER_OF_PHYSICIANS) + 1; // Physicians 1-10 for more diversity
+ String diagnosis = diagnoses[random.nextInt(diagnoses.length)];
+
+ // Setting values for SQL statement
+ pstmt.setString(1, firstName);
+ pstmt.setString(2, lastName);
+ pstmt.setDate(3, dateOfBirth);
+ pstmt.setString(4, gender);
+ pstmt.setDate(5, admissionDate);
+ if (dischargeDate != null) {
+ pstmt.setDate(6, dischargeDate);
+ } else {
+ pstmt.setNull(6, java.sql.Types.DATE);
+ }
+ pstmt.setInt(7, roomNumber);
+ pstmt.setInt(8, attendingPhysician);
+ pstmt.setString(9, diagnosis);
+
+ // Add to batch
+ pstmt.addBatch();
+ }
+ pstmt.executeBatch();
+ }
+ }
+}
diff --git a/Sprint 2/src/src/DatabaseConnection.class b/Sprint 2/src/src/DatabaseConnection.class
new file mode 100644
index 000000000..91250c8fb
Binary files /dev/null and b/Sprint 2/src/src/DatabaseConnection.class differ
diff --git a/Sprint 2/src/src/DatabaseConnection.java b/Sprint 2/src/src/DatabaseConnection.java
new file mode 100644
index 000000000..327927686
--- /dev/null
+++ b/Sprint 2/src/src/DatabaseConnection.java
@@ -0,0 +1,15 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+
+public class DatabaseConnection {
+ private static final String URL = "jdbc:mysql://localhost:3306/HospitalManagement?useSSL=false&serverTimezone=America/New_York";
+ private static final String USER = "root";
+ private static final String PASSWORD = "SQL355%Grouppa55"; // Replace with your root password
+
+ public static Connection getConnection() throws SQLException {
+ return DriverManager.getConnection(URL, USER, PASSWORD);
+ }
+}
diff --git a/Sprint 2/src/src/DatabaseOutline.sql b/Sprint 2/src/src/DatabaseOutline.sql
new file mode 100644
index 000000000..dec739093
--- /dev/null
+++ b/Sprint 2/src/src/DatabaseOutline.sql
@@ -0,0 +1,23 @@
+CREATE TABLE Patients
+(
+ patient_id INT PRIMARY KEY AUTO_INCREMENT,
+ first_name VARCHAR(50) NOT NULL,
+ last_name VARCHAR(50) NOT NULL,
+ date_of_birth DATE,
+ gender CHAR(1),
+ admission_date DATE,
+ discharge_date DATE,
+ room_number INT NOT NULL,
+ attending_physician VARCHAR(50),
+ diagnosis VARCHAR(100)
+
+);
+
+CREATE TABLE Physicians
+(
+ physician_id INT PRIMARY KEY AUTO_INCREMENT,
+ first_name VARCHAR(50) NOT NULL,
+ last_name VARCHAR(50) NOT NULL,
+ specialty VARCHAR(50)
+);
+
diff --git a/Sprint 2/src/src/Event.class b/Sprint 2/src/src/Event.class
new file mode 100644
index 000000000..03b7d89fc
Binary files /dev/null and b/Sprint 2/src/src/Event.class differ
diff --git a/Sprint 2/src/src/Event.java b/Sprint 2/src/src/Event.java
new file mode 100644
index 000000000..bb907be8f
--- /dev/null
+++ b/Sprint 2/src/src/Event.java
@@ -0,0 +1,58 @@
+package src;
+
+import java.time.LocalDateTime;
+//Class for creating event objects
+public class Event {
+ private String eventName;
+ private String eventType;
+ private String eventDescription;
+ private LocalDateTime eventTime; // date and time of event
+ private String eventRoom;
+
+ //default constructor
+ public Event() {
+ this.eventName = "";
+ this.eventType = "";
+ this.eventDescription = "";
+ this.eventTime = null;
+ this.eventRoom = "";
+ }
+
+ //initialized constructor
+ public Event(String eventName, String eventType, String eventDescription, LocalDateTime eventTime, String eventRoom) {
+ this.eventName = eventName;
+ this.eventType = eventType;
+ this.eventTime = eventTime;
+ this.eventDescription = eventDescription;
+ this.eventRoom = eventRoom;
+ }
+ //getters
+ public String getEventName() {return eventName;}
+ public String getEventType() {return eventType;}
+ public String getEventDescription() {return eventDescription;}
+ public LocalDateTime getEventTime() {return eventTime;}
+ public String getEventRoom() {return eventRoom;}
+ //setters
+ public void setEventName(String eventName) {this.eventName = eventName;}
+ public void setEventType(String eventType) {this.eventType = eventType;}
+ public void setEventDescription(String eventDescription) {this.eventDescription = eventDescription;}
+ public void setEventTime(LocalDateTime eventTime) {this.eventTime = eventTime;}
+ public void setEventRoom(String eventRoom) {this.eventRoom = eventRoom;}
+
+ //print method for current patient event information
+ public void printEvent() {
+ System.out.println("Patient Event: " + this.getEventName() + " occuring at " + this.getEventTime());
+ System.out.println("Type: " + this.getEventType());
+ System.out.println("Description: " + this.getEventDescription());
+ System.out.println("Room: " + this.getEventRoom());
+ System.out.println("----------------------------------------");
+ }
+
+ //print function for chosen event
+ public void printChosenEvent(Event chosenEvent) {
+ System.out.println("Patient Event: " + chosenEvent.getEventName() + " occuring at " + chosenEvent.getEventTime());
+ System.out.println("Type: " + chosenEvent.getEventType());
+ System.out.println("Description: " + chosenEvent.getEventDescription());
+ System.out.println("Room: " + chosenEvent.getEventRoom());
+ }
+}
diff --git a/Sprint 2/src/src/Main.class b/Sprint 2/src/src/Main.class
new file mode 100644
index 000000000..ebdab877a
Binary files /dev/null and b/Sprint 2/src/src/Main.class differ
diff --git a/Sprint 2/src/src/Main.java b/Sprint 2/src/src/Main.java
new file mode 100644
index 000000000..291b4bac9
--- /dev/null
+++ b/Sprint 2/src/src/Main.java
@@ -0,0 +1,426 @@
+package src;
+
+import java.sql.*;
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+import java.sql.SQLException;
+import java.util.List;
+import java.util.Scanner;
+import java.util.Random;
+
+public class Main {
+
+ public static void showmenu1() throws SQLException {
+ Scanner scanner = new Scanner(System.in);
+ String choice;
+ do {
+ System.out.printf("-------------Main Menu---------------\n");
+ System.out.printf("What search would you like? \n");
+ System.out.printf("1. Basic search...\n");
+ System.out.printf("2. Advanced search...\n");
+ System.out.printf("3. Print all Patients...\n");
+ System.out.printf("4. Call a doctor...\n");
+ System.out.printf("9. Exit\n");
+
+ choice = scanner.nextLine();
+
+ if (choice.equalsIgnoreCase("1")) {
+ System.out.printf("--------Basic Search-------------\n");
+ System.out.printf("Enter patient first name...\n");
+ String firstName = scanner.nextLine();
+ System.out.printf("Enter patient last name...\n");
+ String lastName = scanner.nextLine();
+ String[] patientNames = basicPatientSearch(firstName, lastName);
+ if (patientNames.length == 0) {
+ System.out.printf("No patients found with that name.\n");
+ } else {
+ System.out.printf("Patients found:\n");
+ for (String name : patientNames) {
+ System.out.println(name);
+ }
+ }
+ } else if (choice.equalsIgnoreCase("2")) {
+ showmenu2();
+ } else if (choice.equalsIgnoreCase("3")) {
+ List patients = PatientDBService.getAllPatients();
+ int start = 0;
+ int end = Math.min(100, patients.size());
+ scanner = new Scanner(System.in);
+
+ while (start < patients.size()) {
+ for (int i = start; i < end; i++) {
+ PatientType patient = patients.get(i);
+ System.out.println(patient.getPatientFName() + " " + patient.getPatientLName());
+ }
+ if (end == patients.size()) {
+ break;
+ }
+ System.out.println("Press Enter to see the next 100 patients...");
+ scanner.nextLine();
+ start = end;
+ end = Math.min(end + 100, patients.size());
+ }
+ } else if (choice.equalsIgnoreCase("4")) {
+ System.out.printf("Calling doctor on call");
+ callingDr();
+ }
+ } while (!(choice.equals("9")));
+ }
+
+ public static void showmenu2() throws SQLException {
+ Scanner scanner = new Scanner(System.in);
+ String choice;
+
+ do {
+ System.out.printf("--------Advanced Search-------------\n");
+ System.out.printf("Search by... \n");
+ System.out.printf("1. Room number \n");
+ System.out.printf("2. Medical Record Number \n");
+ System.out.printf("3. Admission Date \n");
+ System.out.printf("4. Primary Care Provider \n");
+ System.out.printf("9. Exit \n");
+ choice = scanner.nextLine();
+ String[] patientNames = new String[0];
+
+ if (choice.equalsIgnoreCase("1")) {
+ System.out.printf("Enter the room\n");
+ String room = scanner.nextLine();
+ patientNames = roomSearch(room);
+ } else if (choice.equalsIgnoreCase("2")) {
+ System.out.printf("Enter the MRN\n");
+ String MRN = scanner.nextLine();
+ patientNames = mrnSearch(MRN);
+ } else if (choice.equalsIgnoreCase("3")) {
+ System.out.printf("Enter the Admission Date in day, month, year \n");
+ int addDay = scanner.nextInt();
+ int addMonth = scanner.nextInt();
+ int addYear = scanner.nextInt();
+ scanner.nextLine(); // Consume the newline character
+ patientNames = admissionDateSearch(addDay, addMonth, addYear);
+ } else if (choice.equalsIgnoreCase("4")) {
+ System.out.printf("Enter the PCP\n");
+ String PCP = scanner.nextLine();
+ patientNames = pcpSearch(PCP);
+ }
+
+ if (patientNames.length == 0) {
+ System.out.printf("No patients found.\n");
+ } else {
+ System.out.printf("Patients found:\n");
+ for (String name : patientNames) {
+ System.out.println(name);
+ }
+ }
+ } while (!(choice.equals("9")));
+ }
+
+ public static void callingDr() {
+ for (int i = 0; i < 3; i++) {
+ try {
+ Thread.sleep(900);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.printf(".");
+ if (i == 2)
+ System.out.printf("\n");
+ }
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.println("But no one answered...");
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.println("Good luck lol");
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ }
+
+ public static String[] basicPatientSearch(String fname, String lname) throws SQLException {
+ List patients = PatientDBService.searchPatientName(fname, lname);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] roomSearch(String roomNum) throws SQLException {
+ List patients = PatientDBService.searchPatientByRoom(roomNum);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] mrnSearch(String MRN) throws SQLException {
+ List patients = PatientDBService.searchPatientsByMRN(MRN);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] pcpSearch(String PCP) throws SQLException {
+ List patients = PatientDBService.searchPatientByPCP(PCP);
+ String[] patientNames = new String[patients.size()];
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] admissionSearch(String search) throws SQLException {
+ List patients = PatientDBService.searchPatientAdmissionDate(search);
+ String[] patientNames = new String[patients.size()];
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] admissionDateSearch(int day, int month, int year) throws SQLException {
+ String search = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day);
+ return admissionSearch(search);
+ }
+
+ public static String[] ptnSelected(String ptn) throws SQLException {
+ String parts[] = ptn.split(" ",3);
+ if (parts.length < 3) {
+ throw new IllegalArgumentException("Input string does not contain enough parts");
+ }
+ String mrn = parts[2];
+ //PatientType patient = mrnSearch(mrn);
+ List patients = PatientDBService.searchPatientsByMRN(mrn);
+ PatientType newpatient = null;
+ if (!patients.isEmpty()) {
+ newpatient = patients.get(0);
+ }
+ String ptnInfo[] = new String[6];
+ if (newpatient != null) {
+ ptnInfo[0] = newpatient.getPatientLName() + " " + newpatient.getPatientFName();
+ ptnInfo[1] = newpatient.getMRN();
+ ptnInfo[2] = newpatient.getRoomNumber();
+ ptnInfo[3] = newpatient.getPcpString();
+ ptnInfo[4] = newpatient.getDiagnosis();
+ ptnInfo[5] = newpatient.getGender();
+ }
+ return ptnInfo;
+ }
+
+ public static String[] searchSelect(String searchType, String searchParam) throws SQLException {
+ switch (searchType) {
+ case "Last Name First Name":
+ String parts[] = searchParam.split(" ", 2);
+ String lastName = parts[0];
+ String firstName = parts[1];
+ return basicPatientSearch(firstName, lastName);
+ case "Room Number":
+ return roomSearch(searchParam);
+ case "Medical Record Number":
+ return mrnSearch(searchParam);
+ case "Primary Care Provider ":
+ return pcpSearch(searchParam);
+ case "Admission Date":
+ return admissionSearch(searchParam);
+ default:
+ return null;
+ }
+ }
+
+ //new method for adding patient, Eli call this
+ public static void addPtn(String [] newPtnInfo) throws SQLException {
+ String ptnInfo[] = new String[6];
+ //last name,first name, patient id, pcp id, diagnosis, gender
+ for (int i = 0; i < newPtnInfo.length; i++) {
+ ptnInfo[i] = newPtnInfo[i];
+ }
+ String add = "INSERT INTO patients (first_name, last_name, patient_id, room_number, attending_physician, diagnosis, admission_date, discharge_date, date_of_birth) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
+ String search = "SELECT * FROM Patients WHERE patient_id = ? LIMIT 10";
+ String getMaxIdQuery = "SELECT MAX(patient_id) FROM Patients";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement searchstmt = connect.prepareStatement(search);
+ PreparedStatement getMaxIdStmt = connect.prepareStatement(getMaxIdQuery);
+ PreparedStatement addstmt = connect.prepareStatement(add)){
+
+// Parse full name into first name and last name
+ String fullName = newPtnInfo[0];
+ String[] nameParts = fullName.split(" ", 2);
+ String lastName = nameParts[0];
+ String firstName = nameParts.length > 1 ? nameParts[1] : "";
+
+
+ //search.setString(1,ptnInfo[2]);
+ String newPatientId = "001";
+
+ try (ResultSet rs = getMaxIdStmt.executeQuery()) {
+ //find patient here and insert using seedPhysicians as a guide
+ if (rs.next() && rs.getString(1) != null) {
+ //System.out.println("Ptn already exists");
+ String maxIdStr = rs.getString(1);
+
+ int maxId = Integer.parseInt(maxIdStr);
+ newPatientId = String.format("%04d", maxId + 1);
+
+ }
+ }
+ //TODO ALIGN SQL STATEMENT WITH PASSED ARRAY
+ //0 lastname firstname (needs to be parsed)
+ //1 patient id
+ //2 room number
+ //3 pcp id
+ //4 events (ignore for now)
+ //5 diagnosis
+ String roomNum = newPtnInfo[2];
+ Random random = new Random();
+ Date admissionDate = new Date(System.currentTimeMillis() - (random.nextInt(10) * 24L * 60L * 60L * 1000L));
+ Date dischargeDate = random.nextBoolean() ? new Date(admissionDate.getTime() + (random.nextInt(5) * 24L * 60L * 60L * 1000L)) : null; // Within 5 days or null
+ Date dateOfBirth = new Date(System.currentTimeMillis() - ((random.nextInt(60) + 20) * 365L * 24 * 60 * 60 * 1000L + random.nextInt(365) * 24L * 60 * 60 * 1000L)); // Age 20-80 with more variation
+
+
+
+ addstmt.setString(1, firstName);//first name
+ addstmt.setString(2, lastName);//last name
+ addstmt.setString(3, newPatientId);//patient id
+ addstmt.setString(4, roomNum); //room num
+ addstmt.setString(5, newPtnInfo[3]);//pcp id
+ addstmt.setString(6, newPtnInfo[4]);//Diagnosis
+ addstmt.setDate(7, admissionDate);
+ if (dischargeDate != null) {
+ addstmt.setDate(8, dischargeDate);
+ } else {
+ addstmt.setNull(8, java.sql.Types.DATE);
+ }
+ addstmt.setDate(9, dateOfBirth);
+
+
+
+ int rowsAffected = addstmt.executeUpdate();
+ if (rowsAffected > 0) {
+ System.out.println("Ptn added");
+ } else {
+ System.out.println("Ptn not added");
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ //new method for updating patient in database, Eli call this
+ public static void updatePtn(String [] newPtnInfo) throws SQLException {
+ //last name,first name, patient id, pcp id, diagnosis, gender
+ String updateQuery = "UPDATE patients SET first_name = ?, last_name = ?, attending_physician = ?, diagnosis = ?, gender = ?, room_number = ? WHERE patient_id = ?";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement updateStmt = connect.prepareStatement(updateQuery)) {
+
+ String[] nameParts = parseName(newPtnInfo[0]); // Assuming newPtnInfo[0] contains "LastName FirstName"
+ String lastName = nameParts[0];
+ String firstName = nameParts[1];
+
+
+ //TODO ALIGN SQL STATEMENT WITH PASSED ARRAY
+ //0 lastname firstname (needs to be parsed)
+ //1 patient id
+ //2 room number
+ //3 pcp id
+ //4 events (ignore for now)
+ //5 diagnosis
+ String patient_id = newPtnInfo[1];
+ String roomNum = newPtnInfo[2];
+ String pcp = newPtnInfo[3];
+ String diagnosis = newPtnInfo[4];
+ String gender = newPtnInfo[5];
+
+
+ //Set parameters based on ptnInfo array
+ updateStmt.setString(1, firstName);//first name
+ updateStmt.setString(2, lastName);//last name
+ updateStmt.setString(3, pcp);//pcp id
+ updateStmt.setString(4, diagnosis);//Diagnosis
+ updateStmt.setString(5, gender);//gender
+ updateStmt.setString(6, roomNum);//room number
+ updateStmt.setString(7, patient_id);//patient id
+
+ int rowsUpdated = updateStmt.executeUpdate();
+ if (rowsUpdated > 0) {
+ System.out.println("Ptn updated");
+ } else {
+ System.out.println("Ptn not updated");
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static String getNextPatientId() throws SQLException {
+ String getMaxIdQuery = "SELECT MAX(patient_id) FROM Patients";
+ String nextPatientId = "0001"; // Default ID if no patients exist
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement getMaxIdStmt = connect.prepareStatement(getMaxIdQuery)) {
+
+ try (ResultSet rs = getMaxIdStmt.executeQuery()) {
+ if (rs.next() && rs.getString(1) != null) {
+ // Get the highest patient ID and increment it
+ String maxIdStr = rs.getString(1);
+ int maxId = Integer.parseInt(maxIdStr);
+ nextPatientId = String.format("%04d", maxId + 1);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ throw e;
+ }
+
+ return nextPatientId;
+ }
+
+ private static String[] parseName(String fullName) {
+ String[] nameParts = fullName.split(" ", 2);
+ String lastName = nameParts[0];
+ String firstName = nameParts.length > 1 ? nameParts[1] : "";
+ return new String[]{lastName, firstName};
+}
+
+ public static void main(String[] args) throws SQLException {
+ PatientType patient = new PatientType();
+ showmenu1();
+ }
+}
diff --git a/Sprint 2/src/src/PatientDBService.class b/Sprint 2/src/src/PatientDBService.class
new file mode 100644
index 000000000..577c784df
Binary files /dev/null and b/Sprint 2/src/src/PatientDBService.class differ
diff --git a/Sprint 2/src/src/PatientDBService.java b/Sprint 2/src/src/PatientDBService.java
new file mode 100644
index 000000000..44e8ccabb
--- /dev/null
+++ b/Sprint 2/src/src/PatientDBService.java
@@ -0,0 +1,281 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+
+//change the multiple methods into one method that varies the string query depending on the menu instruction chosen
+//pls ignore how bulky this is, it will be streamlined later
+public class PatientDBService {
+
+ public static List searchPatientName(String first_name, String last_name) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "select * from patients WHERE first_name=? AND last_name=? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, first_name);
+ stmt.setString(2, last_name);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+
+ query = "select * from patients WHERE first_name=? OR last_name=? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, first_name);
+ stmt.setString(2, last_name);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+
+
+ public static List searchPatientByRoom(String roomNumber) throws SQLException{
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE room_number = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, roomNumber);
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List searchPatientsByMRN(String mrn) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE patient_id = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+
+ stmt.setString(1, mrn);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+
+ public static List searchPatientByPCP(String attending_physician) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE attending_physician = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, attending_physician);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List searchPatientAdmissionDate(String admissionDate) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE admission_date = ? LIMIT 10";
+ //pick up from here and modify all other search functions to incorporate lists to hold multiple returns
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, admissionDate);
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List getAllPatients() throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM patients";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query);
+ ResultSet rs = stmt.executeQuery()) {
+
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ LocalDateTime admissionDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(admissionDate.getYear());
+ patient.setAdminMonth(admissionDate.getMonthValue());
+ patient.setAdminDay(admissionDate.getDayOfMonth());
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+}
diff --git a/Sprint 2/src/src/PatientType.class b/Sprint 2/src/src/PatientType.class
new file mode 100644
index 000000000..f9a8cb749
Binary files /dev/null and b/Sprint 2/src/src/PatientType.class differ
diff --git a/Sprint 2/src/src/PatientType.java b/Sprint 2/src/src/PatientType.java
new file mode 100644
index 000000000..21f1c83f1
--- /dev/null
+++ b/Sprint 2/src/src/PatientType.java
@@ -0,0 +1,192 @@
+package src;
+
+import java.time.LocalDateTime;
+import java.util.Scanner;
+
+//Class for creating patient objects
+public class PatientType {
+ String patientFName;
+ String patientLName;
+ String SSN;
+ String MRN;
+ String roomNumber;
+ int birthDay;
+ int birthMonth;
+ int birthYear;
+ int adminDay;
+ int adminMonth;
+ int adminYear;
+ pcpType pcp;
+ boolean insurance;
+ String chart;
+ //Need to change this to schedule type
+ String event;
+ Schedule schedule;
+ int disDay;
+ int disMonth;
+ int disYear;
+ String gender;
+ String diagnosis;
+ String pcpString;
+
+ //default constructor
+ public PatientType()
+ {
+ this.patientFName = "";
+ this.patientLName = "";
+ this.SSN = "";
+ this.MRN = "";
+ this.roomNumber = "";
+ this.birthDay = 1;
+ this.birthMonth = 1;
+ this.birthYear = 1900;
+ this.adminDay = 1;
+ this.adminMonth = 1;
+ this.adminYear = 1900;
+ this.pcp = null;
+ this.insurance = false;
+ this.chart = "";
+ this.event = "";
+ this.schedule = new Schedule();
+ this.disDay = 1;
+ this.disMonth = 1;
+ this.disYear = 1900;
+ this.gender = "";
+ this.diagnosis = "";
+ this.pcpString = "";
+ }
+
+ //initialized constructor
+ public PatientType(String fname, String lname, String SSN, String MRN, String newRoom, int birthDay, int birthMonth, int birthYear, int aDay,
+ int aMonth, int aYear, pcpType newpcp, boolean insurance, String chart, String event, int disDay, int disMonth, int disYear, String gender, String diagnosis, String pcpString ) {
+ this.patientFName = fname;
+ this.patientLName = lname;
+ this.SSN = SSN;
+ this.MRN = MRN;
+ this.roomNumber = newRoom;
+ this.birthDay = birthDay;
+ this.birthMonth = birthMonth;
+ this.birthYear = birthYear;
+ this.adminDay = aDay;
+ this.adminMonth = aMonth;
+ this.adminYear = aYear;
+ this.pcp = newpcp;
+ this.insurance = insurance;
+ this.chart = chart;
+ this.event = event;
+ this.schedule = new Schedule();
+ this.disDay = disDay;
+ this.disMonth = disMonth;
+ this.disYear = disYear;
+ this.gender = gender;
+ this.diagnosis = diagnosis;
+ this.pcpString = pcpString;
+ }
+
+ //getters
+ public String getPatientFName() {return patientFName;}
+ public String getPatientLName() {return patientLName;}
+ public String getSSN() {return SSN;}
+ public String getMRN() {return MRN;}
+ public String getRoomNumber() {return roomNumber;}
+ public int getBirthDay() {return birthDay;}
+ public int getBirthMonth() {return birthMonth;}
+ public int getBirthYear() {return birthYear;}
+ public int getAdminDay() {return adminDay;}
+ public int getAdminMonth() {return adminMonth;}
+ public int getAdminYear() {return adminYear;}
+ public pcpType getPcp() {return pcp;}
+ public boolean getInsurance() {return insurance;}
+ public String getChart() {return chart;}
+ public String getEvent() {return event;}
+ public Schedule getSchedule() {return schedule;}
+ public int getDisDay() {return disDay;}
+ public int getDisMonth() {return disMonth;}
+ public int getDisYear() {return disYear;}
+ public String getGender() {return gender;}
+ public String getDiagnosis() {return diagnosis;}
+ public String getPcpString() {return pcpString;}
+
+
+ //setters
+ public void setfname(String fname) { this.patientFName = fname;}
+ public void setlname(String lname) { this.patientLName = lname; }
+ public void setSSN(String SSN) { this.SSN = SSN; }
+ public void setMRN(String MRN) { this.MRN = MRN; }
+ public void setRoomNumber(String roomNumber) { this.roomNumber = roomNumber; }
+ public void setBirthDay(int birthDay) { this.birthDay = birthDay; }
+ public void setBirthMonth(int birthMonth) { this.birthMonth = birthMonth; }
+ public void setBirthYear(int birthYear) { this.birthYear = birthYear; }
+ public void setAdminDay(int aDay) { this.adminDay = aDay; }
+ public void setAdminMonth(int aMonth) { this.adminMonth = aMonth; }
+ public void setAdminYear(int aYear) { this.adminYear = aYear; }
+ public void setPcp(pcpType pcp) { this.pcp = pcp; }
+ public void setInsurance(boolean insurance) { this.insurance = insurance; }
+ public void setChart(String chart) { this.chart = chart; }
+ public void setEvent(String event) { this.event = event; }
+ public void setSchedule(Schedule schedule) { this.schedule = schedule; }
+ public void setDisDay(int disDay) { this.disDay = disDay; }
+ public void setDisMonth(int disMonth) { this.disMonth = disMonth; }
+ public void setDisYear(int disYear) { this.disYear = disYear; }
+ public void setGender(String gender) { this.gender = gender; }
+ public void setDiagnosis(String diagnosis) { this.diagnosis = diagnosis; }
+ public void setPcpString(String pcpString) { this.pcpString = pcpString; }
+
+ //Method for creating a new event for the patient via user input
+ public void createEvent() {
+ Scanner scanner = new Scanner(System.in);
+ System.out.println("Enter the name of the event: ");
+ String ename = scanner.nextLine();
+ System.out.println("Enter the type of the event: ");
+ String etype = scanner.nextLine();
+ System.out.println("Enter some information about the event: ");
+ String einfo = scanner.nextLine();
+ System.out.println("Enter the day of the event: ");
+ int day = scanner.nextInt();
+ System.out.println("Enter the month of the event: ");
+ int month = scanner.nextInt();
+ System.out.println("Enter the year of the event: ");
+ int year = scanner.nextInt();
+ System.out.println("Enter time of event: ");
+ int hr = scanner.nextInt();
+ int min = scanner.nextInt();
+ LocalDateTime date = LocalDateTime.of(month,day,year,hr,min);
+ System.out.println("Enter the patient room number");
+ String room = scanner.nextLine();
+ Event newEvent = new Event(ename,etype,einfo,date,room);
+ this.schedule.addEvent(newEvent);
+
+ }
+
+ //Method for adding already initalized event to patient schedule
+ public void newEvent(Event newEvent) {
+ this.schedule.addEvent(newEvent);
+ }
+
+ //prints entire patient schedule
+ //need to find way to organize schedule by date
+ public void showSchedule() {
+ System.out.println("------------Paitient Schedule------------");
+ this.schedule.printAllEvents();
+
+ }
+
+ //Method for printing all patient information
+ public void printPatient() {
+ System.out.println("----------Info for patient: " + this.getPatientFName() + "-----------");
+ System.out.println("First name: " + this.getPatientFName());
+ System.out.println("Last name: " + this.getPatientLName());
+ System.out.println("Gender: " + this.getGender());
+ System.out.println("DOB: " + this.getBirthMonth() + "/" + this.getBirthDay() + "/" + this.getBirthYear());
+ System.out.println("Social Security Number: " + this.getSSN());
+ System.out.println("Patient MRN: " + this.getMRN());
+ System.out.println("Room Number: " + this.getRoomNumber());
+ System.out.println("Admission date: " + this.getAdminMonth() + "/" + this.getAdminDay() + "/" + this.getAdminYear());
+ System.out.println("Discharge date: " + this.getDisMonth() + "/" + this.getDisDay() + "/" + this.getDisYear());
+ System.out.println("PCP: Dr." + this.pcp.drLname);
+ System.out.println("Insured?: " + this.getInsurance());
+ System.out.println("Chart: " + this.getChart());
+ System.out.println("Upcoming event: " + this.getEvent());
+ this.showSchedule();
+ }
+}
diff --git a/Sprint 2/src/src/Schedule.class b/Sprint 2/src/src/Schedule.class
new file mode 100644
index 000000000..d5e0a6217
Binary files /dev/null and b/Sprint 2/src/src/Schedule.class differ
diff --git a/Sprint 2/src/src/Schedule.java b/Sprint 2/src/src/Schedule.java
new file mode 100644
index 000000000..bfbb49a0d
--- /dev/null
+++ b/Sprint 2/src/src/Schedule.java
@@ -0,0 +1,42 @@
+package src;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+//Schedule class designed to hold multiple event class objects
+public class Schedule {
+ //Holding them in a list
+ private List events;
+ public Schedule() {
+ this.events = new ArrayList<>();
+ }
+ //method for adding a new event
+ public void addEvent(Event newevent) {
+ this.events.add(newevent);
+ }
+ //method for removing a specific event
+ public void removeEvent(Event newevent) {
+ this.events.remove(newevent);
+ }
+ //returns events in this schedule
+ public List getEvents() {
+ return this.events;
+ }
+ //prints all events in the schedule
+ public void printAllEvents() {
+ List result = new ArrayList<>();
+ for (Event event : this.events) {
+ event.printEvent();
+ }
+ }
+ //Searches list and returns events that match by specifc date
+ public List getEventbyDate(LocalDateTime date) {
+ List result = new ArrayList<>();
+ for (Event event : this.events) {
+ if(event.getEventTime().toLocalDate().equals(date)) {
+ result.add(event);
+ }
+ }
+ return result;
+ }
+}
diff --git a/Sprint 2/src/src/TestConnection.class b/Sprint 2/src/src/TestConnection.class
new file mode 100644
index 000000000..5af530a47
Binary files /dev/null and b/Sprint 2/src/src/TestConnection.class differ
diff --git a/Sprint 2/src/src/TestConnection.java b/Sprint 2/src/src/TestConnection.java
new file mode 100644
index 000000000..a8875dd40
--- /dev/null
+++ b/Sprint 2/src/src/TestConnection.java
@@ -0,0 +1,18 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+
+public class TestConnection {
+ public static void main(String[] args) {
+ try (Connection conn = DatabaseConnection.getConnection()) {
+ if (conn != null) {
+ System.out.println("Successfully connected to the database.");
+ } else {
+ System.out.println("Failed to make connection!");
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/Sprint 2/src/src/database_dump.sql b/Sprint 2/src/src/database_dump.sql
new file mode 100644
index 000000000..7861aea04
--- /dev/null
+++ b/Sprint 2/src/src/database_dump.sql
@@ -0,0 +1,87 @@
+-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
+--
+-- Host: localhost Database: hospitalmanagement
+-- ------------------------------------------------------
+-- Server version 8.0.11
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!50503 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `patients`
+--
+
+DROP TABLE IF EXISTS `patients`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `patients` (
+ `patient_id` int(11) NOT NULL AUTO_INCREMENT,
+ `first_name` varchar(50) NOT NULL,
+ `last_name` varchar(50) NOT NULL,
+ `date_of_birth` date NOT NULL,
+ `gender` char(1) DEFAULT NULL,
+ `admission_date` date NOT NULL,
+ `discharge_date` date DEFAULT NULL,
+ `room_number` int(11) NOT NULL,
+ `attending_physician` int(11) DEFAULT NULL,
+ `diagnosis` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`patient_id`),
+ KEY `attending_physician` (`attending_physician`),
+ CONSTRAINT `patients_ibfk_1` FOREIGN KEY (`attending_physician`) REFERENCES `physicians` (`physician_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `patients`
+--
+
+LOCK TABLES `patients` WRITE;
+/*!40000 ALTER TABLE `patients` DISABLE KEYS */;
+INSERT INTO `patients` VALUES (1001,'Leo','Hall','1960-11-09','F','2024-10-28','2024-10-29',16,9,'Kidney Stones'),(1002,'Ella','Torres','1965-09-26','F','2024-10-27','2024-10-31',87,6,'Chronic Fatigue'),(1003,'Grace','Wilson','1988-08-03','F','2024-10-24',NULL,19,4,'COPD'),(1004,'Nathan','Gonzalez','1947-05-13','M','2024-10-28','2024-10-28',6,8,'Kidney Stones'),(1005,'Aiden','Hernandez','1953-10-18','F','2024-10-29',NULL,91,5,'Herniated Disc'),(1006,'Elijah','Campbell','1977-08-01','F','2024-10-24','2024-10-27',61,8,'Epilepsy'),(1007,'Evelyn','Stewart','1995-04-29','M','2024-10-30','2024-11-01',33,1,'Covid-19'),(1008,'Michael','Smith','1992-10-08','F','2024-10-24',NULL,63,2,'Tuberculosis'),(1009,'Charlotte','Bailey','1962-07-15','M','2024-10-27','2024-10-31',34,8,'High Cholesterol'),(1010,'Noah','Miller','1950-08-13','M','2024-10-27',NULL,44,4,'PTSD'),(1011,'Eva','Cox','2003-06-08','M','2024-11-01',NULL,52,3,'Appendicitis'),(1012,'James','Rivera','1959-08-18','F','2024-10-30','2024-11-02',42,5,'Fibromyalgia'),(1013,'Eva','Rodriguez','1968-03-08','M','2024-10-31',NULL,40,5,'COPD'),(1014,'Mia','Hill','1979-04-18','F','2024-10-30',NULL,52,1,'Infection'),(1015,'Carol','James','1948-12-13','F','2024-10-25',NULL,24,4,'Liver Disease'),(1016,'Jane','Gray','1985-09-18','F','2024-10-31',NULL,12,2,'Herniated Disc'),(1017,'Nathaniel','Martin','1973-06-14','F','2024-11-01','2024-11-04',92,10,'Hypertension'),(1018,'Jacob','Stewart','1961-04-26','M','2024-10-26','2024-10-29',71,8,'Arthritis'),(1019,'Elijah','Richardson','1955-10-25','F','2024-10-28',NULL,47,6,'Covid-19'),(1020,'Isabella','Martin','1950-12-30','M','2024-10-26',NULL,17,4,'Bipolar Disorder'),(1021,'Isabella','Martinez','1957-10-13','M','2024-10-25','2024-10-26',79,3,'Hemorrhoids'),(1022,'Mason','Scott','1983-06-14','M','2024-10-26',NULL,39,9,'Migraine'),(1023,'Sophia','Morris','1994-02-07','M','2024-10-27','2024-10-31',95,5,'Seasonal Flu'),(1024,'Jackson','Thomas','1997-11-08','F','2024-11-01',NULL,86,7,'Panic Disorder'),(1025,'Lily','Gonzalez','2004-07-29','M','2024-10-29',NULL,96,10,'Ear Infection'),(1026,'Ella','Walker','1966-01-31','M','2024-10-30',NULL,1,2,'Scoliosis'),(1027,'Sophie','Rodriguez','1962-07-16','F','2024-11-01',NULL,18,8,'Hemorrhoids'),(1028,'Eva','Ramirez','1966-08-28','F','2024-10-27','2024-10-29',99,2,'High Cholesterol'),(1029,'Abigail','Taylor','1972-05-11','M','2024-10-26','2024-10-29',4,3,'Ulcer'),(1030,'Jack','Baker','1997-09-15','F','2024-11-01',NULL,100,10,'Allergy'),(1031,'Logan','Martinez','2000-03-05','M','2024-10-27',NULL,30,2,'Ulcer'),(1032,'Abigail','Gonzalez','1957-03-01','F','2024-10-25','2024-10-27',43,1,'High Cholesterol'),(1033,'Madison','Johnson','1982-02-26','M','2024-10-23',NULL,21,10,'Conjunctivitis'),(1034,'Leo','Morris','1966-01-16','F','2024-11-01',NULL,3,9,'Fibromyalgia'),(1035,'Nora','Nelson','1969-05-23','M','2024-10-28',NULL,85,1,'Hemorrhoids'),(1036,'Nora','Murphy','1955-01-24','F','2024-10-30',NULL,2,1,'Bronchitis'),(1037,'Jackson','Garcia','1967-01-21','M','2024-10-25','2024-10-27',84,8,'Tuberculosis'),(1038,'Jack','Lee','1996-09-04','M','2024-10-24','2024-10-27',60,8,'Sleep Apnea'),(1039,'Jack','Scott','1995-01-06','M','2024-10-30','2024-11-02',84,7,'Scoliosis'),(1040,'Liam','Bailey','1983-05-15','F','2024-10-23','2024-10-24',83,8,'Appendicitis'),(1041,'Joshua','Cox','1991-03-11','F','2024-10-27',NULL,44,3,'Ear Infection'),(1042,'Alexander','Reed','1960-09-10','M','2024-10-31','2024-11-03',35,4,'Gallbladder Disease'),(1043,'Ethan','Scott','1973-01-11','F','2024-10-26','2024-10-29',47,9,'Herniated Disc'),(1044,'Michael','Wilson','1985-12-14','F','2024-10-27',NULL,59,10,'Herniated Disc'),(1045,'Noah','Gray','1985-06-16','F','2024-10-23','2024-10-26',23,1,'Allergy'),(1046,'Isla','Smith','1988-07-06','M','2024-10-31',NULL,63,3,'Tuberculosis'),(1047,'Carol','Sanchez','1969-01-28','M','2024-10-24','2024-10-28',96,8,'Sleep Apnea'),(1048,'Lucas','Bailey','1991-03-31','M','2024-10-29','2024-11-02',57,2,'Asthma'),(1049,'Alexander','Mitchell','1970-12-12','F','2024-10-23','2024-10-25',73,2,'Hemorrhoids'),(1050,'Jackson','Gray','1992-09-11','F','2024-10-26',NULL,95,3,'Gout'),(1051,'Liam','Cox','1984-11-26','F','2024-10-26',NULL,33,9,'Kidney Stones'),(1052,'Nora','King','1974-01-07','F','2024-10-28','2024-10-29',68,4,'Heart Disease'),(1053,'Ava','Gonzalez','1947-07-09','M','2024-10-24','2024-10-26',52,9,'Panic Disorder'),(1054,'Ethan','Green','1976-03-20','M','2024-11-01','2024-11-01',96,8,'Bronchitis'),(1055,'Amelia','Miller','1951-07-20','M','2024-10-28','2024-10-28',74,5,'Ulcer'),(1056,'Nathan','Hill','2000-06-20','F','2024-10-29','2024-11-01',88,4,'Bipolar Disorder'),(1057,'Alexander','Collins','2002-02-05','F','2024-10-24',NULL,16,8,'Epilepsy'),(1058,'Bob','Smith','1948-12-03','M','2024-10-30',NULL,62,5,'Acid Reflux'),(1059,'Ella','King','1955-02-18','M','2024-10-29',NULL,27,9,'Migraine'),(1060,'Frank','Baker','1954-04-13','M','2024-10-27','2024-10-27',74,10,'Allergy'),(1061,'Michael','Williams','1986-02-10','F','2024-10-25',NULL,27,10,'Parkinson\'s Disease'),(1062,'Alice','Stewart','1964-08-28','M','2024-10-24','2024-10-24',30,5,'Sinusitis'),(1063,'Ethan','Baker','1982-11-02','M','2024-10-30',NULL,81,4,'Sinusitis'),(1064,'Liam','Collins','1949-05-07','M','2024-10-24','2024-10-27',3,9,'Asthma'),(1065,'Leo','Morris','1966-05-30','M','2024-10-26','2024-10-27',39,9,'Gallbladder Disease'),(1066,'Charlotte','Torres','1967-12-10','M','2024-11-01','2024-11-01',14,3,'Obesity'),(1067,'Nathan','Edwards','1950-12-28','M','2024-11-01',NULL,26,10,'Gallbladder Disease'),(1068,'Logan','Gonzalez','1973-12-28','M','2024-10-26',NULL,73,8,'Epilepsy'),(1069,'Amelia','Bailey','1959-10-16','F','2024-10-31',NULL,27,2,'Anxiety'),(1070,'Oliver','Parker','1956-01-28','F','2024-10-26',NULL,18,7,'Skin Rash'),(1071,'Alexander','Torres','1949-09-06','F','2024-11-01','2024-11-02',62,8,'Bronchitis'),(1072,'Elijah','Bell','1944-12-31','F','2024-10-26',NULL,2,4,'High Cholesterol'),(1073,'Michael','Mitchell','1976-12-17','M','2024-10-29','2024-11-02',9,10,'Pancreatitis'),(1074,'Jane','Jones','1989-12-21','M','2024-10-28',NULL,14,3,'Covid-19'),(1075,'Chloe','Peterson','1968-07-12','F','2024-10-25',NULL,23,2,'Skin Rash'),(1076,'James','Perez','2001-09-06','F','2024-10-25','2024-10-29',92,7,'Osteoporosis'),(1077,'Michael','Martinez','1957-04-21','M','2024-11-01','2024-11-01',76,7,'Vertigo'),(1078,'John','Scott','1979-01-09','F','2024-10-25',NULL,75,1,'Panic Disorder'),(1079,'Nathaniel','Martin','1974-11-06','F','2024-10-23','2024-10-26',35,2,'Pneumonia'),(1080,'Benjamin','Baker','1958-05-20','F','2024-10-24','2024-10-26',98,8,'Bipolar Disorder'),(1081,'Olivia','Torres','1971-11-23','M','2024-10-30','2024-10-30',45,1,'Asthma'),(1082,'Eva','Morris','1968-11-26','F','2024-10-27',NULL,67,4,'PTSD'),(1083,'Logan','Cox','1967-11-25','M','2024-10-26','2024-10-30',71,9,'Fracture'),(1084,'John','Hall','1954-09-05','F','2024-10-25',NULL,20,10,'Bronchitis'),(1085,'Elijah','Davis','1966-07-02','M','2024-11-01','2024-11-05',53,5,'Pneumonia'),(1086,'Elijah','Roberts','1999-08-13','M','2024-10-26','2024-10-27',68,8,'PTSD'),(1087,'Ava','Gray','2001-03-01','F','2024-10-29',NULL,6,10,'Gastroenteritis'),(1088,'Matthew','James','1972-03-13','M','2024-10-27',NULL,76,1,'Vertigo'),(1089,'Logan','Gray','1977-06-11','F','2024-10-27',NULL,83,4,'Pancreatitis'),(1090,'Chloe','Gonzalez','1977-02-21','M','2024-10-24',NULL,18,5,'Hemorrhoids'),(1091,'Mason','Martin','1967-06-20','M','2024-10-31',NULL,64,3,'Fracture'),(1092,'Amelia','Williams','1996-11-03','M','2024-10-24',NULL,39,6,'Hemorrhoids'),(1093,'Victoria','Jackson','1988-06-04','M','2024-10-27',NULL,35,4,'Arthritis'),(1094,'Harper','Clark','2004-02-07','M','2024-10-28',NULL,4,10,'Tuberculosis'),(1095,'Jacob','Ward','1962-10-15','M','2024-10-29',NULL,19,10,'Fracture'),(1096,'Sophia','Morris','1947-01-31','M','2024-10-27','2024-10-27',70,5,'Allergy'),(1097,'James','Williams','1983-06-20','F','2024-10-31','2024-11-03',47,9,'Fracture'),(1098,'Charlotte','Ramirez','1985-05-14','M','2024-10-26',NULL,12,9,'PTSD'),(1099,'Jack','Moore','1950-11-24','F','2024-10-26',NULL,61,8,'Hypertension'),(1100,'Alexander','Nelson','1968-02-10','F','2024-10-24','2024-10-25',70,10,'High Cholesterol'),(1101,'Isabella','Edwards','1986-01-09','M','2024-10-27',NULL,37,3,'Anxiety'),(1102,'Lucas','Martinez','1981-05-26','F','2024-10-27',NULL,10,7,'Ear Infection'),(1103,'Madison','Cook','1978-11-02','M','2024-10-26','2024-10-27',72,4,'Migraine'),(1104,'Jack','Davis','1975-02-16','M','2024-11-01','2024-11-02',94,8,'Gallbladder Disease'),(1105,'Grace','Ward','1945-01-11','F','2024-10-30',NULL,79,8,'Ear Infection'),(1106,'Grace','Reed','1976-07-26','M','2024-11-01','2024-11-03',92,4,'Epilepsy'),(1107,'Aiden','Moore','1983-07-22','F','2024-10-30',NULL,12,9,'Liver Disease'),(1108,'Dave','Nelson','1997-12-11','M','2024-10-29','2024-10-31',57,9,'Kidney Stones'),(1109,'Grace','Clark','1946-10-07','F','2024-10-25',NULL,51,6,'Heart Disease'),(1110,'James','Sanchez','1946-12-12','M','2024-10-31',NULL,89,8,'COPD'),(1111,'Sophie','Davis','1944-12-21','M','2024-10-27',NULL,34,4,'Depression'),(1112,'Emma','Davis','1982-08-26','M','2024-10-29',NULL,50,2,'Tuberculosis'),(1113,'Nathan','Moore','1950-07-30','F','2024-10-24','2024-10-25',92,8,'Panic Disorder'),(1114,'John','Cox','1998-02-05','F','2024-10-29','2024-10-29',36,9,'Multiple Sclerosis'),(1115,'Chloe','Bell','1953-03-07','F','2024-10-27',NULL,53,1,'Diabetes'),(1116,'Sophie','Adams','2001-07-24','F','2024-10-27',NULL,50,9,'Fracture'),(1117,'Emma','James','2000-04-21','M','2024-10-23','2024-10-24',13,4,'Diabetes'),(1118,'Jacob','Cox','1997-08-03','F','2024-10-23',NULL,77,2,'Liver Disease'),(1119,'Evelyn','Ward','2003-11-11','M','2024-11-01',NULL,79,3,'Fracture'),(1120,'Sophia','Roberts','1978-01-28','M','2024-10-29',NULL,96,5,'Bipolar Disorder'),(1121,'Leo','Davis','1987-10-17','F','2024-10-31',NULL,55,6,'Hemorrhoids'),(1122,'Mason','Jackson','1961-12-18','M','2024-10-30','2024-11-03',18,3,'Pancreatitis'),(1123,'Frank','Allen','1969-02-12','F','2024-10-26','2024-10-27',76,8,'Infection'),(1124,'Harper','Torres','1996-06-07','F','2024-10-23','2024-10-23',91,4,'COPD'),(1125,'Oliver','Murphy','1997-09-26','M','2024-10-26',NULL,85,4,'Sinusitis'),(1126,'Carol','Mitchell','1962-12-24','F','2024-10-28','2024-11-01',22,7,'Gastroenteritis'),(1127,'Lucas','Walker','1954-12-28','F','2024-10-31','2024-10-31',73,3,'Gastroenteritis'),(1128,'Grace','Scott','1965-06-17','M','2024-11-01','2024-11-01',87,3,'Multiple Sclerosis'),(1129,'Amelia','Allen','1982-12-15','F','2024-11-01',NULL,49,6,'Sinusitis'),(1130,'Frank','Evans','1997-01-31','F','2024-10-25',NULL,63,10,'Infection'),(1131,'Liam','Cooper','1983-02-13','F','2024-10-27',NULL,88,9,'Heart Disease'),(1132,'Abigail','Morgan','1990-02-01','M','2024-10-27','2024-10-31',75,1,'Hypertension'),(1133,'Benjamin','King','1994-04-29','M','2024-10-28','2024-10-31',78,4,'Hepatitis'),(1134,'Alice','Cox','1998-10-27','M','2024-10-30',NULL,17,7,'Gout'),(1135,'Olivia','Peterson','1961-07-07','F','2024-10-24',NULL,4,10,'Liver Disease'),(1136,'Joshua','Johnson','1998-07-08','M','2024-10-31','2024-11-04',57,3,'Depression'),(1137,'Oliver','Ramirez','1999-11-08','F','2024-10-25','2024-10-26',72,6,'Hypertension'),(1138,'Isla','Martin','1984-01-15','F','2024-10-25',NULL,56,8,'Bipolar Disorder'),(1139,'Amelia','Phillips','1991-12-08','F','2024-11-01',NULL,2,6,'Covid-19'),(1140,'Sophie','Harris','1956-11-11','F','2024-10-30',NULL,16,7,'Osteoporosis'),(1141,'Logan','Adams','1992-11-24','F','2024-10-24','2024-10-27',68,5,'Fracture'),(1142,'Ethan','Ward','1950-03-21','F','2024-10-26','2024-10-26',37,9,'Herniated Disc'),(1143,'Nora','Collins','1952-10-30','F','2024-10-29',NULL,64,8,'Bronchitis'),(1144,'Grace','Young','1980-02-14','M','2024-10-24','2024-10-26',33,4,'Epilepsy'),(1145,'Lucas','Harris','1966-12-10','M','2024-10-24',NULL,49,7,'Conjunctivitis'),(1146,'Madison','Murphy','1987-12-31','F','2024-10-25',NULL,94,2,'Multiple Sclerosis'),(1147,'Ella','Lee','1945-07-18','F','2024-10-23','2024-10-25',23,8,'Panic Disorder'),(1148,'Isla','Ramirez','1958-04-27','M','2024-10-29','2024-11-02',19,10,'Hepatitis'),(1149,'Samuel','Moore','1975-11-14','F','2024-10-23',NULL,41,5,'Covid-19'),(1150,'Nathaniel','Stewart','1947-01-08','F','2024-10-25','2024-10-27',33,8,'Tuberculosis'),(1151,'Mason','Hill','1976-06-20','M','2024-10-23',NULL,49,7,'Migraine'),(1152,'Lily','Cook','1948-08-19','M','2024-11-01','2024-11-03',3,4,'Gastroenteritis'),(1153,'Henry','Gray','1956-04-02','M','2024-10-28','2024-11-01',98,1,'Hepatitis'),(1154,'Mia','Howard','1961-01-02','M','2024-10-30','2024-10-30',55,7,'Depression'),(1155,'John','Williams','2003-12-06','M','2024-10-27',NULL,88,3,'Parkinson\'s Disease'),(1156,'Eva','Peterson','1981-03-01','M','2024-11-01','2024-11-01',30,8,'Heart Disease'),(1157,'Sebastian','Mitchell','1956-02-26','F','2024-10-27',NULL,84,2,'Osteoporosis'),(1158,'Zoe','Smith','1989-01-23','M','2024-10-31',NULL,94,3,'Anxiety'),(1159,'Emma','Adams','1995-10-26','M','2024-11-01','2024-11-03',60,5,'Liver Disease'),(1160,'Chloe','Wright','1999-12-27','F','2024-10-30','2024-11-02',65,2,'Ear Infection'),(1161,'John','Carter','1951-11-24','M','2024-10-29','2024-10-29',49,3,'Bronchitis'),(1162,'Abigail','Ward','1962-10-28','M','2024-10-27','2024-10-27',50,10,'Sinusitis'),(1163,'Nathaniel','Rodriguez','1948-07-09','F','2024-10-26',NULL,51,6,'Gallbladder Disease'),(1164,'Isla','Adams','1960-02-16','M','2024-10-27','2024-10-30',64,10,'Scoliosis'),(1165,'James','Roberts','1991-02-26','F','2024-10-24',NULL,66,3,'Conjunctivitis'),(1166,'Logan','Brown','1989-11-30','F','2024-10-23','2024-10-24',36,8,'Sleep Apnea'),(1167,'Noah','Cook','1976-03-25','F','2024-11-01',NULL,84,9,'Liver Disease'),(1168,'Nathan','Stewart','1993-11-28','M','2024-10-25','2024-10-27',83,3,'Hypertension'),(1169,'Henry','Williams','1947-12-17','M','2024-10-31',NULL,33,6,'Seasonal Flu'),(1170,'Leo','Ward','1986-12-12','F','2024-11-01','2024-11-04',52,7,'Acid Reflux'),(1171,'Ethan','Martin','1985-12-19','M','2024-10-23','2024-10-25',46,3,'Asthma'),(1172,'Dave','Martinez','1990-05-05','F','2024-10-29','2024-11-01',65,1,'Gallbladder Disease'),(1173,'Jackson','Wright','1945-06-28','M','2024-10-28',NULL,14,8,'Allergy'),(1174,'Jackson','Hernandez','1961-12-31','F','2024-10-28',NULL,48,1,'Infection'),(1175,'Logan','Nelson','1996-10-30','F','2024-11-01',NULL,87,8,'Tuberculosis'),(1176,'Emma','Taylor','1968-06-04','M','2024-10-29',NULL,21,9,'Chronic Fatigue'),(1177,'Victoria','Hall','1988-03-15','M','2024-10-24',NULL,39,3,'Arthritis'),(1178,'Isla','Clark','1951-06-11','F','2024-10-26','2024-10-26',13,7,'Sleep Apnea'),(1179,'Ella','Wright','1991-05-20','F','2024-11-01',NULL,73,9,'Depression'),(1180,'Amelia','Lee','1968-09-07','F','2024-10-29','2024-11-01',68,6,'Scoliosis'),(1181,'Elijah','Wright','1954-01-18','F','2024-10-25',NULL,14,8,'Liver Disease'),(1182,'Nora','Mitchell','1965-05-09','M','2024-10-30','2024-10-30',9,1,'Infection'),(1183,'Nathaniel','Brown','1955-03-14','F','2024-10-30','2024-10-30',11,7,'Pancreatitis'),(1184,'Carol','Garcia','2002-12-09','M','2024-10-29',NULL,96,8,'Heart Disease'),(1185,'Dave','Anderson','1947-09-19','M','2024-10-26',NULL,46,5,'Diabetes'),(1186,'Henry','Baker','1954-03-16','F','2024-10-30','2024-11-01',61,9,'Heart Disease'),(1187,'Abigail','King','1952-01-31','M','2024-10-25',NULL,76,3,'Herniated Disc'),(1188,'Joshua','Nelson','1980-11-23','M','2024-10-25',NULL,28,6,'Sleep Apnea'),(1189,'Olivia','Reed','1969-03-17','F','2024-10-28',NULL,82,5,'Sleep Apnea'),(1190,'Leo','Parker','1945-05-26','F','2024-10-31','2024-11-02',93,1,'Conjunctivitis'),(1191,'Liam','Hernandez','1983-04-13','F','2024-10-31',NULL,33,7,'Liver Disease'),(1192,'Ella','Williams','1962-08-31','F','2024-10-26',NULL,66,5,'PTSD'),(1193,'Nathaniel','Hernandez','2000-06-03','F','2024-10-31','2024-11-03',90,10,'Parkinson\'s Disease'),(1194,'Jane','Williams','1994-12-26','F','2024-10-28',NULL,78,2,'Appendicitis'),(1195,'Henry','Collins','1993-09-27','M','2024-10-24',NULL,35,7,'Gout'),(1196,'Eva','Peterson','1998-10-19','M','2024-10-27','2024-10-31',63,5,'PTSD'),(1197,'Nora','Murphy','1977-12-07','F','2024-10-30',NULL,59,2,'Parkinson\'s Disease'),(1198,'Ethan','Mitchell','1992-08-11','M','2024-10-28',NULL,46,2,'Migraine'),(1199,'Eva','James','1945-09-18','M','2024-10-23',NULL,98,7,'Kidney Stones'),(1200,'Sophie','Bailey','1999-03-10','M','2024-10-24','2024-10-28',43,1,'Pancreatitis'),(1201,'Michael','Richardson','1990-05-12','F','2024-10-23','2024-10-26',82,7,'Herniated Disc'),(1202,'Eva','Jones','1964-11-12','M','2024-10-25',NULL,34,4,'Gastroenteritis'),(1203,'Liam','Evans','1983-06-21','F','2024-10-30',NULL,12,5,'Seasonal Flu'),(1204,'Eva','Johnson','1988-03-27','F','2024-10-25',NULL,99,8,'Sinusitis'),(1205,'Michael','Martinez','1957-07-27','F','2024-11-01','2024-11-01',66,4,'Panic Disorder'),(1206,'Amelia','Morgan','1987-03-30','F','2024-10-27','2024-10-30',29,3,'Infection'),(1207,'Sophie','Cook','1965-12-22','M','2024-10-31',NULL,88,4,'Bipolar Disorder'),(1208,'Abigail','Collins','1982-12-12','F','2024-10-31',NULL,63,5,'Diabetes'),(1209,'Logan','Phillips','1968-10-02','M','2024-10-23',NULL,89,2,'Heart Disease'),(1210,'Henry','Taylor','1956-01-07','M','2024-10-24',NULL,63,10,'Tuberculosis'),(1211,'Alice','Baker','1979-01-31','F','2024-10-25',NULL,36,2,'Fibromyalgia'),(1212,'Evelyn','Green','1992-11-08','F','2024-11-01','2024-11-01',31,4,'Hepatitis'),(1213,'Benjamin','Parker','1987-08-12','M','2024-11-01','2024-11-03',97,10,'Panic Disorder'),(1214,'Henry','Baker','1989-01-10','F','2024-10-31',NULL,30,2,'Migraine'),(1215,'Samuel','Peterson','1969-06-08','M','2024-11-01','2024-11-04',13,7,'Gallbladder Disease'),(1216,'Chloe','Clark','1954-12-05','F','2024-10-23','2024-10-26',82,6,'COPD'),(1217,'Nathan','Jackson','1991-01-10','F','2024-10-25','2024-10-27',92,7,'Tuberculosis'),(1218,'Nathan','Cooper','1987-03-06','F','2024-10-31','2024-11-04',76,3,'Gallbladder Disease'),(1219,'Bob','Hall','1977-12-12','M','2024-10-25','2024-10-25',100,3,'Liver Disease'),(1220,'Jackson','Walker','1990-02-13','F','2024-10-26',NULL,93,1,'Gastroenteritis'),(1221,'Isabella','Wilson','1970-12-16','M','2024-10-26','2024-10-27',25,7,'High Cholesterol'),(1222,'Evelyn','Edwards','1968-07-18','M','2024-10-29','2024-10-31',10,7,'Seasonal Flu'),(1223,'Ava','Mitchell','1949-11-26','M','2024-11-01',NULL,90,6,'Covid-19'),(1224,'Evelyn','Evans','1947-05-31','F','2024-10-27','2024-10-30',62,4,'Ulcer'),(1225,'Mason','Bell','1995-05-02','F','2024-10-28','2024-10-30',88,10,'Heart Disease'),(1226,'Ethan','King','2003-11-08','F','2024-10-29','2024-11-02',63,8,'Liver Disease'),(1227,'Olivia','Turner','1957-09-02','M','2024-11-01','2024-11-04',70,5,'Osteoporosis'),(1228,'John','Brown','1995-06-03','F','2024-10-30',NULL,90,2,'Sleep Apnea'),(1229,'Jane','Williams','1976-11-05','F','2024-11-01','2024-11-05',95,6,'Covid-19'),(1230,'Abigail','Morgan','1969-12-02','M','2024-10-25',NULL,11,1,'Sinusitis'),(1231,'Isabella','Johnson','1999-04-20','M','2024-11-01','2024-11-03',96,6,'Herniated Disc'),(1232,'Daniel','Thomas','1973-11-20','M','2024-10-29',NULL,75,1,'Tuberculosis'),(1233,'Eva','Hernandez','2002-04-11','F','2024-10-31',NULL,81,6,'Obesity'),(1234,'Aiden','Cooper','1969-05-26','F','2024-10-26','2024-10-30',83,10,'Heart Disease'),(1235,'Victoria','Parker','1956-06-24','M','2024-11-01','2024-11-01',85,8,'Gastroenteritis'),(1236,'Evelyn','Hernandez','1961-05-23','M','2024-10-24','2024-10-26',40,5,'Epilepsy'),(1237,'Alice','Clark','1966-07-10','F','2024-10-30','2024-11-03',32,5,'Acid Reflux'),(1238,'Noah','Stewart','1960-09-27','F','2024-10-28','2024-11-01',98,3,'Gout'),(1239,'Henry','Anderson','1991-05-23','M','2024-10-27','2024-10-30',41,1,'Diabetes'),(1240,'Lily','Rodriguez','1972-08-28','F','2024-11-01','2024-11-03',73,9,'Hypertension'),(1241,'Jackson','Jones','1951-10-23','F','2024-10-29',NULL,9,9,'Scoliosis'),(1242,'Lily','Collins','1990-12-27','F','2024-10-28','2024-10-28',97,6,'COPD'),(1243,'Evelyn','Gonzalez','1957-11-09','F','2024-10-25',NULL,69,8,'Bronchitis'),(1244,'John','Brown','1967-01-16','M','2024-11-01',NULL,77,4,'Chronic Fatigue'),(1245,'Elijah','Hall','1963-06-14','M','2024-10-26','2024-10-29',68,9,'Liver Disease'),(1246,'Matthew','Green','1999-01-12','M','2024-10-25','2024-10-25',75,1,'Gastroenteritis'),(1247,'Jack','Cox','1991-11-09','F','2024-10-24','2024-10-24',26,4,'Panic Disorder'),(1248,'Sophia','Nelson','1949-09-29','F','2024-10-23','2024-10-24',79,8,'Kidney Stones'),(1249,'James','Cooper','1948-04-14','F','2024-10-24','2024-10-25',59,6,'Obesity'),(1250,'Ethan','Martin','2000-06-30','F','2024-10-27',NULL,8,8,'Ulcer'),(1251,'Charlotte','Williams','1968-05-23','F','2024-10-26',NULL,40,5,'Gastroenteritis'),(1252,'Bob','Reed','1967-10-13','F','2024-10-28',NULL,18,2,'Gallbladder Disease'),(1253,'Lucas','Morgan','1982-06-29','F','2024-10-28','2024-11-01',12,7,'Chronic Fatigue'),(1254,'Victoria','Adams','1998-09-28','F','2024-11-01',NULL,95,2,'Appendicitis'),(1255,'Frank','Jones','1997-02-17','F','2024-10-29',NULL,6,2,'Stroke'),(1256,'Michael','Green','1966-05-18','F','2024-10-26',NULL,13,10,'Pancreatitis'),(1257,'Benjamin','Bell','1974-12-08','F','2024-10-30',NULL,56,2,'Tuberculosis'),(1258,'Henry','Garcia','1980-08-06','M','2024-10-30','2024-11-01',96,9,'Kidney Stones'),(1259,'Amelia','Rivera','1962-02-16','M','2024-10-28',NULL,61,5,'Osteoporosis'),(1260,'Victoria','Morris','1987-11-07','F','2024-10-24','2024-10-28',36,1,'Allergy'),(1261,'Amelia','Martin','1949-07-28','F','2024-10-26','2024-10-28',57,5,'Obesity'),(1262,'Noah','Cook','1998-03-04','M','2024-10-25','2024-10-25',18,5,'Diabetes'),(1263,'Leo','Anderson','1998-03-13','F','2024-11-01','2024-11-01',22,3,'Allergy'),(1264,'Chloe','Mitchell','1972-04-07','F','2024-10-23','2024-10-26',2,8,'Hepatitis'),(1265,'Zoe','Taylor','1973-01-11','F','2024-10-24',NULL,48,10,'Kidney Stones'),(1266,'Dave','Young','1950-01-06','M','2024-11-01',NULL,60,5,'Vertigo'),(1267,'Grace','Murphy','1994-02-05','M','2024-10-23','2024-10-26',55,1,'Anxiety'),(1268,'Samuel','Ward','2003-08-08','F','2024-10-29','2024-10-30',40,5,'High Cholesterol'),(1269,'Mason','Sanchez','1966-03-24','M','2024-10-28',NULL,76,3,'Scoliosis'),(1270,'Aiden','Howard','1991-11-23','M','2024-10-26','2024-10-27',40,6,'Liver Disease'),(1271,'Ethan','King','1977-04-22','F','2024-10-30',NULL,68,6,'Hypertension'),(1272,'Olivia','Anderson','1979-06-08','F','2024-10-31','2024-10-31',73,7,'Vertigo'),(1273,'Nathan','Smith','1999-11-21','M','2024-10-31','2024-11-03',17,5,'Ear Infection'),(1274,'John','Williams','1984-06-19','M','2024-11-01',NULL,73,3,'Covid-19'),(1275,'Victoria','Edwards','1996-10-11','M','2024-10-23',NULL,41,8,'Stroke'),(1276,'Ava','Campbell','1947-02-10','F','2024-10-23',NULL,76,5,'Fracture'),(1277,'Olivia','Perez','1977-02-05','F','2024-10-29',NULL,26,10,'Infection'),(1278,'Isla','Mitchell','1953-07-13','F','2024-10-28','2024-10-28',17,3,'Gallbladder Disease'),(1279,'Samuel','Lopez','1958-08-26','M','2024-10-31',NULL,79,7,'Covid-19'),(1280,'Harper','Hill','1989-12-05','F','2024-10-24',NULL,11,4,'Appendicitis'),(1281,'Samuel','Rivera','1999-03-02','M','2024-10-24','2024-10-27',76,8,'Liver Disease'),(1282,'Harper','Jackson','1989-04-05','F','2024-10-27','2024-10-28',91,5,'Migraine'),(1283,'Noah','Martin','1983-06-11','M','2024-10-30','2024-11-02',29,8,'Hemorrhoids'),(1284,'Bob','Wilson','1964-02-13','M','2024-10-31','2024-11-04',32,3,'Allergy'),(1285,'Frank','Garcia','1948-09-04','F','2024-10-27','2024-10-31',68,4,'Tuberculosis'),(1286,'Victoria','Mitchell','1985-05-27','F','2024-10-25','2024-10-27',75,10,'Asthma'),(1287,'Jacob','Anderson','1960-07-02','F','2024-10-28','2024-10-28',66,2,'Anxiety'),(1288,'Abigail','Bell','1972-12-29','F','2024-10-31',NULL,17,9,'Seasonal Flu'),(1289,'Jacob','Williams','1966-02-04','F','2024-10-28',NULL,79,7,'Covid-19'),(1290,'Mia','Peterson','1986-06-06','F','2024-10-25','2024-10-26',6,1,'Parkinson\'s Disease'),(1291,'Zoe','James','1991-10-26','M','2024-11-01',NULL,85,7,'Arthritis'),(1292,'Bob','Williams','1988-03-03','F','2024-10-29','2024-10-29',75,2,'Conjunctivitis'),(1293,'Samuel','Collins','1986-03-11','F','2024-10-28','2024-10-29',60,10,'Ulcer'),(1294,'James','Bailey','1995-12-17','F','2024-10-30','2024-11-02',41,2,'Pneumonia'),(1295,'Emma','Brown','1997-05-21','M','2024-10-30','2024-11-03',21,2,'Kidney Stones'),(1296,'Amelia','Murphy','1977-05-19','M','2024-10-24',NULL,81,5,'Diabetes'),(1297,'Zoe','King','1950-06-13','M','2024-10-24',NULL,45,2,'Multiple Sclerosis'),(1298,'Jack','Williams','1987-03-03','F','2024-10-29','2024-10-31',13,2,'Migraine'),(1299,'Bob','Roberts','1987-10-24','M','2024-10-30','2024-11-01',83,4,'Ulcer'),(1300,'Ella','Williams','1982-11-27','F','2024-11-01',NULL,11,8,'Seasonal Flu'),(1301,'Madison','Taylor','1977-07-20','M','2024-11-01',NULL,78,9,'Hepatitis'),(1302,'Benjamin','Rivera','1982-06-02','M','2024-10-30','2024-11-01',98,3,'Asthma'),(1303,'Sophia','Martinez','1979-03-22','F','2024-10-29',NULL,82,7,'Osteoporosis'),(1304,'Alexander','Anderson','1996-12-02','F','2024-10-30','2024-11-02',59,1,'Hypertension'),(1305,'Charlotte','Cook','1996-07-18','F','2024-10-28',NULL,13,4,'Stroke'),(1306,'Jane','Morris','1963-04-24','M','2024-10-31',NULL,27,10,'COPD'),(1307,'Harper','Cooper','1981-06-13','F','2024-10-31',NULL,44,5,'Chronic Fatigue'),(1308,'Isabella','Ward','1991-03-16','F','2024-10-25',NULL,97,10,'Bronchitis'),(1309,'Grace','Allen','1951-03-03','M','2024-10-26',NULL,75,5,'Chronic Fatigue'),(1310,'Isla','Rodriguez','2002-01-20','F','2024-10-25',NULL,59,7,'Hypertension'),(1311,'Logan','Davis','1957-11-09','M','2024-10-25',NULL,53,7,'Infection'),(1312,'Chloe','Roberts','1988-09-18','M','2024-10-26','2024-10-30',2,10,'High Cholesterol'),(1313,'Bob','Jackson','1993-03-22','M','2024-11-01',NULL,81,9,'Skin Rash'),(1314,'Daniel','Cox','1985-12-31','M','2024-10-27','2024-10-28',23,5,'Diabetes'),(1315,'Lily','Adams','1952-12-05','F','2024-10-23',NULL,30,4,'Parkinson\'s Disease'),(1316,'Daniel','Young','1992-03-03','M','2024-10-28',NULL,84,9,'Tuberculosis'),(1317,'Grace','Hill','1962-08-23','F','2024-10-31','2024-11-02',59,2,'Hepatitis'),(1318,'Jacob','Johnson','1957-10-07','M','2024-10-24','2024-10-28',53,4,'PTSD'),(1319,'Sophia','Jones','2002-05-27','F','2024-10-25',NULL,65,3,'Osteoporosis'),(1320,'Elijah','Young','1966-03-05','F','2024-11-01','2024-11-02',7,10,'Bipolar Disorder'),(1321,'Benjamin','Cook','1991-03-21','M','2024-10-25','2024-10-26',83,10,'Panic Disorder'),(1322,'Isabella','Collins','2002-03-05','M','2024-10-29',NULL,4,1,'Allergy'),(1323,'Samuel','Bell','1992-05-04','M','2024-10-27',NULL,28,4,'Seasonal Flu'),(1324,'Noah','Morgan','1983-04-23','M','2024-10-30','2024-10-31',43,1,'Sleep Apnea'),(1325,'Chloe','Stewart','1978-07-23','M','2024-10-31','2024-11-02',27,10,'Acid Reflux'),(1326,'Olivia','Howard','1957-06-07','F','2024-10-26','2024-10-29',69,9,'Seasonal Flu'),(1327,'Frank','Phillips','1965-01-13','M','2024-10-29',NULL,69,6,'Allergy'),(1328,'Noah','Baker','1989-07-27','F','2024-10-29',NULL,92,8,'Panic Disorder'),(1329,'Harper','Stewart','1967-03-16','M','2024-10-29',NULL,30,7,'Gastroenteritis'),(1330,'Lucas','Martinez','1963-11-06','F','2024-10-26',NULL,68,5,'Infection'),(1331,'Bob','Howard','2004-07-13','M','2024-10-23',NULL,90,3,'Gout'),(1332,'Alexander','Clark','1985-02-13','M','2024-10-29',NULL,2,8,'Infection'),(1333,'Ella','Parker','1980-10-13','M','2024-10-26','2024-10-29',27,3,'Acid Reflux'),(1334,'Nora','Mitchell','1951-09-20','F','2024-10-28','2024-11-01',73,10,'Kidney Stones'),(1335,'Chloe','Edwards','1990-08-10','F','2024-10-29',NULL,1,2,'Hepatitis'),(1336,'Benjamin','Baker','2000-04-19','F','2024-10-27','2024-10-29',18,4,'Kidney Stones'),(1337,'Isabella','Moore','1958-10-23','F','2024-10-30',NULL,89,3,'Ulcer'),(1338,'Emma','Young','1965-01-04','M','2024-10-28',NULL,94,2,'Skin Rash'),(1339,'Henry','Walker','2003-06-24','M','2024-10-31',NULL,13,3,'Epilepsy'),(1340,'Nathan','Parker','1961-10-14','M','2024-10-29','2024-10-30',70,2,'Vertigo'),(1341,'Matthew','Bell','1952-07-16','M','2024-10-25',NULL,38,6,'Heart Disease'),(1342,'Sebastian','Scott','1977-09-25','F','2024-10-26','2024-10-27',61,7,'Sleep Apnea'),(1343,'Harper','Allen','1972-12-19','F','2024-11-01','2024-11-03',11,6,'Bipolar Disorder'),(1344,'Amelia','Gray','1965-05-27','M','2024-10-23',NULL,7,10,'Diabetes'),(1345,'James','Morgan','1959-12-27','M','2024-10-29',NULL,6,5,'Osteoporosis'),(1346,'Frank','Allen','1951-02-20','F','2024-10-23','2024-10-26',4,5,'Ulcer'),(1347,'Alice','Perez','1960-04-07','F','2024-10-25',NULL,81,2,'Fibromyalgia'),(1348,'John','Perez','1977-02-28','M','2024-11-01','2024-11-02',21,7,'Pancreatitis'),(1349,'Oliver','Williams','1946-10-29','F','2024-11-01','2024-11-02',54,10,'Ear Infection'),(1350,'John','Cook','1964-08-04','F','2024-10-25',NULL,73,10,'Covid-19'),(1351,'Nathan','Stewart','1955-12-25','M','2024-10-23',NULL,54,1,'Sinusitis'),(1352,'Olivia','Moore','2003-06-26','M','2024-10-27','2024-10-28',70,1,'COPD'),(1353,'Logan','Hernandez','1946-01-12','M','2024-11-01','2024-11-01',75,2,'Stroke'),(1354,'Isabella','Anderson','1995-10-19','M','2024-11-01',NULL,12,6,'Multiple Sclerosis'),(1355,'Oliver','Baker','1996-10-15','F','2024-10-23',NULL,21,5,'Panic Disorder'),(1356,'Eva','Miller','2001-03-04','M','2024-10-24','2024-10-25',21,5,'Pancreatitis'),(1357,'Amelia','Allen','1966-03-08','F','2024-10-29','2024-10-29',21,10,'Chronic Fatigue'),(1358,'Leo','Cox','1963-07-20','F','2024-10-31','2024-11-04',13,2,'Covid-19'),(1359,'Jacob','Morris','1968-07-25','M','2024-10-27',NULL,71,10,'Infection'),(1360,'Jackson','Wright','1987-12-15','M','2024-10-25','2024-10-28',54,2,'Chronic Fatigue'),(1361,'Dave','Richardson','1977-01-11','M','2024-10-28','2024-10-30',40,8,'Pneumonia'),(1362,'Nora','Hall','1994-08-07','M','2024-10-26',NULL,10,7,'Herniated Disc'),(1363,'Frank','Wright','1990-03-07','M','2024-10-23','2024-10-25',98,8,'Sleep Apnea'),(1364,'Lucas','Jones','1986-08-30','F','2024-10-23',NULL,31,2,'Stroke'),(1365,'Ava','Hall','1957-12-17','M','2024-10-27',NULL,97,7,'Parkinson\'s Disease'),(1366,'Madison','Cooper','1959-04-28','M','2024-10-28',NULL,90,2,'Infection'),(1367,'Grace','Morgan','1977-02-06','M','2024-10-26',NULL,66,5,'Skin Rash'),(1368,'Amelia','Garcia','1971-05-07','F','2024-10-28','2024-10-28',4,6,'PTSD'),(1369,'Matthew','Anderson','1977-06-06','M','2024-10-27','2024-10-27',25,6,'Heart Disease'),(1370,'Victoria','Lopez','1949-07-07','M','2024-10-29','2024-10-29',11,1,'Infection'),(1371,'Charlotte','Thomas','1970-02-21','F','2024-10-29',NULL,82,10,'Asthma'),(1372,'Elijah','Bailey','1984-09-17','M','2024-10-25',NULL,37,1,'Heart Disease'),(1373,'Eva','James','1964-12-12','F','2024-10-27','2024-10-28',89,7,'Covid-19'),(1374,'James','Miller','1964-10-20','M','2024-10-29',NULL,33,3,'Skin Rash'),(1375,'Noah','Turner','1951-10-25','F','2024-10-29',NULL,59,4,'Obesity'),(1376,'Zoe','Brown','1982-08-30','F','2024-10-29',NULL,24,1,'Vertigo'),(1377,'Emma','Morris','1997-05-27','M','2024-10-23','2024-10-27',54,1,'Ear Infection'),(1378,'Nathaniel','Lopez','1951-05-22','M','2024-10-28',NULL,77,1,'Hypertension'),(1379,'Jack','Evans','1964-04-04','F','2024-10-28',NULL,81,10,'Heart Disease'),(1380,'Sebastian','Young','1950-07-19','F','2024-10-30',NULL,33,3,'Gallbladder Disease'),(1381,'Joshua','Hall','1998-09-09','F','2024-10-28','2024-10-31',4,9,'Vertigo'),(1382,'Nora','Gonzalez','1966-07-24','M','2024-10-23',NULL,58,5,'COPD'),(1383,'Jackson','Reed','1966-11-08','F','2024-10-27',NULL,46,4,'Gout'),(1384,'Madison','Cooper','1995-09-12','M','2024-10-27',NULL,39,1,'Heart Disease'),(1385,'Jack','Rodriguez','1995-07-23','M','2024-10-26','2024-10-29',5,7,'Bipolar Disorder'),(1386,'Jack','Reed','1967-11-15','M','2024-10-25',NULL,81,2,'Depression'),(1387,'Nora','Collins','1972-09-20','M','2024-10-26',NULL,30,6,'Diabetes'),(1388,'Jacob','Roberts','1982-12-02','M','2024-10-25',NULL,17,3,'Depression'),(1389,'Ava','Moore','1977-03-01','M','2024-10-29','2024-10-30',48,5,'Parkinson\'s Disease'),(1390,'Elijah','Stewart','1970-11-08','F','2024-10-27','2024-10-29',60,1,'Arthritis'),(1391,'Charlotte','Brown','1994-08-08','M','2024-10-28','2024-10-29',19,10,'Arthritis'),(1392,'John','Scott','1965-09-03','F','2024-10-30',NULL,72,4,'Chronic Fatigue'),(1393,'Lily','Lee','1989-06-22','F','2024-10-23','2024-10-26',8,3,'Hypertension'),(1394,'Benjamin','Carter','1980-12-20','F','2024-10-31',NULL,99,4,'Stroke'),(1395,'Lily','Mitchell','1950-07-04','F','2024-10-24','2024-10-24',16,8,'Multiple Sclerosis'),(1396,'Sophie','Martinez','1963-06-11','M','2024-10-29','2024-10-31',54,3,'Bipolar Disorder'),(1397,'Eva','Walker','2002-10-22','M','2024-10-27','2024-10-29',53,10,'Arthritis'),(1398,'Amelia','Jones','1949-05-09','F','2024-10-24',NULL,34,6,'Diabetes'),(1399,'Leo','Allen','1977-11-07','F','2024-10-24','2024-10-26',57,5,'COPD'),(1400,'James','Ramirez','1991-10-04','M','2024-10-29',NULL,5,5,'Appendicitis'),(1401,'Jackson','Smith','1957-10-05','M','2024-10-23',NULL,31,4,'Panic Disorder'),(1402,'Madison','Taylor','1959-11-18','M','2024-10-26',NULL,15,6,'Chronic Fatigue'),(1403,'Harper','Wilson','1993-06-23','F','2024-10-25','2024-10-27',47,1,'Infection'),(1404,'Emily','Lee','2003-05-16','M','2024-10-28','2024-11-01',61,6,'Skin Rash'),(1405,'Victoria','Morgan','1984-03-14','F','2024-10-30','2024-11-01',98,10,'Scoliosis'),(1406,'Sophia','Ward','1992-09-12','F','2024-10-27','2024-10-30',87,2,'Epilepsy'),(1407,'Eva','Johnson','1999-04-08','M','2024-10-27','2024-10-30',92,5,'Infection'),(1408,'Emma','Martinez','2003-12-27','F','2024-10-26',NULL,76,10,'Pneumonia'),(1409,'Leo','Mitchell','1984-02-15','M','2024-10-26',NULL,42,10,'Acid Reflux'),(1410,'Frank','Evans','1983-06-12','M','2024-10-30','2024-10-31',65,10,'Vertigo'),(1411,'Mia','Peterson','1997-11-15','F','2024-10-26','2024-10-26',61,8,'Scoliosis'),(1412,'Henry','Sanchez','1984-07-06','M','2024-10-24',NULL,46,10,'Skin Rash'),(1413,'Eva','Phillips','1989-07-02','M','2024-10-24',NULL,98,7,'Asthma'),(1414,'Mia','Harris','1988-09-17','F','2024-10-26',NULL,29,9,'Vertigo'),(1415,'Grace','Allen','1990-10-15','M','2024-10-26',NULL,64,7,'Parkinson\'s Disease'),(1416,'Jane','Cook','1970-02-20','M','2024-10-23',NULL,11,3,'Depression'),(1417,'Mason','Rivera','1973-01-13','M','2024-10-23','2024-10-25',88,9,'Kidney Stones'),(1418,'Olivia','Gray','1964-05-26','F','2024-10-24','2024-10-26',71,8,'Obesity'),(1419,'Nora','Martinez','1959-07-28','F','2024-11-01','2024-11-04',94,1,'Liver Disease'),(1420,'Jane','Martinez','1994-07-04','F','2024-10-28',NULL,73,9,'Anxiety'),(1421,'Jack','Morgan','1970-07-17','M','2024-10-27',NULL,25,10,'Chronic Fatigue'),(1422,'Logan','Hill','1957-02-05','F','2024-10-31',NULL,6,4,'Osteoporosis'),(1423,'Joshua','Young','1982-03-13','M','2024-10-26',NULL,81,5,'Diabetes'),(1424,'Charlotte','Moore','1955-09-09','M','2024-10-27','2024-10-27',27,5,'Acid Reflux'),(1425,'Amelia','Rodriguez','1978-11-26','M','2024-10-31','2024-10-31',76,7,'High Cholesterol'),(1426,'Daniel','Ramirez','1952-06-09','M','2024-10-25',NULL,7,1,'PTSD'),(1427,'Grace','Ramirez','1958-07-16','M','2024-10-29','2024-10-31',56,8,'Hemorrhoids'),(1428,'Samuel','Moore','1965-10-26','F','2024-10-30',NULL,9,7,'Obesity'),(1429,'Matthew','Lopez','1965-03-18','M','2024-10-26','2024-10-30',11,4,'Infection'),(1430,'Mia','Evans','1977-02-20','F','2024-10-23','2024-10-25',98,1,'Heart Disease'),(1431,'Mia','Lee','2003-10-24','M','2024-10-26','2024-10-26',33,7,'Scoliosis'),(1432,'Benjamin','Moore','2004-10-03','F','2024-10-24','2024-10-28',74,5,'Obesity'),(1433,'Isabella','Collins','1989-01-22','F','2024-11-01','2024-11-03',21,6,'Pneumonia'),(1434,'Carol','Turner','1991-05-12','F','2024-10-29',NULL,38,8,'Multiple Sclerosis'),(1435,'Samuel','Morris','1953-01-26','F','2024-10-25','2024-10-27',73,5,'Epilepsy'),(1436,'Elijah','Lee','1946-04-03','M','2024-10-29','2024-11-01',84,7,'COPD'),(1437,'Emily','Cooper','2003-08-16','F','2024-10-24',NULL,44,8,'Scoliosis'),(1438,'James','Collins','1970-11-30','M','2024-10-24',NULL,31,2,'Fracture'),(1439,'Alexander','Garcia','1984-09-22','F','2024-10-30',NULL,88,3,'Chronic Fatigue'),(1440,'John','Howard','1963-11-27','M','2024-10-31',NULL,24,2,'Anxiety'),(1441,'Sebastian','Campbell','1946-10-09','F','2024-10-28',NULL,19,10,'Acid Reflux'),(1442,'Madison','Anderson','1986-11-09','F','2024-10-25','2024-10-25',75,2,'Gastroenteritis'),(1443,'Isla','Morris','1959-08-12','F','2024-10-24',NULL,44,6,'Osteoporosis'),(1444,'Harper','Anderson','1977-08-14','M','2024-10-26',NULL,34,2,'Allergy'),(1445,'Grace','Martin','1973-05-07','M','2024-10-29',NULL,75,10,'Liver Disease'),(1446,'Charlotte','Evans','2002-04-20','M','2024-10-28',NULL,21,4,'Tuberculosis'),(1447,'Ella','Wilson','2004-06-26','M','2024-10-27','2024-10-28',20,7,'Heart Disease'),(1448,'Evelyn','Adams','1978-10-07','M','2024-10-29',NULL,79,1,'Herniated Disc'),(1449,'Madison','Harris','1962-11-25','F','2024-10-28','2024-10-28',43,10,'Obesity'),(1450,'Charlotte','James','1948-07-16','F','2024-10-29',NULL,28,9,'High Cholesterol'),(1451,'Jackson','Cox','1984-10-03','M','2024-10-23','2024-10-26',90,10,'Anxiety'),(1452,'Emma','Johnson','1954-03-17','F','2024-11-01',NULL,38,3,'Conjunctivitis'),(1453,'Sebastian','Richardson','1962-08-28','M','2024-10-29','2024-11-01',77,9,'Sinusitis'),(1454,'Victoria','Clark','1993-10-10','F','2024-10-25',NULL,99,5,'Gallbladder Disease'),(1455,'John','Smith','2003-10-03','F','2024-11-01','2024-11-03',42,7,'Arthritis'),(1456,'Sophia','Reed','1952-04-13','F','2024-10-30',NULL,82,3,'Parkinson\'s Disease'),(1457,'Mia','Morris','1957-09-30','F','2024-10-30',NULL,5,9,'Obesity'),(1458,'James','Scott','1955-10-18','F','2024-10-30',NULL,31,6,'Kidney Stones'),(1459,'Emma','Richardson','1993-04-21','F','2024-10-24','2024-10-27',97,4,'Skin Rash'),(1460,'Isabella','Rodriguez','1964-02-10','M','2024-10-29','2024-10-30',72,3,'Infection'),(1461,'Sophia','Nelson','2003-04-24','M','2024-10-27','2024-10-30',51,1,'Bipolar Disorder'),(1462,'Sebastian','Evans','1969-04-29','F','2024-10-23',NULL,57,9,'Conjunctivitis'),(1463,'Sophie','Carter','1965-10-15','M','2024-10-24','2024-10-24',43,4,'Covid-19'),(1464,'Abigail','Carter','1992-11-04','F','2024-10-29',NULL,41,6,'Epilepsy'),(1465,'Michael','Cook','1963-07-22','M','2024-10-27','2024-10-30',60,9,'Bronchitis'),(1466,'Ava','Baker','1998-05-15','M','2024-10-25',NULL,38,1,'Pneumonia'),(1467,'Nora','Young','1972-02-17','M','2024-10-31','2024-10-31',96,6,'Stroke'),(1468,'Oliver','Hernandez','1981-09-03','M','2024-10-28',NULL,37,8,'Fibromyalgia'),(1469,'Eva','Martin','1962-05-03','M','2024-10-28','2024-10-29',31,2,'Allergy'),(1470,'Ethan','Taylor','2001-07-27','F','2024-10-26',NULL,29,10,'Heart Disease'),(1471,'Ava','Cook','1978-11-26','M','2024-10-30','2024-11-02',26,2,'Asthma'),(1472,'Nora','Stewart','1972-05-29','M','2024-10-27','2024-10-29',7,9,'Acid Reflux'),(1473,'Nora','Hernandez','1984-01-08','M','2024-10-30',NULL,33,2,'Fracture'),(1474,'Ella','Bailey','1992-09-03','F','2024-10-23','2024-10-27',63,3,'Bronchitis'),(1475,'Ella','Taylor','1976-02-19','M','2024-11-01','2024-11-02',8,9,'Bronchitis'),(1476,'Mia','Reed','1974-04-28','F','2024-10-27','2024-10-31',69,7,'Chronic Fatigue'),(1477,'Samuel','Lopez','1983-06-15','F','2024-10-26','2024-10-29',63,4,'Multiple Sclerosis'),(1478,'Emily','Taylor','2002-12-20','F','2024-10-26','2024-10-27',43,3,'Bipolar Disorder'),(1479,'Lucas','Bell','1981-02-26','F','2024-11-01',NULL,67,6,'Vertigo'),(1480,'Noah','Adams','1956-11-20','F','2024-10-24',NULL,93,4,'Fibromyalgia'),(1481,'Joshua','Lee','1986-04-06','M','2024-10-31',NULL,100,1,'Stroke'),(1482,'Frank','Green','1962-12-19','M','2024-11-01','2024-11-04',87,3,'High Cholesterol'),(1483,'Sophie','Perez','1959-05-19','F','2024-10-30',NULL,74,5,'Allergy'),(1484,'Emma','Walker','1952-04-29','M','2024-10-31','2024-10-31',71,4,'Scoliosis'),(1485,'Noah','Ward','1981-12-22','M','2024-10-28',NULL,34,6,'Multiple Sclerosis'),(1486,'Grace','Bell','1945-04-26','F','2024-10-25','2024-10-26',73,10,'Arthritis'),(1487,'Madison','Murphy','1986-06-01','F','2024-10-26','2024-10-30',1,1,'Arthritis'),(1488,'Carol','Allen','2001-04-07','M','2024-10-30',NULL,28,3,'Tuberculosis'),(1489,'Ella','Thomas','1960-11-15','M','2024-11-01','2024-11-02',74,7,'Gout'),(1490,'Alice','Rivera','1993-01-11','F','2024-10-24','2024-10-26',50,9,'Gastroenteritis'),(1491,'Dave','Cooper','1971-07-21','F','2024-11-01',NULL,95,1,'Pancreatitis'),(1492,'Mason','Collins','1987-10-17','F','2024-11-01',NULL,8,8,'Sinusitis'),(1493,'Eva','Rodriguez','1970-12-23','M','2024-11-01','2024-11-03',83,9,'Asthma'),(1494,'Henry','Perez','1960-05-20','M','2024-10-23','2024-10-25',59,3,'Gout'),(1495,'Matthew','Hernandez','1996-02-06','F','2024-11-01',NULL,75,6,'PTSD'),(1496,'Frank','Murphy','1983-11-25','F','2024-10-24','2024-10-25',53,8,'Hemorrhoids'),(1497,'Evelyn','Hernandez','1983-08-22','M','2024-10-26',NULL,2,9,'Fracture'),(1498,'Mason','Cox','1999-09-16','F','2024-10-23',NULL,64,5,'Skin Rash'),(1499,'Lily','Carter','1987-04-23','F','2024-10-31',NULL,35,1,'Obesity'),(1500,'Matthew','Brown','1982-09-09','F','2024-11-01','2024-11-04',26,4,'Fracture'),(1501,'Nathan','Lee','1988-05-17','M','2024-10-24','2024-10-25',58,1,'Pancreatitis'),(1502,'Alexander','Cooper','1948-09-14','F','2024-10-27',NULL,12,8,'Conjunctivitis'),(1503,'Lily','Reed','1959-08-31','M','2024-10-26',NULL,75,5,'Bipolar Disorder'),(1504,'Alice','Miller','1985-06-26','M','2024-10-25','2024-10-27',57,2,'Ulcer'),(1505,'Sophia','Richardson','1981-07-23','M','2024-10-25',NULL,8,10,'Infection'),(1506,'Michael','Baker','1977-10-12','M','2024-10-25','2024-10-26',23,4,'Arthritis'),(1507,'Alice','Howard','1984-02-02','F','2024-10-27','2024-10-28',70,10,'Acid Reflux'),(1508,'Eva','Brown','1977-01-02','M','2024-10-26',NULL,37,1,'Chronic Fatigue'),(1509,'John','Perez','1996-04-11','F','2024-10-23',NULL,84,9,'Anxiety'),(1510,'Henry','Taylor','1950-05-26','M','2024-10-24','2024-10-27',90,3,'Anxiety'),(1511,'Jack','Perez','1949-06-29','F','2024-10-31',NULL,75,10,'Obesity'),(1512,'Lily','Evans','1982-10-30','M','2024-10-25',NULL,38,4,'Multiple Sclerosis'),(1513,'Ethan','Jackson','2004-01-07','M','2024-10-26',NULL,7,10,'Bipolar Disorder'),(1514,'Aiden','Nelson','1993-09-28','F','2024-10-24','2024-10-28',74,6,'Covid-19'),(1515,'Henry','Torres','1984-05-27','F','2024-10-24','2024-10-24',36,5,'Heart Disease'),(1516,'Victoria','Jones','1962-03-08','M','2024-10-24',NULL,99,5,'Heart Disease'),(1517,'Amelia','Hall','1957-04-01','M','2024-10-29',NULL,35,8,'Tuberculosis'),(1518,'Logan','Adams','1957-10-27','M','2024-10-31','2024-10-31',32,1,'Epilepsy'),(1519,'Alice','Parker','1955-10-02','F','2024-10-29','2024-11-01',3,6,'Chronic Fatigue'),(1520,'Eva','Davis','1961-05-19','F','2024-10-30',NULL,50,1,'Epilepsy'),(1521,'Oliver','Lee','1950-01-25','F','2024-10-28','2024-11-01',18,6,'Hypertension'),(1522,'Nora','Rodriguez','1966-07-01','F','2024-10-30',NULL,54,3,'Osteoporosis'),(1523,'Abigail','Evans','1970-02-19','F','2024-10-24','2024-10-26',41,10,'Multiple Sclerosis'),(1524,'Zoe','Torres','1951-02-18','F','2024-10-29','2024-10-30',85,7,'Migraine'),(1525,'Emma','Parker','1987-11-20','M','2024-11-01','2024-11-01',19,5,'Heart Disease'),(1526,'Emma','Murphy','1990-07-03','F','2024-11-01','2024-11-03',37,6,'Sleep Apnea'),(1527,'Isabella','Bailey','1985-03-07','F','2024-10-26',NULL,25,4,'COPD'),(1528,'Samuel','Smith','1969-01-26','M','2024-10-30',NULL,12,10,'Gallbladder Disease'),(1529,'Charlotte','Wright','1966-02-13','M','2024-10-23','2024-10-27',8,7,'Chronic Fatigue'),(1530,'Emma','Peterson','1985-03-28','M','2024-10-28',NULL,99,10,'Epilepsy'),(1531,'Logan','Green','1948-05-05','M','2024-10-30','2024-11-02',6,6,'Asthma'),(1532,'Ethan','Cook','2004-07-25','F','2024-11-01',NULL,69,6,'Panic Disorder'),(1533,'Isla','Anderson','1950-01-10','F','2024-10-28','2024-11-01',87,10,'Covid-19'),(1534,'Lily','Hill','1966-02-26','F','2024-11-01','2024-11-05',22,10,'Fibromyalgia'),(1535,'Zoe','Sanchez','1969-08-11','F','2024-10-27','2024-10-29',90,3,'Multiple Sclerosis'),(1536,'Logan','Evans','1971-10-09','M','2024-11-01',NULL,2,5,'Heart Disease'),(1537,'Eva','Richardson','1959-02-19','F','2024-10-28','2024-10-29',41,5,'Acid Reflux'),(1538,'Jacob','Murphy','1984-06-28','M','2024-10-28',NULL,47,8,'Stroke'),(1539,'Grace','Stewart','1988-04-27','M','2024-10-24',NULL,81,7,'Osteoporosis'),(1540,'Noah','Richardson','1962-10-11','F','2024-10-28','2024-10-28',7,7,'Diabetes'),(1541,'Olivia','Walker','1970-04-24','M','2024-10-24',NULL,73,3,'Anxiety'),(1542,'Sebastian','Morris','1999-12-06','F','2024-10-29','2024-11-01',81,9,'Sleep Apnea'),(1543,'Abigail','Rivera','1991-12-14','F','2024-10-25',NULL,83,3,'PTSD'),(1544,'Noah','Williams','1974-03-24','M','2024-10-29','2024-11-01',34,9,'Heart Disease'),(1545,'Sophie','Reed','1964-02-18','F','2024-10-30',NULL,55,5,'Chronic Fatigue'),(1546,'Frank','Walker','1946-06-23','M','2024-10-25','2024-10-27',36,4,'Scoliosis'),(1547,'Mia','Richardson','1970-12-16','M','2024-10-28',NULL,8,2,'Tuberculosis'),(1548,'Olivia','Howard','1971-05-17','F','2024-10-27',NULL,1,4,'Chronic Fatigue'),(1549,'Olivia','Collins','1959-02-10','F','2024-10-28','2024-10-28',37,8,'Ulcer'),(1550,'Isabella','Gray','1945-04-24','F','2024-10-31',NULL,27,1,'Herniated Disc'),(1551,'Sebastian','James','1995-02-22','M','2024-10-30',NULL,45,1,'Bipolar Disorder'),(1552,'Ella','Lee','1966-12-07','F','2024-11-01','2024-11-03',56,7,'Appendicitis'),(1553,'Bob','Rodriguez','2000-01-05','M','2024-10-29','2024-10-31',25,3,'Fracture'),(1554,'Joshua','Smith','1971-11-22','F','2024-10-27',NULL,88,3,'Liver Disease'),(1555,'Nora','Murphy','1986-12-05','F','2024-10-25',NULL,83,6,'PTSD'),(1556,'Samuel','Evans','1947-04-12','F','2024-10-24',NULL,56,3,'Conjunctivitis'),(1557,'Sebastian','Mitchell','1965-09-22','M','2024-10-26','2024-10-26',78,5,'Panic Disorder'),(1558,'Abigail','Roberts','1998-01-17','M','2024-10-24',NULL,39,8,'Ear Infection'),(1559,'Sophia','Morgan','2000-12-05','M','2024-10-29','2024-10-30',9,9,'Chronic Fatigue'),(1560,'Madison','Brown','1957-07-19','F','2024-10-29',NULL,23,5,'Epilepsy'),(1561,'Ethan','Brown','1998-06-05','M','2024-10-24',NULL,88,7,'Epilepsy'),(1562,'Eva','Hall','2001-08-13','M','2024-10-25',NULL,71,6,'Depression'),(1563,'Harper','Clark','1960-12-26','F','2024-11-01',NULL,96,2,'Infection'),(1564,'Ethan','Taylor','1963-08-17','M','2024-10-25',NULL,29,5,'Fracture'),(1565,'Harper','Murphy','2000-05-22','F','2024-10-30','2024-11-03',59,8,'Hemorrhoids'),(1566,'Oliver','Bailey','1974-06-03','M','2024-10-31','2024-11-02',24,3,'Vertigo'),(1567,'Evelyn','Harris','1987-11-10','M','2024-10-27',NULL,69,4,'Bronchitis'),(1568,'James','Baker','1994-04-08','M','2024-10-24',NULL,23,2,'Gallbladder Disease'),(1569,'Elijah','Harris','2004-08-03','F','2024-10-30','2024-10-30',36,3,'Gout'),(1570,'Aiden','Johnson','1972-03-18','M','2024-10-23',NULL,52,6,'Multiple Sclerosis'),(1571,'Benjamin','Morgan','1978-09-01','F','2024-10-29','2024-10-30',17,3,'Kidney Stones'),(1572,'Evelyn','Cooper','1974-08-22','F','2024-10-25',NULL,17,2,'Panic Disorder'),(1573,'Henry','Rodriguez','1953-07-25','M','2024-10-24','2024-10-26',54,8,'Infection'),(1574,'Sophie','Wright','1976-09-13','F','2024-10-31',NULL,71,10,'Skin Rash'),(1575,'Mason','Edwards','1956-10-28','M','2024-10-30','2024-11-02',60,4,'Kidney Stones'),(1576,'Joshua','Brown','1993-11-27','M','2024-10-29',NULL,19,3,'Vertigo'),(1577,'Mason','Wright','1973-08-30','M','2024-10-27',NULL,47,2,'Sinusitis'),(1578,'Eva','Mitchell','2001-12-23','M','2024-10-25','2024-10-29',60,7,'Scoliosis'),(1579,'Amelia','Morgan','1982-10-22','F','2024-10-23',NULL,83,2,'Multiple Sclerosis'),(1580,'Jack','Nelson','1966-06-21','M','2024-10-29','2024-11-01',23,6,'Liver Disease'),(1581,'Ethan','Davis','1991-10-08','F','2024-11-01','2024-11-01',66,5,'Hemorrhoids'),(1582,'Aiden','Green','1990-03-19','F','2024-10-31','2024-11-04',33,2,'Depression'),(1583,'Benjamin','Morgan','1999-03-01','M','2024-10-29','2024-10-30',74,4,'Covid-19'),(1584,'Isla','Scott','1976-01-19','M','2024-10-29',NULL,42,5,'Tuberculosis'),(1585,'Lily','Wright','1954-04-27','M','2024-10-30',NULL,34,3,'Tuberculosis'),(1586,'Carol','Morgan','1946-03-25','M','2024-10-28','2024-10-30',4,6,'Hepatitis'),(1587,'Noah','Johnson','1988-04-26','F','2024-10-31',NULL,82,1,'Gastroenteritis'),(1588,'Nora','Adams','1995-02-09','F','2024-11-01',NULL,13,8,'Asthma'),(1589,'Leo','Gonzalez','2001-08-25','F','2024-10-23',NULL,63,6,'Vertigo'),(1590,'Isabella','Morris','1956-07-18','M','2024-10-29','2024-10-29',45,6,'Hepatitis'),(1591,'Alexander','Hall','1950-03-12','M','2024-10-29','2024-10-29',91,1,'Gastroenteritis'),(1592,'Olivia','Allen','1990-10-22','F','2024-10-24','2024-10-24',36,3,'Covid-19'),(1593,'Abigail','Edwards','2004-05-21','M','2024-10-24','2024-10-28',39,8,'Hemorrhoids'),(1594,'Jacob','Jackson','1962-02-17','F','2024-10-30','2024-10-30',30,9,'Bipolar Disorder'),(1595,'Chloe','Lee','1960-08-27','F','2024-10-24','2024-10-26',6,1,'Skin Rash'),(1596,'Jack','Jackson','1994-03-18','F','2024-10-31','2024-11-04',45,4,'Scoliosis'),(1597,'Lucas','Gray','1976-03-01','F','2024-11-01',NULL,55,2,'Diabetes'),(1598,'Elijah','Campbell','2003-05-07','F','2024-10-27',NULL,88,4,'Ear Infection'),(1599,'Nathan','Wright','1984-04-08','M','2024-10-28','2024-11-01',82,7,'Gallbladder Disease'),(1600,'Chloe','Brown','1999-08-11','M','2024-10-28','2024-10-31',55,4,'Chronic Fatigue'),(1601,'Elijah','Martin','1954-04-29','F','2024-10-25',NULL,64,2,'Covid-19'),(1602,'Abigail','Walker','1972-09-03','F','2024-10-25','2024-10-28',81,10,'Sleep Apnea'),(1603,'Madison','Richardson','1974-03-31','F','2024-11-01','2024-11-05',22,4,'Appendicitis'),(1604,'Logan','Morris','1953-03-23','F','2024-10-25','2024-10-29',11,6,'Ulcer'),(1605,'Sophie','Allen','1994-06-07','F','2024-10-25',NULL,17,1,'Ulcer'),(1606,'Sophie','Hill','1993-05-18','F','2024-10-28','2024-11-01',57,7,'Sinusitis'),(1607,'Jacob','Campbell','1964-02-28','M','2024-10-28',NULL,68,10,'Migraine'),(1608,'Nathan','Williams','1979-03-20','F','2024-10-27',NULL,12,1,'Gout'),(1609,'Emma','Rodriguez','1983-07-15','F','2024-10-27','2024-10-28',47,1,'Fibromyalgia'),(1610,'Sophie','Nelson','2001-08-03','M','2024-10-28','2024-10-30',92,10,'Gastroenteritis'),(1611,'Henry','James','1961-12-23','F','2024-10-29',NULL,29,7,'High Cholesterol'),(1612,'Lily','Parker','1981-02-15','F','2024-10-23','2024-10-24',45,6,'Herniated Disc'),(1613,'Mason','Gonzalez','1993-10-19','M','2024-10-24',NULL,71,8,'Depression'),(1614,'Matthew','Edwards','1992-02-28','M','2024-10-27','2024-10-28',22,1,'Herniated Disc'),(1615,'Bob','Martin','2003-12-03','M','2024-10-28',NULL,93,3,'Heart Disease'),(1616,'Logan','Richardson','1991-08-11','M','2024-10-24',NULL,75,10,'Liver Disease'),(1617,'Jack','Bailey','1993-12-12','F','2024-10-29','2024-11-02',72,4,'PTSD'),(1618,'Matthew','Harris','1952-12-10','F','2024-10-26','2024-10-30',63,5,'Vertigo'),(1619,'Frank','Adams','1994-05-14','M','2024-10-28',NULL,40,10,'Gallbladder Disease'),(1620,'Olivia','Hall','1948-04-08','M','2024-10-25',NULL,67,2,'Fibromyalgia'),(1621,'Jacob','Stewart','1991-06-27','F','2024-11-01',NULL,38,5,'Skin Rash'),(1622,'Nathan','Jones','1960-10-06','F','2024-10-30','2024-11-03',46,8,'Depression'),(1623,'Ethan','Harris','1945-09-28','M','2024-10-29',NULL,20,3,'Gastroenteritis'),(1624,'Dave','Torres','1949-10-19','M','2024-10-23','2024-10-24',71,4,'Skin Rash'),(1625,'Liam','Green','1964-12-16','F','2024-10-24','2024-10-28',62,5,'Kidney Stones'),(1626,'Nathan','Hall','1998-06-02','F','2024-10-28',NULL,37,5,'Ulcer'),(1627,'Logan','Morris','1983-08-26','F','2024-10-29',NULL,70,8,'Pancreatitis'),(1628,'Elijah','Williams','1967-04-29','F','2024-10-29',NULL,7,10,'Stroke'),(1629,'Amelia','Turner','1949-12-26','M','2024-11-01','2024-11-05',61,1,'Fibromyalgia'),(1630,'Amelia','Perez','1997-03-16','M','2024-10-27',NULL,67,3,'Herniated Disc'),(1631,'Jack','Anderson','1972-10-24','M','2024-10-27',NULL,14,8,'Tuberculosis'),(1632,'Alexander','Lee','1998-11-08','F','2024-10-30','2024-11-02',47,2,'Chronic Fatigue'),(1633,'Abigail','Roberts','2000-12-19','M','2024-10-24','2024-10-28',87,3,'Vertigo'),(1634,'Liam','Clark','1989-06-19','M','2024-10-28',NULL,88,7,'Fracture'),(1635,'Sophia','Scott','1975-10-25','F','2024-10-24','2024-10-25',61,6,'Gallbladder Disease'),(1636,'Michael','Anderson','1965-05-13','M','2024-10-29','2024-11-02',79,9,'Migraine'),(1637,'Carol','Campbell','1971-06-07','M','2024-10-26','2024-10-28',75,5,'Bronchitis'),(1638,'Bob','King','1946-11-27','F','2024-10-31',NULL,40,8,'Chronic Fatigue'),(1639,'Zoe','Carter','2001-08-09','M','2024-10-23',NULL,48,1,'Panic Disorder'),(1640,'Matthew','Carter','1953-01-16','M','2024-10-31','2024-11-01',33,8,'Panic Disorder'),(1641,'Daniel','Scott','1947-11-26','M','2024-10-23','2024-10-24',30,3,'Epilepsy'),(1642,'Dave','Mitchell','1977-02-09','M','2024-10-30',NULL,21,1,'Chronic Fatigue'),(1643,'Abigail','Morris','1954-07-07','F','2024-10-24','2024-10-25',64,6,'Liver Disease'),(1644,'Olivia','Moore','1972-02-27','M','2024-10-24','2024-10-28',86,10,'Allergy'),(1645,'Elijah','Cook','1985-08-24','M','2024-10-30',NULL,72,4,'PTSD'),(1646,'Alice','Morgan','1955-11-20','F','2024-10-23',NULL,100,9,'Bipolar Disorder'),(1647,'Evelyn','Williams','1961-08-28','F','2024-10-30','2024-10-30',59,6,'Appendicitis'),(1648,'Grace','Jackson','1976-03-08','F','2024-10-24','2024-10-24',30,7,'Bipolar Disorder'),(1649,'Mia','Johnson','1990-08-24','M','2024-10-30','2024-11-03',88,5,'Gout'),(1650,'Joshua','Thomas','1960-09-22','F','2024-10-29',NULL,30,2,'PTSD'),(1651,'Jack','Taylor','1997-10-10','F','2024-10-31',NULL,72,6,'Scoliosis'),(1652,'Isabella','Davis','1971-04-29','F','2024-10-24','2024-10-25',27,6,'Heart Disease'),(1653,'Sophia','Mitchell','1956-01-15','M','2024-10-28',NULL,63,7,'Epilepsy'),(1654,'Benjamin','Gonzalez','1957-09-14','F','2024-10-27',NULL,75,2,'Pancreatitis'),(1655,'Sebastian','Richardson','1968-08-13','M','2024-10-31','2024-11-01',92,6,'Sleep Apnea'),(1656,'James','Rivera','1985-03-18','F','2024-10-26','2024-10-30',95,8,'Kidney Stones'),(1657,'Nathaniel','Evans','1989-11-07','F','2024-10-30',NULL,47,3,'Anxiety'),(1658,'Zoe','Bailey','1969-08-04','M','2024-11-01','2024-11-04',84,5,'Herniated Disc'),(1659,'Frank','Jones','1962-10-29','F','2024-10-30','2024-10-30',95,8,'Osteoporosis'),(1660,'Bob','Murphy','1953-03-10','M','2024-11-01',NULL,66,2,'Skin Rash'),(1661,'Frank','Young','1997-01-10','F','2024-10-24',NULL,80,9,'Depression'),(1662,'Chloe','Evans','1991-04-30','M','2024-11-01','2024-11-01',24,6,'Allergy'),(1663,'Logan','Johnson','1986-06-13','F','2024-11-01',NULL,45,2,'Scoliosis'),(1664,'Matthew','Howard','1977-09-08','F','2024-10-26',NULL,34,9,'Osteoporosis'),(1665,'Nora','Adams','1977-02-28','F','2024-10-25','2024-10-29',81,1,'Epilepsy'),(1666,'Bob','Anderson','1974-11-28','F','2024-10-29',NULL,1,6,'Obesity'),(1667,'Daniel','Sanchez','1963-04-01','F','2024-10-30',NULL,47,9,'Acid Reflux'),(1668,'Oliver','Clark','1970-01-29','M','2024-10-30','2024-11-02',38,9,'Diabetes'),(1669,'Jack','Cook','1959-03-26','F','2024-10-28','2024-10-31',47,1,'Obesity'),(1670,'James','Evans','1951-07-30','F','2024-10-28',NULL,41,9,'Vertigo'),(1671,'Carol','Walker','1985-06-29','M','2024-10-23',NULL,64,5,'Fracture'),(1672,'Samuel','Scott','1978-10-25','M','2024-10-25','2024-10-25',78,8,'Pneumonia'),(1673,'Jack','Ward','1963-01-29','F','2024-10-26',NULL,39,8,'Skin Rash'),(1674,'Ethan','Mitchell','1960-11-20','F','2024-10-30',NULL,45,8,'Fracture'),(1675,'Olivia','Torres','1948-03-31','F','2024-10-28','2024-10-29',69,9,'High Cholesterol'),(1676,'Sebastian','Gonzalez','1975-08-15','M','2024-10-31',NULL,63,1,'Fibromyalgia'),(1677,'Logan','Morris','1996-09-28','F','2024-10-31',NULL,12,3,'Sleep Apnea'),(1678,'Logan','Gray','1954-06-11','F','2024-11-01',NULL,60,6,'Parkinson\'s Disease'),(1679,'Isabella','Hill','1952-12-23','F','2024-10-30',NULL,55,6,'Depression'),(1680,'Nathaniel','Hall','2003-09-01','F','2024-10-28','2024-10-29',18,4,'Kidney Stones'),(1681,'Nora','Torres','1947-02-12','M','2024-10-24','2024-10-24',37,8,'PTSD'),(1682,'Sophie','Cooper','1956-05-15','F','2024-10-25','2024-10-28',9,2,'Hepatitis'),(1683,'Lily','Peterson','1947-09-26','M','2024-10-26','2024-10-28',6,4,'Depression'),(1684,'Sophie','Harris','1955-08-15','F','2024-10-28',NULL,83,5,'Liver Disease'),(1685,'Lucas','Nelson','1995-11-28','F','2024-10-30',NULL,8,1,'Fibromyalgia'),(1686,'Charlotte','Hernandez','1956-06-29','M','2024-10-23','2024-10-27',86,2,'Pneumonia'),(1687,'Leo','Brown','1977-07-26','F','2024-10-24','2024-10-26',27,10,'Skin Rash'),(1688,'Lucas','Nelson','1947-10-12','F','2024-10-31',NULL,76,1,'PTSD'),(1689,'Chloe','Rivera','1986-09-11','F','2024-10-25',NULL,36,8,'Scoliosis'),(1690,'Ethan','Ramirez','1972-02-29','F','2024-11-01','2024-11-02',10,3,'Panic Disorder'),(1691,'Dave','Young','1957-05-24','F','2024-10-24','2024-10-26',100,1,'Ulcer'),(1692,'Zoe','Gonzalez','1964-03-21','M','2024-10-24',NULL,15,1,'Acid Reflux'),(1693,'Olivia','Allen','1952-08-06','F','2024-10-31',NULL,32,3,'Seasonal Flu'),(1694,'Abigail','Martin','1973-02-25','M','2024-10-24','2024-10-27',19,5,'Chronic Fatigue'),(1695,'Aiden','Wilson','1954-03-07','M','2024-10-26',NULL,5,1,'Ulcer'),(1696,'John','Miller','1961-04-13','M','2024-10-23',NULL,49,1,'Hemorrhoids'),(1697,'Nora','Cook','1953-02-06','F','2024-10-30',NULL,17,4,'Tuberculosis'),(1698,'Jack','Collins','1979-12-28','F','2024-10-30','2024-10-30',45,2,'Panic Disorder'),(1699,'Sebastian','James','1964-12-22','F','2024-10-28','2024-11-01',97,1,'High Cholesterol'),(1700,'Alice','Bailey','1985-10-27','M','2024-10-28',NULL,59,10,'Stroke'),(1701,'Chloe','Perez','1983-06-23','M','2024-10-23','2024-10-26',47,8,'COPD'),(1702,'Chloe','Allen','1946-08-15','M','2024-10-26','2024-10-29',12,4,'High Cholesterol'),(1703,'Nathaniel','Williams','1951-06-21','M','2024-10-30','2024-10-31',63,4,'Sleep Apnea'),(1704,'Daniel','Bailey','1962-11-25','M','2024-10-30',NULL,42,9,'Parkinson\'s Disease'),(1705,'Emma','Thomas','1950-07-02','M','2024-11-01',NULL,5,5,'Obesity'),(1706,'Liam','Hill','1983-06-20','M','2024-10-31','2024-11-03',75,2,'Panic Disorder'),(1707,'Grace','Bell','1946-06-23','M','2024-10-31','2024-11-01',58,9,'Covid-19'),(1708,'Nathan','Anderson','1990-08-27','M','2024-10-25',NULL,94,7,'Hypertension'),(1709,'Abigail','King','1953-10-30','M','2024-10-24',NULL,73,1,'Asthma'),(1710,'Sophia','Campbell','1954-05-23','F','2024-10-25',NULL,31,6,'Arthritis'),(1711,'Harper','Cook','2003-11-08','M','2024-10-30','2024-10-30',45,6,'Diabetes'),(1712,'Charlotte','Perez','1961-07-12','F','2024-10-28','2024-10-29',20,3,'COPD'),(1713,'Noah','Thomas','1951-06-30','F','2024-10-28','2024-10-31',36,10,'Fibromyalgia'),(1714,'Grace','Garcia','1965-06-15','F','2024-10-31',NULL,29,2,'Fibromyalgia'),(1715,'Benjamin','Hall','1974-04-04','M','2024-10-30',NULL,95,5,'Covid-19'),(1716,'Jack','Bell','1999-09-18','F','2024-10-25',NULL,4,6,'Allergy'),(1717,'Aiden','Howard','1990-03-31','M','2024-10-31',NULL,37,10,'Tuberculosis'),(1718,'Chloe','Jones','1985-05-28','M','2024-10-31','2024-10-31',40,8,'Migraine'),(1719,'Joshua','Taylor','1987-01-21','M','2024-10-25',NULL,28,9,'Conjunctivitis'),(1720,'Isabella','Martin','2002-03-14','F','2024-10-30',NULL,59,1,'Obesity'),(1721,'Sebastian','Turner','1945-09-17','F','2024-10-26','2024-10-28',36,6,'Pancreatitis'),(1722,'Grace','Brown','1977-02-06','M','2024-10-26',NULL,25,1,'Anxiety'),(1723,'Liam','Parker','1974-03-19','M','2024-10-27',NULL,1,6,'Fibromyalgia'),(1724,'Benjamin','Richardson','2001-12-08','M','2024-10-25','2024-10-29',81,1,'Epilepsy'),(1725,'Sophia','Morris','1947-11-04','M','2024-10-29','2024-11-01',14,8,'PTSD'),(1726,'Elijah','King','1999-08-09','M','2024-10-25',NULL,8,6,'Pneumonia'),(1727,'Leo','Bailey','1977-11-12','M','2024-10-24','2024-10-28',43,5,'Herniated Disc'),(1728,'Victoria','Perez','2003-01-01','F','2024-10-27',NULL,36,7,'Herniated Disc'),(1729,'Michael','Roberts','1980-03-24','M','2024-10-25','2024-10-29',67,7,'Liver Disease'),(1730,'Jane','Cooper','1950-08-10','F','2024-11-01',NULL,34,2,'Pancreatitis'),(1731,'Frank','Reed','1986-07-22','F','2024-10-30',NULL,84,9,'Skin Rash'),(1732,'Carol','Reed','1948-12-03','F','2024-10-29',NULL,97,10,'Bipolar Disorder'),(1733,'Daniel','Parker','1994-01-07','M','2024-10-25',NULL,94,10,'Obesity'),(1734,'Madison','Morgan','1990-11-27','M','2024-11-01',NULL,20,6,'Fibromyalgia'),(1735,'Sophia','Ward','1993-04-10','F','2024-10-27','2024-10-31',100,7,'Hemorrhoids'),(1736,'Nathan','Sanchez','1983-09-25','M','2024-10-29','2024-11-02',85,4,'Herniated Disc'),(1737,'Sophia','Wright','1966-02-09','F','2024-11-01','2024-11-02',94,10,'Hepatitis'),(1738,'Bob','Bailey','1953-01-06','F','2024-10-23','2024-10-25',66,9,'Migraine'),(1739,'Alexander','Thomas','1968-01-10','M','2024-10-28',NULL,2,7,'Ear Infection'),(1740,'Emma','Lee','1988-09-27','M','2024-10-30',NULL,56,2,'Migraine'),(1741,'Emily','Perez','1951-04-03','F','2024-10-25',NULL,46,8,'Fracture'),(1742,'Sophie','Brown','1958-03-03','M','2024-10-25',NULL,48,8,'Bronchitis'),(1743,'Henry','Stewart','2003-02-10','F','2024-10-27',NULL,35,5,'Gallbladder Disease'),(1744,'Lily','King','1999-02-17','M','2024-10-26','2024-10-26',50,6,'Herniated Disc'),(1745,'Emily','Murphy','1974-06-08','M','2024-10-24','2024-10-26',50,1,'Liver Disease'),(1746,'Benjamin','Torres','1990-10-06','F','2024-10-28',NULL,5,8,'Gastroenteritis'),(1747,'Abigail','Sanchez','1965-08-31','M','2024-10-23','2024-10-27',8,6,'Liver Disease'),(1748,'Harper','Morgan','1989-07-23','M','2024-11-01',NULL,34,7,'Multiple Sclerosis'),(1749,'Elijah','Reed','1981-02-16','F','2024-10-25','2024-10-25',90,3,'Sinusitis'),(1750,'Jackson','Taylor','1948-09-30','F','2024-10-24','2024-10-26',23,2,'Stroke'),(1751,'Noah','Miller','1955-08-16','M','2024-10-28',NULL,42,2,'Heart Disease'),(1752,'Madison','Ward','1991-10-08','F','2024-10-31',NULL,34,4,'Hepatitis'),(1753,'Nora','Roberts','1970-08-08','M','2024-10-29','2024-10-29',93,8,'Multiple Sclerosis'),(1754,'Isabella','Harris','1981-01-11','F','2024-10-28',NULL,79,9,'Scoliosis'),(1755,'Jacob','Allen','1974-10-02','F','2024-10-29','2024-11-01',27,2,'Skin Rash'),(1756,'Grace','Walker','1974-07-18','F','2024-10-23',NULL,55,5,'Hepatitis'),(1757,'Carol','Howard','1967-05-12','F','2024-10-28','2024-10-29',47,4,'Gallbladder Disease'),(1758,'Aiden','Stewart','1990-02-04','F','2024-10-31','2024-11-02',56,10,'Skin Rash'),(1759,'Jack','Morris','1984-09-25','F','2024-10-26',NULL,10,6,'Parkinson\'s Disease'),(1760,'Joshua','Hill','1977-10-06','M','2024-10-25','2024-10-26',70,1,'Bronchitis'),(1761,'Lucas','Jones','1987-10-12','M','2024-10-31',NULL,2,7,'Obesity'),(1762,'Eva','Rodriguez','1973-02-10','M','2024-11-01',NULL,100,6,'Ear Infection'),(1763,'Henry','Morris','1980-09-05','F','2024-11-01',NULL,5,3,'Ulcer'),(1764,'Harper','Richardson','1988-10-22','M','2024-10-23','2024-10-24',91,6,'Anxiety'),(1765,'Zoe','Allen','1971-08-19','M','2024-10-27','2024-10-31',47,10,'Bipolar Disorder'),(1766,'Henry','Williams','2003-07-19','F','2024-10-30',NULL,52,8,'Acid Reflux'),(1767,'Mason','Richardson','1955-06-26','M','2024-10-25','2024-10-28',37,8,'Acid Reflux'),(1768,'Lucas','Roberts','1995-06-03','M','2024-10-25',NULL,42,2,'Kidney Stones'),(1769,'Jacob','James','1991-04-18','M','2024-10-28',NULL,51,6,'Sleep Apnea'),(1770,'Mason','Collins','1971-01-13','M','2024-10-31',NULL,72,1,'Bipolar Disorder'),(1771,'Ethan','James','1988-05-21','F','2024-10-24','2024-10-27',8,4,'Sleep Apnea'),(1772,'Oliver','Nelson','1950-02-01','M','2024-10-30',NULL,77,6,'Liver Disease'),(1773,'Ava','Smith','1957-02-08','M','2024-10-27','2024-10-30',20,2,'Covid-19'),(1774,'Ethan','Perez','1971-11-25','F','2024-10-29','2024-10-29',87,7,'Fibromyalgia'),(1775,'Daniel','Smith','1955-07-20','F','2024-10-23','2024-10-27',46,4,'PTSD'),(1776,'Isla','Gray','2001-03-03','F','2024-10-27',NULL,35,4,'PTSD'),(1777,'Jack','Garcia','1981-06-04','F','2024-10-25','2024-10-29',21,9,'Pneumonia'),(1778,'Isla','Murphy','2003-05-23','F','2024-10-30',NULL,80,4,'Pancreatitis'),(1779,'Nora','Walker','1980-04-26','F','2024-10-31','2024-10-31',57,6,'Epilepsy'),(1780,'Ella','Allen','1956-11-02','M','2024-10-23',NULL,29,4,'Sleep Apnea'),(1781,'Liam','Adams','1957-10-21','F','2024-10-23',NULL,59,9,'Gout'),(1782,'Leo','Rivera','1982-05-19','M','2024-10-29','2024-10-31',2,1,'Hemorrhoids'),(1783,'Ethan','Lee','1974-12-07','F','2024-10-24',NULL,41,7,'Hepatitis'),(1784,'Matthew','Cooper','1989-06-08','M','2024-10-23','2024-10-23',92,6,'Depression'),(1785,'Victoria','Ward','1994-12-20','M','2024-10-27',NULL,73,4,'Ear Infection'),(1786,'Abigail','Ward','1994-09-28','M','2024-10-30','2024-11-01',74,7,'Vertigo'),(1787,'Evelyn','Parker','2000-08-26','F','2024-10-26',NULL,76,2,'Arthritis'),(1788,'Madison','Gray','1954-08-26','F','2024-11-01','2024-11-04',59,10,'Hemorrhoids'),(1789,'Madison','Murphy','1989-10-01','M','2024-10-25','2024-10-25',81,10,'Osteoporosis'),(1790,'Joshua','Allen','1988-01-29','M','2024-10-27',NULL,47,2,'Anxiety'),(1791,'Aiden','Miller','1956-06-25','M','2024-10-24',NULL,62,6,'Sinusitis'),(1792,'John','Perez','1986-04-21','F','2024-10-26',NULL,55,4,'Covid-19'),(1793,'Alice','Turner','1949-04-15','F','2024-10-28','2024-10-31',48,3,'Migraine'),(1794,'Carol','James','1975-01-01','M','2024-10-29','2024-11-01',92,4,'Skin Rash'),(1795,'Bob','Morgan','1955-01-19','F','2024-10-23','2024-10-23',64,8,'Sinusitis'),(1796,'Jacob','Martinez','1997-07-03','F','2024-10-26',NULL,91,1,'Asthma'),(1797,'Ella','Peterson','1945-02-16','M','2024-10-30','2024-10-30',23,4,'COPD'),(1798,'Oliver','Davis','1987-02-28','M','2024-10-31',NULL,12,7,'Multiple Sclerosis'),(1799,'Nathan','Campbell','1981-09-10','M','2024-10-24','2024-10-28',2,7,'Fracture'),(1800,'Charlotte','Baker','1968-07-20','M','2024-10-31','2024-11-04',87,5,'Seasonal Flu'),(1801,'Chloe','Young','1985-07-28','F','2024-10-31','2024-10-31',45,2,'Heart Disease'),(1802,'Nathaniel','Baker','1963-04-10','F','2024-10-30','2024-11-03',95,4,'Hemorrhoids'),(1803,'Charlotte','Murphy','2002-12-23','M','2024-10-26','2024-10-29',59,3,'Pneumonia'),(1804,'Madison','Scott','1956-08-13','M','2024-10-26',NULL,15,9,'Asthma'),(1805,'John','Evans','1955-02-11','M','2024-10-26','2024-10-29',27,5,'Stroke'),(1806,'Madison','Anderson','1989-06-13','F','2024-10-27',NULL,28,10,'Hemorrhoids'),(1807,'Aiden','Rodriguez','1963-03-02','F','2024-11-01',NULL,76,9,'Bronchitis'),(1808,'James','Hernandez','1957-05-04','F','2024-10-26','2024-10-28',66,5,'Pancreatitis'),(1809,'Charlotte','Evans','1991-01-03','M','2024-10-27',NULL,83,9,'Liver Disease'),(1810,'Grace','Roberts','1988-10-27','F','2024-10-31',NULL,2,2,'Kidney Stones'),(1811,'Frank','Cox','1975-01-19','M','2024-10-28',NULL,42,5,'PTSD'),(1812,'Ethan','Hernandez','1948-08-20','F','2024-10-28',NULL,34,4,'Sinusitis'),(1813,'James','Adams','1970-06-23','M','2024-10-30','2024-11-01',11,3,'Pancreatitis'),(1814,'Abigail','Rodriguez','1959-08-07','M','2024-11-01',NULL,68,4,'Multiple Sclerosis'),(1815,'Charlotte','Baker','2002-04-07','F','2024-10-30','2024-11-03',98,9,'Ear Infection'),(1816,'Benjamin','Martinez','1967-06-25','F','2024-10-26',NULL,22,3,'Infection'),(1817,'Charlotte','Morris','1969-07-16','M','2024-10-29','2024-11-01',78,9,'Epilepsy'),(1818,'Mason','Stewart','1997-03-22','F','2024-10-29','2024-10-31',51,1,'Ear Infection'),(1819,'Zoe','Lee','1985-06-05','F','2024-10-29',NULL,31,2,'Ear Infection'),(1820,'Harper','Green','1946-06-21','F','2024-10-29','2024-10-29',42,4,'High Cholesterol'),(1821,'Noah','Wright','1988-02-02','M','2024-10-28','2024-10-28',5,4,'Bipolar Disorder'),(1822,'Dave','Wright','1999-01-05','M','2024-10-23','2024-10-25',16,1,'Infection'),(1823,'Isabella','Nelson','1951-09-13','F','2024-10-27','2024-10-29',98,3,'Epilepsy'),(1824,'Emily','Walker','1972-02-15','F','2024-10-25','2024-10-27',90,8,'Chronic Fatigue'),(1825,'Ella','Mitchell','1997-01-08','M','2024-10-24',NULL,77,7,'Liver Disease'),(1826,'Sophia','Edwards','1965-02-17','M','2024-10-23',NULL,86,2,'Hypertension'),(1827,'Isla','King','1949-09-17','M','2024-10-24','2024-10-25',51,4,'Allergy'),(1828,'Bob','Nelson','1968-03-12','M','2024-10-30',NULL,88,7,'Hepatitis'),(1829,'Elijah','Scott','1997-01-09','M','2024-10-28','2024-10-29',95,7,'Anxiety'),(1830,'Bob','Howard','1988-04-19','F','2024-10-28',NULL,42,7,'Gallbladder Disease'),(1831,'Benjamin','Ward','1979-07-25','F','2024-10-23','2024-10-26',45,5,'Appendicitis'),(1832,'John','Jackson','1954-04-30','M','2024-10-30','2024-11-02',61,4,'Hepatitis'),(1833,'Isabella','Allen','1954-06-27','F','2024-10-31','2024-10-31',17,10,'Hemorrhoids'),(1834,'Benjamin','Murphy','1965-12-06','F','2024-10-30','2024-11-03',7,9,'Tuberculosis'),(1835,'Ethan','Lee','1964-10-29','F','2024-10-25','2024-10-25',38,2,'Depression'),(1836,'Joshua','Wright','1958-02-21','F','2024-10-24','2024-10-24',51,7,'Bipolar Disorder'),(1837,'Sophie','Peterson','1950-03-03','F','2024-10-30','2024-11-01',20,6,'Bronchitis'),(1838,'Olivia','Gray','1971-12-11','M','2024-10-24','2024-10-24',39,4,'Asthma'),(1839,'Liam','Mitchell','2004-03-03','M','2024-10-27',NULL,29,9,'Sleep Apnea'),(1840,'John','Bailey','1978-04-02','F','2024-10-26',NULL,11,2,'Scoliosis'),(1841,'Grace','Allen','1994-08-12','F','2024-10-31',NULL,98,7,'Obesity'),(1842,'Chloe','Moore','1966-07-27','F','2024-10-23','2024-10-27',36,3,'Migraine'),(1843,'Nathaniel','Scott','1999-06-24','F','2024-10-24',NULL,31,9,'Conjunctivitis'),(1844,'Madison','Taylor','1988-03-07','M','2024-10-24','2024-10-27',7,3,'Bronchitis'),(1845,'Matthew','Wright','2000-02-03','M','2024-10-25',NULL,13,5,'Anxiety'),(1846,'Alexander','Evans','1998-03-22','F','2024-10-28','2024-10-31',91,7,'Depression'),(1847,'Alexander','Rivera','1989-02-03','F','2024-10-28',NULL,13,1,'Gastroenteritis'),(1848,'Aiden','Roberts','2003-10-27','M','2024-10-25',NULL,15,1,'Conjunctivitis'),(1849,'Amelia','Harris','1952-08-09','F','2024-11-01','2024-11-01',2,8,'Ulcer'),(1850,'Mason','Rodriguez','1976-01-30','F','2024-10-30',NULL,23,7,'Hemorrhoids'),(1851,'Harper','Parker','1999-03-08','F','2024-10-29',NULL,1,3,'Gallbladder Disease'),(1852,'Elijah','King','1990-11-19','F','2024-10-30','2024-10-30',88,4,'Osteoporosis'),(1853,'Alice','Wright','1971-09-02','M','2024-10-24',NULL,12,8,'Tuberculosis'),(1854,'Olivia','Gray','1970-12-11','F','2024-10-30',NULL,78,5,'Chronic Fatigue'),(1855,'Eva','Evans','1996-06-29','M','2024-10-24','2024-10-25',79,10,'Chronic Fatigue'),(1856,'Eva','Stewart','1986-02-06','M','2024-10-30',NULL,2,7,'Scoliosis'),(1857,'Victoria','Williams','1955-05-17','F','2024-10-31',NULL,46,2,'Ear Infection'),(1858,'Ava','Miller','1956-06-30','M','2024-10-27','2024-10-28',73,10,'Kidney Stones'),(1859,'Ella','Wilson','1976-08-01','M','2024-10-29',NULL,60,9,'Sleep Apnea'),(1860,'Ethan','Hernandez','1949-08-20','M','2024-10-23','2024-10-24',18,4,'Migraine'),(1861,'John','Mitchell','1952-09-08','F','2024-10-24',NULL,76,9,'Herniated Disc'),(1862,'Jane','Cook','1957-01-01','M','2024-10-31',NULL,12,4,'Gout'),(1863,'Liam','Walker','1947-07-05','F','2024-10-31','2024-11-01',23,5,'Obesity'),(1864,'Dave','Clark','1989-11-23','M','2024-10-30',NULL,18,6,'High Cholesterol'),(1865,'Chloe','Howard','1989-11-28','F','2024-10-23','2024-10-25',34,3,'Vertigo'),(1866,'Elijah','Harris','1994-07-06','F','2024-10-26','2024-10-27',64,4,'Acid Reflux'),(1867,'Noah','Martin','1960-11-28','M','2024-11-01',NULL,1,10,'Acid Reflux'),(1868,'Elijah','Reed','1974-02-05','M','2024-10-25',NULL,82,6,'Chronic Fatigue'),(1869,'Isabella','Phillips','1987-03-21','M','2024-10-28',NULL,93,8,'Kidney Stones'),(1870,'Benjamin','Stewart','2002-02-26','F','2024-10-25',NULL,93,3,'Bipolar Disorder'),(1871,'Eva','Jackson','1981-06-02','M','2024-10-27',NULL,98,7,'Sleep Apnea'),(1872,'Ella','Carter','1988-04-23','M','2024-10-26','2024-10-29',91,6,'Gallbladder Disease'),(1873,'Samuel','Morris','1993-10-09','M','2024-10-26',NULL,89,5,'Sinusitis'),(1874,'Jack','Taylor','1957-09-03','F','2024-10-29',NULL,47,10,'Infection'),(1875,'Olivia','Howard','1977-07-29','M','2024-11-01',NULL,87,2,'Skin Rash'),(1876,'Mia','Williams','1954-11-24','F','2024-10-29',NULL,64,5,'Chronic Fatigue'),(1877,'Zoe','Lee','2003-05-27','F','2024-10-31',NULL,7,6,'Heart Disease'),(1878,'Zoe','Turner','1966-07-12','M','2024-10-23','2024-10-23',80,6,'Scoliosis'),(1879,'Matthew','Roberts','1998-08-07','M','2024-10-25',NULL,6,1,'Obesity'),(1880,'Sophia','Brown','1977-06-04','F','2024-10-26',NULL,61,9,'Fibromyalgia'),(1881,'Benjamin','Davis','1990-07-15','F','2024-10-30','2024-10-31',46,6,'Conjunctivitis'),(1882,'Nathaniel','Evans','2003-05-07','F','2024-10-29','2024-10-29',46,1,'Osteoporosis'),(1883,'Liam','Martinez','1995-01-04','M','2024-10-24',NULL,3,4,'Pneumonia'),(1884,'Isabella','Walker','1949-05-03','F','2024-10-31',NULL,75,1,'Tuberculosis'),(1885,'Nathaniel','Baker','1997-10-27','F','2024-10-26',NULL,58,7,'Gout'),(1886,'Abigail','Moore','1952-11-24','M','2024-10-23','2024-10-25',23,10,'Epilepsy'),(1887,'Abigail','Torres','1956-10-16','M','2024-11-01',NULL,51,8,'Gallbladder Disease'),(1888,'Alexander','Scott','1986-06-06','F','2024-10-27','2024-10-27',24,3,'Hepatitis'),(1889,'Zoe','Gonzalez','1989-02-27','F','2024-10-23',NULL,46,10,'Hepatitis'),(1890,'Ethan','Hill','1951-05-19','M','2024-10-27',NULL,25,8,'Seasonal Flu'),(1891,'Jackson','Martin','1953-11-22','F','2024-10-26',NULL,3,8,'Allergy'),(1892,'Elijah','Green','2000-09-05','F','2024-11-01',NULL,4,4,'Heart Disease'),(1893,'Jacob','Hernandez','1945-01-31','M','2024-10-24',NULL,42,5,'Ulcer'),(1894,'Ava','Cook','1996-10-05','M','2024-10-23',NULL,80,3,'Multiple Sclerosis'),(1895,'Victoria','Perez','1973-10-13','F','2024-10-27','2024-10-30',90,6,'Infection'),(1896,'Nathan','Sanchez','1994-05-17','F','2024-10-23','2024-10-25',10,3,'Pneumonia'),(1897,'Nora','Bailey','1950-11-09','M','2024-10-28','2024-10-29',82,2,'Epilepsy'),(1898,'Emma','Green','2002-07-29','M','2024-11-01',NULL,99,10,'Liver Disease'),(1899,'Alexander','Perez','1975-08-02','F','2024-10-26','2024-10-28',10,2,'Herniated Disc'),(1900,'Joshua','Collins','1976-03-06','M','2024-10-25','2024-10-28',19,4,'Liver Disease'),(1901,'Eva','Turner','1966-02-08','F','2024-10-31','2024-10-31',55,1,'Hepatitis'),(1902,'Charlotte','Adams','2001-06-23','F','2024-10-31','2024-11-03',70,9,'Covid-19'),(1903,'Emma','Bell','1955-08-04','F','2024-11-01',NULL,44,8,'Heart Disease'),(1904,'Nathan','Taylor','1947-01-01','F','2024-11-01','2024-11-02',14,5,'Bronchitis'),(1905,'Liam','Rivera','1990-02-15','F','2024-10-30','2024-10-31',23,2,'Infection'),(1906,'Jackson','Turner','1966-06-26','F','2024-10-24',NULL,6,6,'Skin Rash'),(1907,'Abigail','Baker','1983-03-17','M','2024-10-31','2024-10-31',49,8,'Gastroenteritis'),(1908,'Aiden','Lopez','2001-09-10','F','2024-10-24',NULL,21,5,'Multiple Sclerosis'),(1909,'Isabella','Roberts','1963-01-23','F','2024-10-23','2024-10-27',79,6,'Epilepsy'),(1910,'Henry','King','1966-04-30','M','2024-10-28',NULL,71,10,'Epilepsy'),(1911,'Olivia','Parker','1952-03-28','M','2024-10-26',NULL,11,7,'High Cholesterol'),(1912,'Jackson','Edwards','1985-03-20','F','2024-10-30',NULL,51,10,'Chronic Fatigue'),(1913,'Noah','Collins','1984-03-22','F','2024-10-28','2024-11-01',77,8,'COPD'),(1914,'Sophie','Martinez','1954-12-25','M','2024-10-24',NULL,41,3,'Depression'),(1915,'Nathan','Gray','1972-10-08','F','2024-10-23',NULL,93,10,'Multiple Sclerosis'),(1916,'Madison','Martin','1988-04-27','F','2024-10-29','2024-10-31',62,5,'Infection'),(1917,'Lily','Perez','1992-04-04','M','2024-10-26',NULL,95,7,'Panic Disorder'),(1918,'Nora','Garcia','1993-02-15','F','2024-10-25','2024-10-26',37,5,'Anxiety'),(1919,'Isabella','Lee','1948-05-04','F','2024-10-25',NULL,7,2,'Pancreatitis'),(1920,'Benjamin','Phillips','1977-12-27','M','2024-11-01','2024-11-02',51,2,'Skin Rash'),(1921,'Benjamin','Bailey','1945-05-09','F','2024-10-27',NULL,23,6,'Pneumonia'),(1922,'Madison','Scott','1974-04-03','M','2024-10-29','2024-10-31',91,9,'Vertigo'),(1923,'Joshua','Miller','1986-12-16','F','2024-10-25','2024-10-26',5,3,'Obesity'),(1924,'Frank','Roberts','1973-10-20','M','2024-10-26',NULL,31,5,'Stroke'),(1925,'Frank','Lopez','2000-12-09','F','2024-11-01',NULL,21,4,'Epilepsy'),(1926,'Charlotte','Torres','1995-05-14','F','2024-10-29',NULL,47,10,'Infection'),(1927,'Lucas','Garcia','1945-02-22','M','2024-10-29','2024-10-29',10,7,'COPD'),(1928,'Ella','Martinez','1949-05-26','M','2024-10-25','2024-10-29',80,9,'Diabetes'),(1929,'Sophie','King','1990-03-24','M','2024-11-01','2024-11-01',2,6,'PTSD'),(1930,'Bob','Miller','1990-05-31','F','2024-10-28','2024-11-01',100,7,'Obesity'),(1931,'Elijah','Nelson','1992-01-16','M','2024-10-27','2024-10-31',87,8,'Liver Disease'),(1932,'James','Miller','1953-04-11','F','2024-10-27','2024-10-29',78,6,'Parkinson\'s Disease'),(1933,'Evelyn','Sanchez','1973-08-15','F','2024-10-23','2024-10-27',86,6,'Heart Disease'),(1934,'Lily','Taylor','1949-04-23','M','2024-10-26',NULL,6,10,'Covid-19'),(1935,'Charlotte','Collins','1968-07-19','F','2024-10-25',NULL,75,10,'Multiple Sclerosis'),(1936,'Mason','Williams','1974-12-02','M','2024-10-31','2024-11-02',27,5,'Asthma'),(1937,'John','Brown','1995-10-24','M','2024-10-23','2024-10-24',21,7,'Panic Disorder'),(1938,'Michael','Adams','1962-12-04','M','2024-11-01','2024-11-05',60,3,'PTSD'),(1939,'Ava','Bailey','1997-04-16','M','2024-10-25',NULL,36,5,'Hemorrhoids'),(1940,'Aiden','Roberts','1973-06-30','F','2024-10-24',NULL,42,8,'Gallbladder Disease'),(1941,'Charlotte','Martin','1999-07-01','F','2024-10-23','2024-10-25',24,10,'Herniated Disc'),(1942,'Daniel','Rodriguez','1972-07-12','F','2024-10-30','2024-10-31',93,8,'Gallbladder Disease'),(1943,'Noah','Davis','1966-04-04','M','2024-10-25','2024-10-26',55,3,'Fracture'),(1944,'Carol','Green','1961-11-25','F','2024-11-01',NULL,69,1,'Ear Infection'),(1945,'Jacob','Murphy','1996-10-06','F','2024-10-23',NULL,20,7,'High Cholesterol'),(1946,'Lily','Thomas','1983-03-05','M','2024-10-26',NULL,99,6,'Herniated Disc'),(1947,'Abigail','Thomas','1971-08-09','F','2024-10-24','2024-10-26',20,9,'Diabetes'),(1948,'Noah','Smith','1970-11-21','M','2024-10-27',NULL,34,1,'Conjunctivitis'),(1949,'Ethan','Cooper','1977-10-23','F','2024-10-25','2024-10-28',92,2,'Pancreatitis'),(1950,'Carol','Green','1966-11-01','M','2024-10-27','2024-10-31',35,10,'Ulcer'),(1951,'Amelia','Morgan','1988-11-07','M','2024-10-25',NULL,22,9,'Sleep Apnea'),(1952,'Jack','Williams','1961-08-05','F','2024-10-26',NULL,84,5,'Obesity'),(1953,'Dave','Baker','1948-12-08','F','2024-10-26',NULL,8,4,'Heart Disease'),(1954,'Jacob','Reed','1997-11-17','M','2024-10-28','2024-10-30',59,3,'Bipolar Disorder'),(1955,'Emily','Roberts','1947-04-16','F','2024-11-01',NULL,58,4,'Panic Disorder'),(1956,'Carol','Jackson','1983-03-17','M','2024-10-26',NULL,60,6,'Gastroenteritis'),(1957,'Frank','Gray','1970-03-29','M','2024-10-30',NULL,55,7,'Covid-19'),(1958,'Charlotte','Cook','1993-07-04','F','2024-10-30','2024-11-02',67,7,'Liver Disease'),(1959,'Chloe','Richardson','1996-10-11','M','2024-11-01','2024-11-03',15,4,'Multiple Sclerosis'),(1960,'Jacob','Baker','1946-09-21','M','2024-10-30','2024-11-03',10,10,'Seasonal Flu'),(1961,'Michael','Brown','1982-03-01','M','2024-10-28',NULL,45,10,'Anxiety'),(1962,'Jacob','Gonzalez','1979-03-15','M','2024-10-31',NULL,37,5,'Obesity'),(1963,'Noah','Thomas','1966-07-16','F','2024-11-01',NULL,85,10,'Heart Disease'),(1964,'Dave','Garcia','1988-12-05','M','2024-10-30',NULL,53,7,'Liver Disease'),(1965,'Sophia','Williams','2003-11-26','M','2024-10-30','2024-10-31',79,5,'Ulcer'),(1966,'Madison','Hernandez','1986-04-13','M','2024-11-01','2024-11-03',68,9,'Gallbladder Disease'),(1967,'Nathan','Hall','1946-10-26','M','2024-10-24',NULL,50,4,'COPD'),(1968,'Nora','Hernandez','1977-08-18','M','2024-10-31','2024-10-31',4,2,'Gallbladder Disease'),(1969,'Aiden','Cox','1948-12-12','M','2024-11-01','2024-11-01',96,8,'Panic Disorder'),(1970,'Jack','Peterson','1989-05-09','F','2024-10-31','2024-11-02',77,8,'Heart Disease'),(1971,'Dave','Bell','1951-01-15','F','2024-10-25',NULL,95,3,'Osteoporosis'),(1972,'Amelia','Rodriguez','1999-09-01','F','2024-10-31','2024-11-04',93,8,'Fracture'),(1973,'Dave','Harris','1964-09-24','M','2024-10-24',NULL,67,6,'Pancreatitis'),(1974,'Elijah','Hall','1988-08-19','F','2024-10-30','2024-11-03',43,4,'Ear Infection'),(1975,'Ethan','Scott','1967-05-15','F','2024-10-29',NULL,89,4,'Gout'),(1976,'Oliver','Harris','1992-09-26','M','2024-10-25','2024-10-28',24,8,'High Cholesterol'),(1977,'Victoria','Cooper','1977-04-02','F','2024-11-01',NULL,38,10,'Obesity'),(1978,'Abigail','Ward','1988-03-30','F','2024-10-24',NULL,88,10,'Heart Disease'),(1979,'Harper','Evans','1953-01-11','M','2024-10-24','2024-10-25',34,4,'Skin Rash'),(1980,'Jack','Nelson','1961-08-27','F','2024-10-31','2024-11-03',66,10,'Sinusitis'),(1981,'Emily','Gonzalez','1985-05-17','M','2024-10-30',NULL,34,1,'Hemorrhoids'),(1982,'Mia','Allen','1971-01-02','M','2024-11-01',NULL,68,2,'Parkinson\'s Disease'),(1983,'Isla','Green','1950-01-13','M','2024-10-30','2024-10-30',49,10,'Obesity'),(1984,'Michael','Clark','1999-06-13','M','2024-10-26',NULL,19,5,'Vertigo'),(1985,'Nathan','Evans','1979-06-17','M','2024-10-26',NULL,20,1,'Diabetes'),(1986,'Nathan','Anderson','1972-11-05','M','2024-10-26',NULL,18,8,'Hypertension'),(1987,'Lily','Bailey','1951-09-19','M','2024-10-27','2024-10-31',94,8,'Sleep Apnea'),(1988,'Jacob','Bell','1951-02-15','F','2024-10-25','2024-10-28',52,6,'Liver Disease'),(1989,'Emma','Green','1966-02-15','M','2024-10-25',NULL,70,9,'Hepatitis'),(1990,'Charlotte','Scott','1976-08-24','F','2024-11-01',NULL,29,7,'Fibromyalgia'),(1991,'James','Wilson','2004-08-07','F','2024-10-28','2024-10-31',25,1,'Asthma'),(1992,'Oliver','Wright','1981-03-14','F','2024-10-29',NULL,71,2,'Vertigo'),(1993,'Ethan','Miller','1976-08-10','M','2024-10-29',NULL,38,2,'Gout'),(1994,'Eva','Young','1967-04-29','F','2024-10-24','2024-10-27',90,5,'Bipolar Disorder'),(1995,'Joshua','Cox','1947-11-03','M','2024-10-25',NULL,39,4,'Gastroenteritis'),(1996,'Jane','Morgan','1993-11-06','F','2024-10-24','2024-10-28',41,3,'Fracture'),(1997,'Jane','Wilson','1967-11-01','M','2024-10-25','2024-10-28',1,1,'Covid-19'),(1998,'Isabella','Clark','1961-09-04','F','2024-10-28','2024-10-31',92,4,'Asthma'),(1999,'Mia','Campbell','1977-02-02','M','2024-10-27',NULL,79,7,'Diabetes'),(2000,'Chloe','Taylor','1959-01-02','M','2024-10-31',NULL,62,3,'Depression');
+/*!40000 ALTER TABLE `patients` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `physicians`
+--
+
+DROP TABLE IF EXISTS `physicians`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `physicians` (
+ `physician_id` int(11) NOT NULL AUTO_INCREMENT,
+ `first_name` varchar(50) NOT NULL,
+ `last_name` varchar(50) NOT NULL,
+ `specialty` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`physician_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `physicians`
+--
+
+LOCK TABLES `physicians` WRITE;
+/*!40000 ALTER TABLE `physicians` DISABLE KEYS */;
+INSERT INTO `physicians` VALUES (1,'Henry','Cox','Endocrinology'),(2,'Michael','Garcia','General Practice'),(3,'Leo','Richardson','Pediatrics'),(4,'Nathan','Davis','General Practice'),(5,'Noah','Peterson','Dermatology'),(6,'Daniel','Adams','Orthopedics'),(7,'Carol','Stewart','Pulmonology'),(8,'Michael','Hernandez','Gastroenterology'),(9,'Amelia','Parker','General Practice'),(10,'Isabella','Torres','Endocrinology');
+/*!40000 ALTER TABLE `physicians` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2024-11-01 18:21:43
diff --git a/Sprint 2/src/src/pcpType.class b/Sprint 2/src/src/pcpType.class
new file mode 100644
index 000000000..bd4884aa6
Binary files /dev/null and b/Sprint 2/src/src/pcpType.class differ
diff --git a/Sprint 2/src/src/pcpType.java b/Sprint 2/src/src/pcpType.java
new file mode 100644
index 000000000..0a695c86d
--- /dev/null
+++ b/Sprint 2/src/src/pcpType.java
@@ -0,0 +1,43 @@
+package src;
+
+//Class for creating objects for Primary Care Providers
+public class pcpType {
+ String drFname;
+ String drLname;
+ String specialty;
+ //Chose not to assign patient to Dr since Dr is already assigned to patient in PatientType class
+
+ //default constructor
+ public pcpType() {
+ this.drFname = "";
+ this.drLname = "";
+ this.specialty = "";
+ }
+
+ //constructor
+ public pcpType(String drFname, String drLname, String specialty) {
+ this.drFname = drFname;
+ this.drLname = drLname;
+ this.specialty = specialty;
+ }
+
+ //Getters
+ public String getDrFname() {return drFname;}
+ public String getDrLname() {return drLname;}
+ public String getSpecialty() {return specialty;}
+
+ //Setters
+ public void setDrFname(String drFname) {this.drFname = drFname;}
+ public void setDrLname(String drLname) {this.drLname = drLname;}
+ public void setSpecialty(String specialty) {this.specialty = specialty;}
+
+ //Print function for all Dr info
+ public void printDrInfo(){
+ System.out.println("Dr: " + drLname + " Info\n");
+ System.out.println(drFname + " " + drLname);
+ System.out.println("Specialty: " + specialty);
+
+ }
+
+
+}
diff --git a/Sprint 3/src/UI/Parts/.gitignore b/Sprint 3/src/UI/Parts/.gitignore
new file mode 100644
index 000000000..3419cc2c6
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/.gitignore
@@ -0,0 +1,8 @@
+/Button.class
+/Dropdown.class
+/GroupLayoutPanel.class
+/Label.class
+/MainPanel.class
+/ScrollPanel.class
+/TextInput.class
+/Window.class
diff --git a/Sprint 3/src/UI/Parts/Button.java b/Sprint 3/src/UI/Parts/Button.java
new file mode 100644
index 000000000..20b14e743
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/Button.java
@@ -0,0 +1,18 @@
+package UI.Parts;
+
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.Dimension;
+
+public class Button extends JButton{
+ String ID;
+
+ public Button(String text, String ID){
+ super(text);
+ this.ID = ID;
+ }
+
+ public String getID(){
+ return this.ID;
+ }
+}
diff --git a/Sprint 3/src/UI/Parts/Dropdown.java b/Sprint 3/src/UI/Parts/Dropdown.java
new file mode 100644
index 000000000..b2483dcff
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/Dropdown.java
@@ -0,0 +1,21 @@
+package UI.Parts;
+
+import javax.swing.JComboBox;
+
+public class Dropdown extends JComboBox {
+ public Dropdown(String[] options){
+ super(options);
+ }
+
+ public String getSelectedItem(){
+ return (String) super.getSelectedItem();
+ }
+
+ // public void addItem(String option){
+ // addItem(option);
+ // }
+
+ // public void removeItem(String option){
+ // removeItem(option);
+ // }
+}
\ No newline at end of file
diff --git a/Sprint 3/src/UI/Parts/GroupLayoutPanel.java b/Sprint 3/src/UI/Parts/GroupLayoutPanel.java
new file mode 100644
index 000000000..49320e935
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/GroupLayoutPanel.java
@@ -0,0 +1,68 @@
+package UI.Parts;
+
+import javax.swing.*;
+import javax.swing.GroupLayout.ParallelGroup;
+import javax.swing.GroupLayout.SequentialGroup;
+import java.awt.*;
+
+// https://docs.oracle.com/javase/tutorial/uiswing/layout/group.html
+//Reference above site for how to use GroupLayout
+
+public class GroupLayoutPanel extends JPanel{
+ private GroupLayout layout = new GroupLayout(this);
+ private SequentialGroup horizontalGroup = layout.createSequentialGroup();
+ private SequentialGroup verticalGroup = layout.createSequentialGroup();
+
+ public GroupLayoutPanel(){
+ super();
+ super.setLayout(layout);
+ // super.setAutoCreateGaps(true);
+ // super.setAutoCreateContainerGaps(true);
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+
+ public void addHorizontalItem(Component item){
+ horizontalGroup.addComponent(item);
+ }
+
+ public void addHorizontalItems(Component items[]){
+ for(Component item : items){
+ horizontalGroup.addComponent(item);
+ }
+ }
+
+ public void addHorizontalParallelGroup(Component items[], GroupLayout.Alignment align){
+ ParallelGroup group = layout.createParallelGroup(align);
+ for(Component item : items){
+ group.addComponent(item);
+ }
+ horizontalGroup.addGroup(group);
+ }
+
+ public void addVerticalItem(Component item){
+ verticalGroup.addComponent(item);
+ }
+
+ public void addVerticalItems(Component items[]){
+ for(Component item : items){
+ verticalGroup.addComponent(item);
+ }
+ }
+
+ public void addVerticalParallelGroup(Component items[], GroupLayout.Alignment align){
+ ParallelGroup group = layout.createParallelGroup(align);
+ for(Component item : items){
+ group.addComponent(item);
+ }
+ verticalGroup.addGroup(group);
+ }
+
+ public void finish(){
+ layout.setHorizontalGroup(horizontalGroup);
+ layout.setVerticalGroup(verticalGroup);
+ }
+}
diff --git a/Sprint 3/src/UI/Parts/Label.java b/Sprint 3/src/UI/Parts/Label.java
new file mode 100644
index 000000000..05b1edfc5
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/Label.java
@@ -0,0 +1,19 @@
+package UI.Parts;
+
+import javax.swing.JLabel;
+
+public class Label extends JLabel {
+
+ public Label(String text){
+ super();
+ setText(text);
+ }
+
+ public void setText(String text){
+ super.setText(text);
+ }
+
+ public String getText(){
+ return super.getText();
+ }
+}
diff --git a/Sprint 3/src/UI/Parts/MainPanel.java b/Sprint 3/src/UI/Parts/MainPanel.java
new file mode 100644
index 000000000..0f4356ed5
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/MainPanel.java
@@ -0,0 +1,29 @@
+package UI.Parts;
+
+import javax.swing.JPanel;
+import javax.swing.BoxLayout;
+import java.awt.GridBagConstraints;
+import java.awt.Component;
+
+public class MainPanel extends JPanel{
+ GridBagConstraints gbc = null;
+
+ public MainPanel(boolean isYAxis){ //For main panel
+ super();
+ if(isYAxis){super.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));}
+ else{super.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));}
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+
+ public void addItem(int gridx, int gridy, Component comp){
+ if(gbc != null){
+ gbc.gridx = gridx;
+ gbc.gridy = gridy;
+ }
+ this.addItem(comp);
+ }
+}
diff --git a/Sprint 3/src/UI/Parts/ScrollPanel.java b/Sprint 3/src/UI/Parts/ScrollPanel.java
new file mode 100644
index 000000000..6e222e02b
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/ScrollPanel.java
@@ -0,0 +1,27 @@
+package UI.Parts;
+
+import javax.swing.JScrollPane;
+import java.awt.Component;
+
+public class ScrollPanel extends JScrollPane{
+ final String DEFAULTTITLE = "";
+ final int DEFAULTSIZE = 500;
+ final int DEFAULTLOCATION = 300;
+
+ public ScrollPanel(Component panel){
+ super(panel);
+ super.setSize(DEFAULTSIZE, DEFAULTSIZE);
+ super.setLocation(DEFAULTLOCATION, DEFAULTLOCATION);
+ }
+
+ public ScrollPanel(Component panel, int x, int y, int width, int height){
+ super(panel);
+ super.setSize(width, height);
+ super.setLocation(x, y);
+ }
+
+ public void addItem(Component comp){
+ super.add(comp);
+ super.validate();
+ }
+}
diff --git a/Sprint 3/src/UI/Parts/TextInput.java b/Sprint 3/src/UI/Parts/TextInput.java
new file mode 100644
index 000000000..1cdc9a024
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/TextInput.java
@@ -0,0 +1,19 @@
+package UI.Parts;
+
+import javax.swing.JTextField;
+
+public class TextInput extends JTextField{
+ final int COLUMNS = 24;
+ final String INITIALTEXT = "";
+
+ public TextInput(String initialText, int columns){
+ super(
+ ((Object) initialText == null) ? ("") : (initialText),
+ ((Object) columns == null) ? (24) : (columns)
+ );
+ }
+
+ public String getText(){
+ return super.getText();
+ }
+}
diff --git a/Sprint 3/src/UI/Parts/Window.java b/Sprint 3/src/UI/Parts/Window.java
new file mode 100644
index 000000000..08a2c1c69
--- /dev/null
+++ b/Sprint 3/src/UI/Parts/Window.java
@@ -0,0 +1,51 @@
+package UI.Parts;
+
+import java.awt.Component;
+import javax.swing.JFrame;
+
+public class Window extends JFrame{
+ final String DEFAULTTITLE = "";
+ final int DEFAULTSIZE = 500;
+ final int DEFAULTLOCATION = 300;
+
+ public Window (String title){
+ super(title);
+ super.setSize(DEFAULTSIZE, DEFAULTSIZE);
+ super.setLocationRelativeTo(null);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public Window (String title, int width, int height){
+ super(title);
+ super.setSize(width, height);
+ super.setLocationRelativeTo(null);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public Window(String title, int x, int y, int width, int height){
+ super(title);
+ super.setSize(width, height);
+ super.setLocation(x, y);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setResizable(true);
+ }
+
+ public void addItem(String borderLayout, Component comp){
+ super.getContentPane().add(borderLayout, comp);
+ }
+
+ public void setContentPanel(MainPanel panel){
+ super.setContentPane(panel);
+ super.pack(); // Set size to preferred size of buttons and stuff in the content panel
+ }
+
+ public void setVisible(boolean visible){
+ super.setVisible(visible);
+ }
+
+ public boolean isVisible(){
+ return super.isVisible();
+ }
+}
\ No newline at end of file
diff --git a/Sprint 3/src/UI/Windows/.gitignore b/Sprint 3/src/UI/Windows/.gitignore
new file mode 100644
index 000000000..6aed67352
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/.gitignore
@@ -0,0 +1,19 @@
+/AddPatient$1.class
+/AddPatient.class
+/GUI.class
+/HomePage$1.class
+/HomePage$2.class
+/HomePage$SwingAction.class
+/HomePage.class
+/LoginWindow$1.class
+/LoginWindow$2.class
+/LoginWindow$3.class
+/LoginWindow.class
+/PatientData$1.class
+/PatientData.class
+/RoomView$1.class
+/RoomView.class
+/SearchFunction$1.class
+/SearchFunction$2.class
+/SearchFunction.class
+/SearchPage.class
diff --git a/Sprint 3/src/UI/Windows/AddPatient$2.class b/Sprint 3/src/UI/Windows/AddPatient$2.class
new file mode 100644
index 000000000..61d73b12e
Binary files /dev/null and b/Sprint 3/src/UI/Windows/AddPatient$2.class differ
diff --git a/Sprint 3/src/UI/Windows/BookRoom.java b/Sprint 3/src/UI/Windows/BookRoom.java
new file mode 100644
index 000000000..435d1c422
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/BookRoom.java
@@ -0,0 +1,245 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import javax.swing.JScrollPane;
+import javax.swing.JTextField;
+import javax.swing.ScrollPaneConstants;
+import java.awt.Dimension;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+
+import javax.swing.JTextArea;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+public class BookRoom {
+
+ private JFrame frame;
+ private JButton btnConf;
+
+ private JTextArea txtMRNArea;
+ private JTextField txtMRN;
+
+ private JTextArea PCPTextArea;
+ private JTextField txtPCP;
+
+ private JTextArea txtST;
+ private JTextField txtStartTime;
+
+ private JTextArea txtET;
+ private JTextField txtEndTime;
+
+ private JTextArea startDateArea;
+ private JTextField startDateTxt;
+
+ private JTextArea endDateArea;
+ private JTextField endDateTxt;
+
+ private JTextArea txtEvent;
+ private JTextField txtEventType;
+
+ private JTextArea txtRoomNum;
+ private JTextField txtRoom;
+
+ private JTextArea notesBox;
+ private JTextField txtNotes;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) { //{ST, ET, SD, ED, ROOM}
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ BookRoom window = new BookRoom(args);
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public BookRoom(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 406, 537);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+ frame.setMinimumSize(new Dimension(413,450));
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frame.dispose();
+ HomePage.main(null);
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ backButton.setMinimumSize(new Dimension (30, 30));
+ backButton.setMaximumSize(new Dimension (30, 30));
+ frame.getContentPane().add(backButton);
+
+ txtMRNArea = new JTextArea();
+ txtMRNArea.setBounds(109, 69, 285, 26);
+ frame.getContentPane().add(txtMRNArea);
+
+ txtMRN = new JTextField();
+ txtMRN.setText("Patient's MRN:");
+ txtMRN.setEditable(false);
+ txtMRN.setColumns(10);
+ txtMRN.setBounds(6, 69, 103, 26);
+ frame.getContentPane().add(txtMRN);
+
+ PCPTextArea = new JTextArea();
+ PCPTextArea.setBounds(109, 107, 285, 26);
+ frame.getContentPane().add(PCPTextArea);
+
+ // txtPCP = new JTextArea();
+ // txtPCP.setBounds(109, 107, 285, 26);
+ // frame.getContentPane().add(txtPCP);
+
+ txtPCP = new JTextField();
+ txtPCP.setEditable(false);
+ txtPCP.setText("PCP:");
+ txtPCP.setBounds(6, 107, 97, 26);
+ frame.getContentPane().add(txtPCP);
+ txtPCP.setColumns(10);
+
+ txtST = new JTextArea(args[0]);
+ txtST.setEditable(false);
+ txtST.setBounds(109, 145, 285, 26);
+ frame.getContentPane().add(txtST);
+
+ txtStartTime = new JTextField();
+ txtStartTime.setEditable(false);
+ txtStartTime.setText("Start Time:");
+ txtStartTime.setColumns(10);
+ txtStartTime.setBounds(6, 145, 88, 26);
+ frame.getContentPane().add(txtStartTime);
+
+ txtET = new JTextArea(args[1]);
+ txtET.setEditable(false);
+ txtET.setBounds(106, 183, 288, 26);
+ frame.getContentPane().add(txtET);
+
+ txtEndTime = new JTextField();
+ txtEndTime.setEditable(false);
+ txtEndTime.setText("End Time:");
+ txtEndTime.setColumns(10);
+ txtEndTime.setBounds(6, 183, 88, 26);
+ frame.getContentPane().add(txtEndTime);
+
+ startDateArea = new JTextArea(args[2]);
+ startDateArea.setEditable(false);
+ startDateArea.setBounds(106, 221, 288, 26);
+ frame.getContentPane().add(startDateArea);
+
+ startDateTxt = new JTextField();
+ startDateTxt.setEditable(false);
+ startDateTxt.setText("Start Date:");
+ startDateTxt.setColumns(10);
+ startDateTxt.setBounds(6, 221, 88, 26);
+ frame.getContentPane().add(startDateTxt);
+
+ endDateArea = new JTextArea(args[3]);
+ endDateArea.setEditable(false);
+ endDateArea.setBounds(106, 259, 288, 26);
+ frame.getContentPane().add(endDateArea);
+
+ endDateTxt = new JTextField();
+ endDateTxt.setEditable(false);
+ endDateTxt.setText("End Date:");
+ endDateTxt.setColumns(10);
+ endDateTxt.setBounds(6, 259, 88, 26);
+ frame.getContentPane().add(endDateTxt);
+
+ txtEvent = new JTextArea();
+ txtEvent.setBounds(106, 297, 288, 26);
+ frame.getContentPane().add(txtEvent);
+
+ txtEventType = new JTextField();
+ txtEventType.setEditable(false);
+ txtEventType.setText("Event Type:");
+ txtEventType.setColumns(10);
+ txtEventType.setBounds(6, 297, 88, 26);
+ frame.getContentPane().add(txtEventType);
+
+ txtRoomNum = new JTextArea(args[4]);
+ txtRoomNum.setEditable(false);
+ txtRoomNum.setBounds(106, 335, 288, 26);
+ frame.getContentPane().add(txtRoomNum);
+
+ txtRoom = new JTextField();
+ txtRoom.setText("Room #:");
+ txtRoom.setEditable(false);
+ txtRoom.setColumns(10);
+ txtRoom.setBounds(6, 335, 88, 26);
+ frame.getContentPane().add(txtRoom);
+
+ txtNotes = new JTextField();
+ txtNotes.setText("Notes:");
+ txtNotes.setEditable(false);
+ txtNotes.setColumns(10);
+ txtNotes.setBounds(6, 373, 88, 26);
+ frame.getContentPane().add(txtNotes);
+
+ notesBox = new JTextArea();
+ notesBox.setLineWrap(true); // Enable line wrapping [1, 2, 3]
+ notesBox.setWrapStyleWord(true); // Wrap at word boundaries [1, 3, 5]
+
+ JScrollPane notesScroll = new JScrollPane(notesBox);
+ notesScroll.setBounds(106, 373, 288, 60);
+ frame.getContentPane().add(notesScroll);
+
+ btnConf = new JButton("Confirm & Book");
+ btnConf.setBounds(228, 449, 166, 29);
+ frame.getContentPane().add(btnConf);
+ btnConf.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ verify();
+ }
+ });
+ }
+
+ private void verify(){
+ try {
+ if(!verifyPCP(PCPTextArea.getText())){
+ return;
+ }
+ } catch (Exception e) {
+ JOptionPane.showMessageDialog(null, "PCP must be an integer between 1 and 10", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return;
+ }
+
+ Event newEvent = new Event();
+ addEvent(event);
+
+ HomePage.main(null);
+ frame.dispose();
+ }
+
+ private boolean verifyPCP(String PCP){
+ int PCPnum = Integer.parseInt(PCP);
+ if(!(PCPnum < 11 && PCPnum > 0)){
+ JOptionPane.showMessageDialog(null, "PCP must be an integer between 1 and 10", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ return true;
+ }
+}
diff --git a/Sprint 3/src/UI/Windows/EditPatientData$1.class b/Sprint 3/src/UI/Windows/EditPatientData$1.class
new file mode 100644
index 000000000..248035a3d
Binary files /dev/null and b/Sprint 3/src/UI/Windows/EditPatientData$1.class differ
diff --git a/Sprint 3/src/UI/Windows/EditPatientData$2.class b/Sprint 3/src/UI/Windows/EditPatientData$2.class
new file mode 100644
index 000000000..144f9c27b
Binary files /dev/null and b/Sprint 3/src/UI/Windows/EditPatientData$2.class differ
diff --git a/Sprint 3/src/UI/Windows/EditPatientData$3.class b/Sprint 3/src/UI/Windows/EditPatientData$3.class
new file mode 100644
index 000000000..2edfd6365
Binary files /dev/null and b/Sprint 3/src/UI/Windows/EditPatientData$3.class differ
diff --git a/Sprint 3/src/UI/Windows/EditPatientData.class b/Sprint 3/src/UI/Windows/EditPatientData.class
new file mode 100644
index 000000000..8b2438d2e
Binary files /dev/null and b/Sprint 3/src/UI/Windows/EditPatientData.class differ
diff --git a/Sprint 3/src/UI/Windows/EditPatientData.java b/Sprint 3/src/UI/Windows/EditPatientData.java
new file mode 100644
index 000000000..5bbdc1ba1
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/EditPatientData.java
@@ -0,0 +1,296 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import javax.swing.JOptionPane;
+
+import javax.swing.JSeparator;
+import javax.swing.JLabel;
+import java.awt.Color;
+import java.awt.Dimension;
+import javax.swing.JTextArea;
+
+import src.Main;
+
+public class EditPatientData {
+
+ private JFrame frmEditPatientData;
+ private JButton saveButton;
+ private JTextArea eventsBox;
+ private JTextArea notesBox;
+ private JTextField idenNum;
+ private JTextField roomNum;
+ private JTextField PCPBox;
+ private JTextField patientName;
+ private JButton backButton;
+
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ EditPatientData window = new EditPatientData(args);
+ window.frmEditPatientData.setVisible(true);
+ window.frmEditPatientData.setLocationRelativeTo(null);
+ window.frmEditPatientData.setMinimumSize(new Dimension(450, 450));
+ window.frmEditPatientData.setBounds(100, 100, 450, 450);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+
+ }
+
+ /**
+ * Create the application.
+ */
+ public EditPatientData(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frmEditPatientData = new JFrame();
+ frmEditPatientData.setVisible(true);
+ frmEditPatientData.setResizable(false);
+ frmEditPatientData.setLocationRelativeTo(null);
+ frmEditPatientData.setTitle("Edit Patient Data");
+ frmEditPatientData.getContentPane().setFont(new Font("Cambria", Font.PLAIN, 11));
+ frmEditPatientData.setSize(450, 450);
+ frmEditPatientData.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frmEditPatientData.getContentPane().setLayout(null);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(10, 46, 414, 2);
+ frmEditPatientData.getContentPane().add(separator);
+
+ JLabel lblNewLabel = new JLabel("Identifier #:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNewLabel.setBounds(10, 59, 101, 19);
+ frmEditPatientData.getContentPane().add(lblNewLabel);
+
+ JLabel lblRoom = new JLabel("Room #:");
+ lblRoom.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblRoom.setBounds(10, 89, 70, 19);
+ frmEditPatientData.getContentPane().add(lblRoom);
+
+ JLabel lblPmc = new JLabel("Primary Care Provider ID:");
+ lblPmc.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblPmc.setBounds(10, 119, 217, 19);
+ frmEditPatientData.getContentPane().add(lblPmc);
+
+ JLabel lblEvents = new JLabel("Events:");
+ lblEvents.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblEvents.setBounds(10, 149, 55, 19);
+ frmEditPatientData.getContentPane().add(lblEvents);
+
+ JLabel lblNotes = new JLabel("Notes:");
+ lblNotes.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNotes.setBounds(10, 261, 55, 19);
+ frmEditPatientData.getContentPane().add(lblNotes);
+
+ backButton = new JButton("๐");
+ backButton.setBounds(6, 6, 30, 30);
+ backButton.setMinimumSize(new Dimension (30, 30));
+ backButton.setMaximumSize(new Dimension (30, 30));
+ frmEditPatientData.getContentPane().add(backButton);
+
+ saveButton = new JButton("Save And Exit");
+ saveButton.setBackground(new Color(255, 255, 255));
+ saveButton.setBounds(321, 374, 123, 29);
+ saveButton.setMinimumSize(new Dimension (123, 29));
+ saveButton.setMaximumSize(new Dimension (123, 29));
+ frmEditPatientData.getContentPane().add(saveButton);
+
+ setup(args);
+ backButtonFunctionality(args);
+ saveButtonFunctionality(args);
+
+ eventsBox.setBounds(10, 180, 434, 63);
+ frmEditPatientData.getContentPane().add(eventsBox);
+
+ notesBox.setBounds(10, 292, 434, 63);
+ frmEditPatientData.getContentPane().add(notesBox);
+
+ idenNum.setBounds(104, 51, 340, 31);
+ idenNum.setEditable(false);
+ frmEditPatientData.getContentPane().add(idenNum);
+ idenNum.setColumns(10);
+
+ roomNum.setColumns(10);
+ roomNum.setBounds(79, 84, 365, 31);
+ frmEditPatientData.getContentPane().add(roomNum);
+
+ PCPBox.setColumns(10);
+ PCPBox.setBounds(191, 116, 253, 31);
+ frmEditPatientData.getContentPane().add(PCPBox);
+
+ patientName.setBounds(42, 0, 402, 41);
+ frmEditPatientData.getContentPane().add(patientName);
+ patientName.setColumns(10);
+ }
+
+ protected String[] updateArgs(){
+ String[] alteredArgs = new String[6];
+ alteredArgs[0] = patientName.getText();
+ alteredArgs[1] = idenNum.getText();
+ alteredArgs[2] = roomNum.getText();
+ alteredArgs[3] = PCPBox.getText();
+ alteredArgs[4] = eventsBox.getText();
+ alteredArgs[5] = notesBox.getText();
+
+ return alteredArgs;
+ }
+
+ protected void backButtonFunctionality(String[] args){
+ if(args == null){}
+ else if(args.length == 1){
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frmEditPatientData.dispose();
+ String[] args2 = updateArgs();
+ if(isGoodFormat(args2)){
+ try {
+ Main.addPtn(args2);
+ exitOrNo.main(args2);
+ frmEditPatientData.dispose();
+ } catch (Exception exception) {
+ // TODO: handle exception
+ }
+ }
+ else{
+ exitWithoutSaving.main(args2);
+ }
+ }
+ });
+ }
+ else{
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frmEditPatientData.dispose();
+ String[] args2 = updateArgs();
+ String[] newArgs = {args[0], args[1], args[2], args[3], args[4], args[5], args2[0], args2[1], args2[2], args2[3], args2[4], args2[5]};
+ exitOrNo.main(newArgs);
+ }
+ });
+ }
+ }
+
+ protected void saveButtonFunctionality(String[] args){
+ if(args == null){}
+ else if(args.length == 1){
+ saveButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] newArgs = updateArgs();
+ if(isGoodFormat(newArgs)){
+ try {
+ Main.addPtn(newArgs);
+ HomePage.main(null);
+ frmEditPatientData.dispose();
+ } catch (Exception exception) {
+ JOptionPane.showMessageDialog(null, "Error with Nick's stuff", "ERROR", JOptionPane.ERROR_MESSAGE);
+ }
+ }
+ }
+ });
+ }
+ else{
+ saveButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] newArgs = updateArgs();
+ if(isGoodFormat(newArgs)){
+ try {
+ Main.updatePtn(newArgs);
+ PatientData.main(newArgs);
+ frmEditPatientData.dispose();
+ } catch (Exception exception) {
+ JOptionPane.showMessageDialog(null, "Error with Nick's stuff", "ERROR", JOptionPane.ERROR_MESSAGE);
+ }
+ }
+ }
+ });
+ }
+ }
+
+ protected void setup(String[] args){
+ if(args == null){}
+ else if(args.length == 1){
+ patientName = new JTextField();
+ idenNum = new JTextField(args[0]);
+ roomNum = new JTextField();
+ PCPBox = new JTextField();
+ eventsBox = new JTextArea();
+ notesBox = new JTextArea();
+ }
+ else{
+ patientName = new JTextField(args[0]);
+ idenNum = new JTextField(args[1]);
+ roomNum = new JTextField(args[2]);
+ PCPBox = new JTextField(args[3]);
+ eventsBox = new JTextArea(args[4]);
+ notesBox = new JTextArea(args[5]);
+ }
+ }
+
+ protected Boolean isGoodFormat(String[] args2){
+ return checkName(args2[0]) && checkPCP(args2[3]) && checkRoom(args2[2]);
+ }
+
+ private Boolean checkName(String name){
+ try{
+ String splitName[] = name.split(" ");
+ if(!(splitName.length == 2)){
+ JOptionPane.showMessageDialog(null, "Name must inclue Last Name and First Name separated by a single space", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ return true;
+ }
+ catch(Exception e){
+ JOptionPane.showMessageDialog(null, "Name must inclue Last Name and First Name separated by a single space", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ }
+
+ private Boolean checkPCP(String PCP){
+ try{
+ int PCPnum = Integer.parseInt(PCP);
+ if(!(PCPnum < 11 && PCPnum > 0)){
+ JOptionPane.showMessageDialog(null, "PCP must be an integer between 1 and 10", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ return true;
+ }
+ catch(Exception e){
+ JOptionPane.showMessageDialog(null, "PCP must be an integer between 1 and 10", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ }
+
+ private Boolean checkRoom(String room){
+ try{
+ int roomNum = Integer.parseInt(room);
+ if(!(roomNum < 110 && roomNum > 99)){
+ JOptionPane.showMessageDialog(null, "Room number must be an integer value within 100 and 109", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ return true;
+ }
+ catch(Exception e){
+ JOptionPane.showMessageDialog(null, "Room number must be an integer value within 100 and 109", "ERROR", JOptionPane.ERROR_MESSAGE);
+ return false;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Sprint 3/src/UI/Windows/HomePage$3.class b/Sprint 3/src/UI/Windows/HomePage$3.class
new file mode 100644
index 000000000..fa9221284
Binary files /dev/null and b/Sprint 3/src/UI/Windows/HomePage$3.class differ
diff --git a/Sprint 3/src/UI/Windows/HomePage$4.class b/Sprint 3/src/UI/Windows/HomePage$4.class
new file mode 100644
index 000000000..83d3529f2
Binary files /dev/null and b/Sprint 3/src/UI/Windows/HomePage$4.class differ
diff --git a/Sprint 3/src/UI/Windows/HomePage$5.class b/Sprint 3/src/UI/Windows/HomePage$5.class
new file mode 100644
index 000000000..7321e3a01
Binary files /dev/null and b/Sprint 3/src/UI/Windows/HomePage$5.class differ
diff --git a/Sprint 3/src/UI/Windows/HomePage.java b/Sprint 3/src/UI/Windows/HomePage.java
new file mode 100644
index 000000000..1ab570afc
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/HomePage.java
@@ -0,0 +1,139 @@
+package UI.Windows;
+
+import java.awt.Container;
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import java.awt.GridLayout;
+import javax.swing.JButton;
+import javax.swing.JLabel;
+import javax.swing.GroupLayout;
+import javax.swing.GroupLayout.Alignment;
+import javax.swing.LayoutStyle.ComponentPlacement;
+import javax.swing.AbstractAction;
+import java.awt.event.ActionEvent;
+import javax.swing.Action;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+
+import src.*;
+
+public class HomePage {
+
+ private JFrame frame;
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ HomePage window = new HomePage();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public HomePage() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 905, 278);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
+ JButton searchButton = new JButton("Search");
+ searchButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ SearchFunction.main(null);
+ frame.dispose();
+ }
+ });
+ searchButton.setFont(new Font("Cambria", Font.BOLD, 35));
+
+ JButton addPatientButton = new JButton("Add Patient/Event");
+ addPatientButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ addPatientButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ try {
+ String mrn[] = {src.Main.getNextPatientId()};
+ EditPatientData.main(mrn);
+ frame.dispose();
+ } catch (Exception exception) {
+ // TODO: handle exception
+ }
+ }
+ });
+
+ JButton removePatientButton = new JButton("Remove Patient/Event");
+ removePatientButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ removePatientButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ RemovePatient.main(null);
+ frame.dispose();
+ }
+ });
+
+ JButton roomViewButton = new JButton("Room View");
+ roomViewButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ RoomView.main(null);
+ frame.dispose();
+ }
+ });
+ roomViewButton.setFont(new Font("Cambria", Font.BOLD, 35));
+ GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
+ groupLayout.setHorizontalGroup(
+ groupLayout.createParallelGroup(Alignment.TRAILING)
+ .addGroup(groupLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
+ .addComponent(searchButton, GroupLayout.PREFERRED_SIZE, 438, GroupLayout.PREFERRED_SIZE)
+ .addComponent(addPatientButton, GroupLayout.PREFERRED_SIZE, 434, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(roomViewButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(removePatientButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addContainerGap(14, Short.MAX_VALUE))
+ );
+ groupLayout.setVerticalGroup(
+ groupLayout.createParallelGroup(Alignment.LEADING)
+ .addGroup(groupLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(roomViewButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
+ .addComponent(searchButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE))
+ .addGap(18)
+ .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(removePatientButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
+ .addComponent(addPatientButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE))
+ .addGap(259))
+ );
+ frame.getContentPane().setLayout(groupLayout);
+ }
+
+ private class SwingAction extends AbstractAction {
+ public SwingAction() {
+ putValue(NAME, "SwingAction");
+ putValue(SHORT_DESCRIPTION, "Some short description");
+ }
+ public void actionPerformed(ActionEvent e) {
+ }
+ }
+
+ public static Container getContentPane() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+}
diff --git a/Sprint 3/src/UI/Windows/LoginWindow.java b/Sprint 3/src/UI/Windows/LoginWindow.java
new file mode 100644
index 000000000..968cd546b
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/LoginWindow.java
@@ -0,0 +1,132 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+
+import java.awt.BorderLayout;
+import java.awt.Font;
+import javax.swing.SwingConstants;
+import javax.swing.JTextField;
+import java.awt.Color;
+import javax.swing.JPasswordField;
+import java.awt.SystemColor;
+import javax.swing.JSplitPane;
+import javax.swing.JSeparator;
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+
+public class LoginWindow {
+
+ private JFrame frame;
+ private JTextField textField;
+ private JPasswordField passwordField;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ LoginWindow window = new LoginWindow();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public LoginWindow() {
+ initialize("Login Window");
+
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String title) {
+ frame = new JFrame();
+ frame.setResizable(false);
+ frame.setBounds(100, 100, 450, 244);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.setTitle(title);
+ frame.setLocationRelativeTo(null);
+ frame.getContentPane().setLayout(null);
+
+ JLabel lblNewLabel = new JLabel("USERNAME:");
+ lblNewLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
+ lblNewLabel.setBounds(6, 59, 118, 22);
+ frame.getContentPane().add(lblNewLabel);
+
+ JLabel lblPassword = new JLabel("PASSWORD:");
+ lblPassword.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
+ lblPassword.setBounds(6, 110, 118, 22);
+ frame.getContentPane().add(lblPassword);
+
+ textField = new JTextField();
+ textField.setBackground(Color.WHITE);
+ textField.setBounds(123, 57, 308, 26);
+ frame.getContentPane().add(textField);
+ textField.setColumns(10);
+
+ passwordField = new JPasswordField();
+ passwordField.setBounds(123, 109, 308, 26);
+ frame.getContentPane().add(passwordField);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(6, 144, 438, 12);
+ frame.getContentPane().add(separator);
+
+ JSeparator separator_1 = new JSeparator();
+ separator_1.setBounds(6, 36, 438, 12);
+ frame.getContentPane().add(separator_1);
+
+ JLabel lblNewLabel_1 = new JLabel("USER LOGIN");
+ lblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);
+ lblNewLabel_1.setFont(new Font("Lucida Grande", Font.PLAIN, 30));
+ lblNewLabel_1.setBounds(6, -3, 438, 47);
+ frame.getContentPane().add(lblNewLabel_1);
+
+ JButton btnNewButton = new JButton("LOGIN");
+ btnNewButton.addActionListener(new ActionListener() {
+
+ public void actionPerformed(ActionEvent e) {
+ String username = textField.getText();
+ String password = passwordField.getText();
+ if (username.contains("User") && password.contains("1234")){
+ textField.setText(null);
+ passwordField.setText(null);
+ HomePage.main(null);
+ frame.dispose();
+ }
+ else {
+ JOptionPane.showMessageDialog(null, "INVALID USERNAME OR PASSWORD", "ERROR", JOptionPane.ERROR_MESSAGE);
+ textField.setText(null);
+ passwordField.setText(null);
+ }
+ }
+ });
+ btnNewButton.setBounds(54, 168, 117, 29);
+ frame.getContentPane().add(btnNewButton);
+
+ JButton btnNewButton_1_1 = new JButton("RESET");
+ btnNewButton_1_1.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ textField.setText(null);
+ passwordField.setText(null);
+ }
+ });
+ btnNewButton_1_1.setBounds(279, 168, 117, 29);
+ frame.getContentPane().add(btnNewButton_1_1);
+
+ }
+}
diff --git a/Sprint 3/src/UI/Windows/PatientData$2.class b/Sprint 3/src/UI/Windows/PatientData$2.class
new file mode 100644
index 000000000..ecbfcd972
Binary files /dev/null and b/Sprint 3/src/UI/Windows/PatientData$2.class differ
diff --git a/Sprint 3/src/UI/Windows/PatientData$3.class b/Sprint 3/src/UI/Windows/PatientData$3.class
new file mode 100644
index 000000000..02c834748
Binary files /dev/null and b/Sprint 3/src/UI/Windows/PatientData$3.class differ
diff --git a/Sprint 3/src/UI/Windows/PatientData.java b/Sprint 3/src/UI/Windows/PatientData.java
new file mode 100644
index 000000000..a6219ec55
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/PatientData.java
@@ -0,0 +1,160 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JSeparator;
+import javax.swing.JLabel;
+import java.awt.Color;
+import java.awt.Dimension;
+import javax.swing.JTextArea;
+
+public class PatientData {
+
+ private JFrame frame;
+ private JButton editButton;
+ private JTextField idenNum;
+ private JTextField roomNum;
+ private JTextField PCPBox;
+ private JTextArea eventsBox;
+ private JTextArea notesBox;
+ private JTextField patientName;
+
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ PatientData window = new PatientData(args);
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ window.frame.setMinimumSize(new Dimension(450, 450));
+ window.frame.setBounds(100, 100, 450, 450);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+
+ }
+
+ /**
+ * Create the application.
+ */
+ public PatientData(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setVisible(true);
+ frame.setResizable(false);
+ frame.setTitle("Patient Data");
+ frame.setLocationRelativeTo(null);
+ frame.getContentPane().setFont(new Font("Cambria", Font.PLAIN, 11));
+ frame.setSize(450, 450);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JSeparator separator = new JSeparator();
+ separator.setBounds(10, 46, 414, 2);
+ frame.getContentPane().add(separator);
+
+ JLabel lblNewLabel = new JLabel("Identifier #:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNewLabel.setBounds(10, 59, 101, 19);
+ frame.getContentPane().add(lblNewLabel);
+
+ JLabel lblRoom = new JLabel("Room #:");
+ lblRoom.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblRoom.setBounds(10, 89, 70, 19);
+ frame.getContentPane().add(lblRoom);
+
+ JLabel lblPmc = new JLabel("Primary Care Provider:");
+ lblPmc.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblPmc.setBounds(10, 119, 217, 19);
+ frame.getContentPane().add(lblPmc);
+
+ JLabel lblEvents = new JLabel("Events:");
+ lblEvents.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblEvents.setBounds(10, 149, 55, 19);
+ frame.getContentPane().add(lblEvents);
+
+ JLabel lblNotes = new JLabel("Notes:");
+ lblNotes.setFont(new Font("Cambria", Font.BOLD, 15));
+ lblNotes.setBounds(10, 261, 55, 19);
+ frame.getContentPane().add(lblNotes);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frame.dispose();
+ HomePage.main(null);
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ backButton.setMinimumSize(new Dimension (30, 30));
+ backButton.setMaximumSize(new Dimension (30, 30));
+ frame.getContentPane().add(backButton);
+
+ editButton = new JButton("Edit");
+ editButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frame.dispose();
+ EditPatientData.main(args);
+ }
+ });
+ editButton.setBackground(new Color(255, 255, 255));
+ editButton.setBounds(321, 374, 123, 29);
+ editButton.setMinimumSize(new Dimension (123, 29));
+ editButton.setMaximumSize(new Dimension (123, 29));
+ frame.getContentPane().add(editButton);
+
+ idenNum = new JTextField(args[1]);
+ idenNum.setEditable(false);
+ idenNum.setColumns(10);
+ idenNum.setBounds(104, 54, 340, 31);
+ frame.getContentPane().add(idenNum);
+
+ roomNum = new JTextField(args[2]);
+ roomNum.setEditable(false);
+ roomNum.setColumns(10);
+ roomNum.setBounds(79, 84, 365, 31);
+ frame.getContentPane().add(roomNum);
+
+ PCPBox = new JTextField(args[3]);
+ PCPBox.setEditable(false);
+ PCPBox.setColumns(10);
+ PCPBox.setBounds(191, 116, 253, 31);
+ frame.getContentPane().add(PCPBox);
+
+ eventsBox = new JTextArea(args[4]);
+ eventsBox.setEditable(false);
+ eventsBox.setBounds(10, 180, 434, 63);
+ frame.getContentPane().add(eventsBox);
+
+ notesBox = new JTextArea(args[5]);
+ notesBox.setEditable(false);
+ notesBox.setBounds(10, 292, 434, 63);
+ frame.getContentPane().add(notesBox);
+
+ patientName = new JTextField(args[0]);
+ patientName.setEditable(false);
+ patientName.setColumns(10);
+ patientName.setBounds(42, 0, 402, 41);
+ frame.getContentPane().add(patientName);
+ }
+}
diff --git a/Sprint 3/src/UI/Windows/RemovePatient$1.class b/Sprint 3/src/UI/Windows/RemovePatient$1.class
new file mode 100644
index 000000000..bd36c05ac
Binary files /dev/null and b/Sprint 3/src/UI/Windows/RemovePatient$1.class differ
diff --git a/Sprint 3/src/UI/Windows/RemovePatient$2.class b/Sprint 3/src/UI/Windows/RemovePatient$2.class
new file mode 100644
index 000000000..24157a389
Binary files /dev/null and b/Sprint 3/src/UI/Windows/RemovePatient$2.class differ
diff --git a/Sprint 3/src/UI/Windows/RemovePatient.class b/Sprint 3/src/UI/Windows/RemovePatient.class
new file mode 100644
index 000000000..03c5122fa
Binary files /dev/null and b/Sprint 3/src/UI/Windows/RemovePatient.class differ
diff --git a/Sprint 3/src/UI/Windows/RemovePatient.java b/Sprint 3/src/UI/Windows/RemovePatient.java
new file mode 100644
index 000000000..009636a4b
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/RemovePatient.java
@@ -0,0 +1,57 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+
+public class RemovePatient {
+
+ private JFrame frame;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ RemovePatient window = new RemovePatient();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public RemovePatient() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 450, 300);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ frame.getContentPane().add(backButton);
+ }
+
+}
diff --git a/Sprint 3/src/UI/Windows/RoomView$2.class b/Sprint 3/src/UI/Windows/RoomView$2.class
new file mode 100644
index 000000000..197ccba27
Binary files /dev/null and b/Sprint 3/src/UI/Windows/RoomView$2.class differ
diff --git a/Sprint 3/src/UI/Windows/RoomView.java b/Sprint 3/src/UI/Windows/RoomView.java
new file mode 100644
index 000000000..34fd8c690
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/RoomView.java
@@ -0,0 +1,665 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JComboBox;
+import java.awt.BorderLayout;
+import javax.swing.JButton;
+import javax.swing.JTextField;
+import java.awt.Dimension;
+
+import java.time.LocalDate;
+import java.time.LocalTime;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+public class RoomView {
+
+ private JFrame frame;
+ private JTextField txt100;
+ private JTextField txt101;
+ private JTextField txt102;
+ private JTextField txt103;
+ private JTextField txt104;
+ private JTextField txt105;
+ private JTextField txt106;
+ private JTextField txt107;
+ private JTextField txt108;
+ private JTextField txt109;
+
+ private JButton btn100;
+ private JButton btn101;
+ private JButton btn102;
+ private JButton btn103;
+ private JButton btn104;
+ private JButton btn105;
+ private JButton btn106;
+ private JButton btn107;
+ private JButton btn108;
+ private JButton btn109;
+
+ private JTextField dateStart;
+ private JTextField dateEnd;
+ private JTextField timeStart;
+ private JTextField timeEnd;
+
+ private String validStartDate = "";
+ private String validEndDate = "";
+ private String validStartTime = "";
+ private String validEndTime = "";
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ RoomView window = new RoomView();
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public RoomView() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 775, 400);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ frame.dispose();
+ HomePage.main(null);
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ backButton.setMinimumSize(new Dimension (30, 30));
+ backButton.setMaximumSize(new Dimension (30, 30));
+ frame.getContentPane().add(backButton);
+
+ dateStart = new JTextField();
+ dateStart.setBounds(175, 36, 125, 27);
+ dateStart.setColumns(10);
+ frame.getContentPane().add(dateStart);
+
+ JTextField dateStartLabel = new JTextField("Start Date (yyyy-dd-mm)");
+ dateStartLabel.setBounds(30, 36, 140, 27);
+ dateStartLabel.setColumns(10);
+ dateStartLabel.setEditable(false);
+ frame.getContentPane().add(dateStartLabel);
+
+ dateEnd = new JTextField();
+ dateEnd.setBounds(474, 36, 125, 27);
+ dateEnd.setColumns(10);
+ frame.getContentPane().add(dateEnd);
+
+ JTextField dateEndLabel = new JTextField("End Date (yyyy-dd-mm)");
+ dateEndLabel.setBounds(339, 36, 135, 27);
+ dateEndLabel.setColumns(10);
+ dateEndLabel.setEditable(false);
+ frame.getContentPane().add(dateEndLabel);
+
+ timeStart = new JTextField();
+ timeStart.setBounds(175, 6, 125, 27);
+ timeStart.setColumns(10);
+ frame.getContentPane().add(timeStart);
+
+ JTextField timeStartLabel = new JTextField("Start Time (hh-mm-ss)");
+ timeStartLabel.setBounds(40, 6, 130, 27);
+ timeStartLabel.setColumns(10);
+ timeStartLabel.setEditable(false);
+ frame.getContentPane().add(timeStartLabel);
+
+ timeEnd = new JTextField();
+ timeEnd.setBounds(474, 6, 125, 27);
+ timeEnd.setColumns(10);
+ frame.getContentPane().add(timeEnd);
+
+ JTextField timeEndLabel = new JTextField("End Time (hh-mm-ss)");
+ timeEndLabel.setBounds(349, 6, 125, 27);
+ timeEndLabel.setColumns(10);
+ timeEndLabel.setEditable(false);
+ frame.getContentPane().add(timeEndLabel);
+
+ JButton checkBookings = new JButton("Check Availability");
+ checkBookings.setBounds(620, 6, 150, 27);
+ frame.getContentPane().add(checkBookings);
+ checkBookings.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ checkAvailability();
+ }
+ });
+
+ btn100 = new JButton("100");
+ btn100.setBounds(6, 65, 135, 100);
+ btn100.setEnabled(false);
+ frame.getContentPane().add(btn100);
+ btn100.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "100"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn101 = new JButton("101");
+ btn101.setBounds(164, 65, 135, 100);
+ btn101.setEnabled(false);
+ frame.getContentPane().add(btn101);
+ btn101.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "101"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn102 = new JButton("102");
+ btn102.setBounds(319, 65, 135, 100);
+ btn102.setEnabled(false);
+ frame.getContentPane().add(btn102);
+ btn102.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "102"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn103 = new JButton("103");
+ btn103.setBounds(474, 65, 135, 100);
+ btn103.setEnabled(false);
+ frame.getContentPane().add(btn103);
+ btn103.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "103"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn104 = new JButton("104");
+ btn104.setBounds(634, 65, 135, 100);
+ btn104.setEnabled(false);
+ frame.getContentPane().add(btn104);
+ btn104.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "104"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn107 = new JButton("107");
+ btn107.setBounds(319, 212, 135, 100);
+ btn107.setEnabled(false);
+ frame.getContentPane().add(btn107);
+ btn107.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "107"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn108 = new JButton("108");
+ btn108.setBounds(474, 212, 135, 100);
+ btn108.setEnabled(false);
+ frame.getContentPane().add(btn108);
+ btn108.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "108"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn106 = new JButton("106");
+ btn106.setBounds(164, 212, 135, 100);
+ btn106.setEnabled(false);
+ frame.getContentPane().add(btn106);
+ btn106.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "106"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn105 = new JButton("105");
+ btn105.setBounds(6, 212, 135, 100);
+ btn105.setEnabled(false);
+ frame.getContentPane().add(btn105);
+ btn105.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "105"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ btn109 = new JButton("109");
+ btn109.setBounds(634, 212, 135, 100);
+ btn109.setEnabled(false);
+ frame.getContentPane().add(btn109);
+ btn109.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ String[] args = {validStartTime, validEndTime, validStartDate, validEndDate, "109"};
+ BookRoom.main(args);
+ frame.dispose();
+ }
+ });
+
+ txt100 = new JTextField();
+ txt100.setEditable(false);
+ txt100.setBounds(6, 162, 135, 26);
+ frame.getContentPane().add(txt100);
+ txt100.setColumns(10);
+
+ txt101 = new JTextField();
+ txt101.setEditable(false);
+ txt101.setColumns(10);
+ txt101.setBounds(165, 162, 135, 26);
+ frame.getContentPane().add(txt101);
+
+ txt102 = new JTextField();
+ txt102.setEditable(false);
+ txt102.setColumns(10);
+ txt102.setBounds(319, 162, 135, 26);
+ frame.getContentPane().add(txt102);
+
+ txt103 = new JTextField();
+ txt103.setEditable(false);
+ txt103.setColumns(10);
+ txt103.setBounds(474, 162, 135, 26);
+ frame.getContentPane().add(txt103);
+
+ txt104 = new JTextField();
+ txt104.setEditable(false);
+ txt104.setColumns(10);
+ txt104.setBounds(634, 162, 135, 26);
+ frame.getContentPane().add(txt104);
+
+ txt105 = new JTextField();
+ txt105.setEditable(false);
+ txt105.setColumns(10);
+ txt105.setBounds(6, 309, 135, 26);
+ frame.getContentPane().add(txt105);
+
+ txt106 = new JTextField();
+ txt106.setEditable(false);
+ txt106.setColumns(10);
+ txt106.setBounds(165, 309, 135, 26);
+ frame.getContentPane().add(txt106);
+
+ txt107 = new JTextField();
+ txt107.setEditable(false);
+ txt107.setColumns(10);
+ txt107.setBounds(319, 309, 135, 26);
+ frame.getContentPane().add(txt107);
+
+ txt108 = new JTextField();
+ txt108.setEditable(false);
+ txt108.setColumns(10);
+ txt108.setBounds(474, 309, 135, 26);
+ frame.getContentPane().add(txt108);
+
+ txt109 = new JTextField();
+ txt109.setEditable(false);
+ txt109.setColumns(10);
+ txt109.setBounds(634, 309, 135, 26);
+ frame.getContentPane().add(txt109);
+ }
+
+ private boolean verifyTimes(String startTime, String endTime, String startDate, String endDate) throws Exception{
+ String[] argsStartDate = {"Invalid Start Date"};
+ String[] argsEndDate = {"Invalid End Date"};
+ String[] argsStartTime = {"Invalid Start Time"};
+ String[] argsEndTime = {"Invalid End Time"};
+
+ String currentTime = LocalDate.now().toString();
+ currentTime = currentTime.substring(0, 8);
+ String[] time = currentTime.split(":"); // hh:mm:ss
+
+ String currentDate = LocalTime.now().toString();
+ String[] date = currentDate.split("-"); // yyyy-mm=dd
+
+ //Check Start Time
+ String[] startTimeList = startTime.split("-");
+ if(startTimeList.length != 3){
+ warningPage.main(argsStartTime);
+ return false;
+ }
+ for(int i = 0 ; i < 3 ; i++){
+ int timeListVal = Integer.parseInt(startTimeList[i]);
+ if(timeListVal < Integer.parseInt(time[i]) && timeListVal < 60 && timeListVal >= 0){
+ warningPage.main(argsStartTime);
+ return false;
+ }
+ }
+
+ //Check Start Date
+ String[] startDateList = startDate.split("-");
+ if(startDateList.length != 3){
+ warningPage.main(argsStartDate);
+ return false;
+ }
+ for(int i = 0 ; i < 3 ; i++){
+ int dateListVal = Integer.parseInt(startDateList[i]);
+ if (i == 1){
+ if(checkValidDay(startDateList)){}
+ }
+ if (i == 2){
+ if(dateListVal <= 12 && dateListVal >= 1){}
+ }
+ if(dateListVal < Integer.parseInt(date[i])){
+ warningPage.main(argsStartDate);
+ return false;
+ }
+ }
+
+ //Check End Time
+ String[] endTimeList = endTime.split("-");
+ if(endTimeList.length != 3){
+ warningPage.main(argsEndTime);
+ return false;
+ }
+ for(int i = 0 ; i < 3 ; i++){
+ int timeListVal = Integer.parseInt(endTimeList[i]);
+ if(timeListVal < Integer.parseInt(time[i]) && timeListVal < 60 && timeListVal >= 0){
+ warningPage.main(argsEndTime);
+ return false;
+ }
+ }
+
+ //Check End Date
+ String[] endDateList = endDate.split("-");
+ if(endDateList.length != 3){
+ warningPage.main(argsEndDate);
+ return false;
+ }
+ for(int i = 0 ; i < 3 ; i++){
+ if(Integer.parseInt(endDateList[i]) < Integer.parseInt(date[i])){
+ warningPage.main(argsEndDate);
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ private boolean checkValidDay(String[] date){
+ int month = Integer.parseInt(date[2]);
+ int day = Integer.parseInt(date[1]);
+ int year = Integer.parseInt(date[0]);
+
+ boolean value = true;
+
+ switch(month){
+ case 1:
+ if(day < 1 || day > 31){value = false;}
+ break;
+ case 2:
+ if(day < 1 || day > 28){value = false;}
+ if(day == 29 && year%4 == 0){value = true;}
+ break;
+ case 3:
+ if(day < 1 || day > 31){value = false;}
+ break;
+ case 4:
+ if(day < 1 || day > 30){value = false;}
+ break;
+ case 5:
+ if(day < 1 || day > 31){value = false;}
+ break;
+ case 6:
+ if(day < 1 || day > 30){value = false;}
+ break;
+ case 7:
+ if(day < 1 || day > 31){value = false;}
+ break;
+ case 8:
+ if(day < 1 || day > 31){value = false;}
+ break;
+ case 9:
+ if(day < 1 || day > 30){value = false;}
+ break;
+ case 10:
+ if(day < 1 || day > 31){value = false;}
+ break;
+ case 11:
+ if(day < 1 || day > 30){value = false;}
+ break;
+ case 12:
+ if(day < 1 || day > 31){value = false;}
+ break;
+ default:
+ value = false;
+ break;
+ }
+
+ return value;
+ }
+
+ private void checkAvailability(){
+ try {
+ if(!verifyTimes(timeStart.getText(), timeEnd.getText(), dateStart.getText(), dateEnd.getText())){
+ return;
+ }
+ } catch (Exception e) {
+ String[] exceptionArgs = {"Invalid Time or Date"};
+ warningPage.main(exceptionArgs);
+ return;
+ }
+
+ resetTextBoxes();
+
+ for(Event event : getEvents()){
+ int num = isConflictingDate(event, dateStart.getText(), dateEnd.getText());
+
+ if(num == 0){
+ continue;
+ }
+
+ else if(num == 1){
+ boolean Conflicting = isConflictingTime(event, timeStart.getText(), timeEnd.getText());
+ if(Conflicting){
+ int roomNumber = Integer.parseInt(event.getRoom());
+ setConflict(roomNumber);
+ }
+ else{continue;}
+ }
+
+ else if(num == 2){
+ int roomNumber = Integer.parseInt(event.getRoom());
+ setConflict(roomNumber);
+ }
+ }
+
+ checkRemainingTextBoxes();
+
+ validStartTime = timeStart.getText();
+ validEndTime = timeEnd.getText();
+ validStartDate = dateStart.getText();
+ validEndDate = dateEnd.getText();
+
+ enableButtons();
+ }
+
+ private void resetTextBoxes(){
+ txt100.setText("");
+ txt101.setText("");
+ txt102.setText("");
+ txt103.setText("");
+ txt104.setText("");
+ txt105.setText("");
+ txt106.setText("");
+ txt107.setText("");
+ txt108.setText("");
+ txt109.setText("");
+ }
+
+ private void checkRemainingTextBoxes(){
+ if(txt100.getText().equals("")){txt100.setText("Available");}
+ if(txt101.getText().equals("")){txt101.setText("Available");}
+ if(txt102.getText().equals("")){txt102.setText("Available");}
+ if(txt103.getText().equals("")){txt103.setText("Available");}
+ if(txt104.getText().equals("")){txt104.setText("Available");}
+ if(txt105.getText().equals("")){txt105.setText("Available");}
+ if(txt106.getText().equals("")){txt106.setText("Available");}
+ if(txt107.getText().equals("")){txt107.setText("Available");}
+ if(txt108.getText().equals("")){txt108.setText("Available");}
+ if(txt109.getText().equals("")){txt109.setText("Available");}
+ }
+
+ private void setConflict(int roomNumber){
+ switch(roomNumber){
+ case 100:
+ txt100.setText("Unavailable");
+ break;
+ case 101:
+ txt101.setText("Unavailable");
+ break;
+ case 102:
+ txt102.setText("Unavailable");
+ break;
+ case 103:
+ txt103.setText("Unavailable");
+ break;
+ case 104:
+ txt104.setText("Unavailable");
+ break;
+ case 105:
+ txt105.setText("Unavailable");
+ break;
+ case 106:
+ txt106.setText("Unavailable");
+ break;
+ case 107:
+ txt107.setText("Unavailable");
+ break;
+ case 108:
+ txt108.setText("Unavailable");
+ break;
+ case 109:
+ txt109.setText("Unavailable");
+ break;
+ default:
+ break;
+ }
+ }
+
+ //returns 0 if no conflict
+ //returns 1 if need to check times
+ //returns 2 if guaranteed conflict
+ private int isConflictingDate(Event event, String dateStart, String dateEnd){
+ String eventStartDate = event.getStartDate();
+ String eventEndDate = event.getEndDate();
+
+ if(compareDates(eventStartDate, dateEnd) == -1 || compareDates(dateStart, eventEndDate) == -1){
+ return 0;
+ }
+
+ if(compareDates(eventStartDate, dateStart) >= 1 && compareDates(eventEndDate, dateEnd) <= 1){
+ return 2;
+ }
+
+ return 1;
+ }
+
+ //return 0 if equals
+ //return 1 if date2 is after date1
+ //return -1 if date1 is after date2
+ private int compareDates(String date1, String date2){ // yyyy-dd-mm
+ String[] date1List = date1.split("-");
+ String[] date2List = date2.split("-");
+
+ if(Integer.parseInt(date1List[0]) > Integer.parseInt(date2List[0])){
+ return -1;
+ }
+ if(Integer.parseInt(date2List[0]) > Integer.parseInt(date1List[0])){
+ return 1;
+ }
+
+ if(Integer.parseInt(date1List[1]) > Integer.parseInt(date2List[1])){
+ return -1;
+ }
+ if(Integer.parseInt(date2List[1]) > Integer.parseInt(date1List[1])){
+ return 1;
+ }
+
+ if(Integer.parseInt(date1List[2]) > Integer.parseInt(date2List[2])){
+ return -1;
+ }
+ if(Integer.parseInt(date2List[2]) > Integer.parseInt(date1List[2])){
+ return 1;
+ }
+
+ return 0;
+ }
+
+ private boolean isConflictingTime(Event event, String timeStart, String timeEnd){
+ String eventStartTime = event.getStartTime();
+ String eventEndTime = event.getEndTime();
+
+ if(compareTimes(eventStartTime, timeEnd) == -1 || compareTimes(timeStart, eventEndTime) == -1){
+ return false;
+ }
+
+ return true;
+ }
+
+ //return 0 if equals
+ //return 1 if time2 is after time1
+ //return -1 if time1 is after time2
+ private int compareTimes(String time1, String time2){ // hh-mm-ss
+ String[] time1List = time1.split("-");
+ String[] time2List = time2.split("-");
+
+ if(Integer.parseInt(time1List[0]) > Integer.parseInt(time2List[0])){
+ return -1;
+ }
+ if(Integer.parseInt(time2List[0]) > Integer.parseInt(time1List[0])){
+ return 1;
+ }
+
+ if(Integer.parseInt(time1List[1]) - Integer.parseInt(time2List[1]) >= 30){ //need at least 30 minute buffer to be different enough
+ return -1;
+ }
+ if(Integer.parseInt(time2List[1]) - Integer.parseInt(time1List[1]) >= 30){ //need at least 30 minute buffer to be different enough
+ return 1;
+ }
+
+ return 0;
+ }
+
+ private void enableButtons(){
+ btn100.setEnabled(true);
+ btn101.setEnabled(true);
+ btn102.setEnabled(true);
+ btn103.setEnabled(true);
+ btn104.setEnabled(true);
+ btn105.setEnabled(true);
+ btn106.setEnabled(true);
+ btn107.setEnabled(true);
+ btn108.setEnabled(true);
+ btn109.setEnabled(true);
+ }
+}
diff --git a/Sprint 3/src/UI/Windows/SearchFunction$3.class b/Sprint 3/src/UI/Windows/SearchFunction$3.class
new file mode 100644
index 000000000..dd2654b57
Binary files /dev/null and b/Sprint 3/src/UI/Windows/SearchFunction$3.class differ
diff --git a/Sprint 3/src/UI/Windows/SearchFunction$4.class b/Sprint 3/src/UI/Windows/SearchFunction$4.class
new file mode 100644
index 000000000..051d02385
Binary files /dev/null and b/Sprint 3/src/UI/Windows/SearchFunction$4.class differ
diff --git a/Sprint 3/src/UI/Windows/SearchFunction.java b/Sprint 3/src/UI/Windows/SearchFunction.java
new file mode 100644
index 000000000..390c8e83e
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/SearchFunction.java
@@ -0,0 +1,180 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+
+import javax.swing.JLabel;
+import java.awt.Font;
+import javax.swing.JSeparator;
+import javax.swing.JScrollPane;
+import javax.swing.JInternalFrame;
+import javax.swing.ScrollPaneConstants;
+import javax.swing.JButton;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.ListSelectionModel;
+import javax.swing.JComboBox;
+import java.awt.GridLayout;
+import javax.swing.JOptionPane;
+
+import UI.Parts.Button;
+import src.Main;
+
+public class SearchFunction {
+
+ private JFrame frame;
+ private JTextField searchBar;
+ private JSeparator separator_1;
+ private JButton searchButton;
+ private JLabel lblAdvanced;
+ private JScrollPane dontDoAnything;
+ private JComboBox advList;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ SearchFunction window = new SearchFunction();
+ window.frame.setVisible(true);
+ window.frame.setLocationRelativeTo(null);
+ window.frame.setMinimumSize(new Dimension(435, 345));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public SearchFunction() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setTitle("Search Page");
+ frame.setBounds(100, 100, 435, 345);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ searchBar = new JTextField();
+ searchBar.setFont(new Font("Cambria", Font.BOLD, 15));
+ searchBar.setBounds(107, 5, 259, 32);
+ frame.getContentPane().add(searchBar);
+ searchBar.setColumns(10);
+
+ JLabel lblNewLabel = new JLabel("Search:");
+ lblNewLabel.setFont(new Font("Cambria", Font.BOLD, 17));
+ lblNewLabel.setBounds(40, 2, 76, 34);
+ frame.getContentPane().add(lblNewLabel);
+
+ separator_1 = new JSeparator();
+ separator_1.setBounds(10, 97, 414, 2);
+ frame.getContentPane().add(separator_1);
+
+ dontDoAnything = new JScrollPane();
+ dontDoAnything.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
+ dontDoAnything.setBounds(10, 110, 414, 192);
+ frame.getContentPane().add(dontDoAnything);
+
+ searchButton = new JButton("GO");
+ searchButton.setFont(new Font("Cambria", Font.BOLD, 15));
+ searchButton.setBounds(367, 22, 57, 43);
+ frame.getContentPane().add(searchButton);
+
+ lblAdvanced = new JLabel("Advanced:");
+ lblAdvanced.setFont(new Font("Cambria", Font.BOLD, 17));
+ lblAdvanced.setBounds(40, 43, 106, 34);
+ frame.getContentPane().add(lblAdvanced);
+
+ String advancedSearchOptions[] = {"Last Name First Name", "Room Number", "Medical Record Number", "Primary Care Provider", "Admission Date"};
+ advList = new JComboBox(advancedSearchOptions);
+ advList.setFont(new Font("Cambria", Font.BOLD, 15));
+ advList.setBounds(129, 45, 233, 34);
+ frame.getContentPane().add(advList);
+
+
+ JButton backButton = new JButton("๐");
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+ backButton.setBounds(6, 6, 30, 30);
+ frame.getContentPane().add(backButton);
+
+ addSearchFunction(searchButton);
+ }
+
+ private void addSearchFunction(JButton button){
+ button.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ String searchType = (String) advList.getSelectedItem();
+ String searchParam = searchBar.getText();
+ try {
+ String names[] = Main.searchSelect(searchType, searchParam);
+ populateScrollPane(names);
+ } catch (Exception exception) {
+ JOptionPane.showMessageDialog(null, exception.getMessage(), "ERROR", JOptionPane.ERROR_MESSAGE);
+ }
+ // String names[] = {"Doe John 1", "Doe John 1", "Doe John 1", "Doe John 1", "Doe John 1"};
+ }
+ });
+ }
+
+ private void addGetPatientDataFunction(Button button) {
+ button.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ try {
+ String concatenatedData = button.getText() + " " + button.getID();
+ if (concatenatedData.split(" ").length < 3) {
+ throw new IllegalArgumentException("Button text and ID must result in at least three parts separated by spaces.");
+ }
+ String patientData[] = Main.ptnSelected(concatenatedData);
+ PatientData.main(patientData);
+ frame.dispose();
+ } catch (Exception exception) {
+ JOptionPane.showMessageDialog(null, exception.getMessage(), "ERROR", JOptionPane.ERROR_MESSAGE);
+ }
+ }
+ });
+ }
+
+ private void populateScrollPane(String names[]){
+ JPanel panel = new JPanel();
+ panel.setLayout(new GridLayout(names.length, 1, 5, 5));
+
+ for(String name : names){
+ String data[] = name.split(" ");
+ Button button = new Button(data[0]+" "+data[1], data[2]);
+ button.setBounds(50, 50, 50, 50);
+ addGetPatientDataFunction(button);
+ panel.add(button);
+ }
+
+ dontDoAnything.setViewportView(panel);
+
+ frame.getContentPane().revalidate();
+ frame.getContentPane().repaint();
+ frame.revalidate();
+ frame.repaint();
+ frame.pack();
+ }
+}
diff --git a/Sprint 3/src/UI/Windows/SimpleSearchTest$1.class b/Sprint 3/src/UI/Windows/SimpleSearchTest$1.class
new file mode 100644
index 000000000..6840467bd
Binary files /dev/null and b/Sprint 3/src/UI/Windows/SimpleSearchTest$1.class differ
diff --git a/Sprint 3/src/UI/Windows/SimpleSearchTest.class b/Sprint 3/src/UI/Windows/SimpleSearchTest.class
new file mode 100644
index 000000000..0936ac8ac
Binary files /dev/null and b/Sprint 3/src/UI/Windows/SimpleSearchTest.class differ
diff --git a/Sprint 3/src/UI/Windows/SimpleSearchTest.java b/Sprint 3/src/UI/Windows/SimpleSearchTest.java
new file mode 100644
index 000000000..cd0c285d1
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/SimpleSearchTest.java
@@ -0,0 +1,38 @@
+package UI.Windows;
+
+import javax.swing.*;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+public class SimpleSearchTest {
+ private JFrame frame;
+ private JTextField searchBar;
+ private JButton searchButton;
+
+ public static void main(String[] args) {
+ SwingUtilities.invokeLater(() -> {
+ SimpleSearchTest window = new SimpleSearchTest();
+ window.frame.setVisible(true);
+ });
+ }
+
+ public SimpleSearchTest() {
+ frame = new JFrame("Search Test");
+ frame.setBounds(100, 100, 300, 200);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.setLayout(null);
+
+ searchBar = new JTextField();
+ searchBar.setBounds(50, 20, 200, 30);
+ frame.add(searchBar);
+
+ searchButton = new JButton("GO");
+ searchButton.setBounds(100, 70, 100, 30);
+ searchButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ System.out.println("GO button clicked");
+ }
+ });
+ frame.add(searchButton);
+ }
+}
diff --git a/Sprint 3/src/UI/Windows/exitOrNo$1.class b/Sprint 3/src/UI/Windows/exitOrNo$1.class
new file mode 100644
index 000000000..58da8932d
Binary files /dev/null and b/Sprint 3/src/UI/Windows/exitOrNo$1.class differ
diff --git a/Sprint 3/src/UI/Windows/exitOrNo$2.class b/Sprint 3/src/UI/Windows/exitOrNo$2.class
new file mode 100644
index 000000000..db01e3584
Binary files /dev/null and b/Sprint 3/src/UI/Windows/exitOrNo$2.class differ
diff --git a/Sprint 3/src/UI/Windows/exitOrNo$3.class b/Sprint 3/src/UI/Windows/exitOrNo$3.class
new file mode 100644
index 000000000..e3a5cfb4a
Binary files /dev/null and b/Sprint 3/src/UI/Windows/exitOrNo$3.class differ
diff --git a/Sprint 3/src/UI/Windows/exitOrNo.class b/Sprint 3/src/UI/Windows/exitOrNo.class
new file mode 100644
index 000000000..017daadf7
Binary files /dev/null and b/Sprint 3/src/UI/Windows/exitOrNo.class differ
diff --git a/Sprint 3/src/UI/Windows/exitOrNo.java b/Sprint 3/src/UI/Windows/exitOrNo.java
new file mode 100644
index 000000000..8629e0ba5
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/exitOrNo.java
@@ -0,0 +1,106 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JDesktopPane;
+import javax.swing.JTextPane;
+import java.awt.BorderLayout;
+import javax.swing.JButton;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JRadioButton;
+import javax.swing.SwingConstants;
+
+import src.Main;
+
+public class exitOrNo{
+
+ private JFrame frame;
+ private JTextField txtExitWithoutSaving;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ exitOrNo window = new exitOrNo(args);
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public exitOrNo(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 250, 100);
+ frame.setLocationRelativeTo(null);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton exitButton = new JButton("DISCARD CHANGES");
+ exitButton.setBounds(6, 37, 117, 29);
+ frame.getContentPane().add(exitButton);
+ exitButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ if(args.length == 6){
+ HomePage.main(null);
+ frame.dispose();
+ }
+ else{
+ String newArgs[] = {args[0], args[1], args[2], args[3], args[4], args[5]};
+ PatientData.main(newArgs);
+ frame.dispose();
+ }
+ }
+ });
+
+ JButton exAndSave = new JButton("EXIT AND SAVE");
+ exAndSave.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
+ exAndSave.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ if(args.length == 6){
+ try {
+ Main.addPtn(args);
+ HomePage.main(null);
+ frame.dispose();
+ } catch (Exception exception) {
+ // TODO: handle exception
+ }
+ }
+ else{
+ String newArgs[] = {args[6], args[7], args[8], args[9], args[10], args[11]};
+ PatientData.main(newArgs);
+ frame.dispose();
+ }
+ }
+ });
+ exAndSave.setBounds(127, 37, 117, 29);
+ frame.getContentPane().add(exAndSave);
+
+ txtExitWithoutSaving = new JTextField();
+ txtExitWithoutSaving.setHorizontalAlignment(SwingConstants.CENTER);
+ txtExitWithoutSaving.setEditable(false);
+ txtExitWithoutSaving.setText("Exit Without Saving?");
+ txtExitWithoutSaving.setFont(new Font("Lucida Grande", Font.BOLD, 13));
+ txtExitWithoutSaving.setBounds(50, -1, 150, 36);
+ frame.getContentPane().add(txtExitWithoutSaving);
+ txtExitWithoutSaving.setColumns(10);
+ }
+}
diff --git a/Sprint 3/src/UI/Windows/exitWithoutSaving.java b/Sprint 3/src/UI/Windows/exitWithoutSaving.java
new file mode 100644
index 000000000..10b190168
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/exitWithoutSaving.java
@@ -0,0 +1,85 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JDesktopPane;
+import javax.swing.JTextPane;
+import java.awt.BorderLayout;
+import javax.swing.JButton;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JRadioButton;
+import javax.swing.SwingConstants;
+
+public class exitWithoutSaving{
+
+ private JFrame frame;
+ private JTextField txtExitWithoutSaving;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ exitWithoutSaving window = new exitWithoutSaving(args);
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public exitWithoutSaving(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 250, 100);
+ frame.setLocationRelativeTo(null);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton exitButton = new JButton("DISCARD CHANGES");
+ exitButton.setBounds(6, 37, 117, 29);
+ frame.getContentPane().add(exitButton);
+ exitButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+
+ JButton exAndSave = new JButton("CONTINUE EDITING");
+ exAndSave.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
+ exAndSave.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ EditPatientData.main(args);
+ frame.dispose();
+ }
+ });
+ exAndSave.setBounds(127, 37, 117, 29);
+ frame.getContentPane().add(exAndSave);
+
+ txtExitWithoutSaving = new JTextField();
+ txtExitWithoutSaving.setHorizontalAlignment(SwingConstants.CENTER);
+ txtExitWithoutSaving.setEditable(false);
+ txtExitWithoutSaving.setText("Exit Without Saving?");
+ txtExitWithoutSaving.setFont(new Font("Lucida Grande", Font.BOLD, 13));
+ txtExitWithoutSaving.setBounds(50, -1, 150, 36);
+ frame.getContentPane().add(txtExitWithoutSaving);
+ txtExitWithoutSaving.setColumns(10);
+ }
+}
\ No newline at end of file
diff --git a/Sprint 3/src/UI/Windows/warningPage.java b/Sprint 3/src/UI/Windows/warningPage.java
new file mode 100644
index 000000000..6c62a059e
--- /dev/null
+++ b/Sprint 3/src/UI/Windows/warningPage.java
@@ -0,0 +1,87 @@
+package UI.Windows;
+
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JDesktopPane;
+import javax.swing.JTextPane;
+import java.awt.BorderLayout;
+import javax.swing.JButton;
+import javax.swing.JTextField;
+import java.awt.Font;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import javax.swing.JRadioButton;
+import javax.swing.SwingConstants;
+
+public class warningPage{
+
+ private JFrame frame;
+ private JTextField txtExitWithoutSaving;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ if(args != null){
+ warningPage window = new warningPage(args);
+ window.frame.setVisible(true);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public warningPage(String[] args) {
+ initialize(args);
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize(String[] args) {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 250, 100);
+ frame.setLocationRelativeTo(null);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.getContentPane().setLayout(null);
+
+ JButton exitButton = new JButton("Close");
+ exitButton.setBounds(66, 37, 117, 29);
+ frame.getContentPane().add(exitButton);
+ exitButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ HomePage.main(null);
+ frame.dispose();
+ }
+ });
+
+ // JButton exAndSave = new JButton("CONTINUE EDITING");
+ // exAndSave.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
+ // exAndSave.addActionListener(new ActionListener() {
+ // public void actionPerformed(ActionEvent e) {
+ // EditPatientData.main(args);
+ // frame.dispose();
+ // }
+ // });
+ // exAndSave.setBounds(127, 37, 117, 29);
+ // frame.getContentPane().add(exAndSave);
+
+ txtExitWithoutSaving = new JTextField();
+ txtExitWithoutSaving.setHorizontalAlignment(SwingConstants.CENTER);
+ txtExitWithoutSaving.setEditable(false);
+ txtExitWithoutSaving.setText(args[0]);
+ txtExitWithoutSaving.setFont(new Font("Lucida Grande", Font.BOLD, 13));
+ txtExitWithoutSaving.setBounds(50, -1, 150, 36);
+ frame.getContentPane().add(txtExitWithoutSaving);
+ txtExitWithoutSaving.setColumns(10);
+ }
+}
\ No newline at end of file
diff --git a/Sprint 3/src/src/AddElements.class b/Sprint 3/src/src/AddElements.class
new file mode 100644
index 000000000..2e5ef1d89
Binary files /dev/null and b/Sprint 3/src/src/AddElements.class differ
diff --git a/Sprint 3/src/src/AddElements.java b/Sprint 3/src/src/AddElements.java
new file mode 100644
index 000000000..5002e11d5
--- /dev/null
+++ b/Sprint 3/src/src/AddElements.java
@@ -0,0 +1,42 @@
+package src;
+
+import java.util.LinkedList;
+
+//Test class for making sure patient information is retrievable
+public class AddElements {
+ public void execute() {
+ boolean on = true;
+ //create list of patients
+ LinkedList patientList = new LinkedList();
+
+ //Need to create a pcp list as well?
+ //pcps created for testing
+ pcpType Dr1 = new pcpType("Renata", "Glasc", "General Surgery");
+ pcpType Dr2 = new pcpType("Margaret", "Levy", "Cardio Thoracic Surgery");
+
+ //patients created for testing
+ //PatientType patient1 = new PatientType("John", "Smith", "123-45-6789", "23132312", "123",
+ //1, 2, 2001, Dr1, true, "This is a chart", "placeholder");
+ //PatientType patient2 = new PatientType("Jane", "Smith", "321-54-9876", "80085", "124",
+ //11, 12, 2005, Dr2, true, "This is also a chart", "placeholder");
+ //Testing adding events to patients
+ /*patient2.newEvent(new Event("Appendectomy","General Surgery","Patient will be receiving a laparoscopic appendectomy due to burst appendix", LocalDateTime.of(2022,1,12,6,0),"124"));
+ patient1.newEvent(new Event("General Check-up","Check-up","Will be seeing John for his annual visit", LocalDateTime.of(2022,1,12,10,30),"125"));
+ patient1.newEvent(new Event("Knee Replacement", "Orthopedic Surgery", "Patient will be receiving total knee replacement due to loss of cartilage", LocalDateTime.of(2021,3,15,15,30),"225"));
+
+
+ //Testing adding patients to patient list
+ patientList.add(patient1);
+ patientList.add(patient2); */
+
+ printList(patientList);
+ }
+
+ //Prints all patients in the list
+ public static void printList(LinkedList patientList) {
+ for (int i = 0; i < patientList.size(); i++) {
+ PatientType currentpatient = patientList.get(i);
+ currentpatient.printPatient();
+ }
+ }
+}
diff --git a/Sprint 3/src/src/DataSeeder.class b/Sprint 3/src/src/DataSeeder.class
new file mode 100644
index 000000000..fca84c861
Binary files /dev/null and b/Sprint 3/src/src/DataSeeder.class differ
diff --git a/Sprint 3/src/src/DataSeeder.java b/Sprint 3/src/src/DataSeeder.java
new file mode 100644
index 000000000..17faabded
--- /dev/null
+++ b/Sprint 3/src/src/DataSeeder.java
@@ -0,0 +1,119 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.Date;
+import java.sql.DriverManager;
+import java.sql.PreparedStatement;
+import java.sql.SQLException;
+import java.util.Random;
+
+public class DataSeeder {
+
+ private static final String URL = "jdbc:mysql://localhost:3306/HospitalManagement?useSSL=false&serverTimezone=America/New_York";
+ private static final String USER = "root";
+ private static final String PASSWORD = "SQL355%Grouppa55";
+ private static final int NUMBER_OF_PATIENTS = 1000; // Number of patients to generate
+ private static final int NUMBER_OF_PHYSICIANS = 10; // Number of physicians to generate
+
+ private static final String[] firstNames = {
+ "John", "Jane", "Alice", "Bob", "Carol", "Dave", "Eva", "Frank", "Grace", "Henry",
+ "Liam", "Olivia", "Noah", "Emma", "Ava", "Sophia", "Mason", "Lucas", "Amelia", "Ethan",
+ "Isabella", "James", "Alexander", "Charlotte", "Michael", "Benjamin", "Mia", "Elijah",
+ "Daniel", "Emily", "Matthew", "Ella", "Samuel", "Victoria", "Nathan", "Chloe", "Oliver",
+ "Madison", "Sebastian", "Jack", "Harper", "Jacob", "Leo", "Nora", "Sophie", "Abigail",
+ "Nathaniel", "Zoe", "Logan", "Isla", "Jackson", "Evelyn", "Joshua", "Aiden", "Lily"
+ };
+ private static final String[] lastNames = {
+ "Smith", "Johnson", "Williams", "Brown", "Jones", "Garcia", "Miller", "Davis",
+ "Rodriguez", "Martinez", "Wilson", "Anderson", "Taylor", "Thomas", "Hernandez",
+ "Moore", "Martin", "Jackson", "Lee", "Perez", "Clark", "Walker", "Hall", "Allen",
+ "Young", "Harris", "King", "Wright", "Lopez", "Hill", "Scott", "Green", "Adams",
+ "Baker", "Gonzalez", "Nelson", "Carter", "Mitchell", "Roberts", "Turner", "Phillips",
+ "Campbell", "Parker", "Evans", "Edwards", "Collins", "Stewart", "Sanchez", "Morris",
+ "Murphy", "Reed", "Cook", "Morgan", "Bell", "Bailey", "Rivera", "Cooper", "Richardson",
+ "Cox", "Howard", "Ward", "Torres", "Peterson", "Gray", "Ramirez", "James"
+ };
+ private static final String[] specialties = {
+ "Cardiology", "Neurology", "Orthopedics", "Pediatrics", "General Practice",
+ "Gastroenterology", "Pulmonology", "Dermatology", "Oncology", "Endocrinology"
+ };
+ private static final String[] diagnoses = {
+ "Hypertension", "Migraine", "Fracture", "Asthma", "Diabetes", "Infection",
+ "Allergy", "Depression", "Anxiety", "Arthritis", "Bronchitis", "Covid-19",
+ "Heart Disease", "Kidney Stones", "Gastroenteritis", "Pneumonia", "Chronic Fatigue",
+ "Obesity", "Liver Disease", "Pancreatitis", "COPD", "Stroke", "High Cholesterol",
+ "Appendicitis", "Sleep Apnea", "Acid Reflux", "Gout", "Osteoporosis", "Vertigo",
+ "Epilepsy", "Gallbladder Disease", "Skin Rash", "Ulcer", "Hepatitis", "Parkinson's Disease",
+ "Tuberculosis", "Herniated Disc", "Multiple Sclerosis", "Fibromyalgia", "Scoliosis",
+ "Hemorrhoids", "Conjunctivitis", "Sinusitis", "Ear Infection", "Seasonal Flu",
+ "Bipolar Disorder", "Panic Disorder", "PTSD"
+ };
+
+ public static void main(String[] args) {
+ Random random = new Random();
+
+ try (Connection conn = DriverManager.getConnection(URL, USER, PASSWORD)) {
+ seedPhysicians(conn, random);
+ seedPatients(conn, random);
+ System.out.println(NUMBER_OF_PATIENTS + " patients have been successfully added to the database.");
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ private static void seedPhysicians(Connection conn, Random random) throws SQLException {
+ String sql = "INSERT INTO Physicians (first_name, last_name, specialty) VALUES (?, ?, ?)";
+ try (PreparedStatement pstmt = conn.prepareStatement(sql)) {
+ for (int i = 0; i < NUMBER_OF_PHYSICIANS; i++) {
+ String firstName = firstNames[random.nextInt(firstNames.length)];
+ String lastName = lastNames[random.nextInt(lastNames.length)];
+ String specialty = specialties[random.nextInt(specialties.length)];
+
+ pstmt.setString(1, firstName);
+ pstmt.setString(2, lastName);
+ pstmt.setString(3, specialty);
+
+ pstmt.addBatch();
+ }
+ pstmt.executeBatch();
+ System.out.println(NUMBER_OF_PHYSICIANS + " physicians have been successfully added to the database.");
+ }
+ }
+
+ private static void seedPatients(Connection conn, Random random) throws SQLException {
+ String sql = "INSERT INTO Patients (first_name, last_name, date_of_birth, gender, admission_date, discharge_date, room_number, attending_physician, diagnosis) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
+ try (PreparedStatement pstmt = conn.prepareStatement(sql)) {
+ for (int i = 0; i < NUMBER_OF_PATIENTS; i++) {
+ // Generating random patient data
+ String firstName = firstNames[random.nextInt(firstNames.length)];
+ String lastName = lastNames[random.nextInt(lastNames.length)];
+ Date dateOfBirth = new Date(System.currentTimeMillis() - ((random.nextInt(60) + 20) * 365L * 24 * 60 * 60 * 1000L + random.nextInt(365) * 24L * 60 * 60 * 1000L)); // Age 20-80 with more variation
+ String gender = random.nextBoolean() ? "M" : "F";
+ Date admissionDate = new Date(System.currentTimeMillis() - (random.nextInt(10) * 24L * 60L * 60L * 1000L)); // Past 10 days
+ Date dischargeDate = random.nextBoolean() ? new Date(admissionDate.getTime() + (random.nextInt(5) * 24L * 60L * 60L * 1000L)) : null; // Within 5 days or null
+ int roomNumber = random.nextInt(100) + 1; // Rooms 1-100 for more diversity
+ int attendingPhysician = random.nextInt(NUMBER_OF_PHYSICIANS) + 1; // Physicians 1-10 for more diversity
+ String diagnosis = diagnoses[random.nextInt(diagnoses.length)];
+
+ // Setting values for SQL statement
+ pstmt.setString(1, firstName);
+ pstmt.setString(2, lastName);
+ pstmt.setDate(3, dateOfBirth);
+ pstmt.setString(4, gender);
+ pstmt.setDate(5, admissionDate);
+ if (dischargeDate != null) {
+ pstmt.setDate(6, dischargeDate);
+ } else {
+ pstmt.setNull(6, java.sql.Types.DATE);
+ }
+ pstmt.setInt(7, roomNumber);
+ pstmt.setInt(8, attendingPhysician);
+ pstmt.setString(9, diagnosis);
+
+ // Add to batch
+ pstmt.addBatch();
+ }
+ pstmt.executeBatch();
+ }
+ }
+}
diff --git a/Sprint 3/src/src/DatabaseConnection.class b/Sprint 3/src/src/DatabaseConnection.class
new file mode 100644
index 000000000..91250c8fb
Binary files /dev/null and b/Sprint 3/src/src/DatabaseConnection.class differ
diff --git a/Sprint 3/src/src/DatabaseConnection.java b/Sprint 3/src/src/DatabaseConnection.java
new file mode 100644
index 000000000..327927686
--- /dev/null
+++ b/Sprint 3/src/src/DatabaseConnection.java
@@ -0,0 +1,15 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+
+public class DatabaseConnection {
+ private static final String URL = "jdbc:mysql://localhost:3306/HospitalManagement?useSSL=false&serverTimezone=America/New_York";
+ private static final String USER = "root";
+ private static final String PASSWORD = "SQL355%Grouppa55"; // Replace with your root password
+
+ public static Connection getConnection() throws SQLException {
+ return DriverManager.getConnection(URL, USER, PASSWORD);
+ }
+}
diff --git a/Sprint 3/src/src/DatabaseOutline.sql b/Sprint 3/src/src/DatabaseOutline.sql
new file mode 100644
index 000000000..dec739093
--- /dev/null
+++ b/Sprint 3/src/src/DatabaseOutline.sql
@@ -0,0 +1,23 @@
+CREATE TABLE Patients
+(
+ patient_id INT PRIMARY KEY AUTO_INCREMENT,
+ first_name VARCHAR(50) NOT NULL,
+ last_name VARCHAR(50) NOT NULL,
+ date_of_birth DATE,
+ gender CHAR(1),
+ admission_date DATE,
+ discharge_date DATE,
+ room_number INT NOT NULL,
+ attending_physician VARCHAR(50),
+ diagnosis VARCHAR(100)
+
+);
+
+CREATE TABLE Physicians
+(
+ physician_id INT PRIMARY KEY AUTO_INCREMENT,
+ first_name VARCHAR(50) NOT NULL,
+ last_name VARCHAR(50) NOT NULL,
+ specialty VARCHAR(50)
+);
+
diff --git a/Sprint 3/src/src/Event.class b/Sprint 3/src/src/Event.class
new file mode 100644
index 000000000..03b7d89fc
Binary files /dev/null and b/Sprint 3/src/src/Event.class differ
diff --git a/Sprint 3/src/src/Event.java b/Sprint 3/src/src/Event.java
new file mode 100644
index 000000000..bb907be8f
--- /dev/null
+++ b/Sprint 3/src/src/Event.java
@@ -0,0 +1,58 @@
+package src;
+
+import java.time.LocalDateTime;
+//Class for creating event objects
+public class Event {
+ private String eventName;
+ private String eventType;
+ private String eventDescription;
+ private LocalDateTime eventTime; // date and time of event
+ private String eventRoom;
+
+ //default constructor
+ public Event() {
+ this.eventName = "";
+ this.eventType = "";
+ this.eventDescription = "";
+ this.eventTime = null;
+ this.eventRoom = "";
+ }
+
+ //initialized constructor
+ public Event(String eventName, String eventType, String eventDescription, LocalDateTime eventTime, String eventRoom) {
+ this.eventName = eventName;
+ this.eventType = eventType;
+ this.eventTime = eventTime;
+ this.eventDescription = eventDescription;
+ this.eventRoom = eventRoom;
+ }
+ //getters
+ public String getEventName() {return eventName;}
+ public String getEventType() {return eventType;}
+ public String getEventDescription() {return eventDescription;}
+ public LocalDateTime getEventTime() {return eventTime;}
+ public String getEventRoom() {return eventRoom;}
+ //setters
+ public void setEventName(String eventName) {this.eventName = eventName;}
+ public void setEventType(String eventType) {this.eventType = eventType;}
+ public void setEventDescription(String eventDescription) {this.eventDescription = eventDescription;}
+ public void setEventTime(LocalDateTime eventTime) {this.eventTime = eventTime;}
+ public void setEventRoom(String eventRoom) {this.eventRoom = eventRoom;}
+
+ //print method for current patient event information
+ public void printEvent() {
+ System.out.println("Patient Event: " + this.getEventName() + " occuring at " + this.getEventTime());
+ System.out.println("Type: " + this.getEventType());
+ System.out.println("Description: " + this.getEventDescription());
+ System.out.println("Room: " + this.getEventRoom());
+ System.out.println("----------------------------------------");
+ }
+
+ //print function for chosen event
+ public void printChosenEvent(Event chosenEvent) {
+ System.out.println("Patient Event: " + chosenEvent.getEventName() + " occuring at " + chosenEvent.getEventTime());
+ System.out.println("Type: " + chosenEvent.getEventType());
+ System.out.println("Description: " + chosenEvent.getEventDescription());
+ System.out.println("Room: " + chosenEvent.getEventRoom());
+ }
+}
diff --git a/Sprint 3/src/src/Main.class b/Sprint 3/src/src/Main.class
new file mode 100644
index 000000000..ebdab877a
Binary files /dev/null and b/Sprint 3/src/src/Main.class differ
diff --git a/Sprint 3/src/src/Main.java b/Sprint 3/src/src/Main.java
new file mode 100644
index 000000000..291b4bac9
--- /dev/null
+++ b/Sprint 3/src/src/Main.java
@@ -0,0 +1,426 @@
+package src;
+
+import java.sql.*;
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+import java.sql.SQLException;
+import java.util.List;
+import java.util.Scanner;
+import java.util.Random;
+
+public class Main {
+
+ public static void showmenu1() throws SQLException {
+ Scanner scanner = new Scanner(System.in);
+ String choice;
+ do {
+ System.out.printf("-------------Main Menu---------------\n");
+ System.out.printf("What search would you like? \n");
+ System.out.printf("1. Basic search...\n");
+ System.out.printf("2. Advanced search...\n");
+ System.out.printf("3. Print all Patients...\n");
+ System.out.printf("4. Call a doctor...\n");
+ System.out.printf("9. Exit\n");
+
+ choice = scanner.nextLine();
+
+ if (choice.equalsIgnoreCase("1")) {
+ System.out.printf("--------Basic Search-------------\n");
+ System.out.printf("Enter patient first name...\n");
+ String firstName = scanner.nextLine();
+ System.out.printf("Enter patient last name...\n");
+ String lastName = scanner.nextLine();
+ String[] patientNames = basicPatientSearch(firstName, lastName);
+ if (patientNames.length == 0) {
+ System.out.printf("No patients found with that name.\n");
+ } else {
+ System.out.printf("Patients found:\n");
+ for (String name : patientNames) {
+ System.out.println(name);
+ }
+ }
+ } else if (choice.equalsIgnoreCase("2")) {
+ showmenu2();
+ } else if (choice.equalsIgnoreCase("3")) {
+ List patients = PatientDBService.getAllPatients();
+ int start = 0;
+ int end = Math.min(100, patients.size());
+ scanner = new Scanner(System.in);
+
+ while (start < patients.size()) {
+ for (int i = start; i < end; i++) {
+ PatientType patient = patients.get(i);
+ System.out.println(patient.getPatientFName() + " " + patient.getPatientLName());
+ }
+ if (end == patients.size()) {
+ break;
+ }
+ System.out.println("Press Enter to see the next 100 patients...");
+ scanner.nextLine();
+ start = end;
+ end = Math.min(end + 100, patients.size());
+ }
+ } else if (choice.equalsIgnoreCase("4")) {
+ System.out.printf("Calling doctor on call");
+ callingDr();
+ }
+ } while (!(choice.equals("9")));
+ }
+
+ public static void showmenu2() throws SQLException {
+ Scanner scanner = new Scanner(System.in);
+ String choice;
+
+ do {
+ System.out.printf("--------Advanced Search-------------\n");
+ System.out.printf("Search by... \n");
+ System.out.printf("1. Room number \n");
+ System.out.printf("2. Medical Record Number \n");
+ System.out.printf("3. Admission Date \n");
+ System.out.printf("4. Primary Care Provider \n");
+ System.out.printf("9. Exit \n");
+ choice = scanner.nextLine();
+ String[] patientNames = new String[0];
+
+ if (choice.equalsIgnoreCase("1")) {
+ System.out.printf("Enter the room\n");
+ String room = scanner.nextLine();
+ patientNames = roomSearch(room);
+ } else if (choice.equalsIgnoreCase("2")) {
+ System.out.printf("Enter the MRN\n");
+ String MRN = scanner.nextLine();
+ patientNames = mrnSearch(MRN);
+ } else if (choice.equalsIgnoreCase("3")) {
+ System.out.printf("Enter the Admission Date in day, month, year \n");
+ int addDay = scanner.nextInt();
+ int addMonth = scanner.nextInt();
+ int addYear = scanner.nextInt();
+ scanner.nextLine(); // Consume the newline character
+ patientNames = admissionDateSearch(addDay, addMonth, addYear);
+ } else if (choice.equalsIgnoreCase("4")) {
+ System.out.printf("Enter the PCP\n");
+ String PCP = scanner.nextLine();
+ patientNames = pcpSearch(PCP);
+ }
+
+ if (patientNames.length == 0) {
+ System.out.printf("No patients found.\n");
+ } else {
+ System.out.printf("Patients found:\n");
+ for (String name : patientNames) {
+ System.out.println(name);
+ }
+ }
+ } while (!(choice.equals("9")));
+ }
+
+ public static void callingDr() {
+ for (int i = 0; i < 3; i++) {
+ try {
+ Thread.sleep(900);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.printf(".");
+ if (i == 2)
+ System.out.printf("\n");
+ }
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.println("But no one answered...");
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ System.out.println("Good luck lol");
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+ System.err.println("Interrupted: " + e.getMessage());
+ }
+ }
+
+ public static String[] basicPatientSearch(String fname, String lname) throws SQLException {
+ List patients = PatientDBService.searchPatientName(fname, lname);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] roomSearch(String roomNum) throws SQLException {
+ List patients = PatientDBService.searchPatientByRoom(roomNum);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] mrnSearch(String MRN) throws SQLException {
+ List patients = PatientDBService.searchPatientsByMRN(MRN);
+ String[] patientNames = new String[patients.size()];
+
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] pcpSearch(String PCP) throws SQLException {
+ List patients = PatientDBService.searchPatientByPCP(PCP);
+ String[] patientNames = new String[patients.size()];
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] admissionSearch(String search) throws SQLException {
+ List patients = PatientDBService.searchPatientAdmissionDate(search);
+ String[] patientNames = new String[patients.size()];
+ if (!patients.isEmpty()) {
+ for (int i = 0; i < patients.size(); i++) {
+ PatientType patient = patients.get(i);
+ String fullname = patient.getPatientFName() + " " + patient.getPatientLName() + " " + patient.getMRN();
+ patientNames[i] = fullname;
+ }
+ }
+ return patientNames;
+ }
+
+ public static String[] admissionDateSearch(int day, int month, int year) throws SQLException {
+ String search = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day);
+ return admissionSearch(search);
+ }
+
+ public static String[] ptnSelected(String ptn) throws SQLException {
+ String parts[] = ptn.split(" ",3);
+ if (parts.length < 3) {
+ throw new IllegalArgumentException("Input string does not contain enough parts");
+ }
+ String mrn = parts[2];
+ //PatientType patient = mrnSearch(mrn);
+ List patients = PatientDBService.searchPatientsByMRN(mrn);
+ PatientType newpatient = null;
+ if (!patients.isEmpty()) {
+ newpatient = patients.get(0);
+ }
+ String ptnInfo[] = new String[6];
+ if (newpatient != null) {
+ ptnInfo[0] = newpatient.getPatientLName() + " " + newpatient.getPatientFName();
+ ptnInfo[1] = newpatient.getMRN();
+ ptnInfo[2] = newpatient.getRoomNumber();
+ ptnInfo[3] = newpatient.getPcpString();
+ ptnInfo[4] = newpatient.getDiagnosis();
+ ptnInfo[5] = newpatient.getGender();
+ }
+ return ptnInfo;
+ }
+
+ public static String[] searchSelect(String searchType, String searchParam) throws SQLException {
+ switch (searchType) {
+ case "Last Name First Name":
+ String parts[] = searchParam.split(" ", 2);
+ String lastName = parts[0];
+ String firstName = parts[1];
+ return basicPatientSearch(firstName, lastName);
+ case "Room Number":
+ return roomSearch(searchParam);
+ case "Medical Record Number":
+ return mrnSearch(searchParam);
+ case "Primary Care Provider ":
+ return pcpSearch(searchParam);
+ case "Admission Date":
+ return admissionSearch(searchParam);
+ default:
+ return null;
+ }
+ }
+
+ //new method for adding patient, Eli call this
+ public static void addPtn(String [] newPtnInfo) throws SQLException {
+ String ptnInfo[] = new String[6];
+ //last name,first name, patient id, pcp id, diagnosis, gender
+ for (int i = 0; i < newPtnInfo.length; i++) {
+ ptnInfo[i] = newPtnInfo[i];
+ }
+ String add = "INSERT INTO patients (first_name, last_name, patient_id, room_number, attending_physician, diagnosis, admission_date, discharge_date, date_of_birth) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
+ String search = "SELECT * FROM Patients WHERE patient_id = ? LIMIT 10";
+ String getMaxIdQuery = "SELECT MAX(patient_id) FROM Patients";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement searchstmt = connect.prepareStatement(search);
+ PreparedStatement getMaxIdStmt = connect.prepareStatement(getMaxIdQuery);
+ PreparedStatement addstmt = connect.prepareStatement(add)){
+
+// Parse full name into first name and last name
+ String fullName = newPtnInfo[0];
+ String[] nameParts = fullName.split(" ", 2);
+ String lastName = nameParts[0];
+ String firstName = nameParts.length > 1 ? nameParts[1] : "";
+
+
+ //search.setString(1,ptnInfo[2]);
+ String newPatientId = "001";
+
+ try (ResultSet rs = getMaxIdStmt.executeQuery()) {
+ //find patient here and insert using seedPhysicians as a guide
+ if (rs.next() && rs.getString(1) != null) {
+ //System.out.println("Ptn already exists");
+ String maxIdStr = rs.getString(1);
+
+ int maxId = Integer.parseInt(maxIdStr);
+ newPatientId = String.format("%04d", maxId + 1);
+
+ }
+ }
+ //TODO ALIGN SQL STATEMENT WITH PASSED ARRAY
+ //0 lastname firstname (needs to be parsed)
+ //1 patient id
+ //2 room number
+ //3 pcp id
+ //4 events (ignore for now)
+ //5 diagnosis
+ String roomNum = newPtnInfo[2];
+ Random random = new Random();
+ Date admissionDate = new Date(System.currentTimeMillis() - (random.nextInt(10) * 24L * 60L * 60L * 1000L));
+ Date dischargeDate = random.nextBoolean() ? new Date(admissionDate.getTime() + (random.nextInt(5) * 24L * 60L * 60L * 1000L)) : null; // Within 5 days or null
+ Date dateOfBirth = new Date(System.currentTimeMillis() - ((random.nextInt(60) + 20) * 365L * 24 * 60 * 60 * 1000L + random.nextInt(365) * 24L * 60 * 60 * 1000L)); // Age 20-80 with more variation
+
+
+
+ addstmt.setString(1, firstName);//first name
+ addstmt.setString(2, lastName);//last name
+ addstmt.setString(3, newPatientId);//patient id
+ addstmt.setString(4, roomNum); //room num
+ addstmt.setString(5, newPtnInfo[3]);//pcp id
+ addstmt.setString(6, newPtnInfo[4]);//Diagnosis
+ addstmt.setDate(7, admissionDate);
+ if (dischargeDate != null) {
+ addstmt.setDate(8, dischargeDate);
+ } else {
+ addstmt.setNull(8, java.sql.Types.DATE);
+ }
+ addstmt.setDate(9, dateOfBirth);
+
+
+
+ int rowsAffected = addstmt.executeUpdate();
+ if (rowsAffected > 0) {
+ System.out.println("Ptn added");
+ } else {
+ System.out.println("Ptn not added");
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ //new method for updating patient in database, Eli call this
+ public static void updatePtn(String [] newPtnInfo) throws SQLException {
+ //last name,first name, patient id, pcp id, diagnosis, gender
+ String updateQuery = "UPDATE patients SET first_name = ?, last_name = ?, attending_physician = ?, diagnosis = ?, gender = ?, room_number = ? WHERE patient_id = ?";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement updateStmt = connect.prepareStatement(updateQuery)) {
+
+ String[] nameParts = parseName(newPtnInfo[0]); // Assuming newPtnInfo[0] contains "LastName FirstName"
+ String lastName = nameParts[0];
+ String firstName = nameParts[1];
+
+
+ //TODO ALIGN SQL STATEMENT WITH PASSED ARRAY
+ //0 lastname firstname (needs to be parsed)
+ //1 patient id
+ //2 room number
+ //3 pcp id
+ //4 events (ignore for now)
+ //5 diagnosis
+ String patient_id = newPtnInfo[1];
+ String roomNum = newPtnInfo[2];
+ String pcp = newPtnInfo[3];
+ String diagnosis = newPtnInfo[4];
+ String gender = newPtnInfo[5];
+
+
+ //Set parameters based on ptnInfo array
+ updateStmt.setString(1, firstName);//first name
+ updateStmt.setString(2, lastName);//last name
+ updateStmt.setString(3, pcp);//pcp id
+ updateStmt.setString(4, diagnosis);//Diagnosis
+ updateStmt.setString(5, gender);//gender
+ updateStmt.setString(6, roomNum);//room number
+ updateStmt.setString(7, patient_id);//patient id
+
+ int rowsUpdated = updateStmt.executeUpdate();
+ if (rowsUpdated > 0) {
+ System.out.println("Ptn updated");
+ } else {
+ System.out.println("Ptn not updated");
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static String getNextPatientId() throws SQLException {
+ String getMaxIdQuery = "SELECT MAX(patient_id) FROM Patients";
+ String nextPatientId = "0001"; // Default ID if no patients exist
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement getMaxIdStmt = connect.prepareStatement(getMaxIdQuery)) {
+
+ try (ResultSet rs = getMaxIdStmt.executeQuery()) {
+ if (rs.next() && rs.getString(1) != null) {
+ // Get the highest patient ID and increment it
+ String maxIdStr = rs.getString(1);
+ int maxId = Integer.parseInt(maxIdStr);
+ nextPatientId = String.format("%04d", maxId + 1);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ throw e;
+ }
+
+ return nextPatientId;
+ }
+
+ private static String[] parseName(String fullName) {
+ String[] nameParts = fullName.split(" ", 2);
+ String lastName = nameParts[0];
+ String firstName = nameParts.length > 1 ? nameParts[1] : "";
+ return new String[]{lastName, firstName};
+}
+
+ public static void main(String[] args) throws SQLException {
+ PatientType patient = new PatientType();
+ showmenu1();
+ }
+}
diff --git a/Sprint 3/src/src/PatientDBService.class b/Sprint 3/src/src/PatientDBService.class
new file mode 100644
index 000000000..577c784df
Binary files /dev/null and b/Sprint 3/src/src/PatientDBService.class differ
diff --git a/Sprint 3/src/src/PatientDBService.java b/Sprint 3/src/src/PatientDBService.java
new file mode 100644
index 000000000..44e8ccabb
--- /dev/null
+++ b/Sprint 3/src/src/PatientDBService.java
@@ -0,0 +1,281 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+
+//change the multiple methods into one method that varies the string query depending on the menu instruction chosen
+//pls ignore how bulky this is, it will be streamlined later
+public class PatientDBService {
+
+ public static List searchPatientName(String first_name, String last_name) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "select * from patients WHERE first_name=? AND last_name=? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, first_name);
+ stmt.setString(2, last_name);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+
+ query = "select * from patients WHERE first_name=? OR last_name=? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, first_name);
+ stmt.setString(2, last_name);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+
+
+ public static List searchPatientByRoom(String roomNumber) throws SQLException{
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE room_number = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, roomNumber);
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List searchPatientsByMRN(String mrn) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE patient_id = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+
+ stmt.setString(1, mrn);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+
+ public static List searchPatientByPCP(String attending_physician) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE attending_physician = ? LIMIT 10";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, attending_physician);
+
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List searchPatientAdmissionDate(String admissionDate) throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM Patients WHERE admission_date = ? LIMIT 10";
+ //pick up from here and modify all other search functions to incorporate lists to hold multiple returns
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query)) {
+ stmt.setString(1, admissionDate);
+ try (ResultSet rs = stmt.executeQuery()) {
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ LocalDateTime admDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(dob.getYear());
+ patient.setAdminMonth(dob.getMonthValue());
+ patient.setAdminDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+ public static List getAllPatients() throws SQLException {
+ List patients = new ArrayList<>();
+ String query = "SELECT * FROM patients";
+
+ try (Connection connect = DatabaseConnection.getConnection();
+ PreparedStatement stmt = connect.prepareStatement(query);
+ ResultSet rs = stmt.executeQuery()) {
+
+ while (rs.next()) {
+ PatientType patient = new PatientType();
+ patient.setMRN(rs.getString("patient_id"));
+ patient.setfname(rs.getString("first_name"));
+ patient.setlname(rs.getString("last_name"));
+
+ LocalDateTime dob = rs.getTimestamp("date_of_birth").toLocalDateTime();
+ patient.setBirthYear(dob.getYear());
+ patient.setBirthMonth(dob.getMonthValue());
+ patient.setBirthDay(dob.getDayOfMonth());
+
+ patient.setGender(rs.getString("gender"));
+
+ LocalDateTime admissionDate = rs.getTimestamp("admission_date").toLocalDateTime();
+ patient.setAdminYear(admissionDate.getYear());
+ patient.setAdminMonth(admissionDate.getMonthValue());
+ patient.setAdminDay(admissionDate.getDayOfMonth());
+
+ patient.setRoomNumber(rs.getString("room_number"));
+ patient.setPcpString(rs.getString("attending_physician"));
+ patient.setDiagnosis(rs.getString("diagnosis"));
+ patients.add(patient);
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return patients;
+ }
+
+}
diff --git a/Sprint 3/src/src/PatientType.class b/Sprint 3/src/src/PatientType.class
new file mode 100644
index 000000000..f9a8cb749
Binary files /dev/null and b/Sprint 3/src/src/PatientType.class differ
diff --git a/Sprint 3/src/src/PatientType.java b/Sprint 3/src/src/PatientType.java
new file mode 100644
index 000000000..21f1c83f1
--- /dev/null
+++ b/Sprint 3/src/src/PatientType.java
@@ -0,0 +1,192 @@
+package src;
+
+import java.time.LocalDateTime;
+import java.util.Scanner;
+
+//Class for creating patient objects
+public class PatientType {
+ String patientFName;
+ String patientLName;
+ String SSN;
+ String MRN;
+ String roomNumber;
+ int birthDay;
+ int birthMonth;
+ int birthYear;
+ int adminDay;
+ int adminMonth;
+ int adminYear;
+ pcpType pcp;
+ boolean insurance;
+ String chart;
+ //Need to change this to schedule type
+ String event;
+ Schedule schedule;
+ int disDay;
+ int disMonth;
+ int disYear;
+ String gender;
+ String diagnosis;
+ String pcpString;
+
+ //default constructor
+ public PatientType()
+ {
+ this.patientFName = "";
+ this.patientLName = "";
+ this.SSN = "";
+ this.MRN = "";
+ this.roomNumber = "";
+ this.birthDay = 1;
+ this.birthMonth = 1;
+ this.birthYear = 1900;
+ this.adminDay = 1;
+ this.adminMonth = 1;
+ this.adminYear = 1900;
+ this.pcp = null;
+ this.insurance = false;
+ this.chart = "";
+ this.event = "";
+ this.schedule = new Schedule();
+ this.disDay = 1;
+ this.disMonth = 1;
+ this.disYear = 1900;
+ this.gender = "";
+ this.diagnosis = "";
+ this.pcpString = "";
+ }
+
+ //initialized constructor
+ public PatientType(String fname, String lname, String SSN, String MRN, String newRoom, int birthDay, int birthMonth, int birthYear, int aDay,
+ int aMonth, int aYear, pcpType newpcp, boolean insurance, String chart, String event, int disDay, int disMonth, int disYear, String gender, String diagnosis, String pcpString ) {
+ this.patientFName = fname;
+ this.patientLName = lname;
+ this.SSN = SSN;
+ this.MRN = MRN;
+ this.roomNumber = newRoom;
+ this.birthDay = birthDay;
+ this.birthMonth = birthMonth;
+ this.birthYear = birthYear;
+ this.adminDay = aDay;
+ this.adminMonth = aMonth;
+ this.adminYear = aYear;
+ this.pcp = newpcp;
+ this.insurance = insurance;
+ this.chart = chart;
+ this.event = event;
+ this.schedule = new Schedule();
+ this.disDay = disDay;
+ this.disMonth = disMonth;
+ this.disYear = disYear;
+ this.gender = gender;
+ this.diagnosis = diagnosis;
+ this.pcpString = pcpString;
+ }
+
+ //getters
+ public String getPatientFName() {return patientFName;}
+ public String getPatientLName() {return patientLName;}
+ public String getSSN() {return SSN;}
+ public String getMRN() {return MRN;}
+ public String getRoomNumber() {return roomNumber;}
+ public int getBirthDay() {return birthDay;}
+ public int getBirthMonth() {return birthMonth;}
+ public int getBirthYear() {return birthYear;}
+ public int getAdminDay() {return adminDay;}
+ public int getAdminMonth() {return adminMonth;}
+ public int getAdminYear() {return adminYear;}
+ public pcpType getPcp() {return pcp;}
+ public boolean getInsurance() {return insurance;}
+ public String getChart() {return chart;}
+ public String getEvent() {return event;}
+ public Schedule getSchedule() {return schedule;}
+ public int getDisDay() {return disDay;}
+ public int getDisMonth() {return disMonth;}
+ public int getDisYear() {return disYear;}
+ public String getGender() {return gender;}
+ public String getDiagnosis() {return diagnosis;}
+ public String getPcpString() {return pcpString;}
+
+
+ //setters
+ public void setfname(String fname) { this.patientFName = fname;}
+ public void setlname(String lname) { this.patientLName = lname; }
+ public void setSSN(String SSN) { this.SSN = SSN; }
+ public void setMRN(String MRN) { this.MRN = MRN; }
+ public void setRoomNumber(String roomNumber) { this.roomNumber = roomNumber; }
+ public void setBirthDay(int birthDay) { this.birthDay = birthDay; }
+ public void setBirthMonth(int birthMonth) { this.birthMonth = birthMonth; }
+ public void setBirthYear(int birthYear) { this.birthYear = birthYear; }
+ public void setAdminDay(int aDay) { this.adminDay = aDay; }
+ public void setAdminMonth(int aMonth) { this.adminMonth = aMonth; }
+ public void setAdminYear(int aYear) { this.adminYear = aYear; }
+ public void setPcp(pcpType pcp) { this.pcp = pcp; }
+ public void setInsurance(boolean insurance) { this.insurance = insurance; }
+ public void setChart(String chart) { this.chart = chart; }
+ public void setEvent(String event) { this.event = event; }
+ public void setSchedule(Schedule schedule) { this.schedule = schedule; }
+ public void setDisDay(int disDay) { this.disDay = disDay; }
+ public void setDisMonth(int disMonth) { this.disMonth = disMonth; }
+ public void setDisYear(int disYear) { this.disYear = disYear; }
+ public void setGender(String gender) { this.gender = gender; }
+ public void setDiagnosis(String diagnosis) { this.diagnosis = diagnosis; }
+ public void setPcpString(String pcpString) { this.pcpString = pcpString; }
+
+ //Method for creating a new event for the patient via user input
+ public void createEvent() {
+ Scanner scanner = new Scanner(System.in);
+ System.out.println("Enter the name of the event: ");
+ String ename = scanner.nextLine();
+ System.out.println("Enter the type of the event: ");
+ String etype = scanner.nextLine();
+ System.out.println("Enter some information about the event: ");
+ String einfo = scanner.nextLine();
+ System.out.println("Enter the day of the event: ");
+ int day = scanner.nextInt();
+ System.out.println("Enter the month of the event: ");
+ int month = scanner.nextInt();
+ System.out.println("Enter the year of the event: ");
+ int year = scanner.nextInt();
+ System.out.println("Enter time of event: ");
+ int hr = scanner.nextInt();
+ int min = scanner.nextInt();
+ LocalDateTime date = LocalDateTime.of(month,day,year,hr,min);
+ System.out.println("Enter the patient room number");
+ String room = scanner.nextLine();
+ Event newEvent = new Event(ename,etype,einfo,date,room);
+ this.schedule.addEvent(newEvent);
+
+ }
+
+ //Method for adding already initalized event to patient schedule
+ public void newEvent(Event newEvent) {
+ this.schedule.addEvent(newEvent);
+ }
+
+ //prints entire patient schedule
+ //need to find way to organize schedule by date
+ public void showSchedule() {
+ System.out.println("------------Paitient Schedule------------");
+ this.schedule.printAllEvents();
+
+ }
+
+ //Method for printing all patient information
+ public void printPatient() {
+ System.out.println("----------Info for patient: " + this.getPatientFName() + "-----------");
+ System.out.println("First name: " + this.getPatientFName());
+ System.out.println("Last name: " + this.getPatientLName());
+ System.out.println("Gender: " + this.getGender());
+ System.out.println("DOB: " + this.getBirthMonth() + "/" + this.getBirthDay() + "/" + this.getBirthYear());
+ System.out.println("Social Security Number: " + this.getSSN());
+ System.out.println("Patient MRN: " + this.getMRN());
+ System.out.println("Room Number: " + this.getRoomNumber());
+ System.out.println("Admission date: " + this.getAdminMonth() + "/" + this.getAdminDay() + "/" + this.getAdminYear());
+ System.out.println("Discharge date: " + this.getDisMonth() + "/" + this.getDisDay() + "/" + this.getDisYear());
+ System.out.println("PCP: Dr." + this.pcp.drLname);
+ System.out.println("Insured?: " + this.getInsurance());
+ System.out.println("Chart: " + this.getChart());
+ System.out.println("Upcoming event: " + this.getEvent());
+ this.showSchedule();
+ }
+}
diff --git a/Sprint 3/src/src/Schedule.class b/Sprint 3/src/src/Schedule.class
new file mode 100644
index 000000000..d5e0a6217
Binary files /dev/null and b/Sprint 3/src/src/Schedule.class differ
diff --git a/Sprint 3/src/src/Schedule.java b/Sprint 3/src/src/Schedule.java
new file mode 100644
index 000000000..bfbb49a0d
--- /dev/null
+++ b/Sprint 3/src/src/Schedule.java
@@ -0,0 +1,42 @@
+package src;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+//Schedule class designed to hold multiple event class objects
+public class Schedule {
+ //Holding them in a list
+ private List events;
+ public Schedule() {
+ this.events = new ArrayList<>();
+ }
+ //method for adding a new event
+ public void addEvent(Event newevent) {
+ this.events.add(newevent);
+ }
+ //method for removing a specific event
+ public void removeEvent(Event newevent) {
+ this.events.remove(newevent);
+ }
+ //returns events in this schedule
+ public List getEvents() {
+ return this.events;
+ }
+ //prints all events in the schedule
+ public void printAllEvents() {
+ List result = new ArrayList<>();
+ for (Event event : this.events) {
+ event.printEvent();
+ }
+ }
+ //Searches list and returns events that match by specifc date
+ public List getEventbyDate(LocalDateTime date) {
+ List result = new ArrayList<>();
+ for (Event event : this.events) {
+ if(event.getEventTime().toLocalDate().equals(date)) {
+ result.add(event);
+ }
+ }
+ return result;
+ }
+}
diff --git a/Sprint 3/src/src/TestConnection.class b/Sprint 3/src/src/TestConnection.class
new file mode 100644
index 000000000..5af530a47
Binary files /dev/null and b/Sprint 3/src/src/TestConnection.class differ
diff --git a/Sprint 3/src/src/TestConnection.java b/Sprint 3/src/src/TestConnection.java
new file mode 100644
index 000000000..a8875dd40
--- /dev/null
+++ b/Sprint 3/src/src/TestConnection.java
@@ -0,0 +1,18 @@
+package src;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+
+public class TestConnection {
+ public static void main(String[] args) {
+ try (Connection conn = DatabaseConnection.getConnection()) {
+ if (conn != null) {
+ System.out.println("Successfully connected to the database.");
+ } else {
+ System.out.println("Failed to make connection!");
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/Sprint 3/src/src/database_dump.sql b/Sprint 3/src/src/database_dump.sql
new file mode 100644
index 000000000..7861aea04
--- /dev/null
+++ b/Sprint 3/src/src/database_dump.sql
@@ -0,0 +1,87 @@
+-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
+--
+-- Host: localhost Database: hospitalmanagement
+-- ------------------------------------------------------
+-- Server version 8.0.11
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!50503 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `patients`
+--
+
+DROP TABLE IF EXISTS `patients`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `patients` (
+ `patient_id` int(11) NOT NULL AUTO_INCREMENT,
+ `first_name` varchar(50) NOT NULL,
+ `last_name` varchar(50) NOT NULL,
+ `date_of_birth` date NOT NULL,
+ `gender` char(1) DEFAULT NULL,
+ `admission_date` date NOT NULL,
+ `discharge_date` date DEFAULT NULL,
+ `room_number` int(11) NOT NULL,
+ `attending_physician` int(11) DEFAULT NULL,
+ `diagnosis` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`patient_id`),
+ KEY `attending_physician` (`attending_physician`),
+ CONSTRAINT `patients_ibfk_1` FOREIGN KEY (`attending_physician`) REFERENCES `physicians` (`physician_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `patients`
+--
+
+LOCK TABLES `patients` WRITE;
+/*!40000 ALTER TABLE `patients` DISABLE KEYS */;
+INSERT INTO `patients` VALUES (1001,'Leo','Hall','1960-11-09','F','2024-10-28','2024-10-29',16,9,'Kidney Stones'),(1002,'Ella','Torres','1965-09-26','F','2024-10-27','2024-10-31',87,6,'Chronic Fatigue'),(1003,'Grace','Wilson','1988-08-03','F','2024-10-24',NULL,19,4,'COPD'),(1004,'Nathan','Gonzalez','1947-05-13','M','2024-10-28','2024-10-28',6,8,'Kidney Stones'),(1005,'Aiden','Hernandez','1953-10-18','F','2024-10-29',NULL,91,5,'Herniated Disc'),(1006,'Elijah','Campbell','1977-08-01','F','2024-10-24','2024-10-27',61,8,'Epilepsy'),(1007,'Evelyn','Stewart','1995-04-29','M','2024-10-30','2024-11-01',33,1,'Covid-19'),(1008,'Michael','Smith','1992-10-08','F','2024-10-24',NULL,63,2,'Tuberculosis'),(1009,'Charlotte','Bailey','1962-07-15','M','2024-10-27','2024-10-31',34,8,'High Cholesterol'),(1010,'Noah','Miller','1950-08-13','M','2024-10-27',NULL,44,4,'PTSD'),(1011,'Eva','Cox','2003-06-08','M','2024-11-01',NULL,52,3,'Appendicitis'),(1012,'James','Rivera','1959-08-18','F','2024-10-30','2024-11-02',42,5,'Fibromyalgia'),(1013,'Eva','Rodriguez','1968-03-08','M','2024-10-31',NULL,40,5,'COPD'),(1014,'Mia','Hill','1979-04-18','F','2024-10-30',NULL,52,1,'Infection'),(1015,'Carol','James','1948-12-13','F','2024-10-25',NULL,24,4,'Liver Disease'),(1016,'Jane','Gray','1985-09-18','F','2024-10-31',NULL,12,2,'Herniated Disc'),(1017,'Nathaniel','Martin','1973-06-14','F','2024-11-01','2024-11-04',92,10,'Hypertension'),(1018,'Jacob','Stewart','1961-04-26','M','2024-10-26','2024-10-29',71,8,'Arthritis'),(1019,'Elijah','Richardson','1955-10-25','F','2024-10-28',NULL,47,6,'Covid-19'),(1020,'Isabella','Martin','1950-12-30','M','2024-10-26',NULL,17,4,'Bipolar Disorder'),(1021,'Isabella','Martinez','1957-10-13','M','2024-10-25','2024-10-26',79,3,'Hemorrhoids'),(1022,'Mason','Scott','1983-06-14','M','2024-10-26',NULL,39,9,'Migraine'),(1023,'Sophia','Morris','1994-02-07','M','2024-10-27','2024-10-31',95,5,'Seasonal Flu'),(1024,'Jackson','Thomas','1997-11-08','F','2024-11-01',NULL,86,7,'Panic Disorder'),(1025,'Lily','Gonzalez','2004-07-29','M','2024-10-29',NULL,96,10,'Ear Infection'),(1026,'Ella','Walker','1966-01-31','M','2024-10-30',NULL,1,2,'Scoliosis'),(1027,'Sophie','Rodriguez','1962-07-16','F','2024-11-01',NULL,18,8,'Hemorrhoids'),(1028,'Eva','Ramirez','1966-08-28','F','2024-10-27','2024-10-29',99,2,'High Cholesterol'),(1029,'Abigail','Taylor','1972-05-11','M','2024-10-26','2024-10-29',4,3,'Ulcer'),(1030,'Jack','Baker','1997-09-15','F','2024-11-01',NULL,100,10,'Allergy'),(1031,'Logan','Martinez','2000-03-05','M','2024-10-27',NULL,30,2,'Ulcer'),(1032,'Abigail','Gonzalez','1957-03-01','F','2024-10-25','2024-10-27',43,1,'High Cholesterol'),(1033,'Madison','Johnson','1982-02-26','M','2024-10-23',NULL,21,10,'Conjunctivitis'),(1034,'Leo','Morris','1966-01-16','F','2024-11-01',NULL,3,9,'Fibromyalgia'),(1035,'Nora','Nelson','1969-05-23','M','2024-10-28',NULL,85,1,'Hemorrhoids'),(1036,'Nora','Murphy','1955-01-24','F','2024-10-30',NULL,2,1,'Bronchitis'),(1037,'Jackson','Garcia','1967-01-21','M','2024-10-25','2024-10-27',84,8,'Tuberculosis'),(1038,'Jack','Lee','1996-09-04','M','2024-10-24','2024-10-27',60,8,'Sleep Apnea'),(1039,'Jack','Scott','1995-01-06','M','2024-10-30','2024-11-02',84,7,'Scoliosis'),(1040,'Liam','Bailey','1983-05-15','F','2024-10-23','2024-10-24',83,8,'Appendicitis'),(1041,'Joshua','Cox','1991-03-11','F','2024-10-27',NULL,44,3,'Ear Infection'),(1042,'Alexander','Reed','1960-09-10','M','2024-10-31','2024-11-03',35,4,'Gallbladder Disease'),(1043,'Ethan','Scott','1973-01-11','F','2024-10-26','2024-10-29',47,9,'Herniated Disc'),(1044,'Michael','Wilson','1985-12-14','F','2024-10-27',NULL,59,10,'Herniated Disc'),(1045,'Noah','Gray','1985-06-16','F','2024-10-23','2024-10-26',23,1,'Allergy'),(1046,'Isla','Smith','1988-07-06','M','2024-10-31',NULL,63,3,'Tuberculosis'),(1047,'Carol','Sanchez','1969-01-28','M','2024-10-24','2024-10-28',96,8,'Sleep Apnea'),(1048,'Lucas','Bailey','1991-03-31','M','2024-10-29','2024-11-02',57,2,'Asthma'),(1049,'Alexander','Mitchell','1970-12-12','F','2024-10-23','2024-10-25',73,2,'Hemorrhoids'),(1050,'Jackson','Gray','1992-09-11','F','2024-10-26',NULL,95,3,'Gout'),(1051,'Liam','Cox','1984-11-26','F','2024-10-26',NULL,33,9,'Kidney Stones'),(1052,'Nora','King','1974-01-07','F','2024-10-28','2024-10-29',68,4,'Heart Disease'),(1053,'Ava','Gonzalez','1947-07-09','M','2024-10-24','2024-10-26',52,9,'Panic Disorder'),(1054,'Ethan','Green','1976-03-20','M','2024-11-01','2024-11-01',96,8,'Bronchitis'),(1055,'Amelia','Miller','1951-07-20','M','2024-10-28','2024-10-28',74,5,'Ulcer'),(1056,'Nathan','Hill','2000-06-20','F','2024-10-29','2024-11-01',88,4,'Bipolar Disorder'),(1057,'Alexander','Collins','2002-02-05','F','2024-10-24',NULL,16,8,'Epilepsy'),(1058,'Bob','Smith','1948-12-03','M','2024-10-30',NULL,62,5,'Acid Reflux'),(1059,'Ella','King','1955-02-18','M','2024-10-29',NULL,27,9,'Migraine'),(1060,'Frank','Baker','1954-04-13','M','2024-10-27','2024-10-27',74,10,'Allergy'),(1061,'Michael','Williams','1986-02-10','F','2024-10-25',NULL,27,10,'Parkinson\'s Disease'),(1062,'Alice','Stewart','1964-08-28','M','2024-10-24','2024-10-24',30,5,'Sinusitis'),(1063,'Ethan','Baker','1982-11-02','M','2024-10-30',NULL,81,4,'Sinusitis'),(1064,'Liam','Collins','1949-05-07','M','2024-10-24','2024-10-27',3,9,'Asthma'),(1065,'Leo','Morris','1966-05-30','M','2024-10-26','2024-10-27',39,9,'Gallbladder Disease'),(1066,'Charlotte','Torres','1967-12-10','M','2024-11-01','2024-11-01',14,3,'Obesity'),(1067,'Nathan','Edwards','1950-12-28','M','2024-11-01',NULL,26,10,'Gallbladder Disease'),(1068,'Logan','Gonzalez','1973-12-28','M','2024-10-26',NULL,73,8,'Epilepsy'),(1069,'Amelia','Bailey','1959-10-16','F','2024-10-31',NULL,27,2,'Anxiety'),(1070,'Oliver','Parker','1956-01-28','F','2024-10-26',NULL,18,7,'Skin Rash'),(1071,'Alexander','Torres','1949-09-06','F','2024-11-01','2024-11-02',62,8,'Bronchitis'),(1072,'Elijah','Bell','1944-12-31','F','2024-10-26',NULL,2,4,'High Cholesterol'),(1073,'Michael','Mitchell','1976-12-17','M','2024-10-29','2024-11-02',9,10,'Pancreatitis'),(1074,'Jane','Jones','1989-12-21','M','2024-10-28',NULL,14,3,'Covid-19'),(1075,'Chloe','Peterson','1968-07-12','F','2024-10-25',NULL,23,2,'Skin Rash'),(1076,'James','Perez','2001-09-06','F','2024-10-25','2024-10-29',92,7,'Osteoporosis'),(1077,'Michael','Martinez','1957-04-21','M','2024-11-01','2024-11-01',76,7,'Vertigo'),(1078,'John','Scott','1979-01-09','F','2024-10-25',NULL,75,1,'Panic Disorder'),(1079,'Nathaniel','Martin','1974-11-06','F','2024-10-23','2024-10-26',35,2,'Pneumonia'),(1080,'Benjamin','Baker','1958-05-20','F','2024-10-24','2024-10-26',98,8,'Bipolar Disorder'),(1081,'Olivia','Torres','1971-11-23','M','2024-10-30','2024-10-30',45,1,'Asthma'),(1082,'Eva','Morris','1968-11-26','F','2024-10-27',NULL,67,4,'PTSD'),(1083,'Logan','Cox','1967-11-25','M','2024-10-26','2024-10-30',71,9,'Fracture'),(1084,'John','Hall','1954-09-05','F','2024-10-25',NULL,20,10,'Bronchitis'),(1085,'Elijah','Davis','1966-07-02','M','2024-11-01','2024-11-05',53,5,'Pneumonia'),(1086,'Elijah','Roberts','1999-08-13','M','2024-10-26','2024-10-27',68,8,'PTSD'),(1087,'Ava','Gray','2001-03-01','F','2024-10-29',NULL,6,10,'Gastroenteritis'),(1088,'Matthew','James','1972-03-13','M','2024-10-27',NULL,76,1,'Vertigo'),(1089,'Logan','Gray','1977-06-11','F','2024-10-27',NULL,83,4,'Pancreatitis'),(1090,'Chloe','Gonzalez','1977-02-21','M','2024-10-24',NULL,18,5,'Hemorrhoids'),(1091,'Mason','Martin','1967-06-20','M','2024-10-31',NULL,64,3,'Fracture'),(1092,'Amelia','Williams','1996-11-03','M','2024-10-24',NULL,39,6,'Hemorrhoids'),(1093,'Victoria','Jackson','1988-06-04','M','2024-10-27',NULL,35,4,'Arthritis'),(1094,'Harper','Clark','2004-02-07','M','2024-10-28',NULL,4,10,'Tuberculosis'),(1095,'Jacob','Ward','1962-10-15','M','2024-10-29',NULL,19,10,'Fracture'),(1096,'Sophia','Morris','1947-01-31','M','2024-10-27','2024-10-27',70,5,'Allergy'),(1097,'James','Williams','1983-06-20','F','2024-10-31','2024-11-03',47,9,'Fracture'),(1098,'Charlotte','Ramirez','1985-05-14','M','2024-10-26',NULL,12,9,'PTSD'),(1099,'Jack','Moore','1950-11-24','F','2024-10-26',NULL,61,8,'Hypertension'),(1100,'Alexander','Nelson','1968-02-10','F','2024-10-24','2024-10-25',70,10,'High Cholesterol'),(1101,'Isabella','Edwards','1986-01-09','M','2024-10-27',NULL,37,3,'Anxiety'),(1102,'Lucas','Martinez','1981-05-26','F','2024-10-27',NULL,10,7,'Ear Infection'),(1103,'Madison','Cook','1978-11-02','M','2024-10-26','2024-10-27',72,4,'Migraine'),(1104,'Jack','Davis','1975-02-16','M','2024-11-01','2024-11-02',94,8,'Gallbladder Disease'),(1105,'Grace','Ward','1945-01-11','F','2024-10-30',NULL,79,8,'Ear Infection'),(1106,'Grace','Reed','1976-07-26','M','2024-11-01','2024-11-03',92,4,'Epilepsy'),(1107,'Aiden','Moore','1983-07-22','F','2024-10-30',NULL,12,9,'Liver Disease'),(1108,'Dave','Nelson','1997-12-11','M','2024-10-29','2024-10-31',57,9,'Kidney Stones'),(1109,'Grace','Clark','1946-10-07','F','2024-10-25',NULL,51,6,'Heart Disease'),(1110,'James','Sanchez','1946-12-12','M','2024-10-31',NULL,89,8,'COPD'),(1111,'Sophie','Davis','1944-12-21','M','2024-10-27',NULL,34,4,'Depression'),(1112,'Emma','Davis','1982-08-26','M','2024-10-29',NULL,50,2,'Tuberculosis'),(1113,'Nathan','Moore','1950-07-30','F','2024-10-24','2024-10-25',92,8,'Panic Disorder'),(1114,'John','Cox','1998-02-05','F','2024-10-29','2024-10-29',36,9,'Multiple Sclerosis'),(1115,'Chloe','Bell','1953-03-07','F','2024-10-27',NULL,53,1,'Diabetes'),(1116,'Sophie','Adams','2001-07-24','F','2024-10-27',NULL,50,9,'Fracture'),(1117,'Emma','James','2000-04-21','M','2024-10-23','2024-10-24',13,4,'Diabetes'),(1118,'Jacob','Cox','1997-08-03','F','2024-10-23',NULL,77,2,'Liver Disease'),(1119,'Evelyn','Ward','2003-11-11','M','2024-11-01',NULL,79,3,'Fracture'),(1120,'Sophia','Roberts','1978-01-28','M','2024-10-29',NULL,96,5,'Bipolar Disorder'),(1121,'Leo','Davis','1987-10-17','F','2024-10-31',NULL,55,6,'Hemorrhoids'),(1122,'Mason','Jackson','1961-12-18','M','2024-10-30','2024-11-03',18,3,'Pancreatitis'),(1123,'Frank','Allen','1969-02-12','F','2024-10-26','2024-10-27',76,8,'Infection'),(1124,'Harper','Torres','1996-06-07','F','2024-10-23','2024-10-23',91,4,'COPD'),(1125,'Oliver','Murphy','1997-09-26','M','2024-10-26',NULL,85,4,'Sinusitis'),(1126,'Carol','Mitchell','1962-12-24','F','2024-10-28','2024-11-01',22,7,'Gastroenteritis'),(1127,'Lucas','Walker','1954-12-28','F','2024-10-31','2024-10-31',73,3,'Gastroenteritis'),(1128,'Grace','Scott','1965-06-17','M','2024-11-01','2024-11-01',87,3,'Multiple Sclerosis'),(1129,'Amelia','Allen','1982-12-15','F','2024-11-01',NULL,49,6,'Sinusitis'),(1130,'Frank','Evans','1997-01-31','F','2024-10-25',NULL,63,10,'Infection'),(1131,'Liam','Cooper','1983-02-13','F','2024-10-27',NULL,88,9,'Heart Disease'),(1132,'Abigail','Morgan','1990-02-01','M','2024-10-27','2024-10-31',75,1,'Hypertension'),(1133,'Benjamin','King','1994-04-29','M','2024-10-28','2024-10-31',78,4,'Hepatitis'),(1134,'Alice','Cox','1998-10-27','M','2024-10-30',NULL,17,7,'Gout'),(1135,'Olivia','Peterson','1961-07-07','F','2024-10-24',NULL,4,10,'Liver Disease'),(1136,'Joshua','Johnson','1998-07-08','M','2024-10-31','2024-11-04',57,3,'Depression'),(1137,'Oliver','Ramirez','1999-11-08','F','2024-10-25','2024-10-26',72,6,'Hypertension'),(1138,'Isla','Martin','1984-01-15','F','2024-10-25',NULL,56,8,'Bipolar Disorder'),(1139,'Amelia','Phillips','1991-12-08','F','2024-11-01',NULL,2,6,'Covid-19'),(1140,'Sophie','Harris','1956-11-11','F','2024-10-30',NULL,16,7,'Osteoporosis'),(1141,'Logan','Adams','1992-11-24','F','2024-10-24','2024-10-27',68,5,'Fracture'),(1142,'Ethan','Ward','1950-03-21','F','2024-10-26','2024-10-26',37,9,'Herniated Disc'),(1143,'Nora','Collins','1952-10-30','F','2024-10-29',NULL,64,8,'Bronchitis'),(1144,'Grace','Young','1980-02-14','M','2024-10-24','2024-10-26',33,4,'Epilepsy'),(1145,'Lucas','Harris','1966-12-10','M','2024-10-24',NULL,49,7,'Conjunctivitis'),(1146,'Madison','Murphy','1987-12-31','F','2024-10-25',NULL,94,2,'Multiple Sclerosis'),(1147,'Ella','Lee','1945-07-18','F','2024-10-23','2024-10-25',23,8,'Panic Disorder'),(1148,'Isla','Ramirez','1958-04-27','M','2024-10-29','2024-11-02',19,10,'Hepatitis'),(1149,'Samuel','Moore','1975-11-14','F','2024-10-23',NULL,41,5,'Covid-19'),(1150,'Nathaniel','Stewart','1947-01-08','F','2024-10-25','2024-10-27',33,8,'Tuberculosis'),(1151,'Mason','Hill','1976-06-20','M','2024-10-23',NULL,49,7,'Migraine'),(1152,'Lily','Cook','1948-08-19','M','2024-11-01','2024-11-03',3,4,'Gastroenteritis'),(1153,'Henry','Gray','1956-04-02','M','2024-10-28','2024-11-01',98,1,'Hepatitis'),(1154,'Mia','Howard','1961-01-02','M','2024-10-30','2024-10-30',55,7,'Depression'),(1155,'John','Williams','2003-12-06','M','2024-10-27',NULL,88,3,'Parkinson\'s Disease'),(1156,'Eva','Peterson','1981-03-01','M','2024-11-01','2024-11-01',30,8,'Heart Disease'),(1157,'Sebastian','Mitchell','1956-02-26','F','2024-10-27',NULL,84,2,'Osteoporosis'),(1158,'Zoe','Smith','1989-01-23','M','2024-10-31',NULL,94,3,'Anxiety'),(1159,'Emma','Adams','1995-10-26','M','2024-11-01','2024-11-03',60,5,'Liver Disease'),(1160,'Chloe','Wright','1999-12-27','F','2024-10-30','2024-11-02',65,2,'Ear Infection'),(1161,'John','Carter','1951-11-24','M','2024-10-29','2024-10-29',49,3,'Bronchitis'),(1162,'Abigail','Ward','1962-10-28','M','2024-10-27','2024-10-27',50,10,'Sinusitis'),(1163,'Nathaniel','Rodriguez','1948-07-09','F','2024-10-26',NULL,51,6,'Gallbladder Disease'),(1164,'Isla','Adams','1960-02-16','M','2024-10-27','2024-10-30',64,10,'Scoliosis'),(1165,'James','Roberts','1991-02-26','F','2024-10-24',NULL,66,3,'Conjunctivitis'),(1166,'Logan','Brown','1989-11-30','F','2024-10-23','2024-10-24',36,8,'Sleep Apnea'),(1167,'Noah','Cook','1976-03-25','F','2024-11-01',NULL,84,9,'Liver Disease'),(1168,'Nathan','Stewart','1993-11-28','M','2024-10-25','2024-10-27',83,3,'Hypertension'),(1169,'Henry','Williams','1947-12-17','M','2024-10-31',NULL,33,6,'Seasonal Flu'),(1170,'Leo','Ward','1986-12-12','F','2024-11-01','2024-11-04',52,7,'Acid Reflux'),(1171,'Ethan','Martin','1985-12-19','M','2024-10-23','2024-10-25',46,3,'Asthma'),(1172,'Dave','Martinez','1990-05-05','F','2024-10-29','2024-11-01',65,1,'Gallbladder Disease'),(1173,'Jackson','Wright','1945-06-28','M','2024-10-28',NULL,14,8,'Allergy'),(1174,'Jackson','Hernandez','1961-12-31','F','2024-10-28',NULL,48,1,'Infection'),(1175,'Logan','Nelson','1996-10-30','F','2024-11-01',NULL,87,8,'Tuberculosis'),(1176,'Emma','Taylor','1968-06-04','M','2024-10-29',NULL,21,9,'Chronic Fatigue'),(1177,'Victoria','Hall','1988-03-15','M','2024-10-24',NULL,39,3,'Arthritis'),(1178,'Isla','Clark','1951-06-11','F','2024-10-26','2024-10-26',13,7,'Sleep Apnea'),(1179,'Ella','Wright','1991-05-20','F','2024-11-01',NULL,73,9,'Depression'),(1180,'Amelia','Lee','1968-09-07','F','2024-10-29','2024-11-01',68,6,'Scoliosis'),(1181,'Elijah','Wright','1954-01-18','F','2024-10-25',NULL,14,8,'Liver Disease'),(1182,'Nora','Mitchell','1965-05-09','M','2024-10-30','2024-10-30',9,1,'Infection'),(1183,'Nathaniel','Brown','1955-03-14','F','2024-10-30','2024-10-30',11,7,'Pancreatitis'),(1184,'Carol','Garcia','2002-12-09','M','2024-10-29',NULL,96,8,'Heart Disease'),(1185,'Dave','Anderson','1947-09-19','M','2024-10-26',NULL,46,5,'Diabetes'),(1186,'Henry','Baker','1954-03-16','F','2024-10-30','2024-11-01',61,9,'Heart Disease'),(1187,'Abigail','King','1952-01-31','M','2024-10-25',NULL,76,3,'Herniated Disc'),(1188,'Joshua','Nelson','1980-11-23','M','2024-10-25',NULL,28,6,'Sleep Apnea'),(1189,'Olivia','Reed','1969-03-17','F','2024-10-28',NULL,82,5,'Sleep Apnea'),(1190,'Leo','Parker','1945-05-26','F','2024-10-31','2024-11-02',93,1,'Conjunctivitis'),(1191,'Liam','Hernandez','1983-04-13','F','2024-10-31',NULL,33,7,'Liver Disease'),(1192,'Ella','Williams','1962-08-31','F','2024-10-26',NULL,66,5,'PTSD'),(1193,'Nathaniel','Hernandez','2000-06-03','F','2024-10-31','2024-11-03',90,10,'Parkinson\'s Disease'),(1194,'Jane','Williams','1994-12-26','F','2024-10-28',NULL,78,2,'Appendicitis'),(1195,'Henry','Collins','1993-09-27','M','2024-10-24',NULL,35,7,'Gout'),(1196,'Eva','Peterson','1998-10-19','M','2024-10-27','2024-10-31',63,5,'PTSD'),(1197,'Nora','Murphy','1977-12-07','F','2024-10-30',NULL,59,2,'Parkinson\'s Disease'),(1198,'Ethan','Mitchell','1992-08-11','M','2024-10-28',NULL,46,2,'Migraine'),(1199,'Eva','James','1945-09-18','M','2024-10-23',NULL,98,7,'Kidney Stones'),(1200,'Sophie','Bailey','1999-03-10','M','2024-10-24','2024-10-28',43,1,'Pancreatitis'),(1201,'Michael','Richardson','1990-05-12','F','2024-10-23','2024-10-26',82,7,'Herniated Disc'),(1202,'Eva','Jones','1964-11-12','M','2024-10-25',NULL,34,4,'Gastroenteritis'),(1203,'Liam','Evans','1983-06-21','F','2024-10-30',NULL,12,5,'Seasonal Flu'),(1204,'Eva','Johnson','1988-03-27','F','2024-10-25',NULL,99,8,'Sinusitis'),(1205,'Michael','Martinez','1957-07-27','F','2024-11-01','2024-11-01',66,4,'Panic Disorder'),(1206,'Amelia','Morgan','1987-03-30','F','2024-10-27','2024-10-30',29,3,'Infection'),(1207,'Sophie','Cook','1965-12-22','M','2024-10-31',NULL,88,4,'Bipolar Disorder'),(1208,'Abigail','Collins','1982-12-12','F','2024-10-31',NULL,63,5,'Diabetes'),(1209,'Logan','Phillips','1968-10-02','M','2024-10-23',NULL,89,2,'Heart Disease'),(1210,'Henry','Taylor','1956-01-07','M','2024-10-24',NULL,63,10,'Tuberculosis'),(1211,'Alice','Baker','1979-01-31','F','2024-10-25',NULL,36,2,'Fibromyalgia'),(1212,'Evelyn','Green','1992-11-08','F','2024-11-01','2024-11-01',31,4,'Hepatitis'),(1213,'Benjamin','Parker','1987-08-12','M','2024-11-01','2024-11-03',97,10,'Panic Disorder'),(1214,'Henry','Baker','1989-01-10','F','2024-10-31',NULL,30,2,'Migraine'),(1215,'Samuel','Peterson','1969-06-08','M','2024-11-01','2024-11-04',13,7,'Gallbladder Disease'),(1216,'Chloe','Clark','1954-12-05','F','2024-10-23','2024-10-26',82,6,'COPD'),(1217,'Nathan','Jackson','1991-01-10','F','2024-10-25','2024-10-27',92,7,'Tuberculosis'),(1218,'Nathan','Cooper','1987-03-06','F','2024-10-31','2024-11-04',76,3,'Gallbladder Disease'),(1219,'Bob','Hall','1977-12-12','M','2024-10-25','2024-10-25',100,3,'Liver Disease'),(1220,'Jackson','Walker','1990-02-13','F','2024-10-26',NULL,93,1,'Gastroenteritis'),(1221,'Isabella','Wilson','1970-12-16','M','2024-10-26','2024-10-27',25,7,'High Cholesterol'),(1222,'Evelyn','Edwards','1968-07-18','M','2024-10-29','2024-10-31',10,7,'Seasonal Flu'),(1223,'Ava','Mitchell','1949-11-26','M','2024-11-01',NULL,90,6,'Covid-19'),(1224,'Evelyn','Evans','1947-05-31','F','2024-10-27','2024-10-30',62,4,'Ulcer'),(1225,'Mason','Bell','1995-05-02','F','2024-10-28','2024-10-30',88,10,'Heart Disease'),(1226,'Ethan','King','2003-11-08','F','2024-10-29','2024-11-02',63,8,'Liver Disease'),(1227,'Olivia','Turner','1957-09-02','M','2024-11-01','2024-11-04',70,5,'Osteoporosis'),(1228,'John','Brown','1995-06-03','F','2024-10-30',NULL,90,2,'Sleep Apnea'),(1229,'Jane','Williams','1976-11-05','F','2024-11-01','2024-11-05',95,6,'Covid-19'),(1230,'Abigail','Morgan','1969-12-02','M','2024-10-25',NULL,11,1,'Sinusitis'),(1231,'Isabella','Johnson','1999-04-20','M','2024-11-01','2024-11-03',96,6,'Herniated Disc'),(1232,'Daniel','Thomas','1973-11-20','M','2024-10-29',NULL,75,1,'Tuberculosis'),(1233,'Eva','Hernandez','2002-04-11','F','2024-10-31',NULL,81,6,'Obesity'),(1234,'Aiden','Cooper','1969-05-26','F','2024-10-26','2024-10-30',83,10,'Heart Disease'),(1235,'Victoria','Parker','1956-06-24','M','2024-11-01','2024-11-01',85,8,'Gastroenteritis'),(1236,'Evelyn','Hernandez','1961-05-23','M','2024-10-24','2024-10-26',40,5,'Epilepsy'),(1237,'Alice','Clark','1966-07-10','F','2024-10-30','2024-11-03',32,5,'Acid Reflux'),(1238,'Noah','Stewart','1960-09-27','F','2024-10-28','2024-11-01',98,3,'Gout'),(1239,'Henry','Anderson','1991-05-23','M','2024-10-27','2024-10-30',41,1,'Diabetes'),(1240,'Lily','Rodriguez','1972-08-28','F','2024-11-01','2024-11-03',73,9,'Hypertension'),(1241,'Jackson','Jones','1951-10-23','F','2024-10-29',NULL,9,9,'Scoliosis'),(1242,'Lily','Collins','1990-12-27','F','2024-10-28','2024-10-28',97,6,'COPD'),(1243,'Evelyn','Gonzalez','1957-11-09','F','2024-10-25',NULL,69,8,'Bronchitis'),(1244,'John','Brown','1967-01-16','M','2024-11-01',NULL,77,4,'Chronic Fatigue'),(1245,'Elijah','Hall','1963-06-14','M','2024-10-26','2024-10-29',68,9,'Liver Disease'),(1246,'Matthew','Green','1999-01-12','M','2024-10-25','2024-10-25',75,1,'Gastroenteritis'),(1247,'Jack','Cox','1991-11-09','F','2024-10-24','2024-10-24',26,4,'Panic Disorder'),(1248,'Sophia','Nelson','1949-09-29','F','2024-10-23','2024-10-24',79,8,'Kidney Stones'),(1249,'James','Cooper','1948-04-14','F','2024-10-24','2024-10-25',59,6,'Obesity'),(1250,'Ethan','Martin','2000-06-30','F','2024-10-27',NULL,8,8,'Ulcer'),(1251,'Charlotte','Williams','1968-05-23','F','2024-10-26',NULL,40,5,'Gastroenteritis'),(1252,'Bob','Reed','1967-10-13','F','2024-10-28',NULL,18,2,'Gallbladder Disease'),(1253,'Lucas','Morgan','1982-06-29','F','2024-10-28','2024-11-01',12,7,'Chronic Fatigue'),(1254,'Victoria','Adams','1998-09-28','F','2024-11-01',NULL,95,2,'Appendicitis'),(1255,'Frank','Jones','1997-02-17','F','2024-10-29',NULL,6,2,'Stroke'),(1256,'Michael','Green','1966-05-18','F','2024-10-26',NULL,13,10,'Pancreatitis'),(1257,'Benjamin','Bell','1974-12-08','F','2024-10-30',NULL,56,2,'Tuberculosis'),(1258,'Henry','Garcia','1980-08-06','M','2024-10-30','2024-11-01',96,9,'Kidney Stones'),(1259,'Amelia','Rivera','1962-02-16','M','2024-10-28',NULL,61,5,'Osteoporosis'),(1260,'Victoria','Morris','1987-11-07','F','2024-10-24','2024-10-28',36,1,'Allergy'),(1261,'Amelia','Martin','1949-07-28','F','2024-10-26','2024-10-28',57,5,'Obesity'),(1262,'Noah','Cook','1998-03-04','M','2024-10-25','2024-10-25',18,5,'Diabetes'),(1263,'Leo','Anderson','1998-03-13','F','2024-11-01','2024-11-01',22,3,'Allergy'),(1264,'Chloe','Mitchell','1972-04-07','F','2024-10-23','2024-10-26',2,8,'Hepatitis'),(1265,'Zoe','Taylor','1973-01-11','F','2024-10-24',NULL,48,10,'Kidney Stones'),(1266,'Dave','Young','1950-01-06','M','2024-11-01',NULL,60,5,'Vertigo'),(1267,'Grace','Murphy','1994-02-05','M','2024-10-23','2024-10-26',55,1,'Anxiety'),(1268,'Samuel','Ward','2003-08-08','F','2024-10-29','2024-10-30',40,5,'High Cholesterol'),(1269,'Mason','Sanchez','1966-03-24','M','2024-10-28',NULL,76,3,'Scoliosis'),(1270,'Aiden','Howard','1991-11-23','M','2024-10-26','2024-10-27',40,6,'Liver Disease'),(1271,'Ethan','King','1977-04-22','F','2024-10-30',NULL,68,6,'Hypertension'),(1272,'Olivia','Anderson','1979-06-08','F','2024-10-31','2024-10-31',73,7,'Vertigo'),(1273,'Nathan','Smith','1999-11-21','M','2024-10-31','2024-11-03',17,5,'Ear Infection'),(1274,'John','Williams','1984-06-19','M','2024-11-01',NULL,73,3,'Covid-19'),(1275,'Victoria','Edwards','1996-10-11','M','2024-10-23',NULL,41,8,'Stroke'),(1276,'Ava','Campbell','1947-02-10','F','2024-10-23',NULL,76,5,'Fracture'),(1277,'Olivia','Perez','1977-02-05','F','2024-10-29',NULL,26,10,'Infection'),(1278,'Isla','Mitchell','1953-07-13','F','2024-10-28','2024-10-28',17,3,'Gallbladder Disease'),(1279,'Samuel','Lopez','1958-08-26','M','2024-10-31',NULL,79,7,'Covid-19'),(1280,'Harper','Hill','1989-12-05','F','2024-10-24',NULL,11,4,'Appendicitis'),(1281,'Samuel','Rivera','1999-03-02','M','2024-10-24','2024-10-27',76,8,'Liver Disease'),(1282,'Harper','Jackson','1989-04-05','F','2024-10-27','2024-10-28',91,5,'Migraine'),(1283,'Noah','Martin','1983-06-11','M','2024-10-30','2024-11-02',29,8,'Hemorrhoids'),(1284,'Bob','Wilson','1964-02-13','M','2024-10-31','2024-11-04',32,3,'Allergy'),(1285,'Frank','Garcia','1948-09-04','F','2024-10-27','2024-10-31',68,4,'Tuberculosis'),(1286,'Victoria','Mitchell','1985-05-27','F','2024-10-25','2024-10-27',75,10,'Asthma'),(1287,'Jacob','Anderson','1960-07-02','F','2024-10-28','2024-10-28',66,2,'Anxiety'),(1288,'Abigail','Bell','1972-12-29','F','2024-10-31',NULL,17,9,'Seasonal Flu'),(1289,'Jacob','Williams','1966-02-04','F','2024-10-28',NULL,79,7,'Covid-19'),(1290,'Mia','Peterson','1986-06-06','F','2024-10-25','2024-10-26',6,1,'Parkinson\'s Disease'),(1291,'Zoe','James','1991-10-26','M','2024-11-01',NULL,85,7,'Arthritis'),(1292,'Bob','Williams','1988-03-03','F','2024-10-29','2024-10-29',75,2,'Conjunctivitis'),(1293,'Samuel','Collins','1986-03-11','F','2024-10-28','2024-10-29',60,10,'Ulcer'),(1294,'James','Bailey','1995-12-17','F','2024-10-30','2024-11-02',41,2,'Pneumonia'),(1295,'Emma','Brown','1997-05-21','M','2024-10-30','2024-11-03',21,2,'Kidney Stones'),(1296,'Amelia','Murphy','1977-05-19','M','2024-10-24',NULL,81,5,'Diabetes'),(1297,'Zoe','King','1950-06-13','M','2024-10-24',NULL,45,2,'Multiple Sclerosis'),(1298,'Jack','Williams','1987-03-03','F','2024-10-29','2024-10-31',13,2,'Migraine'),(1299,'Bob','Roberts','1987-10-24','M','2024-10-30','2024-11-01',83,4,'Ulcer'),(1300,'Ella','Williams','1982-11-27','F','2024-11-01',NULL,11,8,'Seasonal Flu'),(1301,'Madison','Taylor','1977-07-20','M','2024-11-01',NULL,78,9,'Hepatitis'),(1302,'Benjamin','Rivera','1982-06-02','M','2024-10-30','2024-11-01',98,3,'Asthma'),(1303,'Sophia','Martinez','1979-03-22','F','2024-10-29',NULL,82,7,'Osteoporosis'),(1304,'Alexander','Anderson','1996-12-02','F','2024-10-30','2024-11-02',59,1,'Hypertension'),(1305,'Charlotte','Cook','1996-07-18','F','2024-10-28',NULL,13,4,'Stroke'),(1306,'Jane','Morris','1963-04-24','M','2024-10-31',NULL,27,10,'COPD'),(1307,'Harper','Cooper','1981-06-13','F','2024-10-31',NULL,44,5,'Chronic Fatigue'),(1308,'Isabella','Ward','1991-03-16','F','2024-10-25',NULL,97,10,'Bronchitis'),(1309,'Grace','Allen','1951-03-03','M','2024-10-26',NULL,75,5,'Chronic Fatigue'),(1310,'Isla','Rodriguez','2002-01-20','F','2024-10-25',NULL,59,7,'Hypertension'),(1311,'Logan','Davis','1957-11-09','M','2024-10-25',NULL,53,7,'Infection'),(1312,'Chloe','Roberts','1988-09-18','M','2024-10-26','2024-10-30',2,10,'High Cholesterol'),(1313,'Bob','Jackson','1993-03-22','M','2024-11-01',NULL,81,9,'Skin Rash'),(1314,'Daniel','Cox','1985-12-31','M','2024-10-27','2024-10-28',23,5,'Diabetes'),(1315,'Lily','Adams','1952-12-05','F','2024-10-23',NULL,30,4,'Parkinson\'s Disease'),(1316,'Daniel','Young','1992-03-03','M','2024-10-28',NULL,84,9,'Tuberculosis'),(1317,'Grace','Hill','1962-08-23','F','2024-10-31','2024-11-02',59,2,'Hepatitis'),(1318,'Jacob','Johnson','1957-10-07','M','2024-10-24','2024-10-28',53,4,'PTSD'),(1319,'Sophia','Jones','2002-05-27','F','2024-10-25',NULL,65,3,'Osteoporosis'),(1320,'Elijah','Young','1966-03-05','F','2024-11-01','2024-11-02',7,10,'Bipolar Disorder'),(1321,'Benjamin','Cook','1991-03-21','M','2024-10-25','2024-10-26',83,10,'Panic Disorder'),(1322,'Isabella','Collins','2002-03-05','M','2024-10-29',NULL,4,1,'Allergy'),(1323,'Samuel','Bell','1992-05-04','M','2024-10-27',NULL,28,4,'Seasonal Flu'),(1324,'Noah','Morgan','1983-04-23','M','2024-10-30','2024-10-31',43,1,'Sleep Apnea'),(1325,'Chloe','Stewart','1978-07-23','M','2024-10-31','2024-11-02',27,10,'Acid Reflux'),(1326,'Olivia','Howard','1957-06-07','F','2024-10-26','2024-10-29',69,9,'Seasonal Flu'),(1327,'Frank','Phillips','1965-01-13','M','2024-10-29',NULL,69,6,'Allergy'),(1328,'Noah','Baker','1989-07-27','F','2024-10-29',NULL,92,8,'Panic Disorder'),(1329,'Harper','Stewart','1967-03-16','M','2024-10-29',NULL,30,7,'Gastroenteritis'),(1330,'Lucas','Martinez','1963-11-06','F','2024-10-26',NULL,68,5,'Infection'),(1331,'Bob','Howard','2004-07-13','M','2024-10-23',NULL,90,3,'Gout'),(1332,'Alexander','Clark','1985-02-13','M','2024-10-29',NULL,2,8,'Infection'),(1333,'Ella','Parker','1980-10-13','M','2024-10-26','2024-10-29',27,3,'Acid Reflux'),(1334,'Nora','Mitchell','1951-09-20','F','2024-10-28','2024-11-01',73,10,'Kidney Stones'),(1335,'Chloe','Edwards','1990-08-10','F','2024-10-29',NULL,1,2,'Hepatitis'),(1336,'Benjamin','Baker','2000-04-19','F','2024-10-27','2024-10-29',18,4,'Kidney Stones'),(1337,'Isabella','Moore','1958-10-23','F','2024-10-30',NULL,89,3,'Ulcer'),(1338,'Emma','Young','1965-01-04','M','2024-10-28',NULL,94,2,'Skin Rash'),(1339,'Henry','Walker','2003-06-24','M','2024-10-31',NULL,13,3,'Epilepsy'),(1340,'Nathan','Parker','1961-10-14','M','2024-10-29','2024-10-30',70,2,'Vertigo'),(1341,'Matthew','Bell','1952-07-16','M','2024-10-25',NULL,38,6,'Heart Disease'),(1342,'Sebastian','Scott','1977-09-25','F','2024-10-26','2024-10-27',61,7,'Sleep Apnea'),(1343,'Harper','Allen','1972-12-19','F','2024-11-01','2024-11-03',11,6,'Bipolar Disorder'),(1344,'Amelia','Gray','1965-05-27','M','2024-10-23',NULL,7,10,'Diabetes'),(1345,'James','Morgan','1959-12-27','M','2024-10-29',NULL,6,5,'Osteoporosis'),(1346,'Frank','Allen','1951-02-20','F','2024-10-23','2024-10-26',4,5,'Ulcer'),(1347,'Alice','Perez','1960-04-07','F','2024-10-25',NULL,81,2,'Fibromyalgia'),(1348,'John','Perez','1977-02-28','M','2024-11-01','2024-11-02',21,7,'Pancreatitis'),(1349,'Oliver','Williams','1946-10-29','F','2024-11-01','2024-11-02',54,10,'Ear Infection'),(1350,'John','Cook','1964-08-04','F','2024-10-25',NULL,73,10,'Covid-19'),(1351,'Nathan','Stewart','1955-12-25','M','2024-10-23',NULL,54,1,'Sinusitis'),(1352,'Olivia','Moore','2003-06-26','M','2024-10-27','2024-10-28',70,1,'COPD'),(1353,'Logan','Hernandez','1946-01-12','M','2024-11-01','2024-11-01',75,2,'Stroke'),(1354,'Isabella','Anderson','1995-10-19','M','2024-11-01',NULL,12,6,'Multiple Sclerosis'),(1355,'Oliver','Baker','1996-10-15','F','2024-10-23',NULL,21,5,'Panic Disorder'),(1356,'Eva','Miller','2001-03-04','M','2024-10-24','2024-10-25',21,5,'Pancreatitis'),(1357,'Amelia','Allen','1966-03-08','F','2024-10-29','2024-10-29',21,10,'Chronic Fatigue'),(1358,'Leo','Cox','1963-07-20','F','2024-10-31','2024-11-04',13,2,'Covid-19'),(1359,'Jacob','Morris','1968-07-25','M','2024-10-27',NULL,71,10,'Infection'),(1360,'Jackson','Wright','1987-12-15','M','2024-10-25','2024-10-28',54,2,'Chronic Fatigue'),(1361,'Dave','Richardson','1977-01-11','M','2024-10-28','2024-10-30',40,8,'Pneumonia'),(1362,'Nora','Hall','1994-08-07','M','2024-10-26',NULL,10,7,'Herniated Disc'),(1363,'Frank','Wright','1990-03-07','M','2024-10-23','2024-10-25',98,8,'Sleep Apnea'),(1364,'Lucas','Jones','1986-08-30','F','2024-10-23',NULL,31,2,'Stroke'),(1365,'Ava','Hall','1957-12-17','M','2024-10-27',NULL,97,7,'Parkinson\'s Disease'),(1366,'Madison','Cooper','1959-04-28','M','2024-10-28',NULL,90,2,'Infection'),(1367,'Grace','Morgan','1977-02-06','M','2024-10-26',NULL,66,5,'Skin Rash'),(1368,'Amelia','Garcia','1971-05-07','F','2024-10-28','2024-10-28',4,6,'PTSD'),(1369,'Matthew','Anderson','1977-06-06','M','2024-10-27','2024-10-27',25,6,'Heart Disease'),(1370,'Victoria','Lopez','1949-07-07','M','2024-10-29','2024-10-29',11,1,'Infection'),(1371,'Charlotte','Thomas','1970-02-21','F','2024-10-29',NULL,82,10,'Asthma'),(1372,'Elijah','Bailey','1984-09-17','M','2024-10-25',NULL,37,1,'Heart Disease'),(1373,'Eva','James','1964-12-12','F','2024-10-27','2024-10-28',89,7,'Covid-19'),(1374,'James','Miller','1964-10-20','M','2024-10-29',NULL,33,3,'Skin Rash'),(1375,'Noah','Turner','1951-10-25','F','2024-10-29',NULL,59,4,'Obesity'),(1376,'Zoe','Brown','1982-08-30','F','2024-10-29',NULL,24,1,'Vertigo'),(1377,'Emma','Morris','1997-05-27','M','2024-10-23','2024-10-27',54,1,'Ear Infection'),(1378,'Nathaniel','Lopez','1951-05-22','M','2024-10-28',NULL,77,1,'Hypertension'),(1379,'Jack','Evans','1964-04-04','F','2024-10-28',NULL,81,10,'Heart Disease'),(1380,'Sebastian','Young','1950-07-19','F','2024-10-30',NULL,33,3,'Gallbladder Disease'),(1381,'Joshua','Hall','1998-09-09','F','2024-10-28','2024-10-31',4,9,'Vertigo'),(1382,'Nora','Gonzalez','1966-07-24','M','2024-10-23',NULL,58,5,'COPD'),(1383,'Jackson','Reed','1966-11-08','F','2024-10-27',NULL,46,4,'Gout'),(1384,'Madison','Cooper','1995-09-12','M','2024-10-27',NULL,39,1,'Heart Disease'),(1385,'Jack','Rodriguez','1995-07-23','M','2024-10-26','2024-10-29',5,7,'Bipolar Disorder'),(1386,'Jack','Reed','1967-11-15','M','2024-10-25',NULL,81,2,'Depression'),(1387,'Nora','Collins','1972-09-20','M','2024-10-26',NULL,30,6,'Diabetes'),(1388,'Jacob','Roberts','1982-12-02','M','2024-10-25',NULL,17,3,'Depression'),(1389,'Ava','Moore','1977-03-01','M','2024-10-29','2024-10-30',48,5,'Parkinson\'s Disease'),(1390,'Elijah','Stewart','1970-11-08','F','2024-10-27','2024-10-29',60,1,'Arthritis'),(1391,'Charlotte','Brown','1994-08-08','M','2024-10-28','2024-10-29',19,10,'Arthritis'),(1392,'John','Scott','1965-09-03','F','2024-10-30',NULL,72,4,'Chronic Fatigue'),(1393,'Lily','Lee','1989-06-22','F','2024-10-23','2024-10-26',8,3,'Hypertension'),(1394,'Benjamin','Carter','1980-12-20','F','2024-10-31',NULL,99,4,'Stroke'),(1395,'Lily','Mitchell','1950-07-04','F','2024-10-24','2024-10-24',16,8,'Multiple Sclerosis'),(1396,'Sophie','Martinez','1963-06-11','M','2024-10-29','2024-10-31',54,3,'Bipolar Disorder'),(1397,'Eva','Walker','2002-10-22','M','2024-10-27','2024-10-29',53,10,'Arthritis'),(1398,'Amelia','Jones','1949-05-09','F','2024-10-24',NULL,34,6,'Diabetes'),(1399,'Leo','Allen','1977-11-07','F','2024-10-24','2024-10-26',57,5,'COPD'),(1400,'James','Ramirez','1991-10-04','M','2024-10-29',NULL,5,5,'Appendicitis'),(1401,'Jackson','Smith','1957-10-05','M','2024-10-23',NULL,31,4,'Panic Disorder'),(1402,'Madison','Taylor','1959-11-18','M','2024-10-26',NULL,15,6,'Chronic Fatigue'),(1403,'Harper','Wilson','1993-06-23','F','2024-10-25','2024-10-27',47,1,'Infection'),(1404,'Emily','Lee','2003-05-16','M','2024-10-28','2024-11-01',61,6,'Skin Rash'),(1405,'Victoria','Morgan','1984-03-14','F','2024-10-30','2024-11-01',98,10,'Scoliosis'),(1406,'Sophia','Ward','1992-09-12','F','2024-10-27','2024-10-30',87,2,'Epilepsy'),(1407,'Eva','Johnson','1999-04-08','M','2024-10-27','2024-10-30',92,5,'Infection'),(1408,'Emma','Martinez','2003-12-27','F','2024-10-26',NULL,76,10,'Pneumonia'),(1409,'Leo','Mitchell','1984-02-15','M','2024-10-26',NULL,42,10,'Acid Reflux'),(1410,'Frank','Evans','1983-06-12','M','2024-10-30','2024-10-31',65,10,'Vertigo'),(1411,'Mia','Peterson','1997-11-15','F','2024-10-26','2024-10-26',61,8,'Scoliosis'),(1412,'Henry','Sanchez','1984-07-06','M','2024-10-24',NULL,46,10,'Skin Rash'),(1413,'Eva','Phillips','1989-07-02','M','2024-10-24',NULL,98,7,'Asthma'),(1414,'Mia','Harris','1988-09-17','F','2024-10-26',NULL,29,9,'Vertigo'),(1415,'Grace','Allen','1990-10-15','M','2024-10-26',NULL,64,7,'Parkinson\'s Disease'),(1416,'Jane','Cook','1970-02-20','M','2024-10-23',NULL,11,3,'Depression'),(1417,'Mason','Rivera','1973-01-13','M','2024-10-23','2024-10-25',88,9,'Kidney Stones'),(1418,'Olivia','Gray','1964-05-26','F','2024-10-24','2024-10-26',71,8,'Obesity'),(1419,'Nora','Martinez','1959-07-28','F','2024-11-01','2024-11-04',94,1,'Liver Disease'),(1420,'Jane','Martinez','1994-07-04','F','2024-10-28',NULL,73,9,'Anxiety'),(1421,'Jack','Morgan','1970-07-17','M','2024-10-27',NULL,25,10,'Chronic Fatigue'),(1422,'Logan','Hill','1957-02-05','F','2024-10-31',NULL,6,4,'Osteoporosis'),(1423,'Joshua','Young','1982-03-13','M','2024-10-26',NULL,81,5,'Diabetes'),(1424,'Charlotte','Moore','1955-09-09','M','2024-10-27','2024-10-27',27,5,'Acid Reflux'),(1425,'Amelia','Rodriguez','1978-11-26','M','2024-10-31','2024-10-31',76,7,'High Cholesterol'),(1426,'Daniel','Ramirez','1952-06-09','M','2024-10-25',NULL,7,1,'PTSD'),(1427,'Grace','Ramirez','1958-07-16','M','2024-10-29','2024-10-31',56,8,'Hemorrhoids'),(1428,'Samuel','Moore','1965-10-26','F','2024-10-30',NULL,9,7,'Obesity'),(1429,'Matthew','Lopez','1965-03-18','M','2024-10-26','2024-10-30',11,4,'Infection'),(1430,'Mia','Evans','1977-02-20','F','2024-10-23','2024-10-25',98,1,'Heart Disease'),(1431,'Mia','Lee','2003-10-24','M','2024-10-26','2024-10-26',33,7,'Scoliosis'),(1432,'Benjamin','Moore','2004-10-03','F','2024-10-24','2024-10-28',74,5,'Obesity'),(1433,'Isabella','Collins','1989-01-22','F','2024-11-01','2024-11-03',21,6,'Pneumonia'),(1434,'Carol','Turner','1991-05-12','F','2024-10-29',NULL,38,8,'Multiple Sclerosis'),(1435,'Samuel','Morris','1953-01-26','F','2024-10-25','2024-10-27',73,5,'Epilepsy'),(1436,'Elijah','Lee','1946-04-03','M','2024-10-29','2024-11-01',84,7,'COPD'),(1437,'Emily','Cooper','2003-08-16','F','2024-10-24',NULL,44,8,'Scoliosis'),(1438,'James','Collins','1970-11-30','M','2024-10-24',NULL,31,2,'Fracture'),(1439,'Alexander','Garcia','1984-09-22','F','2024-10-30',NULL,88,3,'Chronic Fatigue'),(1440,'John','Howard','1963-11-27','M','2024-10-31',NULL,24,2,'Anxiety'),(1441,'Sebastian','Campbell','1946-10-09','F','2024-10-28',NULL,19,10,'Acid Reflux'),(1442,'Madison','Anderson','1986-11-09','F','2024-10-25','2024-10-25',75,2,'Gastroenteritis'),(1443,'Isla','Morris','1959-08-12','F','2024-10-24',NULL,44,6,'Osteoporosis'),(1444,'Harper','Anderson','1977-08-14','M','2024-10-26',NULL,34,2,'Allergy'),(1445,'Grace','Martin','1973-05-07','M','2024-10-29',NULL,75,10,'Liver Disease'),(1446,'Charlotte','Evans','2002-04-20','M','2024-10-28',NULL,21,4,'Tuberculosis'),(1447,'Ella','Wilson','2004-06-26','M','2024-10-27','2024-10-28',20,7,'Heart Disease'),(1448,'Evelyn','Adams','1978-10-07','M','2024-10-29',NULL,79,1,'Herniated Disc'),(1449,'Madison','Harris','1962-11-25','F','2024-10-28','2024-10-28',43,10,'Obesity'),(1450,'Charlotte','James','1948-07-16','F','2024-10-29',NULL,28,9,'High Cholesterol'),(1451,'Jackson','Cox','1984-10-03','M','2024-10-23','2024-10-26',90,10,'Anxiety'),(1452,'Emma','Johnson','1954-03-17','F','2024-11-01',NULL,38,3,'Conjunctivitis'),(1453,'Sebastian','Richardson','1962-08-28','M','2024-10-29','2024-11-01',77,9,'Sinusitis'),(1454,'Victoria','Clark','1993-10-10','F','2024-10-25',NULL,99,5,'Gallbladder Disease'),(1455,'John','Smith','2003-10-03','F','2024-11-01','2024-11-03',42,7,'Arthritis'),(1456,'Sophia','Reed','1952-04-13','F','2024-10-30',NULL,82,3,'Parkinson\'s Disease'),(1457,'Mia','Morris','1957-09-30','F','2024-10-30',NULL,5,9,'Obesity'),(1458,'James','Scott','1955-10-18','F','2024-10-30',NULL,31,6,'Kidney Stones'),(1459,'Emma','Richardson','1993-04-21','F','2024-10-24','2024-10-27',97,4,'Skin Rash'),(1460,'Isabella','Rodriguez','1964-02-10','M','2024-10-29','2024-10-30',72,3,'Infection'),(1461,'Sophia','Nelson','2003-04-24','M','2024-10-27','2024-10-30',51,1,'Bipolar Disorder'),(1462,'Sebastian','Evans','1969-04-29','F','2024-10-23',NULL,57,9,'Conjunctivitis'),(1463,'Sophie','Carter','1965-10-15','M','2024-10-24','2024-10-24',43,4,'Covid-19'),(1464,'Abigail','Carter','1992-11-04','F','2024-10-29',NULL,41,6,'Epilepsy'),(1465,'Michael','Cook','1963-07-22','M','2024-10-27','2024-10-30',60,9,'Bronchitis'),(1466,'Ava','Baker','1998-05-15','M','2024-10-25',NULL,38,1,'Pneumonia'),(1467,'Nora','Young','1972-02-17','M','2024-10-31','2024-10-31',96,6,'Stroke'),(1468,'Oliver','Hernandez','1981-09-03','M','2024-10-28',NULL,37,8,'Fibromyalgia'),(1469,'Eva','Martin','1962-05-03','M','2024-10-28','2024-10-29',31,2,'Allergy'),(1470,'Ethan','Taylor','2001-07-27','F','2024-10-26',NULL,29,10,'Heart Disease'),(1471,'Ava','Cook','1978-11-26','M','2024-10-30','2024-11-02',26,2,'Asthma'),(1472,'Nora','Stewart','1972-05-29','M','2024-10-27','2024-10-29',7,9,'Acid Reflux'),(1473,'Nora','Hernandez','1984-01-08','M','2024-10-30',NULL,33,2,'Fracture'),(1474,'Ella','Bailey','1992-09-03','F','2024-10-23','2024-10-27',63,3,'Bronchitis'),(1475,'Ella','Taylor','1976-02-19','M','2024-11-01','2024-11-02',8,9,'Bronchitis'),(1476,'Mia','Reed','1974-04-28','F','2024-10-27','2024-10-31',69,7,'Chronic Fatigue'),(1477,'Samuel','Lopez','1983-06-15','F','2024-10-26','2024-10-29',63,4,'Multiple Sclerosis'),(1478,'Emily','Taylor','2002-12-20','F','2024-10-26','2024-10-27',43,3,'Bipolar Disorder'),(1479,'Lucas','Bell','1981-02-26','F','2024-11-01',NULL,67,6,'Vertigo'),(1480,'Noah','Adams','1956-11-20','F','2024-10-24',NULL,93,4,'Fibromyalgia'),(1481,'Joshua','Lee','1986-04-06','M','2024-10-31',NULL,100,1,'Stroke'),(1482,'Frank','Green','1962-12-19','M','2024-11-01','2024-11-04',87,3,'High Cholesterol'),(1483,'Sophie','Perez','1959-05-19','F','2024-10-30',NULL,74,5,'Allergy'),(1484,'Emma','Walker','1952-04-29','M','2024-10-31','2024-10-31',71,4,'Scoliosis'),(1485,'Noah','Ward','1981-12-22','M','2024-10-28',NULL,34,6,'Multiple Sclerosis'),(1486,'Grace','Bell','1945-04-26','F','2024-10-25','2024-10-26',73,10,'Arthritis'),(1487,'Madison','Murphy','1986-06-01','F','2024-10-26','2024-10-30',1,1,'Arthritis'),(1488,'Carol','Allen','2001-04-07','M','2024-10-30',NULL,28,3,'Tuberculosis'),(1489,'Ella','Thomas','1960-11-15','M','2024-11-01','2024-11-02',74,7,'Gout'),(1490,'Alice','Rivera','1993-01-11','F','2024-10-24','2024-10-26',50,9,'Gastroenteritis'),(1491,'Dave','Cooper','1971-07-21','F','2024-11-01',NULL,95,1,'Pancreatitis'),(1492,'Mason','Collins','1987-10-17','F','2024-11-01',NULL,8,8,'Sinusitis'),(1493,'Eva','Rodriguez','1970-12-23','M','2024-11-01','2024-11-03',83,9,'Asthma'),(1494,'Henry','Perez','1960-05-20','M','2024-10-23','2024-10-25',59,3,'Gout'),(1495,'Matthew','Hernandez','1996-02-06','F','2024-11-01',NULL,75,6,'PTSD'),(1496,'Frank','Murphy','1983-11-25','F','2024-10-24','2024-10-25',53,8,'Hemorrhoids'),(1497,'Evelyn','Hernandez','1983-08-22','M','2024-10-26',NULL,2,9,'Fracture'),(1498,'Mason','Cox','1999-09-16','F','2024-10-23',NULL,64,5,'Skin Rash'),(1499,'Lily','Carter','1987-04-23','F','2024-10-31',NULL,35,1,'Obesity'),(1500,'Matthew','Brown','1982-09-09','F','2024-11-01','2024-11-04',26,4,'Fracture'),(1501,'Nathan','Lee','1988-05-17','M','2024-10-24','2024-10-25',58,1,'Pancreatitis'),(1502,'Alexander','Cooper','1948-09-14','F','2024-10-27',NULL,12,8,'Conjunctivitis'),(1503,'Lily','Reed','1959-08-31','M','2024-10-26',NULL,75,5,'Bipolar Disorder'),(1504,'Alice','Miller','1985-06-26','M','2024-10-25','2024-10-27',57,2,'Ulcer'),(1505,'Sophia','Richardson','1981-07-23','M','2024-10-25',NULL,8,10,'Infection'),(1506,'Michael','Baker','1977-10-12','M','2024-10-25','2024-10-26',23,4,'Arthritis'),(1507,'Alice','Howard','1984-02-02','F','2024-10-27','2024-10-28',70,10,'Acid Reflux'),(1508,'Eva','Brown','1977-01-02','M','2024-10-26',NULL,37,1,'Chronic Fatigue'),(1509,'John','Perez','1996-04-11','F','2024-10-23',NULL,84,9,'Anxiety'),(1510,'Henry','Taylor','1950-05-26','M','2024-10-24','2024-10-27',90,3,'Anxiety'),(1511,'Jack','Perez','1949-06-29','F','2024-10-31',NULL,75,10,'Obesity'),(1512,'Lily','Evans','1982-10-30','M','2024-10-25',NULL,38,4,'Multiple Sclerosis'),(1513,'Ethan','Jackson','2004-01-07','M','2024-10-26',NULL,7,10,'Bipolar Disorder'),(1514,'Aiden','Nelson','1993-09-28','F','2024-10-24','2024-10-28',74,6,'Covid-19'),(1515,'Henry','Torres','1984-05-27','F','2024-10-24','2024-10-24',36,5,'Heart Disease'),(1516,'Victoria','Jones','1962-03-08','M','2024-10-24',NULL,99,5,'Heart Disease'),(1517,'Amelia','Hall','1957-04-01','M','2024-10-29',NULL,35,8,'Tuberculosis'),(1518,'Logan','Adams','1957-10-27','M','2024-10-31','2024-10-31',32,1,'Epilepsy'),(1519,'Alice','Parker','1955-10-02','F','2024-10-29','2024-11-01',3,6,'Chronic Fatigue'),(1520,'Eva','Davis','1961-05-19','F','2024-10-30',NULL,50,1,'Epilepsy'),(1521,'Oliver','Lee','1950-01-25','F','2024-10-28','2024-11-01',18,6,'Hypertension'),(1522,'Nora','Rodriguez','1966-07-01','F','2024-10-30',NULL,54,3,'Osteoporosis'),(1523,'Abigail','Evans','1970-02-19','F','2024-10-24','2024-10-26',41,10,'Multiple Sclerosis'),(1524,'Zoe','Torres','1951-02-18','F','2024-10-29','2024-10-30',85,7,'Migraine'),(1525,'Emma','Parker','1987-11-20','M','2024-11-01','2024-11-01',19,5,'Heart Disease'),(1526,'Emma','Murphy','1990-07-03','F','2024-11-01','2024-11-03',37,6,'Sleep Apnea'),(1527,'Isabella','Bailey','1985-03-07','F','2024-10-26',NULL,25,4,'COPD'),(1528,'Samuel','Smith','1969-01-26','M','2024-10-30',NULL,12,10,'Gallbladder Disease'),(1529,'Charlotte','Wright','1966-02-13','M','2024-10-23','2024-10-27',8,7,'Chronic Fatigue'),(1530,'Emma','Peterson','1985-03-28','M','2024-10-28',NULL,99,10,'Epilepsy'),(1531,'Logan','Green','1948-05-05','M','2024-10-30','2024-11-02',6,6,'Asthma'),(1532,'Ethan','Cook','2004-07-25','F','2024-11-01',NULL,69,6,'Panic Disorder'),(1533,'Isla','Anderson','1950-01-10','F','2024-10-28','2024-11-01',87,10,'Covid-19'),(1534,'Lily','Hill','1966-02-26','F','2024-11-01','2024-11-05',22,10,'Fibromyalgia'),(1535,'Zoe','Sanchez','1969-08-11','F','2024-10-27','2024-10-29',90,3,'Multiple Sclerosis'),(1536,'Logan','Evans','1971-10-09','M','2024-11-01',NULL,2,5,'Heart Disease'),(1537,'Eva','Richardson','1959-02-19','F','2024-10-28','2024-10-29',41,5,'Acid Reflux'),(1538,'Jacob','Murphy','1984-06-28','M','2024-10-28',NULL,47,8,'Stroke'),(1539,'Grace','Stewart','1988-04-27','M','2024-10-24',NULL,81,7,'Osteoporosis'),(1540,'Noah','Richardson','1962-10-11','F','2024-10-28','2024-10-28',7,7,'Diabetes'),(1541,'Olivia','Walker','1970-04-24','M','2024-10-24',NULL,73,3,'Anxiety'),(1542,'Sebastian','Morris','1999-12-06','F','2024-10-29','2024-11-01',81,9,'Sleep Apnea'),(1543,'Abigail','Rivera','1991-12-14','F','2024-10-25',NULL,83,3,'PTSD'),(1544,'Noah','Williams','1974-03-24','M','2024-10-29','2024-11-01',34,9,'Heart Disease'),(1545,'Sophie','Reed','1964-02-18','F','2024-10-30',NULL,55,5,'Chronic Fatigue'),(1546,'Frank','Walker','1946-06-23','M','2024-10-25','2024-10-27',36,4,'Scoliosis'),(1547,'Mia','Richardson','1970-12-16','M','2024-10-28',NULL,8,2,'Tuberculosis'),(1548,'Olivia','Howard','1971-05-17','F','2024-10-27',NULL,1,4,'Chronic Fatigue'),(1549,'Olivia','Collins','1959-02-10','F','2024-10-28','2024-10-28',37,8,'Ulcer'),(1550,'Isabella','Gray','1945-04-24','F','2024-10-31',NULL,27,1,'Herniated Disc'),(1551,'Sebastian','James','1995-02-22','M','2024-10-30',NULL,45,1,'Bipolar Disorder'),(1552,'Ella','Lee','1966-12-07','F','2024-11-01','2024-11-03',56,7,'Appendicitis'),(1553,'Bob','Rodriguez','2000-01-05','M','2024-10-29','2024-10-31',25,3,'Fracture'),(1554,'Joshua','Smith','1971-11-22','F','2024-10-27',NULL,88,3,'Liver Disease'),(1555,'Nora','Murphy','1986-12-05','F','2024-10-25',NULL,83,6,'PTSD'),(1556,'Samuel','Evans','1947-04-12','F','2024-10-24',NULL,56,3,'Conjunctivitis'),(1557,'Sebastian','Mitchell','1965-09-22','M','2024-10-26','2024-10-26',78,5,'Panic Disorder'),(1558,'Abigail','Roberts','1998-01-17','M','2024-10-24',NULL,39,8,'Ear Infection'),(1559,'Sophia','Morgan','2000-12-05','M','2024-10-29','2024-10-30',9,9,'Chronic Fatigue'),(1560,'Madison','Brown','1957-07-19','F','2024-10-29',NULL,23,5,'Epilepsy'),(1561,'Ethan','Brown','1998-06-05','M','2024-10-24',NULL,88,7,'Epilepsy'),(1562,'Eva','Hall','2001-08-13','M','2024-10-25',NULL,71,6,'Depression'),(1563,'Harper','Clark','1960-12-26','F','2024-11-01',NULL,96,2,'Infection'),(1564,'Ethan','Taylor','1963-08-17','M','2024-10-25',NULL,29,5,'Fracture'),(1565,'Harper','Murphy','2000-05-22','F','2024-10-30','2024-11-03',59,8,'Hemorrhoids'),(1566,'Oliver','Bailey','1974-06-03','M','2024-10-31','2024-11-02',24,3,'Vertigo'),(1567,'Evelyn','Harris','1987-11-10','M','2024-10-27',NULL,69,4,'Bronchitis'),(1568,'James','Baker','1994-04-08','M','2024-10-24',NULL,23,2,'Gallbladder Disease'),(1569,'Elijah','Harris','2004-08-03','F','2024-10-30','2024-10-30',36,3,'Gout'),(1570,'Aiden','Johnson','1972-03-18','M','2024-10-23',NULL,52,6,'Multiple Sclerosis'),(1571,'Benjamin','Morgan','1978-09-01','F','2024-10-29','2024-10-30',17,3,'Kidney Stones'),(1572,'Evelyn','Cooper','1974-08-22','F','2024-10-25',NULL,17,2,'Panic Disorder'),(1573,'Henry','Rodriguez','1953-07-25','M','2024-10-24','2024-10-26',54,8,'Infection'),(1574,'Sophie','Wright','1976-09-13','F','2024-10-31',NULL,71,10,'Skin Rash'),(1575,'Mason','Edwards','1956-10-28','M','2024-10-30','2024-11-02',60,4,'Kidney Stones'),(1576,'Joshua','Brown','1993-11-27','M','2024-10-29',NULL,19,3,'Vertigo'),(1577,'Mason','Wright','1973-08-30','M','2024-10-27',NULL,47,2,'Sinusitis'),(1578,'Eva','Mitchell','2001-12-23','M','2024-10-25','2024-10-29',60,7,'Scoliosis'),(1579,'Amelia','Morgan','1982-10-22','F','2024-10-23',NULL,83,2,'Multiple Sclerosis'),(1580,'Jack','Nelson','1966-06-21','M','2024-10-29','2024-11-01',23,6,'Liver Disease'),(1581,'Ethan','Davis','1991-10-08','F','2024-11-01','2024-11-01',66,5,'Hemorrhoids'),(1582,'Aiden','Green','1990-03-19','F','2024-10-31','2024-11-04',33,2,'Depression'),(1583,'Benjamin','Morgan','1999-03-01','M','2024-10-29','2024-10-30',74,4,'Covid-19'),(1584,'Isla','Scott','1976-01-19','M','2024-10-29',NULL,42,5,'Tuberculosis'),(1585,'Lily','Wright','1954-04-27','M','2024-10-30',NULL,34,3,'Tuberculosis'),(1586,'Carol','Morgan','1946-03-25','M','2024-10-28','2024-10-30',4,6,'Hepatitis'),(1587,'Noah','Johnson','1988-04-26','F','2024-10-31',NULL,82,1,'Gastroenteritis'),(1588,'Nora','Adams','1995-02-09','F','2024-11-01',NULL,13,8,'Asthma'),(1589,'Leo','Gonzalez','2001-08-25','F','2024-10-23',NULL,63,6,'Vertigo'),(1590,'Isabella','Morris','1956-07-18','M','2024-10-29','2024-10-29',45,6,'Hepatitis'),(1591,'Alexander','Hall','1950-03-12','M','2024-10-29','2024-10-29',91,1,'Gastroenteritis'),(1592,'Olivia','Allen','1990-10-22','F','2024-10-24','2024-10-24',36,3,'Covid-19'),(1593,'Abigail','Edwards','2004-05-21','M','2024-10-24','2024-10-28',39,8,'Hemorrhoids'),(1594,'Jacob','Jackson','1962-02-17','F','2024-10-30','2024-10-30',30,9,'Bipolar Disorder'),(1595,'Chloe','Lee','1960-08-27','F','2024-10-24','2024-10-26',6,1,'Skin Rash'),(1596,'Jack','Jackson','1994-03-18','F','2024-10-31','2024-11-04',45,4,'Scoliosis'),(1597,'Lucas','Gray','1976-03-01','F','2024-11-01',NULL,55,2,'Diabetes'),(1598,'Elijah','Campbell','2003-05-07','F','2024-10-27',NULL,88,4,'Ear Infection'),(1599,'Nathan','Wright','1984-04-08','M','2024-10-28','2024-11-01',82,7,'Gallbladder Disease'),(1600,'Chloe','Brown','1999-08-11','M','2024-10-28','2024-10-31',55,4,'Chronic Fatigue'),(1601,'Elijah','Martin','1954-04-29','F','2024-10-25',NULL,64,2,'Covid-19'),(1602,'Abigail','Walker','1972-09-03','F','2024-10-25','2024-10-28',81,10,'Sleep Apnea'),(1603,'Madison','Richardson','1974-03-31','F','2024-11-01','2024-11-05',22,4,'Appendicitis'),(1604,'Logan','Morris','1953-03-23','F','2024-10-25','2024-10-29',11,6,'Ulcer'),(1605,'Sophie','Allen','1994-06-07','F','2024-10-25',NULL,17,1,'Ulcer'),(1606,'Sophie','Hill','1993-05-18','F','2024-10-28','2024-11-01',57,7,'Sinusitis'),(1607,'Jacob','Campbell','1964-02-28','M','2024-10-28',NULL,68,10,'Migraine'),(1608,'Nathan','Williams','1979-03-20','F','2024-10-27',NULL,12,1,'Gout'),(1609,'Emma','Rodriguez','1983-07-15','F','2024-10-27','2024-10-28',47,1,'Fibromyalgia'),(1610,'Sophie','Nelson','2001-08-03','M','2024-10-28','2024-10-30',92,10,'Gastroenteritis'),(1611,'Henry','James','1961-12-23','F','2024-10-29',NULL,29,7,'High Cholesterol'),(1612,'Lily','Parker','1981-02-15','F','2024-10-23','2024-10-24',45,6,'Herniated Disc'),(1613,'Mason','Gonzalez','1993-10-19','M','2024-10-24',NULL,71,8,'Depression'),(1614,'Matthew','Edwards','1992-02-28','M','2024-10-27','2024-10-28',22,1,'Herniated Disc'),(1615,'Bob','Martin','2003-12-03','M','2024-10-28',NULL,93,3,'Heart Disease'),(1616,'Logan','Richardson','1991-08-11','M','2024-10-24',NULL,75,10,'Liver Disease'),(1617,'Jack','Bailey','1993-12-12','F','2024-10-29','2024-11-02',72,4,'PTSD'),(1618,'Matthew','Harris','1952-12-10','F','2024-10-26','2024-10-30',63,5,'Vertigo'),(1619,'Frank','Adams','1994-05-14','M','2024-10-28',NULL,40,10,'Gallbladder Disease'),(1620,'Olivia','Hall','1948-04-08','M','2024-10-25',NULL,67,2,'Fibromyalgia'),(1621,'Jacob','Stewart','1991-06-27','F','2024-11-01',NULL,38,5,'Skin Rash'),(1622,'Nathan','Jones','1960-10-06','F','2024-10-30','2024-11-03',46,8,'Depression'),(1623,'Ethan','Harris','1945-09-28','M','2024-10-29',NULL,20,3,'Gastroenteritis'),(1624,'Dave','Torres','1949-10-19','M','2024-10-23','2024-10-24',71,4,'Skin Rash'),(1625,'Liam','Green','1964-12-16','F','2024-10-24','2024-10-28',62,5,'Kidney Stones'),(1626,'Nathan','Hall','1998-06-02','F','2024-10-28',NULL,37,5,'Ulcer'),(1627,'Logan','Morris','1983-08-26','F','2024-10-29',NULL,70,8,'Pancreatitis'),(1628,'Elijah','Williams','1967-04-29','F','2024-10-29',NULL,7,10,'Stroke'),(1629,'Amelia','Turner','1949-12-26','M','2024-11-01','2024-11-05',61,1,'Fibromyalgia'),(1630,'Amelia','Perez','1997-03-16','M','2024-10-27',NULL,67,3,'Herniated Disc'),(1631,'Jack','Anderson','1972-10-24','M','2024-10-27',NULL,14,8,'Tuberculosis'),(1632,'Alexander','Lee','1998-11-08','F','2024-10-30','2024-11-02',47,2,'Chronic Fatigue'),(1633,'Abigail','Roberts','2000-12-19','M','2024-10-24','2024-10-28',87,3,'Vertigo'),(1634,'Liam','Clark','1989-06-19','M','2024-10-28',NULL,88,7,'Fracture'),(1635,'Sophia','Scott','1975-10-25','F','2024-10-24','2024-10-25',61,6,'Gallbladder Disease'),(1636,'Michael','Anderson','1965-05-13','M','2024-10-29','2024-11-02',79,9,'Migraine'),(1637,'Carol','Campbell','1971-06-07','M','2024-10-26','2024-10-28',75,5,'Bronchitis'),(1638,'Bob','King','1946-11-27','F','2024-10-31',NULL,40,8,'Chronic Fatigue'),(1639,'Zoe','Carter','2001-08-09','M','2024-10-23',NULL,48,1,'Panic Disorder'),(1640,'Matthew','Carter','1953-01-16','M','2024-10-31','2024-11-01',33,8,'Panic Disorder'),(1641,'Daniel','Scott','1947-11-26','M','2024-10-23','2024-10-24',30,3,'Epilepsy'),(1642,'Dave','Mitchell','1977-02-09','M','2024-10-30',NULL,21,1,'Chronic Fatigue'),(1643,'Abigail','Morris','1954-07-07','F','2024-10-24','2024-10-25',64,6,'Liver Disease'),(1644,'Olivia','Moore','1972-02-27','M','2024-10-24','2024-10-28',86,10,'Allergy'),(1645,'Elijah','Cook','1985-08-24','M','2024-10-30',NULL,72,4,'PTSD'),(1646,'Alice','Morgan','1955-11-20','F','2024-10-23',NULL,100,9,'Bipolar Disorder'),(1647,'Evelyn','Williams','1961-08-28','F','2024-10-30','2024-10-30',59,6,'Appendicitis'),(1648,'Grace','Jackson','1976-03-08','F','2024-10-24','2024-10-24',30,7,'Bipolar Disorder'),(1649,'Mia','Johnson','1990-08-24','M','2024-10-30','2024-11-03',88,5,'Gout'),(1650,'Joshua','Thomas','1960-09-22','F','2024-10-29',NULL,30,2,'PTSD'),(1651,'Jack','Taylor','1997-10-10','F','2024-10-31',NULL,72,6,'Scoliosis'),(1652,'Isabella','Davis','1971-04-29','F','2024-10-24','2024-10-25',27,6,'Heart Disease'),(1653,'Sophia','Mitchell','1956-01-15','M','2024-10-28',NULL,63,7,'Epilepsy'),(1654,'Benjamin','Gonzalez','1957-09-14','F','2024-10-27',NULL,75,2,'Pancreatitis'),(1655,'Sebastian','Richardson','1968-08-13','M','2024-10-31','2024-11-01',92,6,'Sleep Apnea'),(1656,'James','Rivera','1985-03-18','F','2024-10-26','2024-10-30',95,8,'Kidney Stones'),(1657,'Nathaniel','Evans','1989-11-07','F','2024-10-30',NULL,47,3,'Anxiety'),(1658,'Zoe','Bailey','1969-08-04','M','2024-11-01','2024-11-04',84,5,'Herniated Disc'),(1659,'Frank','Jones','1962-10-29','F','2024-10-30','2024-10-30',95,8,'Osteoporosis'),(1660,'Bob','Murphy','1953-03-10','M','2024-11-01',NULL,66,2,'Skin Rash'),(1661,'Frank','Young','1997-01-10','F','2024-10-24',NULL,80,9,'Depression'),(1662,'Chloe','Evans','1991-04-30','M','2024-11-01','2024-11-01',24,6,'Allergy'),(1663,'Logan','Johnson','1986-06-13','F','2024-11-01',NULL,45,2,'Scoliosis'),(1664,'Matthew','Howard','1977-09-08','F','2024-10-26',NULL,34,9,'Osteoporosis'),(1665,'Nora','Adams','1977-02-28','F','2024-10-25','2024-10-29',81,1,'Epilepsy'),(1666,'Bob','Anderson','1974-11-28','F','2024-10-29',NULL,1,6,'Obesity'),(1667,'Daniel','Sanchez','1963-04-01','F','2024-10-30',NULL,47,9,'Acid Reflux'),(1668,'Oliver','Clark','1970-01-29','M','2024-10-30','2024-11-02',38,9,'Diabetes'),(1669,'Jack','Cook','1959-03-26','F','2024-10-28','2024-10-31',47,1,'Obesity'),(1670,'James','Evans','1951-07-30','F','2024-10-28',NULL,41,9,'Vertigo'),(1671,'Carol','Walker','1985-06-29','M','2024-10-23',NULL,64,5,'Fracture'),(1672,'Samuel','Scott','1978-10-25','M','2024-10-25','2024-10-25',78,8,'Pneumonia'),(1673,'Jack','Ward','1963-01-29','F','2024-10-26',NULL,39,8,'Skin Rash'),(1674,'Ethan','Mitchell','1960-11-20','F','2024-10-30',NULL,45,8,'Fracture'),(1675,'Olivia','Torres','1948-03-31','F','2024-10-28','2024-10-29',69,9,'High Cholesterol'),(1676,'Sebastian','Gonzalez','1975-08-15','M','2024-10-31',NULL,63,1,'Fibromyalgia'),(1677,'Logan','Morris','1996-09-28','F','2024-10-31',NULL,12,3,'Sleep Apnea'),(1678,'Logan','Gray','1954-06-11','F','2024-11-01',NULL,60,6,'Parkinson\'s Disease'),(1679,'Isabella','Hill','1952-12-23','F','2024-10-30',NULL,55,6,'Depression'),(1680,'Nathaniel','Hall','2003-09-01','F','2024-10-28','2024-10-29',18,4,'Kidney Stones'),(1681,'Nora','Torres','1947-02-12','M','2024-10-24','2024-10-24',37,8,'PTSD'),(1682,'Sophie','Cooper','1956-05-15','F','2024-10-25','2024-10-28',9,2,'Hepatitis'),(1683,'Lily','Peterson','1947-09-26','M','2024-10-26','2024-10-28',6,4,'Depression'),(1684,'Sophie','Harris','1955-08-15','F','2024-10-28',NULL,83,5,'Liver Disease'),(1685,'Lucas','Nelson','1995-11-28','F','2024-10-30',NULL,8,1,'Fibromyalgia'),(1686,'Charlotte','Hernandez','1956-06-29','M','2024-10-23','2024-10-27',86,2,'Pneumonia'),(1687,'Leo','Brown','1977-07-26','F','2024-10-24','2024-10-26',27,10,'Skin Rash'),(1688,'Lucas','Nelson','1947-10-12','F','2024-10-31',NULL,76,1,'PTSD'),(1689,'Chloe','Rivera','1986-09-11','F','2024-10-25',NULL,36,8,'Scoliosis'),(1690,'Ethan','Ramirez','1972-02-29','F','2024-11-01','2024-11-02',10,3,'Panic Disorder'),(1691,'Dave','Young','1957-05-24','F','2024-10-24','2024-10-26',100,1,'Ulcer'),(1692,'Zoe','Gonzalez','1964-03-21','M','2024-10-24',NULL,15,1,'Acid Reflux'),(1693,'Olivia','Allen','1952-08-06','F','2024-10-31',NULL,32,3,'Seasonal Flu'),(1694,'Abigail','Martin','1973-02-25','M','2024-10-24','2024-10-27',19,5,'Chronic Fatigue'),(1695,'Aiden','Wilson','1954-03-07','M','2024-10-26',NULL,5,1,'Ulcer'),(1696,'John','Miller','1961-04-13','M','2024-10-23',NULL,49,1,'Hemorrhoids'),(1697,'Nora','Cook','1953-02-06','F','2024-10-30',NULL,17,4,'Tuberculosis'),(1698,'Jack','Collins','1979-12-28','F','2024-10-30','2024-10-30',45,2,'Panic Disorder'),(1699,'Sebastian','James','1964-12-22','F','2024-10-28','2024-11-01',97,1,'High Cholesterol'),(1700,'Alice','Bailey','1985-10-27','M','2024-10-28',NULL,59,10,'Stroke'),(1701,'Chloe','Perez','1983-06-23','M','2024-10-23','2024-10-26',47,8,'COPD'),(1702,'Chloe','Allen','1946-08-15','M','2024-10-26','2024-10-29',12,4,'High Cholesterol'),(1703,'Nathaniel','Williams','1951-06-21','M','2024-10-30','2024-10-31',63,4,'Sleep Apnea'),(1704,'Daniel','Bailey','1962-11-25','M','2024-10-30',NULL,42,9,'Parkinson\'s Disease'),(1705,'Emma','Thomas','1950-07-02','M','2024-11-01',NULL,5,5,'Obesity'),(1706,'Liam','Hill','1983-06-20','M','2024-10-31','2024-11-03',75,2,'Panic Disorder'),(1707,'Grace','Bell','1946-06-23','M','2024-10-31','2024-11-01',58,9,'Covid-19'),(1708,'Nathan','Anderson','1990-08-27','M','2024-10-25',NULL,94,7,'Hypertension'),(1709,'Abigail','King','1953-10-30','M','2024-10-24',NULL,73,1,'Asthma'),(1710,'Sophia','Campbell','1954-05-23','F','2024-10-25',NULL,31,6,'Arthritis'),(1711,'Harper','Cook','2003-11-08','M','2024-10-30','2024-10-30',45,6,'Diabetes'),(1712,'Charlotte','Perez','1961-07-12','F','2024-10-28','2024-10-29',20,3,'COPD'),(1713,'Noah','Thomas','1951-06-30','F','2024-10-28','2024-10-31',36,10,'Fibromyalgia'),(1714,'Grace','Garcia','1965-06-15','F','2024-10-31',NULL,29,2,'Fibromyalgia'),(1715,'Benjamin','Hall','1974-04-04','M','2024-10-30',NULL,95,5,'Covid-19'),(1716,'Jack','Bell','1999-09-18','F','2024-10-25',NULL,4,6,'Allergy'),(1717,'Aiden','Howard','1990-03-31','M','2024-10-31',NULL,37,10,'Tuberculosis'),(1718,'Chloe','Jones','1985-05-28','M','2024-10-31','2024-10-31',40,8,'Migraine'),(1719,'Joshua','Taylor','1987-01-21','M','2024-10-25',NULL,28,9,'Conjunctivitis'),(1720,'Isabella','Martin','2002-03-14','F','2024-10-30',NULL,59,1,'Obesity'),(1721,'Sebastian','Turner','1945-09-17','F','2024-10-26','2024-10-28',36,6,'Pancreatitis'),(1722,'Grace','Brown','1977-02-06','M','2024-10-26',NULL,25,1,'Anxiety'),(1723,'Liam','Parker','1974-03-19','M','2024-10-27',NULL,1,6,'Fibromyalgia'),(1724,'Benjamin','Richardson','2001-12-08','M','2024-10-25','2024-10-29',81,1,'Epilepsy'),(1725,'Sophia','Morris','1947-11-04','M','2024-10-29','2024-11-01',14,8,'PTSD'),(1726,'Elijah','King','1999-08-09','M','2024-10-25',NULL,8,6,'Pneumonia'),(1727,'Leo','Bailey','1977-11-12','M','2024-10-24','2024-10-28',43,5,'Herniated Disc'),(1728,'Victoria','Perez','2003-01-01','F','2024-10-27',NULL,36,7,'Herniated Disc'),(1729,'Michael','Roberts','1980-03-24','M','2024-10-25','2024-10-29',67,7,'Liver Disease'),(1730,'Jane','Cooper','1950-08-10','F','2024-11-01',NULL,34,2,'Pancreatitis'),(1731,'Frank','Reed','1986-07-22','F','2024-10-30',NULL,84,9,'Skin Rash'),(1732,'Carol','Reed','1948-12-03','F','2024-10-29',NULL,97,10,'Bipolar Disorder'),(1733,'Daniel','Parker','1994-01-07','M','2024-10-25',NULL,94,10,'Obesity'),(1734,'Madison','Morgan','1990-11-27','M','2024-11-01',NULL,20,6,'Fibromyalgia'),(1735,'Sophia','Ward','1993-04-10','F','2024-10-27','2024-10-31',100,7,'Hemorrhoids'),(1736,'Nathan','Sanchez','1983-09-25','M','2024-10-29','2024-11-02',85,4,'Herniated Disc'),(1737,'Sophia','Wright','1966-02-09','F','2024-11-01','2024-11-02',94,10,'Hepatitis'),(1738,'Bob','Bailey','1953-01-06','F','2024-10-23','2024-10-25',66,9,'Migraine'),(1739,'Alexander','Thomas','1968-01-10','M','2024-10-28',NULL,2,7,'Ear Infection'),(1740,'Emma','Lee','1988-09-27','M','2024-10-30',NULL,56,2,'Migraine'),(1741,'Emily','Perez','1951-04-03','F','2024-10-25',NULL,46,8,'Fracture'),(1742,'Sophie','Brown','1958-03-03','M','2024-10-25',NULL,48,8,'Bronchitis'),(1743,'Henry','Stewart','2003-02-10','F','2024-10-27',NULL,35,5,'Gallbladder Disease'),(1744,'Lily','King','1999-02-17','M','2024-10-26','2024-10-26',50,6,'Herniated Disc'),(1745,'Emily','Murphy','1974-06-08','M','2024-10-24','2024-10-26',50,1,'Liver Disease'),(1746,'Benjamin','Torres','1990-10-06','F','2024-10-28',NULL,5,8,'Gastroenteritis'),(1747,'Abigail','Sanchez','1965-08-31','M','2024-10-23','2024-10-27',8,6,'Liver Disease'),(1748,'Harper','Morgan','1989-07-23','M','2024-11-01',NULL,34,7,'Multiple Sclerosis'),(1749,'Elijah','Reed','1981-02-16','F','2024-10-25','2024-10-25',90,3,'Sinusitis'),(1750,'Jackson','Taylor','1948-09-30','F','2024-10-24','2024-10-26',23,2,'Stroke'),(1751,'Noah','Miller','1955-08-16','M','2024-10-28',NULL,42,2,'Heart Disease'),(1752,'Madison','Ward','1991-10-08','F','2024-10-31',NULL,34,4,'Hepatitis'),(1753,'Nora','Roberts','1970-08-08','M','2024-10-29','2024-10-29',93,8,'Multiple Sclerosis'),(1754,'Isabella','Harris','1981-01-11','F','2024-10-28',NULL,79,9,'Scoliosis'),(1755,'Jacob','Allen','1974-10-02','F','2024-10-29','2024-11-01',27,2,'Skin Rash'),(1756,'Grace','Walker','1974-07-18','F','2024-10-23',NULL,55,5,'Hepatitis'),(1757,'Carol','Howard','1967-05-12','F','2024-10-28','2024-10-29',47,4,'Gallbladder Disease'),(1758,'Aiden','Stewart','1990-02-04','F','2024-10-31','2024-11-02',56,10,'Skin Rash'),(1759,'Jack','Morris','1984-09-25','F','2024-10-26',NULL,10,6,'Parkinson\'s Disease'),(1760,'Joshua','Hill','1977-10-06','M','2024-10-25','2024-10-26',70,1,'Bronchitis'),(1761,'Lucas','Jones','1987-10-12','M','2024-10-31',NULL,2,7,'Obesity'),(1762,'Eva','Rodriguez','1973-02-10','M','2024-11-01',NULL,100,6,'Ear Infection'),(1763,'Henry','Morris','1980-09-05','F','2024-11-01',NULL,5,3,'Ulcer'),(1764,'Harper','Richardson','1988-10-22','M','2024-10-23','2024-10-24',91,6,'Anxiety'),(1765,'Zoe','Allen','1971-08-19','M','2024-10-27','2024-10-31',47,10,'Bipolar Disorder'),(1766,'Henry','Williams','2003-07-19','F','2024-10-30',NULL,52,8,'Acid Reflux'),(1767,'Mason','Richardson','1955-06-26','M','2024-10-25','2024-10-28',37,8,'Acid Reflux'),(1768,'Lucas','Roberts','1995-06-03','M','2024-10-25',NULL,42,2,'Kidney Stones'),(1769,'Jacob','James','1991-04-18','M','2024-10-28',NULL,51,6,'Sleep Apnea'),(1770,'Mason','Collins','1971-01-13','M','2024-10-31',NULL,72,1,'Bipolar Disorder'),(1771,'Ethan','James','1988-05-21','F','2024-10-24','2024-10-27',8,4,'Sleep Apnea'),(1772,'Oliver','Nelson','1950-02-01','M','2024-10-30',NULL,77,6,'Liver Disease'),(1773,'Ava','Smith','1957-02-08','M','2024-10-27','2024-10-30',20,2,'Covid-19'),(1774,'Ethan','Perez','1971-11-25','F','2024-10-29','2024-10-29',87,7,'Fibromyalgia'),(1775,'Daniel','Smith','1955-07-20','F','2024-10-23','2024-10-27',46,4,'PTSD'),(1776,'Isla','Gray','2001-03-03','F','2024-10-27',NULL,35,4,'PTSD'),(1777,'Jack','Garcia','1981-06-04','F','2024-10-25','2024-10-29',21,9,'Pneumonia'),(1778,'Isla','Murphy','2003-05-23','F','2024-10-30',NULL,80,4,'Pancreatitis'),(1779,'Nora','Walker','1980-04-26','F','2024-10-31','2024-10-31',57,6,'Epilepsy'),(1780,'Ella','Allen','1956-11-02','M','2024-10-23',NULL,29,4,'Sleep Apnea'),(1781,'Liam','Adams','1957-10-21','F','2024-10-23',NULL,59,9,'Gout'),(1782,'Leo','Rivera','1982-05-19','M','2024-10-29','2024-10-31',2,1,'Hemorrhoids'),(1783,'Ethan','Lee','1974-12-07','F','2024-10-24',NULL,41,7,'Hepatitis'),(1784,'Matthew','Cooper','1989-06-08','M','2024-10-23','2024-10-23',92,6,'Depression'),(1785,'Victoria','Ward','1994-12-20','M','2024-10-27',NULL,73,4,'Ear Infection'),(1786,'Abigail','Ward','1994-09-28','M','2024-10-30','2024-11-01',74,7,'Vertigo'),(1787,'Evelyn','Parker','2000-08-26','F','2024-10-26',NULL,76,2,'Arthritis'),(1788,'Madison','Gray','1954-08-26','F','2024-11-01','2024-11-04',59,10,'Hemorrhoids'),(1789,'Madison','Murphy','1989-10-01','M','2024-10-25','2024-10-25',81,10,'Osteoporosis'),(1790,'Joshua','Allen','1988-01-29','M','2024-10-27',NULL,47,2,'Anxiety'),(1791,'Aiden','Miller','1956-06-25','M','2024-10-24',NULL,62,6,'Sinusitis'),(1792,'John','Perez','1986-04-21','F','2024-10-26',NULL,55,4,'Covid-19'),(1793,'Alice','Turner','1949-04-15','F','2024-10-28','2024-10-31',48,3,'Migraine'),(1794,'Carol','James','1975-01-01','M','2024-10-29','2024-11-01',92,4,'Skin Rash'),(1795,'Bob','Morgan','1955-01-19','F','2024-10-23','2024-10-23',64,8,'Sinusitis'),(1796,'Jacob','Martinez','1997-07-03','F','2024-10-26',NULL,91,1,'Asthma'),(1797,'Ella','Peterson','1945-02-16','M','2024-10-30','2024-10-30',23,4,'COPD'),(1798,'Oliver','Davis','1987-02-28','M','2024-10-31',NULL,12,7,'Multiple Sclerosis'),(1799,'Nathan','Campbell','1981-09-10','M','2024-10-24','2024-10-28',2,7,'Fracture'),(1800,'Charlotte','Baker','1968-07-20','M','2024-10-31','2024-11-04',87,5,'Seasonal Flu'),(1801,'Chloe','Young','1985-07-28','F','2024-10-31','2024-10-31',45,2,'Heart Disease'),(1802,'Nathaniel','Baker','1963-04-10','F','2024-10-30','2024-11-03',95,4,'Hemorrhoids'),(1803,'Charlotte','Murphy','2002-12-23','M','2024-10-26','2024-10-29',59,3,'Pneumonia'),(1804,'Madison','Scott','1956-08-13','M','2024-10-26',NULL,15,9,'Asthma'),(1805,'John','Evans','1955-02-11','M','2024-10-26','2024-10-29',27,5,'Stroke'),(1806,'Madison','Anderson','1989-06-13','F','2024-10-27',NULL,28,10,'Hemorrhoids'),(1807,'Aiden','Rodriguez','1963-03-02','F','2024-11-01',NULL,76,9,'Bronchitis'),(1808,'James','Hernandez','1957-05-04','F','2024-10-26','2024-10-28',66,5,'Pancreatitis'),(1809,'Charlotte','Evans','1991-01-03','M','2024-10-27',NULL,83,9,'Liver Disease'),(1810,'Grace','Roberts','1988-10-27','F','2024-10-31',NULL,2,2,'Kidney Stones'),(1811,'Frank','Cox','1975-01-19','M','2024-10-28',NULL,42,5,'PTSD'),(1812,'Ethan','Hernandez','1948-08-20','F','2024-10-28',NULL,34,4,'Sinusitis'),(1813,'James','Adams','1970-06-23','M','2024-10-30','2024-11-01',11,3,'Pancreatitis'),(1814,'Abigail','Rodriguez','1959-08-07','M','2024-11-01',NULL,68,4,'Multiple Sclerosis'),(1815,'Charlotte','Baker','2002-04-07','F','2024-10-30','2024-11-03',98,9,'Ear Infection'),(1816,'Benjamin','Martinez','1967-06-25','F','2024-10-26',NULL,22,3,'Infection'),(1817,'Charlotte','Morris','1969-07-16','M','2024-10-29','2024-11-01',78,9,'Epilepsy'),(1818,'Mason','Stewart','1997-03-22','F','2024-10-29','2024-10-31',51,1,'Ear Infection'),(1819,'Zoe','Lee','1985-06-05','F','2024-10-29',NULL,31,2,'Ear Infection'),(1820,'Harper','Green','1946-06-21','F','2024-10-29','2024-10-29',42,4,'High Cholesterol'),(1821,'Noah','Wright','1988-02-02','M','2024-10-28','2024-10-28',5,4,'Bipolar Disorder'),(1822,'Dave','Wright','1999-01-05','M','2024-10-23','2024-10-25',16,1,'Infection'),(1823,'Isabella','Nelson','1951-09-13','F','2024-10-27','2024-10-29',98,3,'Epilepsy'),(1824,'Emily','Walker','1972-02-15','F','2024-10-25','2024-10-27',90,8,'Chronic Fatigue'),(1825,'Ella','Mitchell','1997-01-08','M','2024-10-24',NULL,77,7,'Liver Disease'),(1826,'Sophia','Edwards','1965-02-17','M','2024-10-23',NULL,86,2,'Hypertension'),(1827,'Isla','King','1949-09-17','M','2024-10-24','2024-10-25',51,4,'Allergy'),(1828,'Bob','Nelson','1968-03-12','M','2024-10-30',NULL,88,7,'Hepatitis'),(1829,'Elijah','Scott','1997-01-09','M','2024-10-28','2024-10-29',95,7,'Anxiety'),(1830,'Bob','Howard','1988-04-19','F','2024-10-28',NULL,42,7,'Gallbladder Disease'),(1831,'Benjamin','Ward','1979-07-25','F','2024-10-23','2024-10-26',45,5,'Appendicitis'),(1832,'John','Jackson','1954-04-30','M','2024-10-30','2024-11-02',61,4,'Hepatitis'),(1833,'Isabella','Allen','1954-06-27','F','2024-10-31','2024-10-31',17,10,'Hemorrhoids'),(1834,'Benjamin','Murphy','1965-12-06','F','2024-10-30','2024-11-03',7,9,'Tuberculosis'),(1835,'Ethan','Lee','1964-10-29','F','2024-10-25','2024-10-25',38,2,'Depression'),(1836,'Joshua','Wright','1958-02-21','F','2024-10-24','2024-10-24',51,7,'Bipolar Disorder'),(1837,'Sophie','Peterson','1950-03-03','F','2024-10-30','2024-11-01',20,6,'Bronchitis'),(1838,'Olivia','Gray','1971-12-11','M','2024-10-24','2024-10-24',39,4,'Asthma'),(1839,'Liam','Mitchell','2004-03-03','M','2024-10-27',NULL,29,9,'Sleep Apnea'),(1840,'John','Bailey','1978-04-02','F','2024-10-26',NULL,11,2,'Scoliosis'),(1841,'Grace','Allen','1994-08-12','F','2024-10-31',NULL,98,7,'Obesity'),(1842,'Chloe','Moore','1966-07-27','F','2024-10-23','2024-10-27',36,3,'Migraine'),(1843,'Nathaniel','Scott','1999-06-24','F','2024-10-24',NULL,31,9,'Conjunctivitis'),(1844,'Madison','Taylor','1988-03-07','M','2024-10-24','2024-10-27',7,3,'Bronchitis'),(1845,'Matthew','Wright','2000-02-03','M','2024-10-25',NULL,13,5,'Anxiety'),(1846,'Alexander','Evans','1998-03-22','F','2024-10-28','2024-10-31',91,7,'Depression'),(1847,'Alexander','Rivera','1989-02-03','F','2024-10-28',NULL,13,1,'Gastroenteritis'),(1848,'Aiden','Roberts','2003-10-27','M','2024-10-25',NULL,15,1,'Conjunctivitis'),(1849,'Amelia','Harris','1952-08-09','F','2024-11-01','2024-11-01',2,8,'Ulcer'),(1850,'Mason','Rodriguez','1976-01-30','F','2024-10-30',NULL,23,7,'Hemorrhoids'),(1851,'Harper','Parker','1999-03-08','F','2024-10-29',NULL,1,3,'Gallbladder Disease'),(1852,'Elijah','King','1990-11-19','F','2024-10-30','2024-10-30',88,4,'Osteoporosis'),(1853,'Alice','Wright','1971-09-02','M','2024-10-24',NULL,12,8,'Tuberculosis'),(1854,'Olivia','Gray','1970-12-11','F','2024-10-30',NULL,78,5,'Chronic Fatigue'),(1855,'Eva','Evans','1996-06-29','M','2024-10-24','2024-10-25',79,10,'Chronic Fatigue'),(1856,'Eva','Stewart','1986-02-06','M','2024-10-30',NULL,2,7,'Scoliosis'),(1857,'Victoria','Williams','1955-05-17','F','2024-10-31',NULL,46,2,'Ear Infection'),(1858,'Ava','Miller','1956-06-30','M','2024-10-27','2024-10-28',73,10,'Kidney Stones'),(1859,'Ella','Wilson','1976-08-01','M','2024-10-29',NULL,60,9,'Sleep Apnea'),(1860,'Ethan','Hernandez','1949-08-20','M','2024-10-23','2024-10-24',18,4,'Migraine'),(1861,'John','Mitchell','1952-09-08','F','2024-10-24',NULL,76,9,'Herniated Disc'),(1862,'Jane','Cook','1957-01-01','M','2024-10-31',NULL,12,4,'Gout'),(1863,'Liam','Walker','1947-07-05','F','2024-10-31','2024-11-01',23,5,'Obesity'),(1864,'Dave','Clark','1989-11-23','M','2024-10-30',NULL,18,6,'High Cholesterol'),(1865,'Chloe','Howard','1989-11-28','F','2024-10-23','2024-10-25',34,3,'Vertigo'),(1866,'Elijah','Harris','1994-07-06','F','2024-10-26','2024-10-27',64,4,'Acid Reflux'),(1867,'Noah','Martin','1960-11-28','M','2024-11-01',NULL,1,10,'Acid Reflux'),(1868,'Elijah','Reed','1974-02-05','M','2024-10-25',NULL,82,6,'Chronic Fatigue'),(1869,'Isabella','Phillips','1987-03-21','M','2024-10-28',NULL,93,8,'Kidney Stones'),(1870,'Benjamin','Stewart','2002-02-26','F','2024-10-25',NULL,93,3,'Bipolar Disorder'),(1871,'Eva','Jackson','1981-06-02','M','2024-10-27',NULL,98,7,'Sleep Apnea'),(1872,'Ella','Carter','1988-04-23','M','2024-10-26','2024-10-29',91,6,'Gallbladder Disease'),(1873,'Samuel','Morris','1993-10-09','M','2024-10-26',NULL,89,5,'Sinusitis'),(1874,'Jack','Taylor','1957-09-03','F','2024-10-29',NULL,47,10,'Infection'),(1875,'Olivia','Howard','1977-07-29','M','2024-11-01',NULL,87,2,'Skin Rash'),(1876,'Mia','Williams','1954-11-24','F','2024-10-29',NULL,64,5,'Chronic Fatigue'),(1877,'Zoe','Lee','2003-05-27','F','2024-10-31',NULL,7,6,'Heart Disease'),(1878,'Zoe','Turner','1966-07-12','M','2024-10-23','2024-10-23',80,6,'Scoliosis'),(1879,'Matthew','Roberts','1998-08-07','M','2024-10-25',NULL,6,1,'Obesity'),(1880,'Sophia','Brown','1977-06-04','F','2024-10-26',NULL,61,9,'Fibromyalgia'),(1881,'Benjamin','Davis','1990-07-15','F','2024-10-30','2024-10-31',46,6,'Conjunctivitis'),(1882,'Nathaniel','Evans','2003-05-07','F','2024-10-29','2024-10-29',46,1,'Osteoporosis'),(1883,'Liam','Martinez','1995-01-04','M','2024-10-24',NULL,3,4,'Pneumonia'),(1884,'Isabella','Walker','1949-05-03','F','2024-10-31',NULL,75,1,'Tuberculosis'),(1885,'Nathaniel','Baker','1997-10-27','F','2024-10-26',NULL,58,7,'Gout'),(1886,'Abigail','Moore','1952-11-24','M','2024-10-23','2024-10-25',23,10,'Epilepsy'),(1887,'Abigail','Torres','1956-10-16','M','2024-11-01',NULL,51,8,'Gallbladder Disease'),(1888,'Alexander','Scott','1986-06-06','F','2024-10-27','2024-10-27',24,3,'Hepatitis'),(1889,'Zoe','Gonzalez','1989-02-27','F','2024-10-23',NULL,46,10,'Hepatitis'),(1890,'Ethan','Hill','1951-05-19','M','2024-10-27',NULL,25,8,'Seasonal Flu'),(1891,'Jackson','Martin','1953-11-22','F','2024-10-26',NULL,3,8,'Allergy'),(1892,'Elijah','Green','2000-09-05','F','2024-11-01',NULL,4,4,'Heart Disease'),(1893,'Jacob','Hernandez','1945-01-31','M','2024-10-24',NULL,42,5,'Ulcer'),(1894,'Ava','Cook','1996-10-05','M','2024-10-23',NULL,80,3,'Multiple Sclerosis'),(1895,'Victoria','Perez','1973-10-13','F','2024-10-27','2024-10-30',90,6,'Infection'),(1896,'Nathan','Sanchez','1994-05-17','F','2024-10-23','2024-10-25',10,3,'Pneumonia'),(1897,'Nora','Bailey','1950-11-09','M','2024-10-28','2024-10-29',82,2,'Epilepsy'),(1898,'Emma','Green','2002-07-29','M','2024-11-01',NULL,99,10,'Liver Disease'),(1899,'Alexander','Perez','1975-08-02','F','2024-10-26','2024-10-28',10,2,'Herniated Disc'),(1900,'Joshua','Collins','1976-03-06','M','2024-10-25','2024-10-28',19,4,'Liver Disease'),(1901,'Eva','Turner','1966-02-08','F','2024-10-31','2024-10-31',55,1,'Hepatitis'),(1902,'Charlotte','Adams','2001-06-23','F','2024-10-31','2024-11-03',70,9,'Covid-19'),(1903,'Emma','Bell','1955-08-04','F','2024-11-01',NULL,44,8,'Heart Disease'),(1904,'Nathan','Taylor','1947-01-01','F','2024-11-01','2024-11-02',14,5,'Bronchitis'),(1905,'Liam','Rivera','1990-02-15','F','2024-10-30','2024-10-31',23,2,'Infection'),(1906,'Jackson','Turner','1966-06-26','F','2024-10-24',NULL,6,6,'Skin Rash'),(1907,'Abigail','Baker','1983-03-17','M','2024-10-31','2024-10-31',49,8,'Gastroenteritis'),(1908,'Aiden','Lopez','2001-09-10','F','2024-10-24',NULL,21,5,'Multiple Sclerosis'),(1909,'Isabella','Roberts','1963-01-23','F','2024-10-23','2024-10-27',79,6,'Epilepsy'),(1910,'Henry','King','1966-04-30','M','2024-10-28',NULL,71,10,'Epilepsy'),(1911,'Olivia','Parker','1952-03-28','M','2024-10-26',NULL,11,7,'High Cholesterol'),(1912,'Jackson','Edwards','1985-03-20','F','2024-10-30',NULL,51,10,'Chronic Fatigue'),(1913,'Noah','Collins','1984-03-22','F','2024-10-28','2024-11-01',77,8,'COPD'),(1914,'Sophie','Martinez','1954-12-25','M','2024-10-24',NULL,41,3,'Depression'),(1915,'Nathan','Gray','1972-10-08','F','2024-10-23',NULL,93,10,'Multiple Sclerosis'),(1916,'Madison','Martin','1988-04-27','F','2024-10-29','2024-10-31',62,5,'Infection'),(1917,'Lily','Perez','1992-04-04','M','2024-10-26',NULL,95,7,'Panic Disorder'),(1918,'Nora','Garcia','1993-02-15','F','2024-10-25','2024-10-26',37,5,'Anxiety'),(1919,'Isabella','Lee','1948-05-04','F','2024-10-25',NULL,7,2,'Pancreatitis'),(1920,'Benjamin','Phillips','1977-12-27','M','2024-11-01','2024-11-02',51,2,'Skin Rash'),(1921,'Benjamin','Bailey','1945-05-09','F','2024-10-27',NULL,23,6,'Pneumonia'),(1922,'Madison','Scott','1974-04-03','M','2024-10-29','2024-10-31',91,9,'Vertigo'),(1923,'Joshua','Miller','1986-12-16','F','2024-10-25','2024-10-26',5,3,'Obesity'),(1924,'Frank','Roberts','1973-10-20','M','2024-10-26',NULL,31,5,'Stroke'),(1925,'Frank','Lopez','2000-12-09','F','2024-11-01',NULL,21,4,'Epilepsy'),(1926,'Charlotte','Torres','1995-05-14','F','2024-10-29',NULL,47,10,'Infection'),(1927,'Lucas','Garcia','1945-02-22','M','2024-10-29','2024-10-29',10,7,'COPD'),(1928,'Ella','Martinez','1949-05-26','M','2024-10-25','2024-10-29',80,9,'Diabetes'),(1929,'Sophie','King','1990-03-24','M','2024-11-01','2024-11-01',2,6,'PTSD'),(1930,'Bob','Miller','1990-05-31','F','2024-10-28','2024-11-01',100,7,'Obesity'),(1931,'Elijah','Nelson','1992-01-16','M','2024-10-27','2024-10-31',87,8,'Liver Disease'),(1932,'James','Miller','1953-04-11','F','2024-10-27','2024-10-29',78,6,'Parkinson\'s Disease'),(1933,'Evelyn','Sanchez','1973-08-15','F','2024-10-23','2024-10-27',86,6,'Heart Disease'),(1934,'Lily','Taylor','1949-04-23','M','2024-10-26',NULL,6,10,'Covid-19'),(1935,'Charlotte','Collins','1968-07-19','F','2024-10-25',NULL,75,10,'Multiple Sclerosis'),(1936,'Mason','Williams','1974-12-02','M','2024-10-31','2024-11-02',27,5,'Asthma'),(1937,'John','Brown','1995-10-24','M','2024-10-23','2024-10-24',21,7,'Panic Disorder'),(1938,'Michael','Adams','1962-12-04','M','2024-11-01','2024-11-05',60,3,'PTSD'),(1939,'Ava','Bailey','1997-04-16','M','2024-10-25',NULL,36,5,'Hemorrhoids'),(1940,'Aiden','Roberts','1973-06-30','F','2024-10-24',NULL,42,8,'Gallbladder Disease'),(1941,'Charlotte','Martin','1999-07-01','F','2024-10-23','2024-10-25',24,10,'Herniated Disc'),(1942,'Daniel','Rodriguez','1972-07-12','F','2024-10-30','2024-10-31',93,8,'Gallbladder Disease'),(1943,'Noah','Davis','1966-04-04','M','2024-10-25','2024-10-26',55,3,'Fracture'),(1944,'Carol','Green','1961-11-25','F','2024-11-01',NULL,69,1,'Ear Infection'),(1945,'Jacob','Murphy','1996-10-06','F','2024-10-23',NULL,20,7,'High Cholesterol'),(1946,'Lily','Thomas','1983-03-05','M','2024-10-26',NULL,99,6,'Herniated Disc'),(1947,'Abigail','Thomas','1971-08-09','F','2024-10-24','2024-10-26',20,9,'Diabetes'),(1948,'Noah','Smith','1970-11-21','M','2024-10-27',NULL,34,1,'Conjunctivitis'),(1949,'Ethan','Cooper','1977-10-23','F','2024-10-25','2024-10-28',92,2,'Pancreatitis'),(1950,'Carol','Green','1966-11-01','M','2024-10-27','2024-10-31',35,10,'Ulcer'),(1951,'Amelia','Morgan','1988-11-07','M','2024-10-25',NULL,22,9,'Sleep Apnea'),(1952,'Jack','Williams','1961-08-05','F','2024-10-26',NULL,84,5,'Obesity'),(1953,'Dave','Baker','1948-12-08','F','2024-10-26',NULL,8,4,'Heart Disease'),(1954,'Jacob','Reed','1997-11-17','M','2024-10-28','2024-10-30',59,3,'Bipolar Disorder'),(1955,'Emily','Roberts','1947-04-16','F','2024-11-01',NULL,58,4,'Panic Disorder'),(1956,'Carol','Jackson','1983-03-17','M','2024-10-26',NULL,60,6,'Gastroenteritis'),(1957,'Frank','Gray','1970-03-29','M','2024-10-30',NULL,55,7,'Covid-19'),(1958,'Charlotte','Cook','1993-07-04','F','2024-10-30','2024-11-02',67,7,'Liver Disease'),(1959,'Chloe','Richardson','1996-10-11','M','2024-11-01','2024-11-03',15,4,'Multiple Sclerosis'),(1960,'Jacob','Baker','1946-09-21','M','2024-10-30','2024-11-03',10,10,'Seasonal Flu'),(1961,'Michael','Brown','1982-03-01','M','2024-10-28',NULL,45,10,'Anxiety'),(1962,'Jacob','Gonzalez','1979-03-15','M','2024-10-31',NULL,37,5,'Obesity'),(1963,'Noah','Thomas','1966-07-16','F','2024-11-01',NULL,85,10,'Heart Disease'),(1964,'Dave','Garcia','1988-12-05','M','2024-10-30',NULL,53,7,'Liver Disease'),(1965,'Sophia','Williams','2003-11-26','M','2024-10-30','2024-10-31',79,5,'Ulcer'),(1966,'Madison','Hernandez','1986-04-13','M','2024-11-01','2024-11-03',68,9,'Gallbladder Disease'),(1967,'Nathan','Hall','1946-10-26','M','2024-10-24',NULL,50,4,'COPD'),(1968,'Nora','Hernandez','1977-08-18','M','2024-10-31','2024-10-31',4,2,'Gallbladder Disease'),(1969,'Aiden','Cox','1948-12-12','M','2024-11-01','2024-11-01',96,8,'Panic Disorder'),(1970,'Jack','Peterson','1989-05-09','F','2024-10-31','2024-11-02',77,8,'Heart Disease'),(1971,'Dave','Bell','1951-01-15','F','2024-10-25',NULL,95,3,'Osteoporosis'),(1972,'Amelia','Rodriguez','1999-09-01','F','2024-10-31','2024-11-04',93,8,'Fracture'),(1973,'Dave','Harris','1964-09-24','M','2024-10-24',NULL,67,6,'Pancreatitis'),(1974,'Elijah','Hall','1988-08-19','F','2024-10-30','2024-11-03',43,4,'Ear Infection'),(1975,'Ethan','Scott','1967-05-15','F','2024-10-29',NULL,89,4,'Gout'),(1976,'Oliver','Harris','1992-09-26','M','2024-10-25','2024-10-28',24,8,'High Cholesterol'),(1977,'Victoria','Cooper','1977-04-02','F','2024-11-01',NULL,38,10,'Obesity'),(1978,'Abigail','Ward','1988-03-30','F','2024-10-24',NULL,88,10,'Heart Disease'),(1979,'Harper','Evans','1953-01-11','M','2024-10-24','2024-10-25',34,4,'Skin Rash'),(1980,'Jack','Nelson','1961-08-27','F','2024-10-31','2024-11-03',66,10,'Sinusitis'),(1981,'Emily','Gonzalez','1985-05-17','M','2024-10-30',NULL,34,1,'Hemorrhoids'),(1982,'Mia','Allen','1971-01-02','M','2024-11-01',NULL,68,2,'Parkinson\'s Disease'),(1983,'Isla','Green','1950-01-13','M','2024-10-30','2024-10-30',49,10,'Obesity'),(1984,'Michael','Clark','1999-06-13','M','2024-10-26',NULL,19,5,'Vertigo'),(1985,'Nathan','Evans','1979-06-17','M','2024-10-26',NULL,20,1,'Diabetes'),(1986,'Nathan','Anderson','1972-11-05','M','2024-10-26',NULL,18,8,'Hypertension'),(1987,'Lily','Bailey','1951-09-19','M','2024-10-27','2024-10-31',94,8,'Sleep Apnea'),(1988,'Jacob','Bell','1951-02-15','F','2024-10-25','2024-10-28',52,6,'Liver Disease'),(1989,'Emma','Green','1966-02-15','M','2024-10-25',NULL,70,9,'Hepatitis'),(1990,'Charlotte','Scott','1976-08-24','F','2024-11-01',NULL,29,7,'Fibromyalgia'),(1991,'James','Wilson','2004-08-07','F','2024-10-28','2024-10-31',25,1,'Asthma'),(1992,'Oliver','Wright','1981-03-14','F','2024-10-29',NULL,71,2,'Vertigo'),(1993,'Ethan','Miller','1976-08-10','M','2024-10-29',NULL,38,2,'Gout'),(1994,'Eva','Young','1967-04-29','F','2024-10-24','2024-10-27',90,5,'Bipolar Disorder'),(1995,'Joshua','Cox','1947-11-03','M','2024-10-25',NULL,39,4,'Gastroenteritis'),(1996,'Jane','Morgan','1993-11-06','F','2024-10-24','2024-10-28',41,3,'Fracture'),(1997,'Jane','Wilson','1967-11-01','M','2024-10-25','2024-10-28',1,1,'Covid-19'),(1998,'Isabella','Clark','1961-09-04','F','2024-10-28','2024-10-31',92,4,'Asthma'),(1999,'Mia','Campbell','1977-02-02','M','2024-10-27',NULL,79,7,'Diabetes'),(2000,'Chloe','Taylor','1959-01-02','M','2024-10-31',NULL,62,3,'Depression');
+/*!40000 ALTER TABLE `patients` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `physicians`
+--
+
+DROP TABLE IF EXISTS `physicians`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `physicians` (
+ `physician_id` int(11) NOT NULL AUTO_INCREMENT,
+ `first_name` varchar(50) NOT NULL,
+ `last_name` varchar(50) NOT NULL,
+ `specialty` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`physician_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `physicians`
+--
+
+LOCK TABLES `physicians` WRITE;
+/*!40000 ALTER TABLE `physicians` DISABLE KEYS */;
+INSERT INTO `physicians` VALUES (1,'Henry','Cox','Endocrinology'),(2,'Michael','Garcia','General Practice'),(3,'Leo','Richardson','Pediatrics'),(4,'Nathan','Davis','General Practice'),(5,'Noah','Peterson','Dermatology'),(6,'Daniel','Adams','Orthopedics'),(7,'Carol','Stewart','Pulmonology'),(8,'Michael','Hernandez','Gastroenterology'),(9,'Amelia','Parker','General Practice'),(10,'Isabella','Torres','Endocrinology');
+/*!40000 ALTER TABLE `physicians` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2024-11-01 18:21:43
diff --git a/Sprint 3/src/src/pcpType.class b/Sprint 3/src/src/pcpType.class
new file mode 100644
index 000000000..bd4884aa6
Binary files /dev/null and b/Sprint 3/src/src/pcpType.class differ
diff --git a/Sprint 3/src/src/pcpType.java b/Sprint 3/src/src/pcpType.java
new file mode 100644
index 000000000..0a695c86d
--- /dev/null
+++ b/Sprint 3/src/src/pcpType.java
@@ -0,0 +1,43 @@
+package src;
+
+//Class for creating objects for Primary Care Providers
+public class pcpType {
+ String drFname;
+ String drLname;
+ String specialty;
+ //Chose not to assign patient to Dr since Dr is already assigned to patient in PatientType class
+
+ //default constructor
+ public pcpType() {
+ this.drFname = "";
+ this.drLname = "";
+ this.specialty = "";
+ }
+
+ //constructor
+ public pcpType(String drFname, String drLname, String specialty) {
+ this.drFname = drFname;
+ this.drLname = drLname;
+ this.specialty = specialty;
+ }
+
+ //Getters
+ public String getDrFname() {return drFname;}
+ public String getDrLname() {return drLname;}
+ public String getSpecialty() {return specialty;}
+
+ //Setters
+ public void setDrFname(String drFname) {this.drFname = drFname;}
+ public void setDrLname(String drLname) {this.drLname = drLname;}
+ public void setSpecialty(String specialty) {this.specialty = specialty;}
+
+ //Print function for all Dr info
+ public void printDrInfo(){
+ System.out.println("Dr: " + drLname + " Info\n");
+ System.out.println(drFname + " " + drLname);
+ System.out.println("Specialty: " + specialty);
+
+ }
+
+
+}
diff --git a/UseCase_One.iml b/UseCase_One.iml
new file mode 100644
index 000000000..c90834f2d
--- /dev/null
+++ b/UseCase_One.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/requirementPlaceholder.txt b/requirementPlaceholder.txt
deleted file mode 100644
index e69de29bb..000000000
diff --git a/untitled.iml b/untitled.iml
new file mode 100644
index 000000000..c90834f2d
--- /dev/null
+++ b/untitled.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file