Physiotherapy Prescription Generator: Ms. Cristin Johnson

You might also like

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

A PROJECT REPORT ON

“PHYSIOTHERAPY PRESCRIPTION GENERATOR”

Submitted by
Ms. CRISTIN JOHNSON

[05]

Under the guidance of

PROF. ANOOJA NAIR

Submitted in partial fulfillment of the requirements for qualifying

B.Sc. (CS). Semester – VI Examination

ACADEMIC YEAR 2018-2019

ORIENTAL EDUCATION’S SOCIETY

SANPADA COLLEGE OF COMMERCE AND TECHNOLOGY


Sanpada (W) – 400705, Navi Mumbai.

5
SANPADA COLLEGE OF COMMERCE AND TECHNOLOGY

CERTIFICATE

This is to certify that the project entitled “PHYISOTHERAPY


PRESCRIPTION GENERATOR” undertaken at the Sanpada college of
Commerce and Technology by Ms. CRISTIN JOHNSON, Seat no [5] in
partial fulfillment of B.Sc. CS degree (Semester VI) has not been submitted
for any other examination and does not form part of any other course
undergone by the candidate.

It is further certified that she has completed all required phases of the project.

Signature of Internal Guide Signature of External

Signature of H-O-D Signature of Principal

College Seal

6
ACKNOWLEGDEMENT

This project, being a maiden experience for me, has been a big confidence booster.
I have taken efforts in this project. However, it would not have been possible
without the kind of support and help I have received. I would like to extend my
sincere thanks to all.

In this endeavor, I acknowledge the valuable contribution and expert guidance of


our project guide Prof. Anooja Nairof the Department of Computer Science,
Oriental Education Society’s Sanpada College of Commerce and Technology,
Sanpada (W), Navi Mumbai – 400703. Her frank suggestions for improvements
and innovative ideas have inspired me.

I am greatly thankful to our Principal Mr. RoaSahebShindegalwekarfor his


continued and unending support. I also thank Prof. SmitaNegifor granting me
permission to work on this project.

I wish to express my gratitude to the staff of the CS department for their co-
operative and considerate approach. Last but not the least, my sincere thanks to
College, which give me the opportunity to grasp the knowledge.

Signature,

Ms. Cristin Johnson

T.Y.B.Sc. (CS)

7
Index

SR. NO. TITLE PAGE NO.

1 TITLE: Physiotherapy Prescription Generator 9

2 INTRODUCTION 10

3 REQUIREMENT SPECIFICATION 11
3.1. Software Requirements
3.2. Hardware Requirements

4 SYSTEM DESIGN
4.1. Architecture 12
4.2. UML Diagrams 13
4.2.1. Use Case Diagram 14
4.2.2. E-R Diagram 15
4.2.3. Activity Diagram 16
4.2.4. Data Flow Diagram

5 SYSTEM IMPLEMENTATION 17

6 RESULTS
6.1. Test Cases 23
6.2. Tables 24
6.3. Reports 25
6.4. Screenshots 26

7 CONCLUSION AND FUTURE SCOPE 30

8 REFFERENCES 31

8
1. TITLE: Physiotherapy Prescription Generator

Proposed System:

The Main Objective of this project is to provide a Brief and Instantaneous


generation of the prescription of the treatment provided to a patient undergoing
physiotherapy in terms of the FITT principle (Frequency, Intensity, Time and
Type).

Features:

 Easy to use GUI.

 Physiotherapists who will prescribe the dosage and give fixed exercises will use the
application.

 Quick Printable Prescriptions.

 Easy cross references with other patients with similar symptoms

 Saves Paper. Allows the therapist to email the prescription to the patient if needed

9
2. INTRODUCTION

Physiotherapy has a exclusive and escalating role to play in global health care.
There are many ways that physiotherapists can contribute in global health work
past direct patient care encompassing into activities such as promoting for and
developing rehabilitation programs.

Physiotherapy is a strenuous job with the therapist working alongside patients to


help them with their problems and work miracles on them. Along with that there
comes the tremendous amounts of paper work they end up having to do regarding
each patients being tended to.

Physiotherapy Prescription Generator provides a Brief and Instantaneous


generation of the prescription of the treatment provided to a patient undergoing
physiotherapy in terms of the FITT principle (Frequency, Intensity, Time and
Type) by the therapist giving the treatment.

10
3. REQUIREMENT SPECIFICATIONS

3.1. Software Requirements:

Developer’s side: Client’s side:

Technologies: Operating System:


• JAVA
• MySQL • Windows 7, Windows 8 or Windows 10

Tools:
• NETBEANS
• WAMP
• MySQL Workbench

Operating System used: Windows 10

3.2. Hardware Requirements:

o Processor (CPU) with 2 gigahertz (GHz) frequency or above


o A minimum of 2 GB of RAM
o Monitor Resolution 1024 X 768 or higher
o A minimum of 20 GB of available space on the hard disk
o Internet Connection Broadband (high-speed) Internet connection with a speed of 2
Mbps or higher for downloading the application
o Keyboard and a Microsoft Mouse or some other compatible pointing device
o A printer

11
4. SYSTEM DESIGN

4.1. Architecture:
Physiotherapy Prescription Generator provides a Brief and Instantaneous generation of the
prescription of the treatment provided to a patient undergoing physiotherapy given by the
therapist.

4.1.1. Modules:
4.1.1.1. Main

This is the welcome screen. The therapist has the option to either sign
into the system or register himself/herself.

4.1.1.2. Sign In

Here a registered therapist can log into the system. After logging in the
therapist can go further and fill in details to generate the prescription

4.1.1.3. Register

Here the therapist can register himself to the system. Once registered
successfully the therapist will be redirected to the login screen

4.1.1.4. Patient Details

Here the therapist is to fill in the details of the patient alongside with the
patient’s date of birth history, emergency contact number and so on.

4.1.1.5. Treatment Details

Once all details are filled in, the therapist is to select from the screen what
treatment is prescribed to the patient. The treatment given as of now is
based on the frequency, intensity, time and type of treatment given.

4.1.1.6. Prescription

Here the final screen with all the details to be shown in the prescription
are displayed. The therapist then has the option of printing the
prescription.

12
4.2. Diagrams:
4.2.1. Use Case
 A use case diagram at its simplest is a representation of a user's interaction with the
system that shows the relationship between the user and the different use cases in
which the user is involved. A use case diagram can identify the different types of
users of a system and the different use cases and will often be accompanied by other
types of diagrams as well.

13
4.2.2. Entity-Relationship
 An entity–relationship model (ER model for short) describes interrelated things of
interest in a specific domain of knowledge. A basic ER model is composed of entity
types (which classify the things of interest) and specifies relationships that can exist
between instances of those entity types.

14
4.2.3. Activity
 Activity diagrams are graphical representations of workflows of stepwise activities
and actions with support for choice, iteration and concurrency.

15
4.3. DFD
 A data flow diagram (DFD) is a graphical representation of the "flow" of data through
an information system, modelling its process aspects.

16
5. SYSTEM IMPLEMENTATION

Main.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ja1;

import java.awt.event.*;
import java.awt.*;

/**
*
* @author cristin
*/
public class Mainpage extends javax.swing.JFrame {

/**
* Creates new form Mainpage
*/
public Mainpage() {
initComponents();
}

public void close(){


WindowEvent winClosingEvent = new
WindowEvent(this,WindowEvent.WINDOW_CLOSING);

17
Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-
BEGIN:initComponents
private void initComponents() {

mainbg = new javax.swing.JLabel();


jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();

setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

mainbg.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/ja1/217390_gallery-for-physiotherapy-hd-
wallpapers_2560x1600_h-2.jpg"))); // NOI18N

jMenu1.setText("Registration ");

jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent
.VK_L, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem1.setText("Log In");

18
jMenuItem1.setCursor(new
java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem1);

jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent
.VK_R, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem2.setText("Sign Up");
jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem2ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem2);

jMenuBar1.add(jMenu1);

setJMenuBar(jMenuBar1);

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());


getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mainbg, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);

19
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mainbg)
);

pack();
}// </editor-fold>//GEN-END:initComponents

private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-


FIRST:event_jMenuItem1ActionPerformed
SignIn ob1=new SignIn();
ob1.setVisible(true);
close();
}//GEN-LAST:event_jMenuItem1ActionPerformed

private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-


FIRST:event_jMenuItem2ActionPerformed
Register ob1=new Register();
ob1.setVisible(true);
close();
}//GEN-LAST:event_jMenuItem2ActionPerformed

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and
feel.

20
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(Mainpage.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(Mainpage.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Mainpage.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Mainpage.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */

21
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Mainpage().setVisible(true);
}
});
}

// Variables declaration - do not modify//GEN-BEGIN:variables


private javax.swing.JMenu jMenu1;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JMenuItem jMenuItem2;
private javax.swing.JLabel mainbg;
// End of variables declaration//GEN-END:variables
}

22
6. RESULTS

6.1. Test Case:

Test Test Expected Outcome


Case Output
No.

1 Register page registers Yes Yes


the user and redirects to
the login page

2 Log in page redirects to Yes Yes


the Patient details page

3 Patient details page Yes Yes


registers the patient
details

4 Patient details page Yes Yes


redirects to the treatment
page.

5 Treatment Page registers Yes Yes


treatment selected by the
therapist.

6 Prescription is generated Yes Yes


with all selected details

7 Prescription is printable Yes Yes

23
6.2. Tables:

Patient table

Therapist Table

Treatment table

24
6.3. Reports:
For the patient Emily Mathew, the treatment prescribed by Dr. Carol Johnson will look as follows:

On clicking the print Button, the print option will be available.

25
6.4. ScreenShots:

Home page

Sign In Page

26
Registration Page

27
Patient Detail Page

28
Treatment Detail Page

29
7. CONCLUSION AND FUTURE SCOPE

CONCLUSION:

In today’s generation, everyone knows how to use a computer, so why not use
a computer to its full use in every field of life.

Physiotherapy being a strenuous job, ‘PthPG’ helps reduce a tiny bit of


workload on the Therapist and Generate prescription using an application
rather than having to sit down and write down every detail.

Physiotherapy Prescription Generator will not only help reduce the burden of
writing prescription but also save time and give readable and fast
prescriptions generated virtually, saving paper and the prescription generated
can be printed out or emailed once saved as a file.

FUTURE SCOPE:

1. Patient Details can be listed and viewed


2. Patients with similar treatments can be cross checked with.
3. Can be modified according to the therapist’s treatment modification
4. Previous patient details can auto filled if the details are in the database
for future prescription generation.
5. Treatments, Sub Treatments can be added.

30
8. REFERRENCES
Links:

https://www.javatpoint.com/java-jframe
https://docs.oracle.com/javase/7/docs/api/javax/swing/JFrame.html
https://www.javatpoint.com/java-swing
https://coderanch.com/t/339783/java/Print-JFrame-components
https://stackoverflow.com/questions/15467165/adding-a-print-button-to-jpanel
https://www.c-sharpcorner.com/UploadFile/fd0172/display-records-from-database-in-a-new-frame-in-
java/
https://stackoverflow.com/questions/12764634/printing-a-jframe-and-its-components
https://www.dreamincode.net/forums/topic/103201-how-to-view-retrived-data-form-database-to-
jlabel/
https://1bestcsharp.blogspot.com/2015/06/java-display-image-from-jtable-to-jlabel.html
https://stackoverflow.com/questions/15823986/netbeans-jframe-initialization-build-is-fine-but-no-
window-is-made
https://www.geeksforgeeks.org/jlabel-java-swing/
https://www.geeksforgeeks.org/java-swing-jtextfield/

Books:

RamezElmasri&ShamkantB.Navathe, Fundamentals of Database Systems, Pearson Education, Sixth


Edition, 2010.
Joel Murach, Murach’s MySQL, Murach, 2012
Object Oriented Modeling and Design with UML, Michel Blaha, James Rambaug, Second Edition, Pearson
Using HTML 4, XML & JAVA by Eric Ladd & Jim O’Donnell. (Platinum Edition) (PHI)
Web Technologies -Black Book Series, DT Editorial Service, Dream Tech Press.
HTML5 Black Book: Covers CSS3, JAVASCRIPT, XML,XHTML, AJAX, PHP and JQUERY DreamTech Press.
Beginning PHP6, Apache, MySQL Web Development, Timothy Boronczyk, Wrox Publication.
Mike Mcgrath, “PHP & MySQL in Easy Steps”, Tata McGraw Hill
Learning PHP, MySQL, JavaScript, CSS & HTML5, 3rd Edition by Robin Nixon
Herbert Schildt, Java The Complete Reference, Ninth Edition, McGraw-Hill Education, 2014
E. Balagurusamy, Programming with Java, Tata McGraw-Hill Education India, 2014
Programming in JAVA, 2nd Ed, Sachin Malhotra & Saurabh Choudhary, Oxford Press
The Java Tutorials: http://docs.oracle.com/javase/tutorial/
Operating Systems: Internals and Design Principles, 8th edition, William Stallings; Prentice Hall
Operating Systems, 3rd edition, Gary Nutt; Pearson/Addison Wesley.
Modern Operating Systems, 3rd edition, Andrew S. Tanenbaum; Prentice Hall.

31

You might also like