1 of 45

MEDICAL ASSISTANT

2 of 45

Problem Statement

Design a virtual java application to provide assistance to medical staff in a hospital under given sets of information.

3 of 45

VALIDATIONS

  • Name should not contain numbers/special characters.
  • Phone number should not contain special chars/alphabets.
  • Entered symptoms should be present in symptoms.txt file.
  • Unfound symptoms should be present in medical dictionary

4 of 45

VALIDATIONS

  • New Passwords must be of length 8.
  • Username must be of length 4 and must contain an alphabet

5 of 45

SPECIFICATIONS FOR �USER

  • Mails you your forgotten password.
  • Lets you create new users.
  • Displays the probable diseases when you enter your symptoms.
  • Allows you to Delete desired records.
  • Mails you the data of your symptoms and probable disease.

6 of 45

Project Directory Structure

7 of 45

Project Directory Structure

8 of 45

Sign Class

  1. Contains methods to check user name and password.
  2. Enters mail.
  3. Contains Welcome Page.

9 of 45

Checking username �method

10 of 45

Checking password�method

11 of 45

Entering Mail Method

12 of 45

WELCOME PAGE

13 of 45

Register Class

  1. Asks the patient for first name, last name and phone number.
  2. Verifies first name, last name and phone number

14 of 45

Registering Patient

15 of 45

Validating �Registration

16 of 45

OUTPUT

17 of 45

Symp_Enterer Class

Provides user option to pick symptom from a file “symptoms.txt”

18 of 45

Entering Symptoms

19 of 45

Entering Symptoms

20 of 45

OUTPUT

21 of 45

Diagnosis Class

Tells the patient his disease on basis of symptoms entered.

22 of 45

Printing disease by entered �Symptoms

23 of 45

Printing disease by entered �Symptoms

24 of 45

Printing disease by entered �Symptoms

25 of 45

Printing disease by entered �Symptoms

26 of 45

CSV Class

Adds the record of all patients in a file

27 of 45

Adding record to file

28 of 45

Adding record to file

29 of 45

Adding record to file

30 of 45

OUTPUT

31 of 45

Recommend Class

Recommends the patient for tests according to their disease

32 of 45

Recommending Disease

33 of 45

Recommending Disease

34 of 45

Recommending Disease

35 of 45

Main() Method

Provides the patient with patient I’d

36 of 45

Main()

37 of 45

Main()

38 of 45

Main()

39 of 45

PROJECT COMPILATION

  1. First compile exception classes
  2. javac -d classes/src/com/ncu/exceptions/*.java
  3. CSV filename validator compilation
  4. javac -cp classes/;libs/; activation.jar;mail.jar; techsoftemail.jar; -d classes/ src/com/ncu/ validators/NameValidator.java

3. Compilation of other files with jar files

  • javac -cp classes/;libs/; activation.jar;mail.jar; techsoftemail.jar; -d classes/ src/com/ncu/main/ *.java

40 of 45

PROJECT COMPILATION

  1. Running the main class
  2. java -cp classes/;libs/; activation.jar;mail.jar; techsoftemail.jar com.ncu.main.Sign

41 of 45

OUTPUT

42 of 45

OUTPUT

43 of 45

OUTPUT

44 of 45

OUTPUT

45 of 45