Top Banner
THE REPORT ENTITLED “HOSPITAL MANAGEMENT” Submitted By : B. Bharath Kumar HOSPITAL MANAGEMENT HOSPITAL MANAGEMENT Introduction to UML: A model is a simplification of reality that provides a complete
63
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hospital Management

THE REPORT ENTITLED

“HOSPITAL MANAGEMENT”

Submitted By:

B. Bharath Kumar

HOSPITAL MANAGEMENTHOSPITAL MANAGEMENT

Introduction to UML:

A model is a simplification of reality that provides a complete description of a system from a particular perspective. We build models so that we can understand the system we are modeling.

The main reasons for the modeling are:

1 Capture structure and technique.

Page 2: Hospital Management

2 Show how system elements fit together.

3 Keep design and implementation consistent.

4 Hide or expose details as appropriate.

5 Promote unambiguous communication.

Building blocks of UML:

*Things**Things*

*Relationships**Relationships*

*Diagrams**Diagrams*

Things in UML:

Structural things:Structural things:

*Classes*

*Interfaces*

*Collaborations*

*Use cases*

*Active Classes*

*Components*

*Nodes Classes*

Behavioral things:Behavioral things:

*Interactions*

*State machines*

Grouping things:Grouping things:

*Packages*

Annotational things:Annotational things:

*Notes*

Relationships in UML:

1.1. DependencyDependency

2.2. AssociationAssociation

3.3. GeneralizationGeneralization

29

Page 3: Hospital Management

Diagrams in UML:

The diagrams are the actual graphs that show model element symbols of a system. There are different types of diagrams to represent the systems functionality and behavior.

Use Case Diagram:Use Case Diagram: To illustrate the user intersection with the system.

Class Diagram:Class Diagram: To illustrate logical structure.

Object Diagram:Object Diagram: To illustrate the physical structure of the software.

Deployment Diagram:Deployment Diagram: To shows the mapping of the software- hardware.

Interaction Diagram = Sequence &Collaboration:Interaction Diagram = Sequence &Collaboration: To illustrate behavior.

State Chart & Activity:State Chart & Activity: To illustrate flow of event diagram.

Use-case Diagram:Use-case Diagram:

A use case diagram shows interactions of actors with a system in terms of functions called use-case. A use case is description of a functionality that the system provides. The actors are external to the system but who interacts with the system; they may be external persons, external system and hardware.

Class Diagram:Class Diagram:

A class diagram shows the static structure of classes in the system. The classes represent the “things” that are handled in the system. Class can be related to each other in a number of ways: associated, dependent, specialized or packaged. Class represents attributes and operations.

Object Diagram:Object Diagram:

An object diagram is a variant of the class diagram and uses almost identical notation. The difference between the two is that an object diagram shows a number of object instances of classes, instead of actual classes. Objects are written in rectangular box with their names.

State Diagram:State Diagram:

A state diagram is typically a component to the description of a class. It shows all possible states that the object of the class can have and which events cause the state to change. An event can be another object that sends a message to it. A change is called a transition.

Sequence Diagram:Sequence Diagram:

A sequence diagram shows a dynamic collaboration between a numbers of objects and shows an interaction between objects.

Collaboration Diagram:Collaboration Diagram:

It is similar to a sequence diagram however the relationships are only shown. If time or sequence of events is important then sequence diagrams are more relevant.

Activity Diagram:Activity Diagram:

An activity diagram shows a sequential flow of activities. This is typically used to describe the activities performed in an operation.

39

Page 4: Hospital Management

Component Diagram:Component Diagram:

A component diagram shows the physical structure of the code in terms of code components .a component can be a source code component, a binary component or an executable component. A component contains information about logical class or classes it implements.

Deployment DiagramDeployment Diagram:: A deployment diagram serves to model the hardware used in system implementations, the

components deployed on the hardware, and the associations between those components.

Software Requirement Specification1. INTRODUCTION:

1.1. Purpose:

-The purpose is for automation of Hospital Management.

-It maintains two levels of users

-Admission level

-User level

-Software includes

49

Page 5: Hospital Management

-Maintaining patient details.

-Providing prescription, Precautious and Diet advice.

-Providing and maintaining all kinds of tests for a patient.

-Billing and report generation.

1.2. Scope:

It can be used in any hospital, clinic, dispensary or pathology labs for maintaining patient details and other test results.

1.3. Technology to be used

It is a desktop application to be developed in VB6.0 having MS Access as background

-Database Design (MS Access).

-Form design (VB6.0).

2.OVERALL DESCRIPTION

2.1. Goals of proposed system:

1: 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.

2: Accuracy: The level of accuracy in the proposed system will be higher. All operation would be done correctly and it ensures whatever information is coming from the center is accurate.

3:Reliability:The reliability of proposed system will be high due to the above stated reasons.The reason for increased reliability of system is that now there would be proper storage of information.

4: No Redundancy: In the proposed system utmost can would be that no information is repeated anywhere, in storage or otherwise. This would assure economic use of storage space and consistency in the data stored.

5: Immediate Retrieval of information: The main objective of proposed system is to provide for a quick and efficient retrieval of information. Any type of information would be available whenever the user requires.

6: Immediate storage of information: In manual system there are many problems to store the largest amount of information.

7: Easy to operate: The system should be easy to operate and should be such that it can be developed with in a short period of time and fit in the limited budget of the user.

2.3. User Characteristics:

Every user should be

-Comfortable of working with computer.

59

Page 6: Hospital Management

-He must have knowledge in medical field.

-He must have basic knowledge of English too.

2.4. General Constraints :

-GUI is only in English

-login and password is used for identification of user and there is no facility of guest.

3. SPECIFIC REQUIREMENTS

3.1. External interface requirements:

3.1.1. User Interfaces :

HTML

3.1.2. Hardware Interfaces:

Keyboard, mouse.

3.1.3. Software Interfaces :

Rational Rose, Windows.

3.2. Functional Requirements:

3.2.1. Login Login :: The User needs to login providing there ID and password.

3.2.2. Edit Personal InfoEdit Personal Info :: Allows users to modify their details.

3.2.3. SearchSearch :: Allows users to search for Doctors information and other people in the Hospital.

3.2.4. LogoutLogout :: Allows the users to logout.

3.3 Non-Functional Requirements:

3.3.1 Performance Requirements:

Static requirements: Static requirements: Any number of users can login and access.

Dynamic requirements:Dynamic requirements: Query processing time is 10ms.

3.3.2 Design Constraints:

1 Page is only in English.

2 Login and password is used for the identification of the user and there is no facility for the guest.

3 Limited to HTTP/HTTPS.

4 This system is working for a single server.

3.3.3 Attributes:

System is reliable, dependable and interoperable.

69

Page 7: Hospital Management

USECASE DIAGRAMDEFINITION:

Use case Diagram is a collection of use cases, actors and relationships that exists between them.

Use-case diagrams graphically depict system behavior (use cases).

These diagrams present a high level view of how the system is used as viewed from an outsider’s (actor’s) perspective.

A use-case diagram may depict all or some of the use cases of a system.

CONTENTS:

79

Page 8: Hospital Management

A use-case diagram can contain:

1.Actors ("things" outside the system)

Actors represent system users.

An actor is someone or something that:

*Interacts with or uses the system

*Provides input to and receives information from the system

actor

2·use cases (system boundaries identifying what the system should do)

A more detailed description might characterize a use case as:

·A pattern of behavior the system exhibits

·A sequence of related transactions performed by an actor and the system

·Delivering something of value to the actor

usecase

3. Interactions or relationships between actors and use cases in the system including the associations, dependencies, and generalizations.

Association Relationship: -Association Relationship: -

An association provides a pathway for communication. The communication can be between use cases, actors, classes or interfaces. Associations are the most general of all relationships and consequentially the most semantically weak.

Association:

actor usecase1

Generalization Relationship:Generalization Relationship:

89

Page 9: Hospital Management

A generalize relationship is a relationship between a more general class or use case and a more specific class or use case. A generalization is shown as a solid-line path from the more specific element to a more general element.

actor1

actor2

actor3

Dependency Relationship:-Dependency Relationship:-

A dependency is a relationship between two model elements in which a change to one model element will affect the other model element.

full customer order

place order

reorder stock

<<include>>

<<extend>>

Use-Case Diagram for Hospital ManagementUse-Case Diagram for Hospital Management

99

Page 10: Hospital Management

admissions

doctor appointments

BedAllotment

UndergoOperations

test appointments

Receptionist

Expenditure

Staff/Nurse

InHouse

Consultants

DrawSalary

Doctors

FinanceManagementSystem

Login

AddDoctor/staff

Delete doctor/staff

EditDoctor/staff

RecordsSystem

WardWiseBedStatus

Admission/dischargeReports

PatientInformation

InformationSystem

Income

PrescribeTests

<<extend>>

<<extend>>

USECASE DESCRIPTION

109

Page 11: Hospital Management

Usecases: 1. Admissions

2. Doctor Appointments

3. Tests Appointments

4. Bed Allotment

5. Undergo Operation

6. Login

7. Draw Salary

8. Add Doctor/Staff

9. Delete Doctor/Staff

10. Edit Doctor/Staff

11. Prescribe Tests

12. Ward Wise Bed Status

13. Admission/Discharge Reports

14. Patient Information

Actors: 1. Receptionist

2. Doctors

3. Staff/Nurses

4. Income

5. Expenditure

6. Records System

119

Page 12: Hospital Management

7. Information System

ADMISSIONS:

This Module helps in registering information about patients and handles patient’s query. A unique ID is generated for each patient after registration. This helps in implementing customer relationship management and also maintains medical history of the patient.

DOCTOR APPOINTMENTS:

This Module Deals with, when the ID is generated the patient receives the Appointment time & number from the Receptionist and accordingly visit the doctor.

TESTS APPOINTMENTS:

This Module Deals with, when the ID is generated the patient receives the Appointment time & number from the Receptionist and accordingly undergoes the tests.

BED ALLOTMENT:

This Module handles with allotting the Bed to various patients by checking their ID.

UNDERGO OPERATION:

This Module handling with undergoes the various operations by diagnosing the patients.

LOGIN:

This Module checks whether the person is a Doctor/Staff and handles various activities such as draw Salary and give Salary.

DRAW SALARY:

This Module checks whether the person is a Doctor/Staff and draws salary based on the information.

ADD DOCTOR/STAFF:

This Module handles the activities such as adding Doctor/Staff information into the database.

DELETE DOCTOR/STAFF:

This Module handles the activities such as deleting Doctor/Staff information into the database.

EDIT DOCTOR/STAFF:

129

Page 13: Hospital Management

This Module handles the activities such as editing Doctor/Staff information into the database.

PRESCRIBE TESTS:

This Module handles various activities such as Doctor Diagnoses the patient, gives treatment & gives suggestions to the patients, & prescribes laboratory tests & medicines.

WARDWISE BED STATUS:

This Module takes care of medical equipment, doctor visit, vitals recording, patient case sheet, diet ordering, blood requisition, transfer intimation and discharge intimation etc. It also deals with the maintenance of the wards, inter- and intra-ward transfers.

ADMISSION/DISCHARGE REPORTS:

This Module helps in generating patient’s discharge summary, which includes patient’s health at the time of discharge, medical history, various diagnosis and drug prescriptions, history of present illness and course in hospital.

PATIENT INFORMATION:

This Module helps in generating the patient information which is provided by doctor.

INTERACTION DIAGRAM1. SEQUENCE DIAGRAM

DEFINITION:

A sequence diagram is a graphical view of a scenario that shows object interaction in a time based sequence¾what happens first, what happens next.

139

Page 14: Hospital Management

Sequence diagrams establish the roles of objects and help provide essential information to determine class responsibilities and interfaces.

There are two main differences between sequence and collaboration diagrams:

Sequence diagrams show time-based object interaction; while collaboration diagrams show how objects associate with each other.

The following tools located on the sequence diagram toolbox enable you to model sequence diagrams:

Object :

An object has state, behavior, and identity. The structure and behavior of similar objects are defined in their common class. Each object in a diagram indicates some instance of a class. An object that is not named is referred to as a class instance.

Message Icons :

A message icon represents the communication between objects indicating that an action will follow. The message icon is a horizontal, solid arrow connecting two lifelines together.

1:

Focus of Control :

Focus of Control (FOC) is an advanced notational technique that enhances sequence diagrams. It shows the period of time during which an object is performing an action, either directly or through an underlying procedure.

149

Page 15: Hospital Management

Sequence Diagrams for HospitalManagementSequence Diagrams for HospitalManagement

ADMISSIONS:

Patient Registration AppointmentIncome

1 : create()

2 : inpatient()

3 : register()

4 : addApptCharges()

5 : date()

6 : time()

159

Page 16: Hospital Management

DOCTOR APPOINTMENTS:

Patient Appointment TestsOperationsIncome

1 : ispatient()

2 : addApptCharges()

3 : date()

4 : time()

5 : docappt()

TESTS APPOINTMENTS:

169

Page 17: Hospital Management

Patient Appointments TestsOperationsIncome

1 : inpatient()

2 : addTestCharges()

3 : date()

4 : time()

5 : testappt()

BED ALLOTMENT:

179

Page 18: Hospital Management

Registration Ward ReportsIncome

1 : addWardCharges()

2 : allotBed()

3 : getname()

4 : dispWardStatus()

UNDERGO OPERATION:

189

Page 19: Hospital Management

IncomePatient TestsOperations

1 : ispatient()

2 : addoprcharges()

3 : getOpr()

LOGIN:

199

Page 20: Hospital Management

DoctorStaffEdit Expenditure

1 : isDoctor()

2 : isStaff()

3 : drawSalary()

4 : giveSalary()

DRAW SALARY:

209

Page 21: Hospital Management

ExpenditureDoctorSatff IncomeEdit

1 : isDoctor()

2 : isStaff()

3 : drawSalary()

4 : giveSalary()

ADD DOCTOR/STAFF:

219

Page 22: Hospital Management

DoctorStaffEdit

1 : isDoctor()

2 : isStaff()

3 : addDoctor()

4 : addStaff()

DELETE DOCTOR/STAFF:

229

Page 23: Hospital Management

DoctorStaffEdit

1 : isDoctor()

2 : isStaff()

3 : delDoctor()

4 : delStaff()

EDIT DOCTOR/STAFF:

239

Page 24: Hospital Management

DoctorStaffEdit

1 : isDoctor()

2 : isStaff()

3 : editDoc()

4 : editStaff()

PRESCRIBE TESTS:

249

Page 25: Hospital Management

DoctorStaff TestsOperations Reports

1 : addTestsCharges()

2 : getTests()

3 : AddisReport()

WARDWISE BED STATUS:

259

Page 26: Hospital Management

Ward ReportsPatient

1 : isPatient()

2 : allotBed()

3 : bedStatus()

4 : dispWardStatus()

ADMISSION/DISCHARGE REPORTS:

269

Page 27: Hospital Management

TestsOperations ReportsPatient

1 : isPatient()

2 : getTests()

3 : getOper()

4 : dispWardStatus()

5 : dispAddisReport()

PATIENT INFORMATION:

279

Page 28: Hospital Management

Patient Registration Reports

1 : isPatient()

2 : dispWardStatus()

3 : dispAddisReport()

4 : dispPattinfo()

2. COLLABORATION DIAGRAMS:

DEFINITION:

Collaboration diagrams and sequence diagrams are alternate representations of an interaction. A collaboration diagram is an interaction diagram that shows the order of messages that implement an operation or a transaction. A sequence diagram shows object interaction in a time-based sequence.

Object:

Definition:

An object has state, behavior, and identity. The structure and behavior of similar objects are defined in their common class. Each object in a diagram indicates some instance of a class. An object that is not named is referred to as a class instance.

Graphical Depiction

The object icon is similar to a class icon except that the name is underlined

289

Page 29: Hospital Management

Link:

Definition

Objects interact through their links to other objects. A link is an instance of an association, analogous to an object being an instance of a class.

Adornments:

You can document how objects see one another by specifying a visibility type on the general tab of the Link Specification or by selecting an item from the shortcut menu.

Message/Event:

Definition:

A message is the communication carried between two objects that triggers an event. A message carries information from the source focus of control to the destination focus of control.

Message Icons:

Overview:

A message icon represents the communication between objects indicating that an action will follow. The message icon is a horizontal, solid arrow connecting two lifelines together. Collaboration Diagrams for Hospital Management:: ADMISSIONS:

Patient Registration

Appointment Income

1 : create()

2 : inpatient()

3 : register()

4 : addApptCharges()

5 : date()

6 : time()

DOCTOR APPOINTMENTS:

299

Page 30: Hospital Management

Patient Appointment

TestsOperations

Income

1 : ispatient() 2 : addApptCharges() 3 : date()

4 : time()

5 : docappt()

TESTS APPOINTMENTS:

Patient Appointments

TestsOperations

Income1 : inpatient() 2 : addTestCharges()

3 : date()

4 : time()

5 : testappt()

BED ALLOTMENT:

309

Page 31: Hospital Management

Registration

Ward

Reports

Income

1 : addWardCharges()

2 : allotBed() 3 : getname()

4 : dispWardStatus()

UNDERGO OPERATION:

Income

Patient TestsOperations

1 : ispatient()

2 : addoprcharges()

3 : getOpr()

LOGIN:

319

Page 32: Hospital Management

DoctorStaff

Edit Expenditure

1 : isDoctor()

2 : isStaff()

3 : drawSalary()

4 : giveSalary()

DRAW SALARY:

ExpenditureDoctorSatff Income

Edit

1 : isDoctor()

2 : isStaff()

3 : drawSalary()

4 : giveSalary()

ADD DOCTOR/STAFF:

329

Page 33: Hospital Management

DoctorStaff

Edit

1 : isDoctor()

2 : isStaff()

3 : addDoctor()

4 : addStaff()

DELETE DOCTOR/STAFF:

DoctorStaff

Edit

1 : isDoctor()

2 : isStaff()

3 : delDoctor()

4 : delStaff()

EDIT DOCTOR/STAFF:

339

Page 34: Hospital Management

DoctorStaff

Edit

1 : isDoctor()

2 : isStaff()

3 : editDoc()

4 : editStaff()

PRESCRIBE TESTS:

DoctorStaff

TestsOperations

Reports

1 : addTestsCharges()2 : getTests()

3 : AddisReport()

WARDWISE BED STATUS:

349

Page 35: Hospital Management

Ward

Reports

Patient

1 : isPatient()2 : allotBed()

3 : bedStatus()

4 : dispWardStatus()

ADMISSION/DISCHARGE REPORTS:

TestsOperations Reports

Patient

1 : isPatient()

2 : getTests()

3 : getOper()

4 : dispWardStatus()

5 : dispAddisReport()

PATIENT INFORAMTION:359

Page 36: Hospital Management

Patient Registration

Reports

1 : isPatient()

2 : dispWardStatus()

3 : dispAddisReport()

4 : dispPattinfo()

CLASS DIAGRAMS

DEFINITION:

A class diagram shows the existence of classes and their relationships in the logical design of a system.

CONTENTS:

A class diagram contains:

1. Classes

2. Relationships

3. Interfaces

1) Classes:

Definition:

A class is a set of objects that share a common structure and common behavior (the same attributes, operations, relationships and semantics).

class

369

Page 37: Hospital Management

2) Relationships:

Aggregate Relationship:

Definition:

Use the aggregate relationship to show a whole and part relationship between two classes.

The class at the client end of the aggregate relationship is sometimes called the aggregate class. An instance of the aggregate class is an aggregate object. The class at the supplier end of the aggregate relationship is the part whose instances are contained or owned by the aggregate object.

suplier A client suplier B

Association Relationship:

An association provides a pathway for communication. The communication can be between use cases, actors, classes or interfaces. Associations are the most general of all relationships and consequentially the most semantically weak.

class1 class2association

Dependency Relationship:

A dependency is a relationship between two model elements in which a change to one model element will affect the other model element.

full order place order

Generalize Relationship:

Definition:-

A generalize relationship between classes shows that the subclass shares the structure or behavior defined in one or more super classes.

379

Page 38: Hospital Management

super class

subclass1 subclass2

Realize Relationship

Definition:

A realization is a relationship between classes, interfaces, components, and packages that connects a client element with a supplier element.

class

operation() interface

3) Interfaces

Definition:

An interface specifies the externally-visible operations of a class and/or component, and has no implementation of its own. An interface typically specifies only a limited part of the behavior of a class or component.

389

Page 39: Hospital Management

Class Diagram for Hospital ManagementClass Diagram for Hospital Management

Edit

addDoctor(argname) : IntegerdelDoctor(id : Integer)addstaff() : Integerdelstaff(id : Integer)editStaff(id : Integer)

Expenditure

amount : FloatBillNo : Integer

giveSalary(id : Integer)Expenditure()

DoctorStaff

id : Integername : VarCharage : Integeraddress : VarCharsex : Charsalary : Float

drawSalary()DoctorStaff()

1

1..*

1

1..*

doctorInfoEditing 1

1

1

1

drawSalary

Appointment

dt : Datetm : Time

Appointment()

Ward

wardNo : IntegernoBeds : Integername : VarChar

bedStatus() : IntegergetName(bedNo : Integer) : VarCharWard()

TestOperations

patientId : Integerid : Integerflag : Integer

opappt()testappt()docAppt()gettests(id : Integer) : IntegergetOper(id : Integer) : IntegerTestOperations()

1

1..*

1

1..*

Registration

register() : IntegerallotBed(id : Integer)Registration()

1..*

1

1..*

1

Reports

dispWardStatus()dispAddisReport(id : Integer)disppatInfo(id : Integer)Reports()

1

1

+theReports1

1

generates DischargeReport

Income

amount : FloatbilNo : Integer

addTestCharges() : FloataddOprCharges(id : Integer) : FloataddApptCharges(id : Integer) : FloataddWardCharges(id : Integer) : FloatIncome()

Patient

id : Integername : Stringage : Integeraddress : Stringsex : StringappDate : Date

Create(id : Integer) : IntegerIspatient() : Boolean

0..*

1..*

0..*

1..*

TakesAppointment

1

1

1

1

patientRegisters

1

1

1

1

displays PatientInfo

1

1

1

1

IssueBill

399

Page 40: Hospital Management

ACTIVITY DIAGRAMSDEFINITION:

Activity diagrams provide a way to model the workflow of a business process.

You can also use activity diagrams to model code-specific information such as a class operation.

CONTENTS:

Activity Diagram Tools:

You can use the following tools on the activity diagram toolbox to model activity diagrams:

Activities:-

An activity represents the performance of task or duty in a workflow. It may also represent the execution of a statement in a procedure.

Decisions: -

A decision represents a specific location on an activity diagram or state chart diagram where the workflow may branch based upon guard conditions.

End State:-

An end state represents a final or terminal state on an activity diagram or state chart diagram.

Start State:-

A start state (also called an "initial state") explicitly shows the beginning of a workflow on an activity diagram or the beginning of the execution of a state machine on a state chart diagram.

409

Page 41: Hospital Management

Swim lanes:-

Swim lanes are helpful when modeling a business workflow because they can represent organizational units or roles within a business model. Swim lanes are very similar to an object because they provide a way to tell who is performing a certain role. Swim lanes only appear on activity diagrams.

Forks and Joins:-

A fork construct is used to model a single flow of control that divides into two or more separate, but simultaneous flows. Every fork that appears on an activity diagram should ideally be accompanied by a corresponding join. A join consists of two of more flows of control that unite into a single flow of control.

Activity Diagram for Hospital ManagementActivity Diagram for Hospital Management

status activity:

log-in

biometric scan

update dba about employee presence

employee log-out , giving his info. to dba

419

Page 42: Hospital Management

Login act:

start

enter id,password

validating id n password

login

stop

wrong id n password

correct id n password

429

Page 43: Hospital Management

Salary:

login

access database and get working hours of each employee

calculate salary of indivisual

transfer money to indivisual employee's account

Activity using swimlane diagram:

439

Page 44: Hospital Management

449

Page 45: Hospital Management

STATE CHART DIAGRAMDEFINITION:

State chart diagrams model the dynamic behavior of individual classes or any other kind of object. They show the sequences of states that an object goes through, the events that cause a transition from one state to another and the actions that result from a state change.

States: -

A state represents a condition or situation during the life of an object during which it satisfies some condition or waits for some event.

Transitions:-

A state transition indicates that an object in the source state will perform certain specified actions and enter the destination state when a specified event occurs or when certain conditions are satisfied.

Each state represents a named condition during the life of an object during which it satisfies some condition or waits for some event. A state chart diagram typically contains one start state and multiple end states.

Start States: -

A start state (also called an "initial state") explicitly shows the beginning of a workflow on an activity diagram or the beginning of the execution of a state machine on a state chart diagram.

459

Page 46: Hospital Management

State Chart Diagrams for Hospital ManagementState Chart Diagrams for Hospital Management

PATIENT:

Enter Hospital

Takes Appointment

Undergo Diagnosis

Takes Treatment

Undergo lab Tests& Buy Medicines

gets cured

not cured

469

Page 47: Hospital Management

RECPTIONIST:

Takes Details os patient

Checks availabilty of doctor

gives appointment

gives bill

takes bill amount

479

Page 48: Hospital Management

DOCTOR:

Diagonise patient

Gives Treatment

Prescribes Medicines & tests

Cures the patient

489

Page 49: Hospital Management

Overall:

Appt. / admission

entry/ checking for admission or appointment

Bed status

event receptionist checking the free bed or lobby status for admission/ ...

admission

checking docter status for appointment issue

event receptionist checking doc status/

appointment

giving admission

do/ give admission

( Empty beds="NONE" )

giving appt.

do/ check docter status

docter appt. available

database updating

exit/ update changes to database...

( empty beds=0 )

499

Page 50: Hospital Management

COMPONENT DIAGRAMDEFINITION:

Component diagrams provide a physical view of the current model. A component diagram shows the organizations and dependencies among software components, including source code components, binary code components, and executable components.

Component diagrams contain:

Component packages: -

Component packages represent clusters of logically related components, or major pieces of your system.

Components: -

A component represents a software module (source code, binary code, executable, DLL, etc.) with a well-defined interface.

Interfaces:-

An interface specifies the externally-visible operations of a class and/or component, and has no implementation of its own. An interface typically specifies only a limited part of the behavior of a class or component.

Dependency relationships: -

A dependency is a relationship between two model elements in which a change to one model element will affect the other model element.

509

Page 51: Hospital Management

Component Diagram for Hospital ManagementComponent Diagram for Hospital Management

Appointment

DoctorStaff

Edit

Expenditure

Income

Patient

Registration

Ward

TestOperations

Reports

519

Page 52: Hospital Management

DEPLOYMENT DIAGRAM::

DEFINITION:

A deployment diagram shows processors, devices, and connections. Each model contains a single deployment diagram which shows the connections between its processors and devices, and the allocation of its processes to processors.

CONTENTS:-

Processor:-

A processor is a hardware component capable of executing programs.

Devices:-

A device is a hardware component with no computing power. Each device must have a name. Device names can be generic, such as "modem" or "terminal."

Connections:-

A connection represents some type of hardware coupling between two entities. An entity is either a processor or a device.

529

Page 53: Hospital Management

Deployment Diagram for Hospital ManagementDeployment Diagram for Hospital Management

UserSystem

os

server

It accepts the requ...

ISPDataBa

se

contains info of patie...

Input device

Monitor

Memory

Printer

acts as GUI and also...

E-R Diagram539

Page 54: Hospital Management

549