Status | Usage State | Description | Terminal State (Y|N) |
---|---|---|---|
Active | used_by_legal_entity is empty | Signed and active for usage service request, patient is not in the queue | N |
Active | used_by_legal_entity is not empty | Service Request is used by some legal entity i.e. patient is in the queue but provision of the ordered service has not been started yet | N |
In Progress | Service Request is being processed i.e. provision of the ordered service has been started, but not completed yet | N | |
Completed | Service Request has been processed | Y | |
Entered In Error | Service Request is recalled because of human mistake in the process of creation | Y | |
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) | Method | Notification to Event Manager (Y|N) | Notification to Patient (Y|N) |
---|---|---|---|---|---|
Active | - | used_by_legal_entity is populated by calling legal entity | Use Service Request | Y | N |
Active | - | used_by_legal_entity is cleared | Release Service Request | Y | N |
Active | In Progress | - | Make Service Request As In Progress Submit Encounter Data Package | Y | N |
In Progress | Completed | - | Mark Service Request As Completed (Kafka Consumer on Close Episode) Dispense Service Request | Y | Y |
Active | Entered In Error | - | Recall Service Request | Y | Y |
Active | Cancelled | - | Cancel Service Request Auto Cancel Service Request | Y | Y |