Data Base Lab Assignment
Data Base Lab Assignment
DEPARTMENT OF COMPUTER
SCIENCE
SUBMITTED TO:
Sir Shoaib
SUBMITTED BY:
Muhammad Usama Masood
COURSE TITLE:
DATA BASE SYSTEMS I (LAB)
REGISTRATION NO:
SP-20-BCS-033 (A)
ASSIGNMENT NO:
3
DATE OF SUBMISSION:
Question No 1:
ANSWER:
A. Hospital Management System:
Hospital management system is a computer system that helps manage the information
related to health care and aids in the job completion of health care providers
effectively. They manage the data related to all departments of healthcare such as,
Clinical. Financial
The main entities of the Hospital Management System are Hospitals, Patient, Doctors,
Nurses, Appointments and Medicines.
Question No 2:
The software development life cycle contains multiple stages to design, build and test
the application. Describe following for your semester project.
- Project Detailed level Requirements.
- Entity relationships and constraints
- Best suitable SDLC model
- Project Architectural design
ANSWER:
a) Software Development Life Cycle:
Software Development Life Cycle is the utilization of standard strategic policies to
building programming applications. It's regularly separated into six to eight stages:
Planning, Requirements, Design, Build, Document, Test, Deploy, Maintain. Some
undertaking directors will consolidate, split, or overlook steps, contingent upon the
task's extension.
b) Project Detailed level Requirements:
Execution qualities, like security and quality, that unit evident at the runtime.
Entity Order:
Primary Key Order_id:
This is system generated and unique, which can be referenced in any other entity.
No of medicines:
The no of the user needs to buy is here
Quantity:
the quantity per medicine is here
Discount:
If any discount they are offering is eligible is counted here
Tax:
The taxes are added here
Grand Total:
the total of the medicines is given here.
Entity Medicine:
Primary Key Medicine_id:
This is system generated and unique, which can be referenced in any other entity.
Name:
The name of the medicine is given here
Manufacture date:
The date at which it was manufactured.
Expiry date:
The date at which it will get expired.
M r p:
The market price is printed here.
Formula content:
The content of the medicine which is comprised of is given here.
Used for:
For what purpose the medicine is given for.
Dosage:
No of dosage per day was given is noted down here.
Entity Prescription:
Primary Key Prescription_id:
This is system generated and unique, which can be referenced in any other entity.
Medicines:
Medicines are noted down here more than one is here.
Disease:
The disease for which the medicine is prescribed is given here with reason
Doctor name:
who issued the prescription the doctor name will come here.
Doctor qualification:
The doctor’s degree of education is here written.
Entity Pic:
Primary Key Pic_id:
This is system generated and unique, which can be referenced in any other entity.
Name:
Name of the pic
Length:
length of the pic
Width:
The width of the pic
Size:
Size in m b is given here
Doctor name:
name of the doctor is given here.
Entity Payment:
Primary Key Payment_id:
This is system generated and unique, which can be referenced in any other entity.
User_id:
This is reference key from the other entity to link the data of that table.It is system
generated unique identity number. This used to uniquely identify every table in the
database and perform the crud operation on it.
Prescription_id_id:
This is reference key from the other entity to link the data of that table.It is system
generated unique identity number. This used to uniquely identify every table in the
database and perform the crud operation on it.
Status:
Is the payment is done or not is given here.
Entity Staff:
Primary KeyStaff_id:
This is system generated and unique, which can be referenced in any other entity.
Staff name:
Staff name is taken from the user and fed into this it is properly validated so that no
mistake happens.
Qualification:
qualification is taken as to filter the events according to this so that user does not need
to filter out the events to register it makes this system more reliable and useful.
Number:
The phone number is taken here to keep the member updated and for the confirmation
of the event is also managed through this method.
Email:
email is taken to make member aware of new offers new events and for future
reference, it is also relevant.
Type:
the type of user is mentioned here like is he a student, teacher or he is the vendor of
any shop. According to this data, the discounts offers and other things are decided
plus few other things of adjusting the task of the user also with this.
Address:
The location of the user is also mentioned here to make it easy to the delivery and few
other things too.
EntityUser:-
User data have to be saved in this entity and all fields are required for this purpose
which taken from the user .proper validation is checked and the attributes are as
follows:
Primary KeyUser_id:
This is system generated and unique, which can be referenced in any other entity.
Username:
Username is taken from the user and fed into this it is properly validated so that no
mistake happens.
Qualification:
qualification is taken as to filter the events according to this so that user does not need
to filter out the events to register it makes this system more reliable and useful.
Number:
The phone number is taken here to keep the member updated and for the confirmation
of the event is also managed through this method.
Email:
email is taken to make member aware of new offers new events and for future
reference, it is also relevant.
Type:
the type of user is mentioned here like is he a student, teacher or he is the vendor of
any shop. According to this data, the discounts offers and other things are decided
plus few other things of adjusting the task of the user also with this.
Address:
The location of the user is also mentioned here to make it easy to the delivery and few
other things too.
Entity Admin:
Primary key admin:
This is the main supervisor of all task happening in the system for long. It is system
generated unique identity number. This used to uniquely identify every table in the
database and perform the crud operation on it.
It is used to reference that table to any other table or any interface to show the data of
it and support other entities. It has all the power to make changes in the field of other
tables. I grant the privileges to other users of the system that what kind of operations
they can perform.
Logs:
The logs are saved here to analyze the system accordingly. The changes occur. For
necessary changes.
Password:
A Strong password is recommended for this account as no one wants to get hacked
and lose the sophisticated data.
Description:
Any important info. Regarding this account is attributed in this.
c) Entity relationships:
ER relation ship are described already in the assignment.
Question No 3:
ANSWER:
Event Management System:
What is your project domain? Make short report on semester project and describe how
design patterns are applying on your project. Your report should be in proper format.
- Introduction
- Problem Statement
- Scope
- Methodology (ERD, UML Class, Sequence, Use Case and Flow chart)
- Tools and techniques
Hint: Take Real time E commerce, Social, sales and utility software applications
scenarios.
ANSWER:
1. My Project Domain:
The core competency of the healthcare system is to provide treatment and care to the
patient. The prime focus has always been towards appointing specialized physicians,
well-trained nurses and medical staffs, well-established infrastructure with advanced
medical equipment, and good quality pharmacy items. But, of late, the focus is driven
towards management side of healthcare systems which include proper capacity
planning, optimal resource allocation, and utilization, effective and efficient inventory
management, accurate demand forecasting, proper scheduling, etc. and may be dealt
with a number of operations research tools and techniques.
2. Report:
In this report , a Markov decision process inventory model is developed for a hospital
pharmacy considering the information of bed occupancy in the hospital. One of the
major findings of this research is the significant reduction in the inventory level and
total inventory cost of pharmacy items when the demand for the items is considered to
be correlated with the number of beds of each type occupied by the patients in the
healthcare system. It is observed that around 53.8% of inventory cost is reduced when
the bed occupancy state is acute care, 63.9% when it is rehabilitative care, and 55.4%
when long-term care. This may help and support the healthcare managers in better
functioning of the overall healthcare system.
3. Introduction:
Equipment inventory is an essential part of an effective health-care technology
management (HTM) system. In order to be effective in assisting with various HTM
activities, the inventory must be updated continually so that it provides at any given
moment a correct look at the status of medical equipment within the health-care
facility.
Update points include initial data collection; as information is updated, such as when
a new piece of equipment arrives or is retired; and during annual inventory audits.
The inventory of medical equipment is used in conjunction with inventories of
additional supportive assets, such as consumables, spare parts, and testing and safety
tools and equipment. Inclusion of equipment in an inventory is decided through a risk-
based analysis in order to ensure appropriate time and resource allocation, and to
eliminate unnecessary work. The health-care facility decides on the level of detail of
data to be included in its inventory, in order to satisfy its own requirements and
according to its own capabilities. Inventory management is done through a paper-
based or computer based system, as determined by the resources available.
4. Problem Statement:
Although it is possible to consider these two decisions separately, they are so closely
related that a simultaneous solution is usually necessary. Typically, the objective is to
minimize total inventory costs. Total inventory costs typically include holding,
ordering, shortage, and purchasing costs.
5. Methodology (ERD, UML Class, Sequence, Use Case and Flow chart)
I. ERD:
II. UML:
III. Flow chart: