Documente Academic
Documente Profesional
Documente Cultură
T hi s is a n
exp la n a to ry n o te
1
“Registering a Patient “ Sequence Diagram “Updating a Calendar“ Sequence Diagram
aInterface aCalendar :
: Staff
Calendar
System GHRS
: ActorPatient : Administrator ShowCalendar()
GetCalendar()
This is a hypothetical
AnnounceArrival() object meant to represent
actor system interaction.
Real objects will replace
ProvideDetails() the system object shown EnterRosterDetails()
here in detailed diagrams
VerifyCalendar()
Ent erDetails()
Separate Sequence Separate Sequence
VerifyDetails()
Diagrams will apply
ValidateRosterDetails() diagrams need to be
if Insufficient Details
are provided by
created if there are
VerifyMedi calInsuranceDetails() Patients conflicting Rosters
UpdateCalendar()
CreatePatientRecord()
CreatePatientRecordID()
AcceptedRosterDetails()
SpecifyInitialConsultationDetails()
displayPayment( )
ProvidePhysicianList()
Veirfy BpayStat ement()
Calendar is
Select Physician() separately
updated by acceptPayment( )
Get AvailableDate&Tim e() Doctor (Staff) in
terms of their
UpdateBill( )
availability
SelectDate&Time()
GenerateReceipt()
UpdateCalendar()
ConfirmReceipt()
Confirm Date&Time()
2
Ingredients of an Interaction Overview
Diagram
Sub Module #
ref
EnquirySequence
NO
"BookingAvailable?"
BooksConsultation
ref r e f
Interaction Overview OrdersTests WritesPrescriptions
State, Transitions
Private?
YES
r e f
PlacesInsuranceClaim
NO
3
Ingredients of a State Machine
Diagram States, Transitions
• States Describe the Values of Attributes of an
Object
• An object in a State:
' ! – Performs some action.
( +
– Waits for an event.
• Transition makes
[ CorrectDetails ]
) * * %
an object change its State
/ acceptPolicy
Sub-module Registered
Surgi cal
For OutPatient,
Admitted Consulting follow
Operated
Recovered
Released
4
“Consultation“ State Machine “Bill Payment“ State Machine
Diagram Diagram
Open
Available
Generated PartPaid
[ Cancelled ]
Booked
SuperStates for
Consultation Objects
Issued [ PastDueDate ] Overdue
Closed
Provided
Paid?
Yes No
Billed
Paid Defaulted
5
Conclusions
• Sequence diagrams in
Interaction between Collaborating Objects
Interaction between Actors and System.
• Naming an interaction overview diagram
• State machine diagrams show various states of
the object during its lifecycle.