0% found this document useful (0 votes)
165 views5 pages

CS242 - Term Project PDF

The document describes a term project assignment to design and implement a pharmacy system using appropriate data structures and classes. The pharmacy system must store patient and prescription information, as well as medication data. It must also allow adding, deleting, and searching for patients, prescriptions, and medications. The system is to be implemented using classes for Prescriptions, Patients, and Medications along with a menu-driven interface.

Uploaded by

Rymshah Moez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
165 views5 pages

CS242 - Term Project PDF

The document describes a term project assignment to design and implement a pharmacy system using appropriate data structures and classes. The pharmacy system must store patient and prescription information, as well as medication data. It must also allow adding, deleting, and searching for patients, prescriptions, and medications. The system is to be implemented using classes for Prescriptions, Patients, and Medications along with a menu-driven interface.

Uploaded by

Rymshah Moez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Al Imam Mohammad Ibn Saud Islamic University

College of Computer and Information Sciences


Computer Science Department

CS242 - Term Project


Pharmacy System

Overview
Healthcare providers need top-notch pharmacy information systems to safely deliver
medications. For your hospital or group practice to keep patients safe and well
managed, so you need to implement a simple Pharmacy System that serve Patients
and carefully manage the Prescriptions and Medication system.

To do that, you have to implement the appropriate structure for the following:

1. The system store patients’ information in Singly linked list.


2. The system should create prescription for each patient.
3. The system should be serving each patient with updating prescription (for last
visiting) where first patient comes must be serve first.
4. The system records all the prescriptions for each patient where the last
prescription has first priority in your system.
5. The system has ability to add, delete and search for a specific medicine. The
system should be fast enough when searching about a medicine given its
name.

Page 1 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506
Al Imam Mohammad Ibn Saud Islamic University
College of Computer and Information Sciences
Computer Science Department

Task #1:
Question 1: Answer the following questions:
1. Which best data structure should be used in order to store patients’ prescription?
A. Singly linked list
B. Stack
C. Queue
D. Binary search tree
2. Which best data structure should be used in order to process the patients'
prescriptions?
A. Singly linked list
B. Stack
C. Queue
D. Binary search tree
3. Which best data structure should be used in order to store medicines?
A. Singly linked list
B. Stack
C. Queue
D. Binary search tree

Question 2: implement the following class data type:

• Prescriptions
Each prescription is for one medicine and contains the following information: patient
id, medicine name, number of boxes prescribed and dosage.

• Patients
For each patient name, patient id and a list of prescriptions.

• Medications
For each medicine, we need to store the medicine id, name, type, location in the
pharmacy, the number of boxes available in stock.

Page 2 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506
Al Imam Mohammad Ibn Saud Islamic University
College of Computer and Information Sciences
Computer Science Department

Task #2:
By using appropriate ADTs, design and implement the appropriate classes along with
their essential operations to complete the requirements of project.

The system must be able to allow the user to do these functions:


1. Adding medicine.
2. Deleting medicine.
3. Searching for medicine by its name.
4. Adding patient record to patients list.
5. Searching for patient.
6. Adding prescription for patient.
7. Adding patient to waiting list.
8. Serving patient (removing patient from waiting list and reducing the number of
medicines).

Note:
• Use a driven menu to display the above requirements properly.
• Use the following code for main method.

public static void main(String[] args) {

// Add Adts objects here

Scanner input = new Scanner(System.in);

int choice = 0;

do {
System.out.println("1- Medicines Management");
System.out.println("2- Patient registration");
System.out.println("3- Prescription Issuing");
System.out.println("4- Prescription Processing");
System.out.println("5- Exit");

choice = input.nextInt();

switch (choice) {
case 1:
int S=0;
do{
System.out.println("++++++++++ Medicines
Management++++++++++ ");
System.out.println("1- Add medicine");
System.out.println("2- Delete medicine");
System.out.println("3- Search for specific medicine by
name");
System.out.println("4- Back to main menu");

S=input.nextInt();

Page 3 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506
Al Imam Mohammad Ibn Saud Islamic University
College of Computer and Information Sciences
Computer Science Department

switch (S)
{
case 1:
// 1. Adding medicine.
break;

case 2:
// 2. Deleting medicine.
break;

case 3:
//3. Searching for medicine by its name.
break;
}
}while(S!=4);

break;
case 2:

System.out.println("++++++++++ Patient registration


++++++++++ ");

// 4. Adding patient record to patients list.

break;
case 3:

System.out.println("++++++++++ Prescription Issuing


++++++++++ ");
System.out.println("Enter patient ID:");

//5. Searching for patient.


//6. Adding prescription for patient.
//7. Adding patient to waiting list.

// Use this Id to retrive patient object from list


// then update this object by add new prescription to
patient prescription list..
//Add this patient to waiting list.

break;

case 4:
//8. Serving patient (removing patient from
waiting list and reducing the number of medicines).
// Note: you have to update medicine class to add
method that reduce the number of medicines.
break;

}
} while (choice != 5);
}

Page 4 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506
Al Imam Mohammad Ibn Saud Islamic University
College of Computer and Information Sciences
Computer Science Department

Project Requirements:
• Design the system considering the description provided previously.
• Implement and test your code and make sure that it is error free and can perform all tasks
correctly.
• You can solve this project as a group of two students, but the evaluation will be individual.
• Deadline: Wednesday 8-4-2020.

Submission:
• You should submit your folder as this naming format:
YourName_UniversityID_SectionNumber_LabProject
Example:
AliSaad_430000000_171_LabProject

• Your submission folder must include all the project files.


• *** Make sure your submission does not contain any copied (or very similar)
code from any source. Regarding that the lab exam committee will run a script
of plagiarism check and if your submission contains any copied (or very similar)
code you will get 0 of 10 for the project grade.

Page 5 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506

You might also like