DBMS Final Report Lucky

Download as pdf or txt
Download as pdf or txt
You are on page 1of 55

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

“Jnana Sangama”, Belagavi-590018

A DBMS Lab Mini Project Report On


“ VEHICLE PARKING MANAGEMENT SYSTEM”

SUBMITTED IN PARTIAL FULFILLMENT FOR 5 TH SEMESTER

BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING

SUBMITTED BY
Koushik Sagar S (1JB21CS072)
Lakshmanan B (1JB21CS076)

Under the Guidance of


Dr. Naveena C
Professor
Dept. of CSE, SJBIT

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


SJB INSTITUTE OF TECHNOLOGY
An Autonomous Institute Under Visvesvaraya Technological University
#67, BGS Health & Education City, Dr. Vishnuvardhan Road, Kengeri, Bengaluru – 560060
|| Jai Sri Gurudev ||
Sri Adichunchanagiri Shikshana Trust ®
SJB INSTITUTE OF TECHNOLOGY
An Autonomous Institute Under Visvesvaraya Technological University
No.67, BGS Health & Education City, Dr.Vishnuvardhan Rd, Kengeri, Bengaluru, Karnataka 560060

Department of Computer Science and Engineering

CERTIFICATE
Certified that the Mini Project Work entitled “Pharmacy Supply Management System” carried outby
Mr. Koushik Sagar S & Lakshmanan B bearing USN 1JB21CS072 & 1JB21CS076 are bonafide
students of SJB Institute of Technology in partial fulfilment for 5th semester of BACHELOR OF
ENGINEERING in Computer Science and Engineering of the Visvesvaraya Technological
University, Belagavi during the academic year 2023-24. It is certified that all corrections/ suggestions
indicated for Internal Assessment have been incorporated in the Report deposited in the Departmental
library. The project report has been approved as it satisfies the academic requirements in respect of
Project work phase-1 prescribed for the said Degree.

Signature Of Guide Signature Of HOD


Dr. Naveena C Dr. Krishna A N
Professor Professor & Head
Dept. Of CSE, SJBIT Dept. Of CSE, SJBIT

1. Internal Examiner: _________________________

2. External Examiner:_________________________

I
ACKNOWLEDGEMENT

With immense gratitude and heartfelt appreciation, I extend my sincere thanks to the esteemed
institution, SJB INSTITUTE OF TECHNOLOGY, for nurturing and shaping me into a skilled
software engineer.

I am deeply thankful to Dr. K. V. MAHENDRA PRASHANTH, Principal of SJBIT, Bengaluru, for


facilitating the necessary resources and environment conducive to our growth and learning.

Special recognition goes to Dr. KRISHNA A. N, the Head of the Department of Computer Science
and Engineering at SJBIT, whose unwavering support and encouragement have been instrumental in
our success.

I express my profound gratitude to Dr. NAVEENA C, Professor in the Department of Computer


Science and Engineering at SJBIT and Mrs. PRARTHANA H. R, Assisstant Professor in the
Department of Computer Science and Engineering at SJBIT for their invaluable guidance,
encouragement, and insightful suggestions throughout the duration of the project. Their mentorship
played a pivotal role in the successful completion of this endeavor.

I extend my thanks to all the faculty members in the Computer Science department and beyond, whose
contributions, whether direct or indirect, have played a significant role in the accomplishment of my
project.

Last but not least, I am deeply indebted to my parents and friends for their unwavering support,
guidance, and encouragement throughout this journey. Their belief in me has been my greatest source
of strength.

Regards,
KOUSHIK SAGAR S [ 1JB21CS072 ]
LAKSHMANAN B [1JB21CS076 ]

II
ABSTRACT

With the rapid growth of urbanization and the increasing number of vehicles on the roads,
efficient management of vehicle parking has become a critical challenge in many cities.
Inefficient parking systems result in various problems, including congestion, environmental
pollution, and frustrated drivers. The Vehicle Parking Management System (VPMS) aims to
address these issues by streamlining the parking process, enhancing user experience, and
optimizing parking space utilization.

The VPMS allows customers/drivers to reserve parking spaces in advance. By enabling


reservations, drivers can plan their parking needs ahead of time, reducing the time spent
searching for available spots upon arrival. Real-time availability updates ensure that users are
aware of the parking status, minimizing frustration and improving overall satisfaction.

The system employs real-time monitoring to track the entry and exit of vehicles. When a
vehicle enters the parking lot, the system identifies its number plate using embedded cameras.
It then tracks which parking space the vehicle occupies. This information ensures efficient
space allocation and helps manage parking capacity effectively.

An efficient parking system contributes to reduced congestion and lower emissions. By


optimizing parking space utilization, the VPMS minimizes unnecessary circling by drivers
searching for spots. Additionally, it encourages the use of available public transportation
options, further reducing the environmental footprint associated with private vehicle usage.

The VPMS serves as a foundation for future enhancements. Integration with mobile apps,
payment gateways, and smart city infrastructure can further enhance user convenience.
Additionally, data analytics can provide insights into peak parking hours, helping city
planners optimize parking infrastructure and alleviate traffic bottlenecks.

In summary, the VPMS leverages advanced technologies such as sensor networks, data
analytics, and real-time monitoring to optimize parking processes and enhance overall user
satisfaction. Implementing this system can lead to better traffic management, reduced
environmental impact, and a more sustainable urban environment.

III
TABLE OF CONTENTS

Certificate I
Acknowledgement II
Abstract III
Table of contents IV
List of Tables and Figures V

SLNO CONTENTS PAGE NO.

1 INTRODUCTION TO DBMS 1 – 10
1.1 Brief overview on DBMS
1.2 Applications of DBMS
1.3 Motivation to develop a vehicle parking
management system
1.4 Problem statement
1.5 Objective of the project
1.6 Outline of report

2 LITERATURE SURVEY 11 – 19
2.1 Historical overview of parking system
Case study and proposed system

3 SYSTEM REQUIREMENTS 20 – 21
3.1 Software requirements
3.2 Hardware requirements

Entity – relationship diagram 22 – 30


4.5 Schema diagram
4.6 Back end definition with MySQL

5 IMPLEMENTATION 31 – 41
5.1 Back-end development
5.2 Front-end development
5.3 Deploying the pharmacy management
web application

6 RESULTS 42 – 43

7 SNAPSHOTS 44 – 51

8 CONCLUSION 52
AND FUTURE
9ENHANCEMENTS
REFERENCES 53

IV
LIST OF FIGURES

SLNO FIGURE FIGURE NAME PAGE NO.

1 1.1 PMS overview 6


2 4.1 ER Diagram 27
3 4.2 Schema Diagram 28
4 5.1 File Structure Of Project 40
5 7.1 Overview Of Xampp Database 44
6 7.2 Table Description and Values 44
7 7.3 Vehicle Parking Management System Front 45
Page
8 7.4 Login Page 45
9 7.5 Medical Shop Record 46
10 7.6 Creating new medical Record 46
(Store)
11 7.7 Ordering Medicines 47
12 7.8 Ordering Products 47
13 7.9 All Order Details 48
14 7.10 Transaction Log Entries 48
15 7.11 Search Page 49
16 7.12 Inserting new Medicine and Product 49
17 7.13 Medicines List 50
18 7.14 Products List 50
19 7.15 About Us Page 51

V
CHAPTER 1

INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

1.1 Brief Overview on DBMS


In today's data-driven world, the efficient management and organization of data play a pivotal role in
the success of businesses, organizations, and various other domains. Database Management Systems
(DBMS) serve as the backbone of modern information systems, offering a structured approach to
storing, managing, retrieving, and manipulating vast amounts of data. From small-scale applications to
large enterprise systems, DBMS facilitates seamless data management, ensuring data integrity, security,
and accessibility.

At its core, a DBMS is a software application that enables users to interact with databases in a structured
and organized manner. It provides a centralized platform for storing data in a structured format, typically
using tables, rows, and columns. One of the key advantages of using a DBMS is its ability to enforce
data integrity through constraints and validations, thereby reducing the risk of data inconsistencies and
errors. Additionally, DBMS offers mechanisms for data security, ensuring that only authorized users
have access to sensitive information.

The evolution of DBMS can be traced back to the 1960s when the need for efficient data management
became apparent with the proliferation of digital data. Early DBMS solutions focused primarily on
hierarchical and network models, which were complex and rigid in nature. However, with the advent
of relational database management systems (RDBMS) in the 1970s, led by the pioneering work of
Edgar F. Codd, data management took a significant leap forward. The relational model, based on the
principles of set theory and relational algebra, introduced a more flexible and intuitive way of
organizing data, paving the way for widespread adoption of database technology.

Today, DBMS has evolved beyond traditional relational databases to encompass a wide range of models
and technologies, including NoSQL databases, object-oriented databases, and graph databases, each
tailored to specific use cases and requirements. NoSQL databases, for example, offer scalability and
flexibility for handling unstructured and semi-structured data, making them well-suited for modern web
applications and big data analytics. Object-oriented databases, on the other hand, provide a natural
representation of complex data structures, ideal for applications in domains such as engineering and
scientific research.

The functionalities provided by a DBMS can be broadly categorized into four main areas: data
definition, data manipulation, data storage and retrieval, and data administration. Data definition
involves creating and managing the structure of the database, including defining tables, specifying data
types, and enforcing integrity constraints. Data manipulation allows users to insert, update, delete, and
query data stored in the database, using SQL (Structured Query Language) or other query languages
supported by the DBMS. Data storage and retrieval involve the physical organization of data on storage
Vehicle Parking Management System

devices, as well as the mechanisms for efficiently accessing and retrieving data based on user queries.
Finally, data administration encompasses tasks such as user management, security, backup and
recovery, and performance tuning, ensuring the overall health and performance of the database system.

In conclusion, Database Management Systems (DBMS) play a crucial role in modern information
systems, providing a robust and efficient framework for storing, managing, and manipulating data.
From its humble beginnings to the present day, DBMS has continued to evolve and adapt to the ever-
changing needs of the industry, offering a diverse array of models and technologies to suit a wide range
of use cases. As the volume and complexity of data continue to grow, the importance of DBMS in
facilitating data-driven decision-making and innovation will only continue to rise.

1.2 Applications Of Database Management Systems (DBMS) :

Database Management Systems (DBMS) find extensive applications across various industries and
domains, playing a critical role in managing and leveraging data for decision-making, operations, and
strategic planning. From finance and healthcare to education and e-commerce, DBMS serve as the
backbone of information systems, facilitating efficient data storage, retrieval, and manipulation. In this
section, we explore some of the key applications of DBMS and their significance in different sectors.

1. Healthcare Industry:
In the healthcare industry, DBMS are used to store and manage electronic health records (EHRs),
patient information, medical history, diagnostic reports, and treatment plans. These systems enable
healthcare providers to access and update patient records securely, ensuring continuity of care and
facilitating collaboration among healthcare professionals. Additionally, DBMS play a crucial role
in medical research and analysis, allowing researchers to analyze large datasets to identify trends,
patterns, and correlations for disease diagnosis, treatment effectiveness, and public health
initiatives.

2. Financial Services:
In the financial services sector, DBMS are utilized for managing banking transactions, customer
accounts, loan portfolios, investment portfolios, and risk assessment. Banks and financial
institutions rely on DBMS to maintain accurate and up-to-date records of financial transactions,
ensuring regulatory compliance and customer satisfaction. Furthermore, DBMS enable real-time
processing of transactions, fraud detection, and personalized customer service through data
analytics and business intelligence.

3. Retail and E-commerce:


Retailers and e-commerce companies leverage DBMS to manage product catalogs, inventory levels,
customer orders, and sales data. These systems enable seamless integration of online and offline
sales channels, providing a unified view of customer interactions and purchase history. By
analyzing customer behavior and preferences stored in the database, retailers can personalize

Dept. Of CSE, SJBIT 2023 – 24 Page 2


Vehicle Parking Management System

marketing campaigns, recommend products, and optimize pricing strategies to enhance customer
satisfaction and drive sales.
4. Education Sector:
In the education sector, DBMS are used to manage student information, academic records, course
schedules, and faculty data. Educational institutions rely on DBMS to streamline administrative
processes, such as admissions, enrollment, grading, and transcript generation. Additionally, DBMS
support online learning platforms, student portals, and learning management systems, facilitating
remote education and collaboration among students and instructors.

5. Transportation and Logistics:


Transportation and logistics companies utilize DBMS for managing supply chain operations, route
optimization, fleet management, and tracking shipments in real-time. These systems enable
efficient coordination of logistics activities, including inventory management, order fulfillment, and
delivery scheduling. By analyzing data stored in the database, transportation companies can identify
bottlenecks, optimize routes, and improve delivery efficiency to reduce costs and enhance customer
service.

6. Government and Public Services:


Government agencies and public services rely on DBMS to manage citizen information,
administrative records, tax databases, and public infrastructure projects. These systems support
various government functions, including law enforcement, healthcare, social services, and urban
planning. By centralizing and digitizing government data, DBMS facilitate data-driven decision-
making, policy formulation, and public service delivery, leading to improved efficiency and
transparency.

In conclusion, Database Management Systems (DBMS) have become indispensable tools across a wide
range of industries and domains, empowering organizations to manage and leverage data effectively for
competitive advantage and societal benefit. From healthcare and finance to retail and education, the
applications of DBMS continue to expand, driven by the increasing volume, variety, and velocity of
data generated in today's digital world. As organizations strive to harness the power of data to drive
innovation, DBMS will remain at the forefront, enabling them to unlock new insights, streamline
operations, and create value for stakeholders.

Dept. Of CSE, SJBIT 2023 – 24 Page 3


Vehicle Parking Management System

1.3 Motivation to Develop a Vehicle Parking Management System

In today's fast-paced and dynamic healthcare landscape, the efficient management of pharmaceutical
resources and patient information is paramount to ensuring quality care delivery and optimizing
operational efficiency. Traditional paper-based systems are increasingly becoming obsolete, giving way
to digital solutions that offer enhanced accessibility, accuracy, and security. It is within this context
that the development of a Vehicle Parking Management System (PMS) emerges as a compelling and
worthwhile endeavor, driven by a myriad of motivations and potential benefits.

1. Addressing Operational Challenges:


Pharmacies, whether standalone or part of larger healthcare institutions, face numerous operational
challenges in their day-to-day activities. From inventory management and prescription processing
to patient record keeping and regulatory compliance, the complexities inherent in pharmacy operations
demand a robust and integrated solution. By developing a Vehicle Parking Management System, we
can streamline these processes, automate repetitive tasks, and minimize errors, thereby enhancing
overall efficiency and productivity.

2. Improving Patient Care and Safety:


At the heart of every pharmacy is a commitment to patient care and safety. A well-designed
Vehicle Parking Management System can significantly contribute to achieving these objectives by
providing pharmacists and healthcare providers with timely access to accurate patient information,
medication histories, and drug interactions. Through features such as electronic prescribing,
medication reconciliation, and clinical decision support, the PMS can help reduce medication
errors, adverse drug events, and improve medication adherence among patients, ultimately leading
to better health outcomes.

3. Enhancing Accessibility and Convenience:


In an era where convenience and accessibility are valued commodities, a Vehicle Parking Management
System offers unparalleled benefits to both patients and healthcare professionals. With the PMS,
patients can conveniently refill prescriptions, access medication information, and communicate with
pharmacists through secure online portals or mobile applications. Pharmacists, in turn, can access
patient records, verify prescriptions, and dispense medications from any location with internet
connectivity, thereby improving service delivery and patient satisfaction.

4. Facilitating Regulatory Compliance:


Compliance with regulatory standards and guidelines is a fundamental requirement for pharmacies
to operate legally and ethically. However, navigating the complex landscape of healthcare regulations,
such as HIPAA (Health Insurance Portability and Accountability Act) and FDA (Food and Drug
Administration) guidelines, can be challenging without adequate systems in place. A Vehicle
Parking Management System can assist pharmacies in maintaining compliance by implementing

Dept. Of CSE, SJBIT 2023 – 24 Page 4


Vehicle Parking Management System

robust security measures, audit trails, and reporting capabilities to ensure adherence to
regulatory requirements.
5. Empowering Data-Driven Decision-Making:
In an age of data abundance, harnessing the power of information is key to driving informed
decision-making and strategic planning. By centralizing and digitizing pharmacy data, a Vehicle
Parking Management System enables pharmacists and pharmacy administrators to gain valuable
insights into medication usage patterns, inventory trends, and patient demographics. Armed with
this knowledge, pharmacies can make data-driven decisions to optimize medication stocks, identify
cost-saving opportunities, and tailor services to meet the needs of their patient population.

6. Fostering Innovation and Continuous Improvement:


The development of a Vehicle Parking Management System is not merely about solving existing
problems but also about paving the way for future innovation and growth. By investing in
technology and digital infrastructure, pharmacies can position themselves at the forefront of
innovation in healthcare delivery. Whether through integration with emerging technologies like
artificial intelligence (AI) and machine learning (ML) or by embracing interoperability standards
to facilitate data exchange with other healthcare systems, the PMS serves as a catalyst for driving
continuous improvement and innovation in pharmacy practice.

In conclusion, the development of a Vehicle Parking Management System is a multifaceted endeavor


driven by a variety of motivations and potential benefits. From addressing operational challenges and
improving patient care to enhancing accessibility and fostering innovation, the PMS holds the promise
of transforming pharmacy practice and delivering tangible value to patients, healthcare providers, and
stakeholders alike. By embarking on this project, we not only embrace the opportunities presented by
modern technology but also reaffirm our commitment to advancing healthcare delivery and improving
the lives of individuals within our community.

Dept. Of CSE, SJBIT 2023 – 24 Page 5


Vehicle Parking Management System

1.4 Problem Statement: Developing A Vehicle Parking Management System


In today's healthcare landscape, pharmacies play a crucial role in providing essential medications and services
to patients, ensuring their well-being and recovery. However, the traditional methods of managing pharmacy
operations, characterized by manual processes and paper-based systems, are increasingly proving to be
inadequate in meeting the evolving needs of patients, pharmacists, and healthcare providers. The absence
of a comprehensive and integrated Vehicle Parking Management System (PMS) exacerbates operational
inefficiencies, compromises patient safety, and hinders the delivery of quality care. Thus, the need arises
for the development of a robust and user-friendly PMS that addresses the myriad challenges faced by
pharmacies and empowers them to deliver superior services while adhering to regulatory standards

Problem Statement:
The absence of a modern and efficient Vehicle Parking Management System poses significant
challenges to pharmacies, ranging from inefficient inventory management and prescription processing
to compromised patient safety and regulatory compliance. The existing manual processes and disparate
systems employed by pharmacies are fraught with errors, delays, and inefficiencies, hindering their
ability to deliver timely and quality care to patients. Key challenges include:

• Inefficient Inventory Management: Traditional inventory management practices rely on manual


counting, stocking, and ordering of medications, leading to inaccuracies, stockouts, and wastage.
Without real-time visibility into inventory levels, pharmacies struggle to maintain adequate stock
levels, resulting in disruptions in patient care and revenue loss.

• Manual Prescription Processing: The reliance on paper-based prescriptions and manual data entry
processes introduces the risk of transcription errors, illegible handwriting, and misplaced
prescriptions. Pharmacists spend valuable time deciphering handwritten prescriptions, verifying
medication orders, and communicating with prescribers, leading to delays in medication dispensing
and patient dissatisfaction.

Dept. Of CSE, SJBIT 2023 – 24 Page 6


Vehicle Parking Management System

• Limited Patient Information Accessibility: Patient records and medication histories are often
scattered across multiple systems or stored in paper files, making it challenging for pharmacists to
access comprehensive patient information in a timely manner. Without a centralized database,
pharmacists may overlook drug interactions, allergies, or duplicate therapies, jeopardizing patient
safety and clinical outcomes.

• Regulatory Compliance Challenges: Pharmacies are subject to stringent regulatory requirements,


including HIPAA (Health Insurance Portability and Accountability Act) regulations for patient
privacy and FDA (Food and Drug Administration) guidelines for medication safety. The lack of
standardized processes and documentation practices makes it difficult for pharmacies to
demonstrate compliance with regulatory standards, putting them at risk of fines, penalties, and
reputational damage.

1.5 Objective Of The Project:


The primary objective of this project is to design, develop, and implement a comprehensive Vehicle
Parking Management System (PMS) that addresses the aforementioned challenges faced by pharmacies
and enhances their operational efficiency, patient safety, and regulatory compliance. The proposed
PMS will offer a user-friendly interface, intuitive workflows, and robust functionalities to streamline
pharmacy operations, automate manual tasks, and improve access to patient information. By leveraging
modern technology and best practices in database management, software engineering, and healthcare
informatics, the project aims to deliver a scalable and sustainable solution that meets the unique needs
of pharmacies across diverse settings.

Key Features of the Vehicle Parking Management System:

1. Inventory Management Module: Enables real-time tracking of medication inventory, automatic


reorder alerts, and optimization of stock levels to prevent stockouts and minimize wastage.

2. Prescription Processing Module: Facilitates electronic prescribing, automated medication order


verification, and integration with prescriber systems to streamline prescription processing and reduce
errors.

3. Patient Information Management Module: Centralizes patient records, medication histories, allergies,
and drug interactions in a secure database, providing pharmacists with timely access to critical patient
information.

4. Regulatory Compliance Module: Implements standardized documentation templates, audit


trails, and security measures to ensure compliance with HIPAA, FDA, and other regulatory
requirements.

Dept. Of CSE, SJBIT 2023 – 24 Page 7


Vehicle Parking Management System

In conclusion, the development of a comprehensive Vehicle Parking Management System (PMS) is


essential to address the operational challenges faced by pharmacies and improve patient care delivery
in today's healthcare landscape. By streamlining inventory management, prescription processing,
patient information accessibility, and regulatory compliance, the proposed PMS aims to enhance the
efficiency, safety, and quality of pharmacy services while empowering pharmacists to deliver superior
care to patients. Through collaborative efforts and innovative solutions, this project seeks to advance
the practice of pharmacy and contribute to the overall improvement of healthcare delivery.

1.6 Outline Of Report :


The outline provides an overview of the challenges faced by pharmacies due to the absence of a modern
Vehicle Parking Management System (PMS). It outlines the inefficiencies in inventory management,
prescription processing, patient information accessibility, and regulatory compliance, highlighting the
need for a comprehensive solution to address these issues. The introduction sets the context for the
project and emphasizes the importance of developing a robust PMS to enhance pharmacy operations
and improve patient care delivery.

Background and Problem Statement :


This section delves deeper into the challenges faced by pharmacies and the limitations of existing manual
processes and disparate systems. It discusses the implications of inefficient inventory management,
manual prescription processing, limited patient information accessibility, and regulatory compliance
challenges on pharmacy operations and patient care. The problem statement identifies the need for a
modern PMS to overcome these challenges and improve pharmacy efficiency, safety, and compliance.

The objectives of the project are outlined in this section, focusing on the development and implementation
of a comprehensive Vehicle Parking Management System. The objectives include designing a user-
friendly interface, streamlining pharmacy workflows, automating manual tasks, enhancing access to
patient information, and ensuring compliance with regulatory requirements. The section highlights the
project's goal of delivering a scalable and sustainable solution that meets the unique needs of pharmacies
across diverse settings.

The literature review explores existing research and literature on Vehicle Parking Management
Systems, inventory management practices, prescription processing technologies, patient information
management solutions, and regulatory compliance frameworks. It examines case studies, best practices,
and industry standards related to pharmacy operations and technology adoption. The literature review
provides valuable insights and informs the design and development of the proposed PMS.

Methodology :
This section outlines the methodology employed in the development of the Vehicle Parking Management
System. It discusses the software development lifecycle (SDLC) approach, including requirements
gathering, system design, implementation, testing, and deployment. The methodology highlights the use
of agile development methodologies, iterative design processes, and collaboration with stakeholders

Dept. Of CSE, SJBIT 2023 – 24 Page 8


Vehicle Parking Management System

to ensure the successful delivery of the PMS. It also addresses data security, privacy
considerations, and regulatory compliance measures implemented during the development process.

System Architecture:
The system architecture section provides an overview of the design and architecture of the Vehicle
Parking Management System. It describes the system components, modules, and functionalities,
including Inventory Management, Prescription Processing, Patient Information Management, and
Regulatory Compliance modules. The architecture diagram illustrates the interaction between different
system components and the flow of data within the PMS. This section also discusses the technologies
and frameworks used in the development of the system, such as database management systems,
programming languages, and web development frameworks.

Implementation Details:
Here, the implementation details of the Vehicle Parking Management System are presented, focusing on
the technical aspects of system development and deployment. It discusses the software tools, libraries,
and frameworks used in building the PMS, as well as the database schema, data models, and system
integrations. The section also highlights key features and functionalities implemented in each module
of the system, along with code snippets and examples to illustrate the implementation process.

User Interface Design:


The user interface design section explores the design principles, usability considerations, and user
experience (UX) enhancements incorporated into the Vehicle Parking Management System. It discusses
the user interface (UI) design process, wireframing, prototyping, and user testing conducted to ensure
an intuitive and user-friendly interface. The section showcases screenshots and mockups of the PMS
interface, highlighting key features, navigation elements, and interactive components designed to
improve user engagement and productivity.

This section focuses on the testing and quality assurance processes employed to validate the functionality,
performance, and reliability of the Vehicle Parking Management System. It discusses the types of
testing conducted, including unit testing, integration testing, system testing, and user acceptance
testing (UAT). The section also addresses bug tracking, issue resolution, and quality control measures
implemented to ensure the successful deployment of a robust and stable PMS.

Results and Evaluation:


The results and evaluation section presents the outcomes of the project, including the performance
metrics, user feedback, and system evaluation results. It discusses the impact of the Vehicle Parking
Management System on pharmacy operations, patient care outcomes, and regulatory compliance. The
section also evaluates the success of the project in achieving its objectives and addresses any limitations
or challenges encountered during the implementation process.

Dept. Of CSE, SJBIT 2023 – 24 Page 9


Vehicle Parking Management System

Conclusion and Future Directions :


In conclusion, the report summarizes the key findings, contributions, and implications of the project.
It highlights the significance of developing a comprehensive Vehicle Parking Management System to
address the operational challenges faced by pharmacies and improve patient care delivery. The
conclusion also discusses potential future directions for research and development, such as incorporating
advanced analytics, artificial intelligence (AI), and machine learning (ML) techniques to enhance the
capabilities of the PMS and support data-driven decision-making in pharmacy practice.

Dept. Of CSE, SJBIT 2023 – 24 Page 10


CHAPTER 2
LITERATURE SURVEY

2.1 Historical Overview of Pharmacy Supply Management


Vehicle Parking Management Systems (PMS) represent a pivotal component of modern healthcare
infrastructure, facilitating the efficient management of pharmaceutical resources, patient information,
and clinical workflows within pharmacy settings. As healthcare delivery continues to evolve and
embrace digital technologies, PMS emerges as a critical tool for pharmacies to optimize operational
processes, enhance patient safety, and improve the overall quality of care. At its core, a Vehicle Parking
Management System serves as a comprehensive software solution designed to streamline pharmacy
operations, automate routine tasks, and ensure compliance with regulatory standards, thereby enabling
pharmacists to focus on delivering personalized and patient-centered care.

In today's fast-paced healthcare environment, the importance of Vehicle Parking Management Systems
cannot be overstated. These systems play a vital role in ensuring the safe and effective use of medications,
mitigating risks associated with medication errors, adverse drug events, and drug interactions. By providing
pharmacists with timely access to accurate patient information, medication histories, and clinical decision
support tools, PMS empowers them to make informed decisions, optimize medication therapy, and prevent
medication-related harm. Furthermore, PMS enables pharmacies to maintain compliance with regulatory
requirements, such as HIPAA (Health Insurance Portability and Accountability Act) regulations for patient
privacy and FDA (Food and Drug Administration) guidelines for medication safety, thereby reducing the
risk of legal and financial repercussions.

Key Functionalities and Uses of a Vehicle Parking Management System :

The primary objective of a Vehicle Parking Management System is to streamline pharmacy


operations, enhance patient care, and improve overall efficiency within pharmacy settings. To achieve
these objectives, PMS typically offers a wide range of functionalities tailored to meet the unique needs
of pharmacies and healthcare providers. Some of the key functionalities and objectives of a Vehicle
Parking Management System include:

1. Medication Inventory Management: One of the core functionalities of a PMS is to facilitate the
efficient management of medication inventory. This includes tasks such as inventory tracking, stock
replenishment, expiration date management, and inventory optimization. By providing real-time visibility
into medication stocks, PMS helps pharmacies minimize stockouts, reduce wastage, and ensure the
availability of essential medications for patients.

2. Prescription Processing and Dispensing: Another critical aspect of PMS is to streamline the
prescription processing and medication dispensing workflow. PMS automates tasks such as prescription
entry, verification, adjudication, and label printing, thereby reducing the time and effort required to fill
prescriptions accurately. Through integration with electronic prescribing systems and medication
Vehicle Parking Management System

databases, PMS enables pharmacists to verify medication orders, check for drug interactions, and
provide counseling to patients on medication use and adherence.

3. Patient Information Management: PMS serves as a centralized repository for storing and managing
patient information, including demographics, medical history, allergies, and medication profiles. By
maintaining comprehensive and up-to-date patient records, PMS enables pharmacists to access critical
information quickly and make informed decisions regarding medication therapy. Furthermore, PMS
facilitates communication and collaboration among healthcare providers by enabling secure sharing of
patient information across different healthcare settings.

4. Clinical Decision Support: Many PMS solutions incorporate clinical decision support tools to assist
pharmacists in optimizing medication therapy and ensuring patient safety. These tools may include
drug interaction alerts, allergy warnings, dosage calculators, and clinical guidelines, among others. By
providing timely and evidence-based recommendations, PMS helps pharmacists identify potential drug-
related problems, prevent medication errors, and improve patient outcomes.

5. Regulatory Compliance: Compliance with regulatory standards and guidelines is a fundamental


requirement for pharmacies to operate legally and ethically. PMS helps pharmacies maintain compliance
with various regulatory requirements, such as HIPAA regulations for patient privacy, FDA guidelines
for medication safety, and DEA (Drug Enforcement Administration) regulations for controlled substances.
PMS incorporates features such as audit trails, security controls, and documentation templates to ensure
adherence to regulatory standards and minimize the risk of compliance violations.

In summary, Vehicle Parking Management Systems play a crucial role in modern healthcare by enabling
pharmacies to streamline operations, enhance patient care, and ensure compliance with regulatory
standards. By providing a comprehensive suite of functionalities tailored to meet the unique needs of
pharmacies, PMS empowers pharmacists to deliver safe, effective, and patient-centered care, thereby
improving outcomes for patients and enhancing the overall quality of healthcare delivery.

Dept. Of CSE, SJBIT 2023 – 24 Page 12


Vehicle Parking Management System

2.2 EXISTING VEHICLE PARKING MANAGEMENT SYSTEMS IN THE MARKET


Vehicle Parking Management Systems (PMS) are essential tools for pharmacies of all sizes, facilitating
the efficient management of medication inventory, prescription processing, patient information, and
regulatory compliance. In this overview, we will explore some of the existing Vehicle Parking
Management Systems available in the market, including popular commercial solutions and open-source
alternatives. Each system offers a unique set of features, capabilities, and target users, catering to the
diverse needs of pharmacies in today's healthcare landscape.

1. McKesson Pharmacy Systems EnterpriseRx:

Overview: EnterpriseRx is a comprehensive Vehicle Parking Management System developed by


McKesson Pharmacy Systems. It is designed to meet the needs of retail, outpatient, and specialty
pharmacies, offering a wide range of features to streamline pharmacy operations and enhance patient
care.
Key Features:
• Inventory Management: Real-time tracking of medication inventory, automatic reorder alerts, and
advanced reporting tools.
• Prescription Processing: Electronic prescribing, medication order verification, and automated refill
management.
• Patient Information Management: Centralized repository for patient information, medication
histories, and clinical data.
• Clinical Decision Support: Drug interaction alerts, allergy warnings, and evidence-based
recommendations.
• Regulatory Compliance: HIPAA compliance, FDA guidelines adherence, audit trails, and security
controls.
Benefits:

• Improved efficiency in pharmacy operations.


• Enhanced patient safety through accurate medication management.
• Regulatory compliance assurance.
• Integration with other healthcare systems for seamless workflow.
• Scalability to accommodate various pharmacy settings.
Disadvantages:

• Higher initial costs compared to some other systems.


• Potential learning curve for users transitioning from other systems.
• Some users may find the interface less intuitive compared to other options.
Domain Usage: Retail pharmacies, outpatient pharmacies, specialty pharmacies.

Dept. Of CSE, SJBIT 2023 – 24 Page 13


Vehicle Parking Management System

2. PioneerRx:

Overview: PioneerRx is a popular Vehicle Parking Management System known for its user-friendly
interface, customizable features, and robust functionality. It is designed to meet the needs of independent
pharmacies, offering a range of tools to optimize pharmacy workflows and improve patient care.
Key Features:

• Workflow Management: Customizable workflow templates, task automation, and prescription


queue management.
• Clinical Services: Medication therapy management, immunization tracking, and adherence
monitoring.
• Point-of-Sale Integration: Seamless integration with point-of-sale systems for efficient checkout
and payment processing.
• Reporting and Analytics: Comprehensive reporting tools, business intelligence dashboards, and
data visualization capabilities.
• Customer Relationship Management: Patient engagement tools, loyalty programs, and marketing
automation.
Benefits:

• Intuitive interface with customizable features.


• Support for clinical services and patient engagement.
• Seamless integration with point-of-sale systems.
• Robust reporting and analytics capabilities.
• Dedicated support and training resources.
Disadvantages:

• Limited scalability for larger pharmacy chains.


• Some advanced features may require additional customization or integration.
• Pricing structure may be less flexible compared to other options.
Domain Usage: Independent pharmacies, community pharmacies, long-term care pharmacies.

3. QS/1 Vehicle Parking Management Systems:

Overview: QS/1 Vehicle Parking Management Systems offer a suite of pharmacy management
solutions designed to meet the needs of pharmacies, hospitals, and long-term care facilities. Their
software solutions provide comprehensive functionality to optimize pharmacy operations and improve
patient care.
Key Features:

• Multi-Location Management: Support for multiple pharmacy locations, centralized data


management, and enterprise-wide reporting.
• Integrated Solutions: Integration with electronic health records (EHRs), point-of-sale systems, and
third-party software applications.

Dept. Of CSE, SJBIT 2023 – 24 Page 14


Vehicle Parking Management System

• Clinical Decision Support: Drug utilization review, formulary management, and medication therapy
management.
• Regulatory Compliance: DEA compliance, controlled substance tracking, and adherence to state
and federal regulations.
• Billing and Reimbursement: Claims processing, insurance verification, and reimbursement
management.
Benefits:

• Scalability to support pharmacies of all sizes.


• Comprehensive integration capabilities with other healthcare systems.
• Robust clinical decision support and regulatory compliance features.
• Extensive reporting and analytics tools.
• Dedicated support and training resources.
Disadvantages:

• Higher initial investment compared to some other systems.


• Some users may find the interface less intuitive compared to more modern solutions.
• Customization options may require additional development resources.

Domain Usage: Retail pharmacies, hospital pharmacies, long-term care pharmacies.

2.3 OPEN-SOURCE ALTERNATIVES:

1. OpenEMR:

Overview: OpenEMR is an open-source electronic health records (EHR) and medical practice
management software. While primarily designed for healthcare providers, it includes features for
pharmacy management, such as medication lists, prescription management, and drug-drug interaction
checking.
Key Features:

• Medication Management: Prescription writing, medication lists, and dosage tracking.


• Clinical Decision Support: Drug interaction checking, allergy tracking, and formulary management.
• Inventory Management: Stock tracking, reorder alerts, and expiration date tracking.
• Patient Management: Patient demographics, medical history, and medication history.
Benefits:

• Cost-effective solution for pharmacies operating on a limited budget.


• Flexible and customizable features to meet specific needs.
• Active community support and development.
Disadvantages:

• Limited dedicated support compared to commercial solutions.

Dept. Of CSE, SJBIT 2023 – 24 Page 15


Vehicle Parking Management System

• Installation and configuration may require technical expertise.


• Some features may be less robust compared to commercial systems.
Domain Usage: Small to medium-sized pharmacies, clinics, healthcare practices.

2. GNU Health:

Overview: GNU Health is a free and open-source health and hospital information system. While
primarily focused on electronic medical records and hospital management, it includes features for
pharmacy management, such as medication dispensing, inventory management, and prescription
tracking.
Key Features:

• Medication Dispensing: Prescription processing, medication orders, and dispensing records.


• Inventory Management: Stock tracking, expiration date management, and supplier management.
• Prescription Tracking: Prescription history, refill tracking, and medication reconciliation.
• Regulatory Compliance: DEA compliance, controlled substance tracking, and audit trails.
Benefits:

• Free and open-source solution with no licensing costs.


• Comprehensive functionality for pharmacy management.
• Customizable and adaptable to different pharmacy settings.
Disadvantages:

• Limited support compared to commercial solutions.


• Installation and configuration may require technical expertise.
• Updates and maintenance may depend on community contributions.
Domain Usage: Community pharmacies, healthcare facilities in low-resource settings.

Each Vehicle Parking Management System offers a unique set of features, benefits, and target users,
catering to the diverse needs of pharmacies in today's healthcare landscape. Whether you're looking
for a comprehensive commercial solution like McKesson Pharmacy Systems EnterpriseRx or an open-
source alternative like OpenEMR or GNU Health, there are options available to suit your specific
requirements and preferences. By evaluating the features, benefits, and disadvantages of each system,
pharmacies can choose the best Vehicle Parking Management System to optimize their operations and
improve patient care.

Dept. Of CSE, SJBIT 2023 – 24 Page 16


Vehicle Parking Management System

2.4 LIMITATIONS OF EXISTING SYSTEMS:

Our literature review uncovers several limitations inherent in current pharmacy supply management
systems:

• Time and Resource Consumption: The manual nature of data entry and paperwork exacts a toll
on both time and resources, contributing to inefficiencies in data management and processing.
• Reliability and Storage Concerns: Reliance on paper-based records poses reliability issues,
exacerbated by escalating storage requirements as data volumes burgeon over time.
• Absence of Aadhar Linkage: The absence of linkage with the official Aadhar database hampers
the system's ability to access accurate and up-to-date information, consequently impeding its
efficacy in managing patient records and prescriptions.

2.5 CASE STUDY AND PROPOSED SYSTEM


In this section, we embark on an extensive exploration of the existing literature concerning pharmacy
supply management systems and related areas. Our objective is to offer a comprehensive understanding
of the field, addressing various dimensions such as objectives, limitations, case studies, and proposed
systems, as outlined in the project's goals.

Features to be considered in our system :


The cornerstone of our project lies in the design and development of a user-friendly system that not
only enhances efficiency but also ensures accuracy and flexibility. Our literature survey unveils a
myriad of objectives synonymous with our project aspirations:

• Efficiency and Accuracy: Existing systems strive to create computerized solutions that are not
only efficient but also accurate, effectively eliminating data redundancy and enhancing processing
speed. The overarching aim is to streamline pharmacy operations, mitigating manual tasks such as
data entry and paperwork to conserve valuable time and resources.

• User-Friendly Interface: Central to the success of any system is its user interface, with emphasis
placed on crafting interfaces that are intuitive and require minimal training. A seamless graphical
user interface (GUI) enhances user experience, ensuring long-term usability without succumbing
to errors or necessitating frequent maintenance interventions.

• Centralized Database: Synchronization and centralization of databases emerge as pivotal


requirements for efficient supply chain management. By providing real-time access to data and
information, existing systems aim to foster better coordination and communication among
stakeholders, thereby enhancing overall operational efficiency.

Dept. Of CSE, SJBIT 2023 – 24 Page 17


Vehicle Parking Management System

• Security and Reliability: Given the sensitive nature of healthcare data, security measures such as
login authentication and password protection are imperative. Existing systems prioritize data
security and reliability to uphold trust and confidentiality, safeguarding against potential breaches
or unauthorized access.

While the literature lacks a unanimous definition of Pharmacy Supply Management, scholars advocate
for a standardized definition to facilitate the coherent development of theory in this critical area. It is
proposed that researchers adopt the following definition:

"In order to have a successful supply management, we need to make many decisions related to the flow
of information, product, and funds. Each decision should be made in a way to increase the whole supply
chain profitability. Supply management is more complex in healthcare and other industries because of
the impact on people’s health, requiring adequate and accurate medical supply according to the patient’s
need."

This proposed definition encapsulates the multifaceted nature of supply management, emphasizing the
interconnectedness of various decision-making processes pertaining to information flow, product
distribution, and financial management. It underscores the paramount importance of optimizing these
decisions to enhance the overall profitability and efficiency of the supply chain.

Benefits of the Proposed System:

1. Improved Efficiency: By streamlining supply management processes and leveraging advanced


decision support tools, the proposed system will enhance operational efficiency and reduce manual
intervention, resulting in cost savings and productivity gains.

2. Enhanced Patient Care: Ensuring the availability of accurate and timely medical supplies is crucial
for delivering high-quality patient care. The proposed system will help optimize inventory levels and
facilitate timely delivery of medical products, thereby improving patient outcomes and satisfaction.

3. Cost Savings: By optimizing inventory levels, minimizing stockouts, and negotiating favorable
supplier contracts, the proposed system will help reduce procurement costs and enhance supply chain
profitability.

4. Risk Mitigation: The proposed system will enable proactive risk management by providing
stakeholders with real-time visibility into supply chain performance and potential disruptions. This will
help mitigate the impact of unforeseen events such as supplier delays or demand fluctuations.

Dept. Of CSE, SJBIT 2023 – 24 Page 18


Vehicle Parking Management System

5. Compliance and Accountability: By maintaining accurate records and ensuring compliance with
regulatory requirements, the proposed system will enhance transparency, accountability, and regulatory
compliance across the supply chain.

Therefore, our literature survey offers a panoramic vista of existing pharmacy supply management
systems, elucidating their objectives, limitations, and potential solutions. By synthesizing insights from
case studies, proposed definitions, and extant systems, we gain profound insights into the challenges
and opportunities pervading the domain of pharmacy supply management. Armed with this knowledge,
we are poised to embark on the design and development of our project, leveraging these insights to craft
a robust and user-centric solution that addresses the evolving needs of the healthcare landscape.

Dept. Of CSE, SJBIT 2023 – 24 Page 19


CHAPTER 3
SYSTEM REQUIREMENTS

In this section, we outline the system requirements for the proposed Vehicle Parking Management
System, encompassing both software and hardware specifications. These requirements serve as the
foundation for the development and deployment of the system, ensuring compatibility, performance,
and reliability across various environments.

3.1 Software Requirements:

The software requirements delineate the essential components and tools necessary for the
development and execution of the Vehicle Parking Management System. These include:

Frontend Technologies:

• HTML: Hyper Text Markup Language (HTML) serves as the backbone for creating the structure
and content of web pages.
• CSS: Cascading Style Sheets (CSS) is utilized for styling and formatting HTML elements,
enhancing the visual presentation of the user interface.
• JavaScript: JavaScript (JS) adds interactivity and dynamic behavior to web pages, facilitating user
engagement and responsiveness.
• Bootstrap: Bootstrap is a front-end framework that provides pre-designed templates and
components for building responsive and visually appealing web interfaces.

Backend Technologies:

• Python Flask: Flask is a lightweight web framework for Python, ideal for developing web
applications with minimal overhead and flexible design.
• Python 3.7: Python is a versatile programming language known for its simplicity, readability, and
extensive library support.
• SQLAlchemy: SQLAlchemy is an Object-Relational Mapping (ORM) library for Python, enabling
seamless interaction with relational databases.

Operating System:
Windows 10: The Vehicle Parking Management System is compatible with the Windows 10 operating
system, ensuring widespread accessibility and usability.

Web Browsers:
Google Chrome/Internet Explorer: The system supports popular web browsers such as
Google Chrome and Internet Explorer, ensuring cross-browser compatibility.
Vehicle Parking Management System

Development Tools:

• PyCharm Community: PyCharm is a powerful integrated development environment (IDE) for


Python, providing features such as code completion, debugging, and version control integration.
• Sublime Text 3: Sublime Text is a lightweight text editor favored by developers for its speed,
simplicity, and extensibility.

Other Requirements:

• AMPPS (Version 3.7): AMPPS is a software stack that includes Apache, MySQL, MongoDB,
PHP, Perl, Python, and Softaculous, facilitating the setup and management of web development
environments.
• Workspace Editor: The system utilizes Sublime Text 3 as the workspace editor for editing code
and managing project files.

3.2 Hardware Requirements:

The hardware requirements delineate the minimum specifications necessary for the smooth
operation and performance of the Vehicle Parking Management System. These include:

• Computer with a 1.1 GHz or faster processor: A processor speed of 1.1 GHz or higher ensures
efficient execution of computational tasks.
• Minimum 2GB of RAM or more: Adequate RAM (Random Access Memory) is essential for
running the software and handling concurrent processes effectively.
• 2.5 GB of available hard-disk space: Sufficient hard-disk space is required for storing system
files, databases, and other resources.
• 5400 RPM hard drive: A hard drive with a rotational speed of 5400 RPM or higher ensures swift
data access and retrieval.
• 1366 × 768 or higher-resolution display: A high-resolution display enhances the visual clarity
and readability of the user interface.
• DVD-ROM drive: A DVD-ROM drive is required for installing software from optical discs.

In conclusion, the system requirements encompass a comprehensive array of software and hardware
specifications essential for the development, deployment, and operation of the Vehicle Parking
Management System. By adhering to these requirements, the system can ensure compatibility,
performance, and reliability across various environments, thereby meeting the needs and expectations
of users and stakeholders.

Dept. Of CSE, SJBIT 2023 – 24 Page 21


CHAPTER 4

ARCHITECTURE DESGIN OF VEHICLE PARKING


MANAGEMENT SYSTEM

4.1 Design Strategies :


The architecture of the Vehicle Parking Management System (PMS) encompasses the structural
design and organization of its components, including the frontend interface, backend logic, database
management, and integration with external systems. This section provides an overview of the architectural
framework that underpins the functionality and operation of the PMS.

High-Level Overview:
At a high level, the architecture of the Vehicle Parking Management System follows a client-server
model, where the client-side interface interacts with the server-side backend to facilitate data processing,
storage, and retrieval. The system architecture comprises three primary layers: the presentation layer,
the application layer, and the data layer.

Presentation Layer:
The presentation layer, also known as the frontend layer, is responsible for rendering the user interface
and facilitating user interaction with the system. It encompasses the graphical user interface (GUI)
components, including web pages, forms, and interactive elements. The frontend technologies such as
HTML, CSS, JavaScript, and Bootstrap are utilized to design and develop the user interface, ensuring
responsiveness, accessibility, and visual appeal.

Application Layer:
The application layer, situated between the presentation layer and the data layer, contains the core
logic and functionality of the Vehicle Parking Management System. This layer comprises the backend
components responsible for processing user requests, executing business logic, and interacting with the
database. The backend is implemented using the Python Flask framework, which provides a lightweight
and flexible environment for developing web applications. SQLAlchemy, an Object-Relational Mapping
(ORM) library, facilitates seamless interaction with the underlying database, enabling CRUD (Create,
Read, Update, Delete) operations and data manipulation.

Data Layer:
The data layer, also referred to as the backend database, serves as the repository for storing and managing
data related to pharmacy operations, including medication inventory, patient records, prescriptions,
and supplier information. The database management system (DBMS) ensures efficient data storage,
retrieval, and manipulation, providing concurrency control, transaction management, and
Vehicle Parking Management System

data integrity. In the Vehicle Parking Management System, a relational database management system
(RDBMS) such as MySQL or PostgreSQL is commonly employed to maintain structured data and
enforce data consistency.

Integration and External Systems:


The architecture of the Vehicle Parking Management System may involve integration with external
systems and services to enhance functionality and interoperability. Integration with electronic health
records (EHRs), point-of-sale (POS) systems, and third-party APIs enables seamless exchange of data
and information, facilitating comprehensive patient care and streamlined pharmacy operations. APIs
(Application Programming Interfaces) play a crucial role in enabling communication between different
systems, allowing data sharing and interoperability.

Security Considerations:
Security is paramount in the architecture of the Vehicle Parking Management System to safeguard
sensitive patient data, ensure regulatory compliance, and mitigate cybersecurity risks. Measures such
as authentication, authorization, encryption, and audit logging are implemented to protect data
confidentiality, integrity, and availability. Role-based access control (RBAC) restricts user privileges
based on their roles and responsibilities, preventing unauthorized access to sensitive information.

The architecture of the Vehicle Parking Management System is designed to provide a scalable, robust,
and secure platform for managing pharmacy operations efficiently. By leveraging a client-server
model, layered architecture, and integration with external systems, the system ensures seamless user
experience, data integrity, and interoperability. With a focus on presentation, application, and data
layers, coupled with stringent security measures, the architecture of the Vehicle Parking Management
System caters to the diverse needs of pharmacies in the modern healthcare landscape.

4.2 Solution For The Specified Properties

The Vehicle Parking Management System (PMS) is designed as a web-based application following a
three-tier architecture model to efficiently manage pharmacy operations. At the presentation layer,
HTML, CSS, JavaScript, and Bootstrap are employed to create an intuitive and responsive user
interface accessible to pharmacy staff and administrators. This layer encompasses functionalities such as
medication inventory management, prescription processing, patient record management, and reporting
tools, all aimed at enhancing operational efficiency and patient care.

In the application layer, Python Flask serves as the backbone, handling HTTP requests, executing
business logic, and interacting with the backend database. Modules within this layer encompass user
authentication, medication inventory management, prescription processing, patient management, and
reporting and analytics. Utilizing SQLAlchemy, interactions with the relational database management
system (RDBMS) are streamlined, enabling seamless data manipulation and ensuring data integrity
throughout the system.

Dept. Of CSE, SJBIT 2023 – 24 Page 23


Vehicle Parking Management System

The data layer comprises the backend database, powered by an RDBMS like MySQL, housing critical
data related to medication details, patient records, prescriptions, suppliers, and sales transactions.
Integration with external systems, such as electronic health records (EHRs) and point-of-sale (POS)
systems, is facilitated through APIs to enhance interoperability and data exchange. Robust security
measures, including authentication, authorization, encryption, and role-based access control, are
implemented to safeguard sensitive information and ensure regulatory compliance, thereby providing a
scalable, robust, and secure platform for pharmacy management.

4.3 Tables Used :

1. addmp Table:
Attributes:

• sno (Primary Key): Integer, NOT NULL. Serial number for medicines.
• medicine: VARCHAR(500), NOT NULL. Name of the medicine.
Constraints:
Primary Key: sno.
Description: This table stores information about medicines stocked in the pharmacy. It serves as a
reference table for managing medication inventory.

2. addpd Table:
Attributes:

• sno (Primary Key): Integer, NOT NULL. Serial number for products.
• product: VARCHAR(200), NOT NULL. Name of the product.
Constraints:
Primary Key: sno.
Description: Similar to addmp, this table stores details about products available in the pharmacy. It
complements the addmp table and facilitates product management within the system.

3. logs Table:
Attributes:

• id (Primary Key): Integer, NOT NULL, AUTO_INCREMENT. Unique identifier for each log
entry.
• mid (Foreign Key): Integer, NOT NULL. ID of the medicine associated with the action.
• action: VARCHAR(500), NOT NULL. Action performed in the system (e.g., INSERTED,
DELETED).
• date: VARCHAR(500), NOT NULL. Date and time of the action.

Dept. Of CSE, SJBIT 2023 – 24 Page 24


Vehicle Parking Management System

Constraints:
Primary Key: id.
Foreign Key: mid references medicines(id).
Description: The logs table records actions performed within the system, such as insertions, deletions,
and updates. It maintains a chronological history of changes made to the database.

4. medicines Table:
Attributes:

• id (Primary Key): Integer, NOT NULL, AUTO_INCREMENT. Unique identifier for each
medicine entry.
• amount: Integer, NOT NULL. Amount of medicine available.
• name: VARCHAR(100), NOT NULL. Name of the medicine.
• medicines: VARCHAR(500), NOT NULL. List of medicines.
• products: VARCHAR(500), NOT NULL. List of products associated with the medicine.
• email: VARCHAR(50), NOT NULL. Email associated with the medicine.
• mid: VARCHAR(50), NOT NULL. Unique medicine ID.
Constraints:
Primary Key: id.
Description: This table stores comprehensive information about medicines stocked in the pharmacy.
It includes details such as amount, name, associated products, contact email, and a unique identifier for
each medicine entry.

5. posts Table:
Attributes:
mid (Primary Key): Integer, NOT NULL, AUTO_INCREMENT. Unique identifier for each
pharmacy post.

• medical_name: VARCHAR(100), NOT NULL. Name of the medical store.


• owner_name: VARCHAR(100), NOT NULL. Owner's name.
• phone_no: VARCHAR(20), NOT NULL. Phone number of the pharmacy.
• address: VARCHAR(50), NOT NULL. Address of the pharmacy.
Constraints:
Primary Key: mid.
Description: The posts table contains details about pharmacy posts or stores. It includes information
such as the medical store name, owner's name, contact phone number, and address.

Dept. Of CSE, SJBIT 2023 – 24 Page 25


Vehicle Parking Management System

6. employees Table:
Attributes:

• emp_id (Primary Key): Integer, NOT NULL, AUTO_INCREMENT. Unique identifier for each
employee.
• emp_name: VARCHAR(100), NOT NULL. Name of the employee.
• emp_email: VARCHAR(100), NOT NULL. Email address of the employee.
• emp_phone: VARCHAR(20), NOT NULL. Phone number of the employee.
Constraints:
Primary Key: emp_id.
Description: The employees table stores information about employees working within the pharmacy.
It includes details such as employee name, email address, and phone number, facilitating employee
management within the organization.

The database schema encompasses tables for managing various aspects of pharmacy operations, including
medication inventory, product listings, pharmacy posts, employee details, and system logs. Each table
is designed with specific attributes and constraints to support efficient data management and integrity
within the Vehicle Parking Management System. The primary and foreign key relationships establish
associations between related entities, ensuring relational connectivity and data consistency throughout
the system. Overall, the schema provides a robust foundation for organizing and managing pharmacy
data effectively.

Dept. Of CSE, SJBIT 2023 – 24 Page 26


Vehicle Parking Management System

4.4 Entity – Relationship Diagram :

Fig 4.1 ER Diagram

Dept. Of CSE, SJBIT 2023 – 24 Page 27


Vehicle Parking Management System

4.5 Schema Diagram :

Fig 4.2 Schema Diagram

Dept. Of CSE, SJBIT 2023 – 24 Page 28


Vehicle Parking Management System

4.6 Back End Definition With MySQL :

In the Pharmacy Supply Management System, the utilization of MySQL as the back-end database
solution plays a pivotal role in ensuring efficient data management and retrieval. MySQL, a powerful
Database Management System (DBMS), is chosen for its versatility, reliability, and robust features.
This section elaborates on the implementation details of MySQL and its significance within the
Pharmacy Supply Management System ecosystem.

A Database Management System is integral software designed to manage databases efficiently,


handling structured data and executing operations requested by users. MySQL, among a plethora of
DBMS solutions, stands out due to its widespread adoption and comprehensive feature set. Key aspects
of MySQL implementation include:

• Modeling Language: MySQL provides a modeling language for defining the schema of each
database, adhering to the DBMS data model. This facilitates organized data storage and retrieval.

• Data Structures: MySQL optimizes data structures such as fields, records, and files to efficiently
manage large data sets, ensuring optimal performance even with extensive data storage
requirements.

• Data Security: Robust security measures are implemented to prevent unauthorized access and
maintain data integrity. Access control mechanisms, including user privileges and password
protection, safeguard sensitive data from unauthorized modification or retrieval.

• Transaction Mechanism: MySQL incorporates a transaction mechanism that adheres to the ACID
properties (Atomicity, Consistency, Isolation, Durability), ensuring data integrity and reliability
even in the presence of concurrent user accesses and system faults.

Structured Query Language (SQL):


SQL serves as the primary language for interacting with relational databases like MySQL. It facilitates
various operations, including data definition, manipulation, and retrieval. Within the Pharmacy Supply
Management System, SQL is employed for:

• Data Definition: SQL's Data Definition Language (DDL) is utilized to define tables and structures
within the database. This includes creating, modifying, and dropping schema objects such as tables
and indexes.

Stored Procedures and Triggers:


In the Pharmacy Supply Management System, two crucial database components are the stored
procedures and triggers, enhancing the system's functionality and ensuring data consistency. The stored
procedures, labeled as "proc1" and "post proc," serve as predefined routines executed within the
database environment. These procedures are designed to retrieve data from specific tables, namely
"posts" and "medicines," using SQL queries such as "SELECT FROM posts" and "SELECT FROM
medicines."

Dept. Of CSE, SJBIT 2023 – 24 Page 29


Vehicle Parking Management System

Triggers, on the other hand, are specialized stored procedures that automatically execute in response to
predefined database events. Within the system, two triggers are utilized to maintain an audit trail of
important database operations. The first trigger, named "on insert," is activated after an insertion event
occurs in the "medicines" table. Upon insertion, this trigger records relevant information, including the
newly inserted record's identifier ("mid"), indicating the action as "inserted," and capturing the current
timestamp using the NOW() function. Similarly, the second trigger, named "on delete," triggers after a
deletion event in the "medicines" table. It captures the identifier of the deleted record ("mid"), marks
the action as "deleted," and logs the deletion timestamp.

These stored procedures and triggers play a crucial role in ensuring data integrity, facilitating
auditability, and automating essential database operations within the Pharmacy Supply Management
System. By leveraging these database components, the system maintains a comprehensive record of
database activities, enhances data reliability, and streamlines administrative tasks, ultimately
contributing to the system's efficiency and effectiveness in managing pharmaceutical supply operations.

The implementation of MySQL as the back-end database solution within the Pharmacy Supply
Management System underscores its significance in enabling efficient data management, retrieval, and
security. MySQL's robust features, including its modeling language, data structures, SQL support, and
transaction mechanism, contribute to the system's reliability and scalability. By leveraging MySQL, the
Pharmacy Supply Management System ensures seamless data organization, retrieval, and manipulation,
ultimately enhancing operational efficiency and user experience.

Dept. Of CSE, SJBIT 2023 – 24 Page 30


CHAPTER 5
IMPLEMENTATION

The implementation of the Pharmacy Supply Management System involves the seamless integration of
various technologies to create a robust and efficient solution for managing pharmaceutical inventory
and supply operations. At its core, Python serves as the primary programming language for backend
logic and Flask as the web framework for frontend development. MySQL is utilized as the backend
database management system, providing reliable storage and retrieval of critical data related to
medicines, suppliers, transactions, and user activities. Through stored procedures and triggers, common
database operations are encapsulated, ensuring data integrity and consistency. The user interface is built
using HTML, CSS, and JavaScript, offering an intuitive and user-friendly experience for accessing and
managing pharmaceutical inventory and supply information. Overall, the implementation aims to
streamline pharmacy operations, enhance efficiency, and improve decision-making processes within
the healthcare industry.

5.1 Back-End Development :

1. Importing Necessary Packages:


In this section, essential Python packages are imported to support various functionalities of the web
application.

• `Flask: Flask is a micro web framework for Python used to build web applications. It provides
tools and libraries for handling web requests, routing, and templating.
• `render_template`: This function is used to render HTML templates in Flask applications. It
allows dynamic generation of HTML content by inserting data into predefined templates.
• `request`: The `request` object contains information about the HTTP request made by the client
to the server. It provides access to request headers, form data, cookies, and other request
parameters.
• `session`: Session management in Flask is facilitated by the `session` object. It allows storing
user-specific data across multiple requests and is typically used for user authentication and
maintaining user sessions.
• `redirect`: This function redirects the client to a different URL. It is commonly used to redirect
users after form submissions or upon successful login.
• `flash`: Flask's `flash` module provides support for displaying temporary messages to users.
These messages are typically used for displaying feedback or notifications to users, such as
success messages or error alerts.
• `SQLAlchemy`: SQLAlchemy is an SQL toolkit and Object-Relational Mapping (ORM)
library for Python. It provides a set of tools for working with relational databases in an object-
oriented manner, allowing developers to interact with databases using Python objects and
methods.
• `json`: The `json` module is used for encoding and decoding JSON data in Python. In this script,
it is used to read configuration parameters from a JSON file.
Vehicle Parking Management System

2. Reading Configuration Parameters:


This section reads configuration parameters from a JSON file named `config.json`. The parameters
are then stored in the `params` variable for later use.

• `open('config.json','r')`: The `open()` function is used to open the JSON file in read mode ('r').
It returns a file object that can be used to read the contents of the file.
• `json.load(c)`: The `json.load()` function is used to load JSON data from the file object `c`. It
parses the JSON data and returns a Python dictionary containing the parsed data.
• `["params"]`: The configuration parameters are expected to be stored under the key "params"
in the JSON file. This key is used to access the dictionary containing the parameters.
• `params`: The parsed configuration parameters are stored in the `params` variable for later use
in the application.

3. Initializing Flask Application:


This section initializes the Flask application and sets up the secret key for session management.

• `local_server = True`: This variable is used to determine whether the application is running on
a local server. It can be set to `False` when deploying the application to a production server.
• `app = Flask(__name__)`: The `Flask()` constructor is used to create a Flask application
instance. The `__name__` parameter specifies the name of the current module, which is
typically used as the name of the application package.
• `app.secret_key = 'super-secret-key'`: The `secret_key` attribute is set to a randomly generated
string. This secret key is used to encrypt session cookies and should be kept secure to prevent
unauthorized access to session data.

4. Configuring Database URI:


This section configures the SQLAlchemy database URI based on whether the application is running on
a local server or a production server.

• `app.config['SQLALCHEMY_DATABASE_URI']`: This configuration variable is used to


specify the database URI for SQLAlchemy. It determines the location and type of database to
connect to.
• `params['local_uri']` and `params['proud_uri']`: These parameters are read from the `params`
dictionary, which contains configuration parameters loaded from the JSON file. The `local_uri`
parameter is used to specify the URI for the local development database, while the `proud_uri`
parameter is used for the production database URI.
• `if(local_server):` and `else:`: These conditional statements check whether the `local_server`
variable is set to `True` or `False`. If the application is running on a local server, the local
database URI is used. Otherwise, the production database URI is used.

5. Initializing SQLAlchemy Database:


This section initializes the SQLAlchemy database instance using the Flask application instance
created earlier.

Dept. Of CSE, SJBIT 2023 – 24 Page 32


Vehicle Parking Management System

• `db = SQLAlchemy(app)`: The `SQLAlchemy()` constructor is used to create a SQLAlchemy


object, which represents the database connection. It is initialized with the Flask application
instance `app`, allowing Flask and SQLAlchemy to work together seamlessly.

6. Defining Database Models:


This section defines database models using SQLAlchemy's ORM. Each model represents a table in
the database and defines the structure of the data stored within it.

• `db.Model`: The `db.Model` class serves as the base class for all database models in
SQLAlchemy. It provides a set of common attributes and methods for defining and interacting
with database tables.
• `db.Column`: The `db.Column` function is used to define columns within a database table. It
specifies the data type, constraints, and other properties of each column.
• `primary_key=True`: This parameter specifies that the column is a primary key, which
uniquely identifies each record in the table.
• `nullable=False`: This parameter specifies that the column cannot contain null values,
ensuring data integrity and consistency.
• `db.Integer`, `db.String`, etc.: These data types represent integer, string, and other types of
data supported by the database. SQLAlchemy maps these data types to the corresponding
native data types supported by the underlying database system.
• `class Medicines(db.Model):`, `class Posts(db.Model):`, etc.: Each class represents a database
table, with its attributes mapping to columns in the table. The names of the classes
(`Medicines`, `Posts`, etc.) should be descriptive of the entities they represent in the
application domain.

7. Defining Flask Routes and View Functions:


This section defines Flask routes and view functions to handle HTTP requests and generate
responses. Routes are URL patterns that map to specific functions, known as view functions, which
are executed when the corresponding URL is accessed.

• `@app.route("/")`, `@app.route("/index")`, etc.: These decorators define routes for different


URLs within the application. The URL patterns specified in the decorators determine the paths
at which the associated view functions will be executed.
• `def hello():`, `def home():`, etc.: These are view functions that define the behavior of the
application when a specific route is accessed. They typically perform some logic, such as
querying the database or processing form data, and then render a corresponding HTML
template using the `render_template` function.
• `render_template('index.html', params=params)`: The `render_template` function is used to
render HTML templates in Flask applications. It takes the name of the template file
(`index.html` in this case) and any additional parameters required by the template. The
`params=params` argument passes the configuration parameters loaded earlier from the JSON
file to the template, allowing dynamic content generation.

Dept. Of CSE, SJBIT 2023 – 24 Page 33


Vehicle Parking Management System

• `request.method == 'POST'`: This condition checks whether the HTTP request method is POST.
It is commonly used to distinguish between form submission requests (POST) and page load
requests (GET). In this case, it is used to handle form submissions in the search route.

8. Handling Form Submissions and Database Operations:


This section handles form submissions in Flask routes by checking the HTTP request method
(`POST`) and performing appropriate actions based on the form data submitted by the user.

• `if (request.method == 'POST'):`: This conditional statement checks whether the HTTP request
method is POST, indicating that the form has been submitted by the user. It is commonly used
to differentiate between form submission requests and other types of requests, such as page
loads or AJAX requests.
• `# Handle form submission`: This comment represents the logic that would be executed when
the form is submitted. It typically includes tasks such as retrieving form data from the request
object, validating the data, and performing database operations such as inserts, updates, or
deletions.

9. Rendering HTML Templates:


This section renders an HTML template using the `render_template` function in Flask. It passes any
required parameters to the template for dynamic content generation.

• `return render_template('search.html', params=params)`: This line of code renders the


`search.html` template, passing the `params` dictionary containing configuration parameters
to the template. The template can then use these parameters to dynamically generate content
based on the application's settings.

10. Database Operations:


This section performs database queries using SQLAlchemy to retrieve data from database tables
based on specified criteria.

• `Addmp.query.filter_by(medicine=name).first()`: This line queries the `Addmp` table to


retrieve the first record where the value in the `medicine` column matches the specified
`name`. It uses the `filter_by` method to apply the filter condition and the `first` method to
retrieve the first matching record.
• `Addpd.query.filter_by(product=name).first()`: Similarly, this line queries the `Addpd` table
to retrieve the first record where the value in the `product` column matches the specified
`name`.

Dept. Of CSE, SJBIT 2023 – 24 Page 34


Vehicle Parking Management System

11. Conditional Logic and Flash Messages:


This section contains conditional logic to determine whether an item is available based on the
database query results. It also uses Flash messages to provide feedback to the user.

• `if (post or pro):`: This conditional statement checks whether either `post` or `pro` variables
contain a non-null value. If either of them is not `None`, it indicates that the item is available
in the database.

• `flash("Item Is Available.", "primary")`: If the item is available, a Flash message with the text
"Item Is Available." is displayed to the user with a primary color theme. Flash messages are
temporary messages that are typically used to provide feedback or notifications to users.

• `flash("Item is not Available.", "danger")`: If the item is not available, a Flash message with
the text "Item is not Available." is displayed to the user with a danger color theme.

12. Route Functions for Database Operations:


This section defines route functions in Flask to handle database operations such as insertion of new
records into database tables.

• `@app.route("/insert", methods = ['GET','POST'])`: This decorator defines a route for the URL
"/insert" and specifies that it accepts both GET and POST requests. The associated view
function
• `insert()` handles the insertion of new records into the database.
• `@app.route("/addmp", methods = ['GET','POST'])`: Similarly, this decorator defines a route
for the URL "/addmp" and specifies that it accepts both GET and POST requests. The
associated view function `addmp()` handles the insertion of new records into the `Addmp` table.
• `@app.route("/addpd", methods = ['GET','POST'])`: This decorator defines a route for the URL
"/addpd" and specifies that it accepts both GET and POST requests. The associated view
function `addpd()` handles the insertion of new records into the `Addpd` table.
• `return render_template('insert.html',params=params)`: After handling the database operation,
the view functions render an HTML template (`insert.html` or `search.html`) to generate the
corresponding web page response. The `params` dictionary containing configuration
parameters is passed to the template for dynamic content generation.

13. User Authentication and Session Management:


This section implements user authentication and session management to restrict access to certain
routes or actions based on user authentication status.

Dept. Of CSE, SJBIT 2023 – 24 Page 35


Vehicle Parking Management System

• `if ('user' in session and session['user'] == params['user']):`: This conditional statement checks
whether a user is logged in by verifying the presence of a `'user'` key in the session and whether
its value matches the username stored in the configuration parameters (`params['user']`). If both
conditions are true, it indicates that the user is authenticated and can perform authenticated
actions.

• `return redirect('/login')`: If the user is not authenticated, the user is redirected to the login page
to authenticate themselves. The `redirect` function is used to redirect the user to the specified
URL ("/login").

14. Handling User Login:


This section defines a route and view function for handling user login requests.

• `@app.route("/login",methods=['GET','POST'])`: This decorator defines a route for the URL


"/login" and specifies that it accepts both GET and POST requests. The associated view
function `login()` handles user login requests.

• `return render_template('login.html', params=params)`: The view function renders the


`login.html` template, passing the `params` dictionary containing configuration parameters to
the template. The template is responsible for displaying the login form and handling user input
for authentication.

15. Logout Functionality:


This section defines a route and view function for handling user logout requests.

• `@app.route("/logout")`: This decorator defines a route for the URL "/logout". The associated
view function `logout()` handles user logout requests.
• `return redirect('/login')`: After logging out the user, the view function redirects the user to the
login page ("/login") to authenticate themselves again.

16. Handling User Sessions and Redirects:


This section manages user sessions and performs a redirect after the user logs out.

• `session.pop('user')`: This line removes the `'user'` key from the session, effectively logging out
the user and destroying their session data.
• `flash("You are logout", "primary")`: A Flash message is displayed to the user confirming that
they have been logged out. The message has a primary color theme.

Dept. Of CSE, SJBIT 2023 – 24 Page 36


Vehicle Parking Management System

• `return redirect('/login')`: After logging out the user and displaying the Flash message, the user
is redirected to the login page to authenticate themselves again.

17. Running the Flask Application:


This section runs the Flask application in debug mode, enabling debug features such as interactive
debugging and automatic reloading of the application when code changes are detected.

• `app.run(debug=True)`: The `run()` method of the Flask application instance (`app`) is called
with the `debug=True` parameter. This starts the Flask development server in debug mode,
allowing developers to debug their applications more easily by providing detailed error
messages and stack traces.

5.2 Front-End Development :

The HTML template provided is an integral part of a Flask web application designed for managing a
pharmacy supply system. Let's break down the template into its constituent parts and explain each in
detail.

1. Document Type and HTML Structure:


The `<!DOCTYPE html>` declaration specifies the document type as HTML5, ensuring
compatibility and adherence to standards. Following this declaration, the `<html>` element serves
as the root element of the HTML document, indicating the start of the HTML content. The
`lang="en"` attribute denotes that the document is written in English.

2. Meta Tags:
Meta tags, including `<meta charset="utf-8">`, `<meta name="viewport" content="width=device-
width, initial-scale=1, shrink-to-fit=no">`, and `<meta name="description" content="">`, provide
important metadata about the HTML document. These tags define character encoding, viewport
settings for responsive design, and a brief description of the page for search engine optimization
(SEO) purposes.

3. Title and Bootstrap CSS:


The `<title>` element dynamically sets the title of the webpage using the `params` dictionary, which
likely contains configuration parameters, including the blog name. This ensures that each page has
a unique and descriptive title for better user experience and SEO. Additionally, Bootstrap CSS files
are linked to the template using `<link>` elements, allowing for the application of Bootstrap's pre-
defined styles to HTML elements.

Dept. Of CSE, SJBIT 2023 – 24 Page 37


Vehicle Parking Management System

4. Custom Fonts and Styles:


The template imports custom fonts from Google Fonts to enhance the visual appeal and typography
of the webpage. These fonts, namely "Lora" and "Open Sans," offer a wide range of styles and
weights for text elements. Additionally, custom styles specific to the template are linked using
`<link>` elements to apply unique visual enhancements and maintain a consistent design across the
website.

5. Navigation Bar:
The navigation bar (`<nav>`) provides users with easy access to different sections of the website,
facilitating navigation and exploration. It includes links to various routes within the Flask
application, such as home, add medical information, view ordered list, etc. These links are
dynamically generated using Flask's `url_for` function, ensuring flexibility and robustness in
managing routes and URLs.

6. Body Content and Block Definition:


The `{% block body %}` and `{% endblock %}` tags define a block of content within the HTML
template. This block acts as a placeholder for rendering dynamic content specific to each webpage.
Child templates that extend this layout template can override this block with their own content,
allowing for modular content rendering and template inheritance.

7. Footer Section:
The footer section contains social media links and copyright information, providing additional
resources and legal attribution. Social media icons with links to Twitter, Facebook, and GitHub
profiles are included to encourage user engagement and interaction. The copyright information
includes the year and name of the website, establishing ownership and acknowledging intellectual
property rights.

8. JavaScript and Bootstrap Scripts:


JavaScript files are included at the end of the template to enhance interactivity and functionality.
These files, including jQuery and Bootstrap JavaScript, enable dynamic features and user
interactions such as form validation, navigation menus, and responsive behavior. Custom
JavaScript files specific to the template are also included to implement custom functionality and
behavior.

9. Main Content Section:


The main content section comprises the body of the webpage, containing headers, paragraphs,
forms, etc. It typically includes a header section with a background image and a heading to introduce
the main content. Flash messages are displayed within this section to provide immediate feedback
to users, informing them about the success or failure of their actions.

Dept. Of CSE, SJBIT 2023 – 24 Page 38


Vehicle Parking Management System

10. Form Submission Section:


A form is provided to users for submitting information, such as medicines and products data. The
form includes input fields for entering relevant data, such as medicine name, product details, email,
and amount. Form validation is implemented using HTML5 attributes like `required` to ensure that
users provide necessary information before submission. Additionally, custom JavaScript validation
scripts may be employed for enhanced validation and user experience.

11. Closing Tags and Block Override:


Closing HTML tags (`</body>` and `</html>`) mark the end of the document structure. The `{%
extends "layout.html" %}` directive indicates that this template extends a base layout template
defined in `layout.html`, inheriting its structure and styles. The `{% block body %}` tag overrides
the body content block defined in the layout template, allowing child templates to insert their own
content dynamically.

5.3 Deploying The Pharmacy Management Web Application :

Incorporating technology into pharmacy operations has revolutionized healthcare delivery, enabling
pharmacies to optimize processes, improve patient care, and ensure regulatory compliance. A pharmacy
database management system (DBMS) serves as the foundation of digital pharmacy infrastructure,
facilitating the efficient storage, retrieval, and management of patient records, prescriptions, inventory,
and billing data. This guide outlines a step-by-step roadmap for implementing a pharmacy DBMS
project using Flask and the XAMPP server, leveraging their combined capabilities to streamline project
execution.

Overview of Flask and XAMPP Server :


Flask is a lightweight and flexible Python web framework that provides tools and libraries for building
web applications. With its simplicity and extensibility, Flask is well-suited for developing scalable and
maintainable web applications. XAMPP, on the other hand, is a cross-platform web server solution
stack package that includes Apache, MySQL, PHP, and Perl, providing a complete environment for
developing, testing, and deploying web-based applications. By combining Flask for backend
development and XAMPP for server hosting and database management, developers can create robust
and efficient pharmacy DBMS solutions.

Installation and Setup :


To begin, install Flask and XAMPP on the system. Flask can be installed using pip, the Python package
manager, while XAMPP can be downloaded and installed from the official website. Once installed,
start the Apache and MySQL modules from the XAMPP control panel. Project setup involves creating
a new directory for the Flask application within the htdocs directory of the XAMPP installation
directory. This directory will serve as the document root for the Apache web server, hosting the Flask
application.

Dept. Of CSE, SJBIT 2023 – 24 Page 39


Vehicle Parking Management System

Database Configuration :
With XAMPP running, navigate to the phpMyAdmin web interface to create a new database for the
pharmacy DBMS project. Specify the database name, username, and password, and assign privileges
to the user account to enable access to the database. Update the database configuration settings in the
Flask application to establish a connection with the MySQL database.

Fig 5.1 File Structure Of Project

Web Application Development with Flask :


Develop the backend functionality of the pharmacy DBMS using Flask, including route definitions,
request handling, and database interactions. Flask provides a lightweight and flexible framework for
building web applications, with features such as routing, templating, and session management. Utilize
Flask extensions such as Flask-SQLAlchemy for database integration and Flask-WTF for form handling
to streamline development.

Dept. Of CSE, SJBIT 2023 – 24 Page 40


Vehicle Parking Management System

Frontend Development and Integration :


Design the frontend interface of the pharmacy DBMS using HTML, CSS, and JavaScript. Flask
integrates seamlessly with frontend technologies, allowing you to render dynamic content and handle
user interactions. Leverage Flask's template rendering capabilities to generate HTML pages
dynamically based on data retrieved from the database. Implement client-side validation and
interactivity using JavaScript to enhance the user experience.
Deployment and Testing :
Deploy the Flask application to the XAMPP server for testing and evaluation. Copy the project files to
the designated directory within the htdocs directory and access the application through the localhost
URL in a web browser. Conduct comprehensive testing to validate the functionality, performance, and
security of the application. Perform unit testing, integration testing, and system testing to identify and
address any issues or bugs before deploying the application to production.

Dept. Of CSE, SJBIT 2023 – 24 Page 41


CHAPTER 6
RESULTS

1. Implementation of Vehicle Parking Management System


The Vehicle Parking Management System (PMS) was successfully developed using Python
Flask and SQLAlchemy. This system aimed to streamline offline medicine supply management.

2. Key Features and Functionalities


Inventory Management:
- The system enables real-time tracking of medication inventory.
- Automatic reorder alerts help in maintaining optimal stock levels.
Prescription Processing:
- Electronic prescribing and automated order verification streamline prescription processing.
- Integration with prescriber systems enhances efficiency and reduces errors.
Patient Information Management:
- Centralization of patient records and medication histories ensures timely access to
critical information.
- Drug interaction checks and allergy alerts enhance patient safety.

3. User Interface and Experience


Intuitive Interface:
- The user interface is designed for ease of use and accessibility.
- Navigation is simplified to facilitate efficient workflow for pharmacy staff.
Responsive Design:
- The web-based interface adapts to various devices, ensuring accessibility from desktops,
tablets, and smartphones.

4. Database Management and Integration


MySQL Database:
- MySQL is used as the backend database for reliability and scalability.
- Data integrity measures are implemented to safeguard patient information. Integration with
Flask:
Vehicle Parking Management System

- SQLAlchemy in Flask facilitates interaction with the MySQL database.


- CRUD operations allow for efficient data manipulation within the application.

5. Performance and Scalability


Performance Metrics:
- The system demonstrates efficient performance in handling user requests and database
transactions.
- Load testing ensures responsiveness and scalability under heavy usage.
Scalability:
- The architecture is designed to accommodate future scalability requirements.
- Modular design allows for easy integration of new features and enhancements.

Dept. Of CSE, SJBIT 2023 – 24 Page 43


CHAPTER 7
SNAPSHOTS

Fig 7.1 Overview Of Xampp Database

Fig 7.2 Table Description and Values


Vehicle Parking Management System

Fig 7.3 Vehicle Parking Management System Front Page

Fig 7.4 Login Page

Dept. Of CSE, SJBIT 2023 – 24 Page 45


Vehicle Parking Management System

Fig 7.5 Medical Shop Record

Fig 7.6 Creating new medical Record (Store)

Dept. Of CSE, SJBIT 2023 – 24 Page 46


CONCLUSION

The successful implementation of the Vehicle Parking Management System marks a significant
milestone in our journey towards harnessing practical experience to complement theoretical learning.
This project, built upon the foundations of Ampps and Python Flask, has enabled us to develop a fully
functional offline database management system tailored for pharmacy operations.

Utilizing MySQL as the database has proven to be advantageous due to its accessibility, popularity, and
ease of customization. The versatility of MySQL has empowered us to efficiently store, retrieve, and
manipulate data with minimal SQL knowledge, enhancing our capabilities in database management.

Beyond the technical aspects, this project has imparted invaluable lessons in project planning,
organization, and teamwork. The meticulous planning process undertaken underscored the importance
of structured methodologies in project execution. Moreover, the collaborative efforts and cohesive
teamwork demonstrated throughout the project lifecycle highlighted the pivotal role of teamwork and
coordination in achieving success.

From a personal perspective, this project has been instrumental in deepening our understanding of
project development intricacies. It has provided firsthand experience in project planning, execution,
and teamwork, thereby equipping us with essential competencies as aspiring computer engineers.

In conclusion, the Vehicle Parking Management System project has not only fulfilled academic
requirements but has also served as a platform for holistic learning and skill development. It stands as
a testament to our commitment to bridging the gap between theoretical knowledge and practical
application, ultimately enhancing our proficiency and preparedness for future endeavors in the field of
computer engineering.
REFERENCES

1. XAMPP documentation :
https://www.apachefriends.org/docs/

2. Flask documentation :
https://flask.palletsprojects.com/en/3.0.x/#user-s-guide

3. HTML, CSS, JS guide and tutorials :


https://youtu.be/nu_pCVPKzTk?si=DjAK5M6EZt7xqCtA

4. GitHub Repositories :
https://github.com/LalanaChami/Pharmacy-Mangment-System.git
https://github.com/priyasubburaj05/pharmacy-management-system.git

5. MySQL documentation :
https://dev.mysql.com/doc/

You might also like