Professional Documents
Culture Documents
Physiotherapy Prescription Generator: Ms. Cristin Johnson
Physiotherapy Prescription Generator: Ms. Cristin Johnson
Submitted by
Ms. CRISTIN JOHNSON
[05]
5
SANPADA COLLEGE OF COMMERCE AND TECHNOLOGY
CERTIFICATE
It is further certified that she has completed all required phases of the project.
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.
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,
T.Y.B.Sc. (CS)
7
Index
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
8 REFFERENCES 31
8
1. TITLE: Physiotherapy Prescription Generator
Proposed System:
Features:
Physiotherapists who will prescribe the dosage and give fixed exercises will use the
application.
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.
10
3. REQUIREMENT SPECIFICATIONS
Tools:
• NETBEANS
• WAMP
• MySQL Workbench
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
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.
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();
}
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() {
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);
19
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mainbg)
);
pack();
}// </editor-fold>//GEN-END:initComponents
/**
* @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>
21
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Mainpage().setVisible(true);
}
});
}
22
6. RESULTS
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:
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 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:
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:
31