Versions Compared

Key

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

Image Removed

Table of Contents

Process Model

Image Added


StatusUsage StateDescriptionTerminal State (Y|N)
ActiveNewused_by_legal_entity is emptySigned and active available for usage service request, patient is not in the queueN
ActiveNewused_by_legal_entity is not emptyService Request is used by some legal entity i.e. patient is in the queue but provision of the ordered service has not been started yetN
In Progress
Service Request is being processed i.e. provision of the ordered service has been started, but not completed yetN
Completed
Service Request has been processedYEntered In ErrorService Request is recalled because of human mistake in the process of creationYCancelledService Request is cancelled because of absence of necessity and other reasons (for example fraud)Y

...

, feedback is givenY

State Transition

From (Status)To (Status)To (Usage State)MethodNotification to Event Manager (Y|N)Notification to Patient (Y|N)
Active
New-

used_by_legal_entity is populated by calling legal entity

Use Service Request YN
Active
New-

used_by_legal_entity is cleared

Release Service RequestYN
Active
NewIn Progress-

Make Service Request As In Progress

Submit Encounter Data Package

Change service request status to In progress

YN
In ProgressCompleted-

Mark Service Request As Completed (Kafka Consumer on Close Episode)

Dispense Service Request

YY

Validity Model

Image Added


StatusDescriptionTerminal State (Y|N)
Active
N
Entered In ErrorService Request is recalled because of human mistake in the process of creationY
CancelledService Request is cancelled because of absence of necessity and other reasons (for example fraud)Y

State Transition

From (Status)To (Status)To (Usage State)MethodNotification to Event Manager (Y|N)Notification to Patient (Y|N)
ActiveEntered In Error-Recall Service RequestYY
ActiveCancelled-

Cancel Service Request

Auto Cancel Service Request

YY

...