Alternative medicine hospital

 

Written by:Assaf Raman

 

 

 

 

CRC Cards:

Named object

Named objects manager

Patient

Patients manager

Room

Rooms manager

Section

Sections manager

Department

Departments manager

Wing

Wings manager

Examination

Examinations manager

Security manager

User

Users manager

Hospital

Administrator

Doctor

Checkin counter

Lab

 

 

 

Sequence diagrams:

Login

Logout

Add examination to patient

Checkin patient

Checkout patient

Handle users list

Handle patients list

Handle wings list

Handle departments list

Handle sections list

Handle rooms list

 

 

 

Named object

Description:

 

Remark:

 

Attributes:

  • unique id
  • name
  • attributes list

 

 

 

 

Named object

Subclasses:

            Named objects manager

            Patient

            Room

            Examination

            User

            Hospital

 

Responsibility:

Collaborator(s):

 

Know to update data from the user

 

update attributes data from user

Room

Checkin counter

Administrator

 

Know to allocate

 

create

Lab

Checkin counter

Administrator

 

delete

 

 

 

 

Responsibilities used in sequence diagrams:

·                    Know to update data from the user

·                    Know to allocate

 

 

 

 

 

 

Named objects manager

Description:

 

Remark:

 

Attributes:

  • objects list

 

 

 

 

Named objects manager

Superclass: Named object

Subclasses:

            Patients manager

            Rooms manager

            Sections manager

            Departments manager

            Wings manager

            Examinations manager

            Users manager

 

Responsibility:

Collaborator(s):

 

Know manage objects list

 

create and add a new object to the list

Examination

User

Users manager

Patient

Patients manager

Wing

Wings manager

Department

Section

Room

 

add an object to the list

Users manager

Patients manager

Wings manager

Wing

Department

Section

 

remove an object from the list

 

find object by id

 

 

 

 

Responsibilities used in sequence diagrams:

·                    Know manage objects list

 

 

 

 

 

 

Patient

Description:

 

Remark:

 

Attributes:

  • room
  • examinations list
  • is checked in

 

 

 

 

Patient

Superclass: Named object

 

Responsibility:

Collaborator(s):

 

Know examinations history

 

get examinations manager

 

Know room

 

set room

Room

 

set not in a room

Room

 

 

 

This card is used in the following sequence diagrams:

·                    Add examination to patient

·                    Checkin patient

·                    Checkout patient

·                    Handle patients list

 

Responsibilities used in sequence diagrams:

·                    Know examinations history

·                    Know room

 

 

 

 

 

 

Patients manager

Description:

 

Remark:

 

Attributes:

 

 

 

 

Patients manager

Superclass: Named objects manager

 

Responsibility:

Collaborator(s):

 

 

 

This card is used in the following sequence diagrams:

·                    Add examination to patient

·                    Checkin patient

·                    Checkout patient

·                    Handle patients list

 

 

 

 

 

 

Room

Description:

 

Remark:

 

Attributes:

  • current number of patients in room
  • max number of patients in room

 

 

 

 

Room

Superclass: Named object

 

Responsibility:

Collaborator(s):

 

Know patients in room

 

add patient

 

remove patient

 

 

 

This card is used in the following sequence diagrams:

·                    Checkin patient

·                    Checkout patient

·                    Handle rooms list

 

Responsibilities used in sequence diagrams:

·                    Know patients in room

 

 

 

 

 

 

Rooms manager

Description:

 

Remark:

 

Attributes:

 

 

 

 

Rooms manager

Superclass: Named objects manager

Subclasses:

            Section

 

Responsibility:

Collaborator(s):

 

 

 

 

 

 

 

 

 

Section

Description:

 

Remark:

 

Attributes:

 

 

 

 

Section

Superclass: Rooms manager

 

Responsibility:

Collaborator(s):

 

 

 

This card is used in the following sequence diagrams:

·                    Handle sections list

·                    Handle rooms list

 

 

 

 

 

 

Sections manager

Description:

 

Remark:

 

Attributes:

 

 

 

 

Sections manager

Superclass: Named objects manager

Subclasses:

            Department

 

Responsibility:

Collaborator(s):

 

 

 

 

 

 

 

 

 

Department

Description:

 

Remark:

 

Attributes:

 

 

 

 

Department

Superclass: Sections manager

 

Responsibility:

Collaborator(s):

 

 

 

This card is used in the following sequence diagrams:

·                    Handle departments list

·                    Handle sections list

 

 

 

 

 

 

Departments manager

Description:

 

Remark:

 

Attributes:

 

 

 

 

Departments manager

Superclass: Named objects manager

Subclasses:

            Wing

 

Responsibility:

Collaborator(s):

 

 

 

 

 

 

 

 

 

Wing

Description:

 

Remark:

 

Attributes:

 

 

 

 

Wing

Superclass: Departments manager

 

Responsibility:

Collaborator(s):

 

 

 

This card is used in the following sequence diagrams:

·                    Handle wings list

·                    Handle departments list

 

 

 

 

 

 

Wings manager

Description:

 

Remark:

 

Attributes:

 

 

 

 

Wings manager

Superclass: Named objects manager

 

Responsibility:

Collaborator(s):

 

Know find rooms for patients

 

find room for patient

 

 

 

This card is used in the following sequence diagrams:

·                    Checkin patient

·                    Handle wings list

·                    Handle departments list

 

Responsibilities used in sequence diagrams:

·                    Know find rooms for patients

 

 

 

 

 

 

Examination

Description:

 

Remark:

 

Attributes:

 

 

 

 

Examination

Superclass: Named object

 

Responsibility:

Collaborator(s):

 

 

 

This card is used in the following sequence diagrams:

·                    Add examination to patient

 

 

 

 

 

 

Examinations manager

Description:

 

Remark:

 

Attributes:

 

 

 

 

Examinations manager

Superclass: Named objects manager

 

Responsibility:

Collaborator(s):

 

 

 

This card is used in the following sequence diagrams:

·                    Add examination to patient

 

 

 

 

 

 

Security manager

Description:

 

Remark:

 

Attributes:

 

 

 

 

Security manager

 

Responsibility:

Collaborator(s):

 

Know Login

 

login

Users manager

User

Security manager

 

Know login state

 

set state - loged in

Security manager

 

set state - loged out

Security manager

 

 

 

This card is used in the following sequence diagrams:

·                    Login

·                    Logout

 

Responsibilities used in sequence diagrams:

·                    Know Login

·                    Know login state

 

 

 

 

 

 

User

Description:

 

Remark:

 

Attributes:

  • password

 

 

 

 

User

Superclass: Named object

 

Responsibility:

Collaborator(s):

 

Know verify user data

 

verify user password

 

 

 

This card is used in the following sequence diagrams:

·                    Login

·                    Handle users list

 

Responsibilities used in sequence diagrams:

·                    Know verify user data

 

 

 

 

 

 

Users manager

Description:

 

Remark:

 

Attributes:

 

 

 

 

Users manager

Superclass: Named objects manager

 

Responsibility:

Collaborator(s):

 

 

 

This card is used in the following sequence diagrams:

·                    Login

·                    Handle users list

 

 

 

 

 

 

Hospital

Description:

 

Remark:

 

Attributes:

  • users manager
  • security manager
  • wings manager
  • patients manager

 

 

 

 

Hospital

Superclass: Named object

 

Responsibility:

Collaborator(s):

 

Know main managers

 

get users manager

 

get security manager

 

get wings manager

 

get patients manager

 

 

 

This card is used in the following sequence diagrams:

·                    Add examination to patient

·                    Checkin patient

·                    Checkout patient

 

Responsibilities used in sequence diagrams:

·                    Know main managers

 

 

 

 

 

 

Administrator

Description:

 

Remark:

 

Attributes:

 

 

 

 

Administrator

 

Responsibility:

Collaborator(s):

 

Know handle users

 

add user

Users manager

User

 

update user

 

delete user

 

handle existing user

Users manager

User

 

Know handle wings

 

add wing

Wings manager

Wing

 

handle existing wing

Wings manager

Wing

 

Know handle departments

 

add department

 

handle existing department

 

Know handle sections

 

add section

Department

Section

 

handle existing section

Department

Section

 

Know handle rooms

 

add room

Section

Room

 

handle existing room

Section

Room

 

 

 

This card is used in the following sequence diagrams:

·                    Handle users list

·                    Handle wings list

·                    Handle departments list

·                    Handle sections list

·                    Handle rooms list

 

Responsibilities used in sequence diagrams:

·                    Know handle users

·                    Know handle wings

·                    Know handle departments

·                    Know handle sections

·                    Know handle rooms

 

 

 

 

 

 

Doctor

Description:

 

Remark:

 

Attributes:

 

 

 

 

Doctor

 

Responsibility:

Collaborator(s):

 

 

 

 

 

 

 

 

 

Checkin counter

Description:

 

Remark:

 

Attributes:

 

 

 

 

Checkin counter

 

Responsibility:

Collaborator(s):

 

Know checkin\checkout

 

checkin patient

Hospital

Patients manager

Patient

Wings manager

 

checkout patient

Hospital

Patients manager

Patient

 

Know handle patients list

 

add patient

Checkin counter

Patients manager

Patient

 

update patient

Checkin counter

Patients manager

Patient

 

 

 

This card is used in the following sequence diagrams:

·                    Checkin patient

·                    Checkout patient

·                    Handle patients list

 

Responsibilities used in sequence diagrams:

·                    Know checkin\checkout

·                    Know handle patients list

 

 

 

 

 

 

Lab

Description:

 

Remark:

 

Attributes:

 

 

 

 

Lab

 

Responsibility:

Collaborator(s):

 

Know to add examination to a patient

 

add examination to patient

Hospital

Patients manager

Patient

Examinations manager

 

 

 

This card is used in the following sequence diagrams:

·                    Add examination to patient

 

Responsibilities used in sequence diagrams:

·                    Know to add examination to a patient

 

 

 

 

 

 

Login

 

Actors:

·                    user :

 

Objects:

·                    security manager : Security manager

·                    users manager : Users manager

·                    user object of human user : User

 

 

 

 

 

Logout

 

Actors:

·                    user :

 

Objects:

·                    security manager : Security manager

 

 

 

 

 

Add examination to patient

 

Actors:

·                    lab clerk \ doctor \ nurse :

 

Objects:

·                    hospital : Hospital

·                    patients manager : Patients manager

·                    the patient examinations : Examinations manager

·                    new examination : Examination

·                    lab : Lab

·                    patient object : Patient

 

 

 

 

 

Checkin patient

 

Actors:

·                    checkin counter clerk :

 

Objects:

·                    hospital : Hospital

·                    patients manager : Patients manager

·                    patient object : Patient

·                    wings manager : Wings manager

·                    room that was found : Room

·                    checkin counter : Checkin counter

 

 

 

 

 

Checkout patient

 

Actors:

·                    checkin counter clerk :

 

Objects:

·                    hospital : Hospital

·                    patients manager : Patients manager

·                    patient object : Patient

·                    room that was found : Room

·                    checkin counter : Checkin counter

 

 

 

 

 

Handle users list

 

Actors:

·                    administrator user :

 

Objects:

·                    administrator : Administrator

·                    users manager : Users manager

·                    user object : User

 

 

 

 

 

Handle patients list

 

Actors:

·                    checkin counter :

 

Objects:

·                    checkin counter : Checkin counter

·                    patients manager : Patients manager

·                    patient object : Patient

 

 

 

 

 

Handle wings list

 

Actors:

·                    administrator user :

 

Objects:

·                    administrator : Administrator

·                    wings manager : Wings manager

·                    wing object : Wing

 

 

 

 

 

Handle departments list

 

Actors:

·                    administrator user :

 

Objects:

·                    administrator : Administrator

·                    wing object : Wing

·                    department object : Department

·                    wings manager : Wings manager

 

 

 

 

 

Handle sections list

 

Actors:

·                    administrator user :

 

Objects:

·                    administrator : Administrator

·                    department object : Department

·                    section object : Section

 

 

 

 

 

Handle rooms list

 

Actors:

·                    administrator user :

 

Objects:

·                    administrator : Administrator

·                    section object : Section

·                    room object : Room