Beruflich Dokumente
Kultur Dokumente
Project Report On
Group Number:- 04
1. Aniket Shrivastava College Institute of Technology and Marine Engineering Roll 09144001049 2. Payel Ghosh College Future Institute of Engineering and Management Roll 08148001029 3. Soumya Kanti Ghosh College Future Institute of Engineering and Management Roll 08148001039 4. Soumyadeep Chakraborty College Future Institute of Engineering and Management Roll 08148001003 5. Tridivraj Bhattacharyya College Future Institute of Engineering and Management Roll 08148001023
CERTIFICATE
This is to certify that Outdoor Patient Doctors Booking System embodies the original work done by Aniket Shrivastava of INSTITUTE OF TECHNOLOGY AND MARINE ENGINEERING (2009-2013) with Roll 09144001049 during this project submission as a partial fulfillment of the requirement for the Globsyn Skills Summer Training Program.
CERTIFICATE
This is to certify that Outdoor Patient Doctors Booking System embodies the original work done by Payel Ghosh of FUTURE INSTITUTE OF ENGINEERING AND MANAGEMENT (2008-2012) with Roll 08148001029 during this project submission as a partial fulfillment of the requirement for the Globsyn Skills Summer Training Program.
CERTIFICATE
This is to certify that Outdoor Patient Doctors Booking System embodies the original work done by Soumya Kanti Ghosh of FUTURE INSTITUTE OF ENGINEERING AND MANAGEMENT (2008-2012) with Roll 08148001039 during this project submission as a partial fulfillment of the requirement for the Globsyn Skills Summer Training Program.
CERTIFICATE
This is to certify that Outdoor Patient Doctors Booking System embodies the original work done by Soumyadeep Chakraborty of FUTURE INSTITUTE OF ENGINEERING AND MANAGEMENT (2008-2012) with Roll 08148001003 during this project submission as a partial fulfillment of the requirement for the Globsyn Skills Summer Training Program.
CERTIFICATE
This is to certify that Outdoor Patient Doctors Booking System embodies the original work done by Tridivraj Bhattacharyya of FUTURE INSTITUTE OF ENGINEERING AND MANAGEMENT (2008-2012) with Roll 08148001023 during this project submission as a partial fulfillment of the requirement for the Globsyn Skills Summer Training Program.
ACKNOWLEDGEMENT
We are grateful to our teacher and project guide Mr. Gautam Das for the guidance, inspiration and constructive suggestions that helped us in the preparation of this project.
Aniket Shrivastava Payel Ghosh Soumya Kanti Ghosh Soumyadeep Chakraborty Tridivraj Bhattacharyya
CONTENTS: Brief Description Purpose Scope Goals of propose system Functional Requirement Software/Hardware Required Entity Relationship Diagram Data Table and View Descriptions Data Flow Diagram Screen Shots Code Data Validations Future Enhancement References
Brief Description
1. Purpose The Software is for the automation of Outdoor Patient Doctors Appointment System. It maintains single level of user: Operator Level The Software includes:i) Maintaining Patient Details. ii) Maintaining Doctor Details. iii) Providing details of availability of doctors. iv) Providing appointment details for each doctor and patient. v) Bill generation vi) Providing Income Details of a particular centre. 2. Scope It can be used in any Clinic for maintaining outdoor patient doctors appointment details. 3. Goals of proposed system a. Planned approach towards working: - The working in the organization will be well planned and organized. The data will be stored properly in data stores, which will help in retrieval of information as well as its storage. b. Accuracy: - The level of accuracy in the proposed system will be higher. All operation would be done correctly and it ensures that whatever information is coming from the center is accurate. c. Reliability: - The reliability of the proposed system will be high due to the above stated reasons. The reason for the increased reliability of the system is that now there would be proper storage of information.
Functional Requirements
Descriptions of Data: The software can be used to maintain all the general details for a doctor or a patient in separate databases as well as the appointment details for each. It can also be used to maintain the final bill information paid by the patient. Descriptions of Operations: At the beginning the operator for each centre logs into the respective centre details using their user id and password. For each patient, the operator is able to save/update his/her details. It also keeps track of the details of doctors attending the clinic. When a patient comes up and requests an appointment with a certain doctor the software searches for that doctors availability for that centre. If available the software instantly proceeds to set an appointment for the patient within the available time. The software can list the details of various appointments already set. It also provides an interface for the operator to add new doctors who will be attending the centre henceforth. Last but not the least the software generates the bill for a particular customer and also keeps track of it in a database and thus provides total income details of a centre to the management. Description of Users: The system is available for all the operators in each centre. They can input, edit and even use the interfaces for viewing purposes.
Software/Hardware Required
Hardware Requirements
Processor Pentium IV or higher (minimum 200 Mhz) Operating System Windows XP, Windows 7, Windows 2000 with SP 1 or higher RAM 512 MB (recommended) Disk Space 1.5 GB Virtual Memory Double the amount of RAM
32 or 64 bit
Oracle 10g
Centre Bill
N N
Fees to be paid
1 N
Retrieve
Date
Of
Doctor Details
N Has Did
For
Doctor
Dname
Patient
PName
Contact Has
Category
2. CENTRE TABLE:Field Name CEN_ID CEN_LOC C_ID Data Type NUMBER VARCHAR2 NUMBER Constraints Primary Key Description Centre ID Location Centre ID
3. PATIENT TABLE:Field Name P_ID P_NAME P_ADDR P_CONTACT P_GEN P_AGE Data Type NUMBER VARCHAR2 VARCHAR2 NUMBER VARCHAR2 NUMBER Constraints Primary Key Description Patient ID Patient Name Address Contact Number Gender Age
5. DOCTOR TABLE:Field Name D_ID D_NAME D_ADDR D_CONTACT D_GEN D_AGE D_CATID Data Type NUMBER VARCHAR2 VARCHAR2 NUMBER VARCHAR2 NUMBER NUMBER Constraints Primary Key Description Doctor ID Doctor Name Address Contact Number Gender Age Category ID
C_ID
NUMBER
Centre ID
7. APPOINTMENT TABLE:Field Name D_ID Data Type NUMBER Constraints Foreign Key (D_ID of Doctor) Primary Foreign Key Key (P_ID of Patient) Description Doctor ID
P_ID
NUMBER
9. APPO_VIEW:Field Name D_NAME P_NAME C_ID A_DATE A_TIME Data Type VARCHAR2 VARCHAR2 NUMBER DATE VARCHAR2 Description Table Doctor Name Doctor Patient Patient Name Appointment Centre ID (DOCTOR.D_ID = Appointment APPOINTMENT.D_ID Date And Appointment PATIENT.P_ID = Time APPOINTMENT.P_ID)
Admin
Patient
Patient Provides Details Outdoor Patient Doctors Booking System Reports Management
Billing Operator
Level 0 DFD
Management
Creates Bill
Patient
Creates Appointment
Operator
Level 1 DFD
Creates Bill
Management
Creates Appointment
Operator
Level 2 DFD
Screen Shots
1. Will provide details for specific centre based on user login.
Code
1. /*****Login Button*****/ LOGIN: DECLARE v_actpass varchar2(10); v_givenpass varchar2(10); v_alertval integer; Begin select u_pass into v_actpass from bcure_users where u_id = :NAME; v_givenpass := :PASSWORD; IF v_givenpass = v_actpass THEN :global.u_id := :NAME; SELECT c_id INTO :global.v_cen FROM bcure_users WHERE u_id = :NAME; IF :global.u_id = 'admin' THEN call_form('K:\BECURE\ADMIN\MENU_FORM_ADM'); ELSE call_form('K:\BECURE\USER\MENU_FORM'); END IF; ELSE v_alertval := show_alert('ALERT_WRONGPASS'); IF v_alertval = 88 THEN
:FEES := v_totamount; EXCEPTION WHEN NO_DATA_FOUND :FEES := v_totamount; END; 11. /*****Check Bill for Discount Function*****/ CREATE OR REPLACE FUNCTION chk_bill (v_did IN bill.d_id%TYPE,v_pid IN bill.p_id%TYPE) RETURN BOOLEAN AS v_found BOOLEAN ; v_temp1 bill.d_id%TYPE ; v_temp2 bill.p_id%TYPE ; CURSOR billcursor (v_docid number,v_patid number) IS SELECT v_docid,v_patid FROM dual WHERE (v_docid in (SELECT distinct d_id FROM bill) AND v_patid in (SELECT distinct p_id FROM bill)); BEGIN OPEN billcursor(v_did,v_pid); FETCH billcursor into v_temp1,v_temp2; IF billcursor%FOUND THEN v_found := TRUE ; ELSE v_found := FALSE ; END IF; CLOSE billcursor;
SELECT fees INTO v_fee FROM doctor,category WHERE doctor.d_catid = category.cat_id AND doctor.d_id = :TEXT_DID; :TEXT_INCOME := (v_pno * v_fee); :global.position := 1;
SELECT fees INTO v_fee FROM doctor,category WHERE doctor.d_catid = category.cat_id AND doctor.d_id = :TEXT_DID; :TEXT_INCOME := (v_pno * v_fee); :global.position := :global.position - 1; EXIT; END IF; curr := curr +1 ; END LOOP; EXCEPTION WHEN NO_DATA_FOUND THEN :TEXT_INCOME := 0; :global.position := :global.position + 1; WHEN OTHERS THEN :TEXT_INCOME := 0; :global.position := :global.position + 1; END; 14. /*****Doctor Next Button*****/ DECLARE curr integer := 0 ; v_pno number(5); v_fee number(5); BEGIN FOR C IN (select distinct doctor.d_id docid,d_name from doctor,doc_details where doctor.d_id =doc_details.d_id and c_id= :global.v_cen order by d_name)
SELECT fees INTO v_fee FROM doctor,category WHERE doctor.d_catid = category.cat_id AND doctor.d_id = :TEXT_DID; :TEXT_INCOME := (v_pno * v_fee); :global.position := :global.position + 1; EXIT; END IF; curr := curr +1 ; END LOOP; EXCEPTION WHEN NO_DATA_FOUND THEN :TEXT_INCOME := 0; :global.position := :global.position + 1; WHEN OTHERS THEN :TEXT_INCOME := 0; :global.position := :global.position + 1; END;
Data Validations
1. /*****Function for checking duplicate patient ID*****/ create or replace FUNCTION dup_pid (v_pid number) RETURN BOOLEAN IS v_flag BOOLEAN; v_expid number(8); BEGIN SELECT p_id INTO v_expid FROM patient WHERE p_id = v_pid; IF SQL%FOUND THEN v_flag := TRUE; ELSE v_flag := FALSE; END IF; RETURN v_flag; END dup_pid;
3. /*****Function for checking duplicate category ID*****/ create or replace FUNCTION dup_catid (v_catid number) RETURN BOOLEAN IS v_flag BOOLEAN; v_excat number(3); BEGIN
4. /*****Function for checking duplicate bill ID*****/ create or replace FUNCTION dup_bid (v_bid number) RETURN BOOLEAN IS v_flag BOOLEAN; v_exbid number(8); BEGIN SELECT b_id INTO v_exbid FROM bill WHERE b_id = v_bid; IF SQL%FOUND THEN v_flag := TRUE; ELSE
5. /*****Function for prevention of appointment in booked slot*****/ create or replace FUNCTION dup_appo (v_time number,v_did number,v_date date) RETURN BOOLEAN IS v_flag BOOLEAN; v_extime number(4,2); BEGIN SELECT a_time INTO v_extime FROM appointment WHERE d_id = v_did and a_date=v_date and a_time=v_time; IF SQL%FOUND THEN v_flag := TRUE;
Future Enhancement
The software can become an integral part of the clinic management with further development Adding a few more details like medicine shop can transform the system to a basic patient management system. Apart from that it can also be used as a base for developing the entire clinic management system which can range from staff to tests done on patients as well as equipments and medicine.
Reference
1. http://sqlzoo.net/ 2. http://forums.oracle.com/ 3. http://www.java2s.com/