Request Patients
|
RESTful Web Service Inbound |
Receives an HTTP request for information on a specific patient. |
405 Method Not Allowed
|
RESTful Web Service Outbound |
Sends back an error message that the request type used is invalid. |
Required Params
|
Router |
Selects the parameters required to look up a patient. |
GET Patients
|
FHIR System Action |
Extracts the requested information from the FHIR Server in the form of a FHIR Bundle. |
OK?
|
Router |
Checks to see if the requested information 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. |
Parse JSON
|
JSON Value Extractor |
Extracts the requested data from the incoming Bundle and saves the data in the form of message properties. |
Exists?
|
Router |
Checks to see if the requested information was successfully retrieved. |
200 OK
|
RESTful Web Service Outbound |
Sends out an HTTP response stating that no such patient data is available. |
For Each Patient
|
Groovy |
Splits the data in the properties file by patient.
|
Build JSON
|
Velocity |
Restructures the incoming data based on the Velocity template that is available. |
Aggregate
|
Aggregation |
Aggregates all the requested data into a single file. |
200 OK
|
RESTful Web Service Outbound |
Sends back the requested data. |