Вы находитесь на странице: 1из 25

5/5/12

Hospital Manageme nt
Using Java with Spring and Click to edit Master subtitle Hibernate technology style

5/5/12

Patient module

Nguyn Tun Anh (leader) Phan An Tng Nguyn Trng Quc

Actor

Sequence datagram-add patient


5/5/12
Webpage PatientController 1 : User click on Add patient button 2 : Request Add patient form

3 : Return Add patient form 4 : User enter patient infos 5 : Subm form it 6 : validatePatient()

7 [unsuccessful] : return error m essage 8 [successful] : insertPatient() 9 : Return success/fail m essage

10 : addPatientAccount()

5/5/12 Sequence datagram-edit patient


Actor Webpage PatientController

1 : View list of patient 2 : getListOfPatient()

3 : return list of patients 4 : Click update button 5 : Request edit form

6 : Return edit form 7 : Edit information 8 : editPatient()

9 [unsuccessful] : show message error

10 [successful] : show success message

5/5/12 Sequence datagram-delete patient


Actor Webpage PatientController

1 : View list of patient 2 : getListOfPatient()

3 : return list of patients 4 : Click delete button 5 : Delete request

6 : Show confirmation message 7 : Confirm 8 : deletePatient()

9 [unsuccessful] : show message error

10 [successful] : show success message

5/5/12

Sequence datagram-view patient detail

Actor

Webpage

PatientController

1 : Click on patient link 2 : viewPatientDetail()

3 : Display result

Sequence datagram-search patient


5/5/12
Actor Webpage PatientController 1 : User click on search button 2 : Request search function

3 : Return search form 4 : Enter search criteria 5 : Submit 6 : searchPatient()

7 : Return list of result

Sequence datagram-edit medical record


Actor 1 : User view patient detail 2 : SHow medical record request 3 : getListOfMedicalRecord() Webpage

5/5/12

PatientController

4 : Return list of medical record 5 : click on edit record button 6 : Request edit record form

7 : Return edit form 8 : Edit record informations 9 : editMedicalRecord() 10 : validateMedicalRecord() 11 : Show success/fail message

Sequence datagram-delete medical record


Actor 1 : User view patient detail 2 : SHow medical record request 3 : getListOfMedicalRecord() Webpage PatientController

5/5/12

4 : Return list of medical record 5 : click on delete record button 6 : Request delete

7 : Confirmation message 8 : Confirm 9 : deleteMedicalRecord()

10 : Show success/fail message

class diagram
Pa t ie nt -long PID -String firstName -String lastName -Calendar DOB -String phone -String address -boolean gender -String maritalStatus +getters() +setters() 1

5/5/12
Pa t ie nt Cont ro lle r +insertPatient(Patient patient) +editPatient(long patientID) +deletePatient(long patientID) +List<Patient> getListOfPatient() +List<Patient> searchPatient() +addPatientAccount(Patient patient) +viewPatientDetail(long patientID) +addMedicalRecord(MedicalRecord mr) +viewMedicalRecord(long mrecordID) +List<MedicalRecord> getListOfMedicalRecord() +deleteMedicalRecord(long mrID) +editMedicalRecord(long mrID) +boolean validatePatient() +List<TreatmentEvent> getListOfEvent() +boolean validateMedicalRecord() M e dicine -...

1..* M e dic a lR e cor d -long mrecordID -Calendar startDate -String doctor -long presID -String insuranceProvider -String symptom -String notes +getters() +setters() Pre sc ript ion -long presID -long patientID -long medicinceID -long amount -long unitID +getters() +setters()

0..*

+...()

1 0..* -... +...() Unit

Patient management module

5/5/12

This module is used for the administrator, patient, and doctor of the Hospital website. module consist of 3 main functions that are manage patient, manage supervisor, manage medical record of patient.

This

Patient management module


This

5/5/12

module follows Spring MVC model and has some features:

Model Data Access Objects(DAO) Business Controller View (JSP)

Model Patient management


Model Patient

5/5/12

include 3 objects are Patient, Supervisor, and Medical Record table having 12 attributes.

Model Patient management


This

5/5/12

diagram expresses relationship of Patient with Supervisor and Medical Record .

DAO Patient management


Patient

5/5/12

management DAO delegates the

access to the data. Its functions include:


Provide the functions that interact with database. Main functions: select , insert, edit, delete, search patient, supervisor, and medical record in database.

Business Patient management


Patient

5/5/12

management business receives the input parameter from Controller and perform the operation with database by DAO object.

Controller- Patient management


The

5/5/12

controller receives user input and initiates a response by making calls on model objects. A controller accepts input from the user and instructs the model and view to perform actions based on that input gets all the parameters and invoke the Business functions to perform jobs.

It

Others- Patient management


Test:

5/5/12

Using JUnit test to check the function of project. providing useful functions for Hibernate.

Utils:

View (JSP)- Patient management


Web

5/5/12

pages show to Users

Patient module home page

5/5/12

5/5/12

View patient detail

View (JSP)-delete patient

5/5/12

View (JSP)-update patient

5/5/12

5/5/12

Problem
One

group members has left at the beginning of the course, one member just has a few contribution. Hence there are 2 remaining members, and the progress is affected. in system analysis and design due to lacking knowledge about hospital business. in designing some models, so we need to redesign the model and affect the progress.

Difficulties Problem

Achievement - Failure

5/5/12

Achievement project on time

Complete Apply

Spring, Hibernate, and others technology such as: tiles-view design, ajax, jquery, the teamwork ability: exchange work via online/offline activities. experiences when working in a real project

Improve Gain

Still

Failure

not interact with some feature of User group

Вам также может понравиться