This 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
- Update service request status to in process (see Referrals State Model)
- Add transition to Event Manager
{"serverDuration": 265, "requestCorrelationId": "5288c1ac1ca240fa84f15bf2ed8d5a9c"}