Amazon SQS Sample 270-271 Profile Workflow
The profile receives an EDI 270 Health Care Eligibility/Benefit Inquiry from the queue 270 Amazon SQS , validates the data, and if valid, the corresponding route component sends the data to the queue 270_To_Back_End. If the validation fails, the route sends a fake error message from the directory ${XESProfileConfig}/270-271/fake-error to the queue 270_invalid. The route that emulates the processing of a transaction from the queue 270_valid sends back a 271 response. The profile pushes the resulting data onto the Amazon SQS queue.
The profile contains the following routes:
270 Request Validation
Reads an original transaction from a queue, validates the transaction, and sends the transaction to the back end using the Amazon SQS queue.
Route Structure
Route Components
| Read Request From 270 queue
|
Amazon SQS Inbound |
Scans the Amazon SQS queue 270.fifo and reads messages, if any. |
| Validate source data
|
XE Native |
Validates the incoming EDI 270 Health Care Eligibility/Benefit Inquiry transactions. |
| If source data is valid
|
Router |
Checks the XEServer property ErrorCount and directs the message to the corresponding output. |
| Save source on 270_To_Back_End queue for further processing
|
Amazon SQS Outbound |
Sends valid transactions to the route Back End Emulation and 271 return through the queue 270_To_Back_End.fifo. |
| Read fake error response
|
FS Inbound |
Picks up the fake message from the directory ${XESProfileConfig}/270-271/fake-error when the transaction validation fails. |
| Save on 270_invalid queue
|
Amazon SQS Outbound |
Sends a fake message to the Amazon SQS queue 270_invalid.fifo. |
Back End Emulation and 271 return
This route emulates the back end processing of valid 270 transactions received from the route 270 Request Validation.
Route Structure
Route Components
| Read Source Data From 270_To_Back_End queue
|
Amazon SQS Inbound |
Scans the Amazon SQS queue 270_To_Back_End and reads messages, if any. |
| Processing Emulation Delay
|
Delay |
Applies 2 seconds of delay to emulate data processing. |
| Read Fake 271 Response
|
FS Inbound |
Picks up fake 271 responses from the directory ${XESProfileConfig}/270-271/fake-271. |
| Save on 271 queue
|
Amazon SQS Outbound |
Sends fake 271 responses to the Amazon SQS queue 271.fifo. |