Professional Documents
Culture Documents
Software Engineering
(203105304) 5th
SEMESTER(5B1)
1|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
2|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
CERTIFICATE
department of Computer Science & Engineering during the Academic year 2023-
2024.
Date of
Staff in charge HOD
submission
3|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
INDEX
SR.NO TITLE PERFORMANCE MARKS OUT SIGNATURE
DATE OF 10
Project definition and objective
of the specified module and
1 perform requirement 19/06/2023
Engineering Process.
Identify Suitable Design and
Implementation model
2 03/07/2023
from the different software
engineering models.
Software Requirement
Specifications (SRS) for
3 Medical Chat Bot. 10/07/2023
4|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
THE MEDICAL CHATBOT
Practical - 01
AIM : To Build Software for The Medical ChatBot.
Project definition and objective of the specified module and perform requirement
Engineering Process
Context :
"The Medical Chatbot" aims to bridge this gap by providing an interactive and user-friendly
platform where individuals can obtain trustworthy medical information and assistance. The
chatbot utilizes artificial intelligence and natural language processing techniques to
understand user queries, extract relevant information, and generate appropriate responses.
Symptom Checker: Users can describe their symptoms to the chatbot, which analyzes the
input and provides potential causes or suggestions for further evaluation. It helps users gain
a preliminary understanding of their symptoms before consulting a healthcare professional.
Medical Condition Information: The chatbot offers information on various medical
conditions, including causes, symptoms, treatments, and preventive measures. Users can
inquire about specific conditions to enhance their knowledge and make informed decisions
about their health.
5|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Medication and Treatment Advice: Users can seek guidance on medications, dosage,
potential side effects, and interactions. The chatbot provides general advice but encourages
users to consult healthcare professionals for specific medical recommendations.
Healthy Lifestyle Tips: The chatbot may offer suggestions for maintaining a healthy
lifestyle, including diet, exercise, stress management, and preventive measures for certain
diseases.
Information :
In recent years, there has been a growing demand for accessible and reliable healthcare
information . However ,healthcare resource are often limited , and individuals face
challenges in accessing accurate information in a timely manner . To address this issue ,the
development of a medical chatbot was undertaken. the chatbot aimed to provide users
with immediate access to relevant medical information , helping them make informed
decisions about their health.
Our medical chatbot provides information about your health by taking symptoms your
facing as a input . it will provide the diet plan according to your health condition.it provides
medical prescription along with timings of taking medicines for smaller health issues. It says
seriousness of your health condition and what are the necessary measures you should take
.By using the concept of natural language processing and artificial intelligence it will works
.it provides information with more accuracy.
Key Features:
Interactive Conversations : The chatbot engages in interactive conversations with
users, allowing them to ask questions and seek information regarding their health concerns.
It provides a conversational interface to obtain personalized medical advice and guidance.
Symptom Checker : Users can describe their symptoms to the chatbot, and it will
analyze the input to provide potential causes or suggestions for further evaluation. The
chatbot assists users in understanding their symptoms and helps them decide whether they
should seek medical attention.
6|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
7|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
User Intent Understanding : Using NLP techniques, the chatbot analyzes user input
to determine the intent behind the query. It identifies keywords, extracts important
information, and understands the context to provide tailored and contextually relevant
responses.
Personalized Recommendations: The chatbot takes into account user input and
collected information to offer personalized recommendations. Factors such as age, gender,
pre-existing conditions, and medical history are considered to provide more accurate and
relevant advice.
Emergency Assistance : In critical situations, the chatbot can help users identify the
severity of their condition and provide appropriate guidance. It may recommend seeking
immediate medical attention or contacting emergency services.
Objectives :
The objectives of the "The Medical Chatbot" project can include the following:
1). Provide Accurate and Reliable Medical Information:
2). Enhance Accessibility to Medical Advice.
3). Offer Personalised Recommendations
4). Improve HealthCare Decision-Making.
5). Support Self-Care And Health Education.
6). Provide Emergency Assistance And
Triage. 7). Continuous Learning And
Improvement.
8) .Ensure Data Privacy And Security.
8|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
9|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Functions or modules:
1).User Input Processing : The chatbot should be capable of processing user input in
natural language. It should handle text or voice input and apply preprocessing techniques
such as tokenization, stemming, or lemmatization to extract relevant information from the
user's query.
2).Intent Recognition : The chatbot should analyze user input to determine the intent
behind the query. It should employ natural language understanding (NLU) techniques to
classify user intents accurately. For example, the intents could include seeking information
about a symptom, asking for treatment recommendations, or requesting general medical
advice.
3).Knowledge Base Lookup : The chatbot should have access to a comprehensive
knowledge base containing medical information.
4).Symptom Assessment And Diagnosis : The chatbot should assist users in assessing their
symptoms and provide potential causes or conditions associated with those symptoms.
5).Treatment Recommandations : Based on the user's symptoms, medical history, and
relevant information from the knowledge base, the chatbot should provide treatment
recommendations.
6).Preventive Measures : The chatbot should provide users with information on preventive
measures and health education.
7).Emergency Assistance : The chatbot should be able to identify emergency situations
based on user input and provide immediate guidance.
8).Personalized Recommandations : The chatbot should take into account user-specific
information such as age, gender, pre-existing conditions, or medical history to offer
personalized recommendations.
Performance :
Accuracy of Responses: The chatbot's responses should be accurate and reliable. It
should provide correct information about medical conditions, symptoms, treatments,
medications, and general healthcare inquiries. The accuracy can be measured by comparing
the chatbot's responses with validated medical sources or by collecting user feedback on
the correctness of the provided information.
10 | P a g
e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
11 | P a g
e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Intent Recognition: The chatbot should accurately understand user intents and
queries. It should correctly identify the user's intent behind the input to provide
appropriate responses. Evaluation can be done by comparing the recognized intents with
annotated intents or by conducting user testing to assess how well the chatbot understands
various types of queries.
Response Time: The chatbot should provide prompt responses to user queries. Long
response times can frustrate users and negatively impact their experience. Performance
testing can measure the response time of the chatbot under different user load scenarios to
ensure it meets acceptable response time thresholds.
User Satisfaction: The overall user satisfaction with the chatbot's performance is a
crucial measure. Conducting user surveys, interviews, or gathering feedback through user
testing can help assess user satisfaction, identify areas for improvement, and make
necessary adjustments to enhance the user experience.
12 | P a g
e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
13 | P a g
e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Practical – 2
Aim : Identify Suitable Design and Implementation model from the different
software
engineering models.
Selection of Model Of Project : For your medical chatbot project, considering the
nature of the project and its potential requirements, an Agile model would likely be a
good fit.
AGILE MODEL
The Agile model has revolutionized the software development industry, offering a flexible
and adaptive approach that addresses the shortcomings of traditional methodologies. With
its emphasis on collaboration, iterative development.
*Flexibility and Adaptability: An Agile model allows for flexibility and adaptability to
accommodate changing requirements, which is beneficial for a project like a chatbot where
requirements may evolve as users provide feedback and new medical information becomes
available.
*Iterative Development and Feedback: Agile methodologies, such as Scrum or Kanban,
emphasize iterative development and frequent feedback loops. This aligns well with
the need to continuously improve and enhance the chatbot based on user feedback
and
evolving medical knowledge.
*User Involvement: Agile models place a strong emphasis on user involvement and
collaboration. In the case of a medical chatbot, user input and validation are crucial to
10 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
ensure the chatbot's accuracy, relevance, and usability.
10 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
*Early Delivery of Functionality: Agile models prioritize the early delivery of working
software. This allows you to release a minimum viable product (MVP) version of the chatbot
that provides essential functionality, enabling users to benefit from it sooner and provide
valuable feedback.
*Continuous Improvement: Agile models support continuous improvement throughout the
project's lifecycle. As you gather feedback, you can iteratively enhance the chatbot's
features, incorporate new medical information, and refine its performance based on real-
world usage.
1|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Daily Stand-up Meetings: Daily stand-up meetings are held to promote
communication and collaboration within the team. Team members share their
progress, discuss any challenges or impediments, and coordinate their efforts.
Continuous Integration and Testing: The developed code is continuously integrated
and tested to ensure that it works smoothly with existing functionalities.
Automated tests are executed to verify the behavior and accuracy of the chatbot's
responses.
User Feedback and Iteration: After each sprint, the chatbot is presented to users or
stakeholders for feedback. Their input is collected and incorporated into the
subsequent sprints. This feedback loop allows for continuous improvement and
ensures that the chatbot meets user needs effectively.
Release and Deployment: At the end of each sprint or at suitable intervals, a
release of the chatbot is deployed, making the latest features available to users.
This iterative approach allows users to benefit from the chatbot's functionality
incrementally.
3|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
PRACTICAL – 03
Purpose :
The purpose of this document is to define the software requirements for the development
of a Medical Chat Bot. The chat bot will provide medical information and assistance to
users, helping them with basic medical queries, symptoms analysis, and providing
recommendations.
Scope :
The Medical Chat Bot will be designed to provide accurate and reliable medical information
to users. It will assist users in identifying common symptoms, suggesting possible causes,
and offering general medical advice. The chat bot will not replace a professional medical
consultation but will serve as an initial source of information.
General description:
The general description of a medical chat bot includes the following key features:
User Registration and Authentication: The chat bot allows users to create
accounts and authenticate themselves to access personalized features and
store their health-related information securely.
Symptom Analysis and Diagnosis: The chat bot assists users in describing their
symptoms and analyzes the provided information to suggest possible causes or
diagnoses. It utilizes a comprehensive database of symptoms, diseases, and
their relationships to provide accurate assessments.
Medical Advice and Recommendations: Based on the symptoms or queries
presented by the user, the chat bot offers general medical advice and
recommendations. It suggests self-care measures, preventive measures, and
4|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
when to seek professional medical help.
Integration with External Medical Databases and Resources: The chat bot
integrates with external medical databases and resources to expand its
knowledge base. It may access verified medical websites, research papers, or
clinical guidelines to provide up-to-date and reliable information.
Usability and User Interface: The chat bot provides an intuitive and user-
friendly interface, making it easy for users to interact with the system. It
presents responses in a clear, concise manner, ensuring ease of understanding.
Performance and Scalability: The chat bot responds promptly to user queries,
minimizing response time. It is designed to handle multiple user interactions
simultaneously without significant delays or system performance degradation.
It can scale to accommodate increasing user traffic.
Security and Privacy: The chat bot prioritizes the security and privacy of
user data. It employs encryption techniques to securely store and transmit
sensitive information. User authentication and access control mechanisms are
implemented to ensure data confidentiality.
Functional Requirements :
5|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Non-Functional Requirements :
Usability :
- The user interface shall be intuitive, user-friendly, and visually appealing.
- The chat bot responses shall be clear, concise, and easy to understand.
- The system shall support multiple languages to accommodate diverse users.
Performance :
- The chat bot shall respond to user queries within an acceptable time frame.
- The system shall handle multiple user interactions simultaneously without significant
delays.
- The system shall be capable of scaling to accommodate increasing user traffic.
Security :
- User data shall be securely stored and transmitted using appropriate encryption methods.
- The system shall implement authentication and access control mechanisms.
- The chat bot shall not store any personally identifiable information without user consent.
6|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
5. System Availability:
- The chat bot should aim for high availability to ensure uninterrupted access for users.
- Scheduled maintenance or downtime should be minimal and planned during periods
of low user activity.
7|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
- Key performance indicators, such as response time, user concurrency, and
database performance,should be tracked.
- Monitoring data should be analyzed to identify bottlenecks and areas for performance
optimization.
Constraints:
- The Medical Chat Bot shall comply with relevant privacy laws and regulations.
- The system shall be compatible with modern web browsers and devices.
- The development shall adhere to the allocated budget and timeline.
Budget:
- Development Costs : Estimated [insert cost] for personnel, tools, licenses, and external
services/consultants.
- Maintenance and Support Costs: Estimated [insert cost] for personnel, software
updates/patches, and user support.
- Infrastructure and Hosting: Estimated [insert cost] for servers/cloud resources,
networking, backup, monitoring, and security.
- Contingency: [insert percentage] of the total budget.
8|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
PRACTICAL – 04
AIM : Develop a Software project management planning (SPMP) for the specific
Module.
Group members : 1). CHANDU KOMMINENI -210303124626
2).GURU CHARAN KOTHAMASU - 210303124654
3).PAVANKUMAR KASULA - 210303124588
4).SAI HARSHITHA .C - 210303124316
5).VASANTHA NAGA LAKSHMI .D – 210303124377
Introduction:
Briefly describe the purpose and objectives of the SPMP.
Provide an overview of the specific module and its functionalities.
Identify key stakeholders involved in the module development.
Agile Approach:
Describe the Agile methodology being used (e.g., Scrum, Kanban) for the module
development.
Explain the iterative and incremental nature of Agile and how it aligns with the
module's goals.
Project Organization:
Define the Agile roles and responsibilities within the module team (e.g., Product Owner,
Scrum Master, Development Team).
Outline the team structure, including team members and their expertise.
Explain the communication and collaboration channels established for effective
teamwork.
Module Scope:
Clearly define the scope of the module, including its features and functionalities.
Specify any dependencies or interfaces with other modules or systems.
Identify the deliverables and milestones associated with the module.
9|Page
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Sprint Planning:
Describe the sprint planning process, including sprint duration and
frequency.
Explain how user stories are selected and prioritized for each sprint.
Detail the creation and management of the sprint backlog.
Project Schedule:
Provide a high-level project schedule, indicating the start and end dates of
sprints.
Identify key milestones or deliverables associated with the module.
Allocate resources and estimate effort for each sprint.
Risk Management:
Identify potential risks and uncertainties that may impact the module's
development.
Outline risk assessment and mitigation strategies to address identified risks.
Establish a process for monitoring and managing risks throughout the
module's lifecycle.
Quality Assurance:
Define the quality standards and metrics for the module.
Describe the testing approach, including unit testing, integration testing, and
acceptance testing.
Explain the use of continuous integration and automated testing practices.
Change Management:
Establish a change management process to handle modifications to
requirements or scope.
Define how change requests are submitted, evaluated, and approved.
Communicate changes effectively to the module team and stakeholders.
Communication and Reporting:
Describe the communication plan for regular interactions within the module
team.
10 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Identify the reporting mechanisms for progress updates, impediments, and
risks.
Define the frequency and format of meetings, such as daily stand-ups or
sprint reviews.
Project Closure:
Define the criteria for completing the module and transitioning it to the next
phase.
Conduct a retrospective analysis to identify lessons learned and areas for
improvement.
Address any necessary handover and maintenance activities.
1. Requirements Gathering
This function will involve gathering the requirements for the module from
the stakeholders.
The requirements will be documented in a requirements specification
document.
11 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
The requirements will be prioritized and validated with the stakeholders.
2. Design
3. Development
o HTML
o CSS
o MySQL
The module will be tested using the following tools:
o JUnit
o Mockito
4. Testing
5. Deployment
6. Maintenance
7. Documentation :
13 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
14 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
PRACTICAL – 05
The original COCOMO model became one of the most widely used and discussed
software cost estimation models in the industry. It has evolved into a more
comprehensive estimation model, called COCOMO II.
COCOMO II models require sizing information. Three different sizing options are
available as part of the model hierarchy:-
Object Points
Function Points
Lines Of Source Code
Like function point, the object point is an indirect software measure that is computed
using counts of the number of
(1) screens (at the user interface),
(2) reports,
(3) components likely to be required to build the application.
Each object instance (e.g., a screen or report) is classified into one of three complexity
levels (i.e. ,simple ,medium, or difficult). Once complexity is determined, the number of
screens, reports, and components are weighted.
15 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
The object point count is then determined by multiplying the original number of
object instances by the weighting factor in the figure and summing to obtain a
total object point count.
When component-based development or general software reuse is to be applied,
the percent of reuse (%reuse) is estimated and the object point count is adjusted:
Below table presents the productivity rate for different levels of developer experience and
development environment maturity. Once the productivity rate has been determined, an
estimate of project effort is computed using
16 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Step 0 : Identify Modules and Components :
(1) SCREENS
1. Home Page. 2. Select Login. 3. Login Page For Patient .
4. Registration For Patient. 5. Patient Profile. 6. Patient Update Details.
7. Book Appointment . 8. View Appointment Status . 9. Cancel Appointment.
10. Payment By Patient. 11. Receipt Of Payment . 12. Login Page For Doctor.
13. Doctor Profile. 14. Appointment Details. 15. View Patient by Doctor.
16. Add Prescription. 17. Login Page For Admin. 18. Generate Bill.
19. Update Doctor Details. 20. Add Doctor. 21. View doctor By Admin.
22. View Records
(2) REPORTS
1. Total Visitors on Website.
2. Total Patients Treated.
3. Total Appointments Taken.
4. Total Appointments Cancelled.
5. Total Doctors on Leave.
6. Total Doctors Added.
7. Total Doctors Removed.
8. Total Consultant Fee Collected .
let's calculate the cost estimation for your medical chatbot project using the Use Case
Points (UCP) method. The UCP method takes into account the complexity of different
screens and reports, as well as other factors such as reuse and developer experience.
Given Information:
Total Screens: 22
Total Reports: 8
Complexity: Medium
Components Reused: 0%
Developer Experience: Low
Environment Maturity: Low
Productivity Rate: 7
17 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Step 1: Calculate Object Points :
Object Points (OP) are calculated based on the complexity of the screens and reports.
For screens:
Simple: 3 points
Average: 4 points
Complex: 6 points
For reports:
Simple: 3 points
Average: 4 points
Complex: 6 points
UUCP is calculated by adding the Object Points (OP) to the number of 3GL
Modules.
UUCP = Object Points (OP) + Total 3GL Modules
UUCP = 176 + 0 = 176
TCF is calculated based on the factors like Reusability, Developer Experience, and
Environment Maturity.
TCF = 0.6 + (0.01 * Reuse) + (0.2 * Developer Experience) + (0.07 * Environment
Maturity)
TCF = 0.6 + (0.01 * 0) + (0.2 * 1) + (0.07 * 1)
TCF = 0.6 + 0.2 + 0.07 = 0.87
Step 4: Calculate Environmental Complexity Factor (ECF)
ECF is calculated based on factors such as Productivity Rate. ECF = 1.4 *
(Productivity Rate)^0.2
ECF = 1.4 * (7)^0.2
ECF = 1.4 * 0.5743 = 0.805
Step 5: Calculate Use Case Points (UCP)
UCP = UUCP * TCF * ECF UCP = 176 * 0.87 * 0.805 = 125.8
18 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Step 6: Calculate Estimated Effort
Estimated Effort (in Person-Months) = UCP / Productivity Rate Estimated Effort =
125.8 / 7 = 17.97 Person-Months (approx. 18 Person-Months)
19 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Practical – 06
System Analysis:
Problem Statement:
The medical chatbot aims to assist users in querying diseases and providing appropriate
remedies. This module is essential to offer accurate medical information to users,
enhancing their healthcare experience.
Functional Requirements:
Non-Functional Requirements:
A use case diagram visually represents the interactions between users and the
system.
20 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
User Stories:
Level 0 DFD:
Processes:
Display Info and Remedies: Presents disease details and remedies to the user.
Data Stores:
External Entities:
Level 1 DFD: Expand the "Fetch Disease Data" process into sub-processes for
better understanding. Similarly, expand the "Display Info and Remedies" process.
Data Dictionary:
User Query Data (Data Flow): Textual input provided by the user.
21 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Disease Data (Data Store): A database containing disease details and remedies.
Disease Info (Data Flow): Disease-related information retrieved from the database.
Structure Chart: The structure chart shows the hierarchical structure of the
processes and sub-processes involved in the module.
Main Module
↓→,User Query
↓
↓ →,Process Query
↓ →, Retrieve Precautions
↓ →, Combine Info, Remedies, and Precautions
↓ →,Display Details
↓
→, Display Remedies
→, Display Precautions
For our medical chatbot system :
Chatbot System
User Interface
22 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
↓
Home Page
Login Module
Registration Module
Booking System
Book Appointment
Cancel Appointment
↓ Medical Data
Disease Information
Medication Recommendation
Medical Records
PRACTICAL – 07
AIM : Designing the module using Object Oriented approach including Use case
Diagram
23 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
with scenarios, Class Diagram and State Diagram, Sequence Diagram and
Activity
Diagram.
let's design a module for the medical chatbot using an Object-Oriented approach.
We'll cover the following diagrams:
Use Case Diagram: It depicts the interactions between the chatbot and its users.
Class Diagram: It represents the classes and their relationships within the chatbot system.
State Diagram: It shows the different states a chatbot can be in and the transitions
between them.
Activity Diagram: It displays the flow of activities or actions within the chatbot module.
24 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
Chatbot asks for user details, preferred date and time, and confirms the
appointment.
25 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
User: "What's the status of my appointment?"
CLASS DIAGRAM :
Chatbot: The main chatbot class that handles user interactions and provides responses.
Medication: Contains information about medications, their names, uses, and dosages.
STATE DIAGRAM :
26 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
SEQUENCE DIAGRAM :
Chatbot processes the message, generates a response, and sends it back to the User.
SEQUENCE DIAGRAM :
27 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
ACTIVITY DIAGRAM:
28 | P a g e
Subject : Software Engineering Lab
Subject Code : 203105304
B.Tech CSE 3rd Year: 5thSem
5B1(PIET)
User initiates the activity by sending a message.
29 | P a g e