Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Image Added

Refehhal has been already used and taken into work
StatusDescriptionTerminal State (Y|N)
ActiveSigned and active for usage referralN
UsedReferral has been already used and could not be used anymore without rolling backN
In ProgressN
CompletedReferral has been processedY
Entered In ErrorReferral is cancelled because of human mistake in the process of creationY
CancelledReferral is cancelled because of absence of necessity and other reasons (for example fraud)Y


State Transitions

FromToMethodNotification to Event Manager (Y|N)Notification to Patient (Y|N)
ActiveIn Use-UseServiceRequestYYNUsed
ActiveRollBackServiceRequestYYUsedIn ProgressMarkServiceRequestAsInProgress (through CreateEncounter)-ReleaseServiceRequestYN
In ProgressActiveCompletedMarkServiceRequestAsCompleted MarkServiceRequestCompleted (through CloseEpisode)YN
ActiveEntered In ErrorMarkServiceRequestAsEnteredInErrorRecallServiceRequestYY
ActiveCancelledMarkServiceRequestAsCancelledCancelServiceRequestYYUsedCancelledMarkServiceRequestAsCancelledYY
In ProgressCancelledMarkServiceRequestAsCancelledYY
CompletedCancelledMarkServiceRequestAsCancelledYN

Open Questions 

QuestionAnswer
There are cases, when sending notification about transition of referral to status B is not very necessary (because it has happen from status A) and due to cost of notification may not be implemented, and at the same time there are cases, when sending notification about transition to status B is obligatory (because it has happen from status C). How we can handle it?