Versions Compared

Key

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

...

StatusUsage StateDescriptionTerminal State (Y|N)
ActiveIs Used = falseused_by_legal_entity is emptySigned and active for usage service request, patient is not in the queueN
ActiveIs Used = trueused_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 processedY
Entered In Error
Service Request is cancelled because of human mistake in the process of creationY
Cancelled
Service Request is cancelled because of absence of necessity and other reasons (for example fraud)Y

...

State Transitions

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

Is Used = Trueused_by_legal_entity is populated by calling legal entity

Use Service Request YN
Active-

Is Used = Falseused_by_legal_entity is cleared

Release Service RequestYN
ActiveIn Progress-

Make Service Request As In Progress

Submit Encounter Data Package

YN
In ProgressCompleted-

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

Dispense Service Request

YY
ActiveEntered In Error-Recall Service RequestYY
ActiveCancelled-

Cancel Service Request

Auto Cancel Service Request

YY
In ProgressCancelled-Cancel Service RequestYY
CompletedCancelled-Cancel Service RequestYN

...