0% found this document useful (0 votes)
4 views

Main Program Flowchart

The document outlines a flowchart for a main program that allows users to manage doctor and patient records. It includes options for adding, displaying, updating, searching, and deleting records for both doctors and patients, along with error handling for invalid choices. Each module is detailed with specific steps for record management, ensuring a structured approach to data handling.

Uploaded by

panditanushka07
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Main Program Flowchart

The document outlines a flowchart for a main program that allows users to manage doctor and patient records. It includes options for adding, displaying, updating, searching, and deleting records for both doctors and patients, along with error handling for invalid choices. Each module is detailed with specific steps for record management, ensuring a structured approach to data handling.

Uploaded by

panditanushka07
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

MAIN PROGRAM FLOWCHART

START

1. Doctor
2. Patient
3. Exit

ch=ENTER CHOICE

(1,2,3)

If ch==1 YES D

NO

YES
If ch==2 P

NO

YES
if ch==3
STOP

Print “Invalid Choice”


DOCTOR BASED MODULE FLOWCHART
YES
D If ch==1 D1

NO

YES
START
If ch==2 D2
==

NO
1.Add Doctor Record YES
2.Display Record If ch==3 D3

3.Update Record

4.Search Record NO

5.Delete Record YES


If ch==4 D4
6.Exit

NO

Ch = Enter choice (1,2,3,4,5,6) YES


If ch==5 D5

NO

YES
If ch==6 STOP

NO
Print ‘’Invalid Choice”
FLOWCHART FOR ADDING DOCTOR RECORD

D1

Generate Doctor ID Automatically

Enter Doctor Name

Enter Doctor Degree

Enter Doctor Address

Print ‘’Record Added Successfully”


FLOWCHART FOR DISPLAY DOCTOR RECORD
D2

Display All Doctor Record

FLOWCHART FOR UPDATING DOCTOR RECORD

D3

Enter Doctor ID To Be Updated

Enter Doctor Name

Enter Doctor Degree

Enter Doctor Address

Print “Doctor Record Updated”


FLOWCHART FOR SEARCHING DOCTOR RECORD

D4

Enter Doctor Id

Display Doctor Record

FLOWCHART FOR DELETING DOCTOR RECORD

D5

Enter Doctor Id

Delete Doctor Record


PATIENT BASED MODULE FLOWCHART
YES
P If ch==1 P1

NO

YES
START
If ch==2 P2

NO
1.Add Patient Record YES
2.Display Patient Record If ch==3 P3

3.Update Patient Record

4.Search Patient Record NO

5.Delete Patient Record YES


If ch==4 P4
6.Exit

NO

Ch = Enter choice (1,2,3,4,5,6) YES


If ch==5 P5

NO

YES
If ch==6 STOP

NO
Print ‘’Invalid Choice”
FLOWCHART FOR ADDING PATIENT RECORD

P1

Generate Patient ID Automatically

Enter Patient Name

Enter Patient Age

Enter Patient Disease

Enter Patient Admit Date

Enter Patient Discharge Date

Print ‘’Record Added Successfully”


FLOWCHART FOR DISPLAY PATIENT RECORD
P2

Display All Patient Record

FLOWCHART FOR UPDATING PATIENT RECORD

P3

Enter Patient ID To Be Updated

Enter Patient Name

Enter Patient Age

Enter Patient Disease

Enter Patient Admit Date

Enter Patient Discharge Date

Print “Patient Record Updated”


FLOWCHART FOR SEARCHING PATIENT RECORD

P4

Enter Patient Id

Display Patient Record

FLOWCHART FOR DELETING PATIENT RECORD

P5

Enter Patient Id

Delete Patient Record

You might also like