Armstrong GP Surgery Appointment System: Java OOP Project

Verified

Added on  2025/05/12

|9
|1018
|431
AI Summary
Desklib provides solved assignments and past papers to help students succeed.
Document Page
OBJECT ORIENTED PROGRAMMING
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Contents
Introduction.................................................................................................................................................3
Class:...........................................................................................................................................................4
Object:.........................................................................................................................................................4
Constructor:................................................................................................................................................4
Approach.....................................................................................................................................................8
References...................................................................................................................................................9
2
Document Page
Introduction
This Armstrong GP Surgery system is created in order to fulfill the need for a new system. The
system is capable of register new patients in the system and also book the appointments. This
system allows the user to book the appointments in the gap of 1hour. It also allows the admin to
delete the patient from the system. The system allows the patient to make the appointments with
the doctor which they want.
3
Document Page
Class:
Class in Java refers with the blueprint by the help of which various objects get to create and it
also helps in representing various properties or the methods which are common for the objects
that are present and are of a single type. In a class various components are there that are:
Modifiers
Interfaces
Class names
Super class
Body
All these are the components that may present in a class and for initialization, the objects in a
class various constructors are used. Fields in a class represent the variables which help in
providing the class state as well as the objects for implementing the class behavior and the
objects present in that class. Classes are of different types that are anonymous class, nested and
lambda expressions.
FacilityAppointments Class- This is the class that is created in order to keep and store the data
of the appointments made by the patients for different treatments.
FacilityDate Class- This is the class that is created in order to keep and store the data of the
appointment dates made by the patients for different treatments.
FacilityDoctor Class- This is the class that is created in order to keep and store the data of the
doctor and information regarding the different doctors available for different purposes.
Patientfacility Class- This is the class that is created in order to keep and store the data of the
patients.
OOP Class- This is the class that contains the main () method and it helps in making the
program run. Various functions are called here.
Object:
Objects are the basic units of the Object-oriented programming and help in representing the
entities of real life. These objects are present in the class. Program of java contains various
objects and helps in interacting by method invocation. An object contains:
State.
Behavior.
Identity.
Constructor:
A constructor is the block of code which helps in the initialization of the object that is newly
created and these constructors also resembles with the method of instance in the java but it itself
4
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
is not a method. Constructors are of two different categories that include default constructors as
well as parameterized constructor. These are used for different purposes at different places. The
default constructor does not have any parameter; parameterized constructor has some specific
number of parameters. In Java, the operation of constructor overloading is also available.
This Keyword: This keyword is used in java that basically refers to the current object present.
This keyword is also used for reducing the multiple errors that could affect the entire program.
This keyword is one of the special keywords and plays a really important role.
Case 1: Choose 1 to register patients to the list- This would help in adding new patients in the database.
Case 2: Choose 2 to view all patients- This would help in showing the list of the patients.
Case 3: Choose 3 to check if the patient exists in the database: This would help in verifying if the
patient is present or exist.
Case 4: Choose 4 to book a new Appointment: This would help in booking an appointment.
Case 5: Choose 5 Display all appointments: This would help in displaying all the made appointments.
Case 6: Choose 6 to delete the appointment: This would help in deleting the appointment.
Case 7: Choose 7 to delete patient from the database: This would help in deleting the patient data.
Case 8: Choose 8 to change an appointment: This would help in changing the appointments.
Case 9: Choose 9 to viewthe patient's full profile: This would help in showing the patient’s profile.
Case 10: Choose 10 Search for appointments and displays: This would help in searching the
appointments as well as displaying them.
Case 11: Choose 11 Management Reporting: This would help in showing the appointments of patients
and doctors.
Case 12: Choose 12 to exit: To exit the program.
5
Document Page
FacilityAppointments.java-
This is the class that is created in order to keep and store the data of the appointments made by
the patients for different treatments.
FacilityDate.java- This is the class that is created in order to keep and store the data of the
appointment dates made by the patients for different treatments.
FacilityDoctor.java- This is the class that is created in order to keep and store the data of the
doctor and information regarding the different doctors available for different purposes.
Patientinfacility.java- This is the class that is created in order to keep and store the data of the
patients.
OOP.java- This is the class that contains the main () method and it helps in making the program
run. Various functions are called here.
6
Document Page
UML class diagram:
7
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Approach
We have implemented ArrayList in order to store the values of the different data type.
We have used ArrayList to store the patient registration details. We have also used
ArrayList to store the doctor’s details
We have implemented treemap also in order to store the key-value pair data in the
system.
Exception handling is also implemented in the system in order to avoid the unwanted
termination of the program and generate the user-friendly message.
8
Document Page
References
Savitch, W., 2017. Java: An Introduction to Problem Solving and Programming Plus
MyProgrammingLab with Pearson eText--Access Card Package. Pearson.
Joyce, D.T. and Weems, C., 2016. Object-oriented data structures using Java. Jones &
Bartlett Publishers.
Yang, J., Lee, Y., Hicks, D. and Chang, K.H., 2015, October. Enhancing object-oriented
programming education using static and dynamic visualization. In 2015 IEEE Frontiers
in Education Conference (FIE) (pp. 1-5). IEEE.
9
chevron_up_icon
1 out of 9
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]