
THE MINISTRY OF EDUCATION AND SCIENCE OF THE REPUBLIC OF KAZAKHSTAN
International information technologies university
Faculty of Information technologies
Department of Computer Systems, Software Engineering and Telecommunications
Course work
Topic: Pharmacy
-
Student: Bazarbekova M.O.
Group: CSSE-131k
Accepted: Senior – lecturer Kozina L. A.
Almaty 2014
Contents
INTRODUCTION…………………………………………………………….. 3
Database Design…………………………………………………………….…5
1 SUBJECT AREA ANALYSIS .…………………………......... 4
2 CONCEPTUAL MODELING ……………………………...... 6
3 LOGICAL MODELING ..……………………………………. 7
4 PHYSICAL MODELING …………………………………… 12
5 CONTENT …………………………………………………… 12
6 QUERIES …………………………………………………...... 13
CONCLUSION ……………………………………………………………… 17
REFERENCES……………………………………………………………… 18
Introduction
The theme of my course work Pharmacy. I chose this topic because I considered it most interesting to study. Pharmacy is a special specialized organization of the health system, a producer, packaging, analysis and sale of drugs. The purpose of my work - the creation of a database pharmacy dosage forms to enhance the effectiveness of its work. Pharmacy - is an important element of drug supply. Pharmacies finished dosage forms involved in selling drugs made at factories manufacturers. Each drug has its own purpose, the entire range of drugs classified into groups: antipyretics, analgesics, cardiovascular, etc. Pharmacy database should include eight tables, designed for enterprise performance and automate the processing of the results of its activity: drugs prescribed, Income, suppliers, customers, employees and Treatment. The tables are linked, which provides data integrity. The database is intended primarily for employees - a full accounting of goods pharmacy, control of the pharmacy as a whole; for customers - easy to find the right drug; for suppliers - contact each employee.
Developed database includes the following subsystems:
- Medications
- Parish
- Flow
- Manufacturers
- Suppliers
- Orders
- Employees
- Address employees
- Ingredients
- Customer
Database Design
1. Subject Area Analysis
In this first stage of our database creation, we have described all the work that we must carry out (from what will be our base and limit what he has, what requests we will be able to perform). At this stage, the construction of the database, we studied: each base consists of entities and attributes, and entities that are related to each other and in the future it using attributes.
The database was created for the Pharmacy. As for the players and for the fans of different teams. The database information necessary for the preparation, annotation, storage, date of receipt, the parish, the balance at the end of the month, manufacturer, supplier.
I was amounted on the following specific criteria my database:
- Some drugs are not sold without a doctor's prescription.
- Subsidized medicines is released with a medical prescription. My database consists of the following entities and attributes:
Medications - (med_id, name the drug, brief abstract, the manufacturer, storage)
Parish (med_id, date of receipt, quantity, supplier, purchase price)
Flow (med_id, preparation date sale, quantity, selling price)
Manufacturers (med_id, name, city)
Suppliers (med_id, name, city)
Orders (ord_id, name, order, period end)
Employees (emp_id, name, position)
Address employees (emp_id, name, address, phone, email)
Ingredients (ing_id, name, ingredient)
Customer (cust_id, name, date order, date completion, telephone)
I can derive the following requests from the database: • Get a list of all anatotsy; • Get a list of the date of receipt of the drug; • to obtain complete information balance at the end of the month; • Get a list of all suppliers; • Get a list of companies-producers;