A service request automatically becomes 'In progress' when the first encounter, that refers to it, is created.
The job is created on Submit Encounter Data Package#Postprocessing, in case there are incoming referrals in the request.
Consumer logic
- Validate message
- in case of error - write message to log, move to error queue
- Ensure that entity exists
- in case of error - write message to log, move to error queue
- Validate transition
- Check service request status (must be 'active')
- in case of error - write message to log, set message as processed
- Check service request status (must be 'active')
- Update service request status to in process (see Referrals State Model - V1)
- Add transition to Event Manager