2 Send Bundle to Provider Route

This route receives a request for the Alert Message Bundle from the Provider. The route extracts the Alert Message Bundle ID from the incoming request, retrieves the FHIR Bundle from the Payer's FHIR server, and sends the data to the Provider.

Route Structure

Route Components Description

Component Name Component Type Description
Receive Bundle ID RESTful Web Service Inbound Receives a request to send an Alert Message Bundle generated by the Payer to the Provider.
HTTP Router Checks the request type.
405 Method Not Allowed RESTful Web Service Outbound Sends back an error message that the request type used is not allowed.
Get Bundle ID JSON Value Extractor Extracts the Alert Message Bundle ID from the request.
Required Params Router Checks to see if the Bundle ID has been successfully extracted from the incoming request.
400 Bad Request RESTful Web Service Outbound Sends back an error message that the request body could not be processed.
Get Bundle FHIR System Action Retrieves the Alert Message Bundle from the Payer's FHIR Server.
OK? Router Checks to see if the requested FHIR Bundle has been successfully retrieved from the FHIR Server.
Any Error Error Channel Inbound Triggers the 500 Internal Server Error to send out an internal server error HTTP response when there are processing errors.
500 Internal Server Error RESTful Web Service Outbound Sends out an internal server error message.
POST Bundle to Provider REST Client Submits the Alert Message Bundle to the Provider.
If Debug Mode Router Checks to see if the debug mode is enabled.
Log Request FS Outbound Saves the Alert Message Bundle to the file system, if the debug mode is enabled.
Get possible error message Groovy Processes the status message received from the FHIR Server.
Router Router Checks to see if the response contains any error messages.
Error Response RESTful Web Service Outbound Generates an HTTP response with an error code and an error message (if any) from the response.
200 Response RESTful Web Service Outbound Sends back a message indicating that the Alert Message Bundle has been successfully submitted to the Provider.