Request Practitioners
|
RESTful Web Service Inbound |
Receives a GET request through the RESTful Web Service. |
HTTP
|
Router |
Redirects the data processing flow based on the request type. |
405 Method Not Allowed
|
RESTful Web Service Outbound |
Sends back an error message if the request type used is not allowed. |
Required Params
|
Router |
Checks to see if the incoming request is for a specific practitioner or for the whole list of available ones. |
GET Practitioners
|
FHIR System Action |
Generates a FHIR Bundle in the form of a JSON file with the requested data. |
OK?
|
Router |
Checks to see if the FHIR Bundle has been created successfully. |
500 Internal Server Error
|
RESTful Web Service Outbound |
Sends out an HTTP response with an internal server error message if a Bundle is not created. |
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. |
Get Total
|
JSON Value Extractor |
Extracts the total number of available practitioners from the FHIR Bundle and saves the data in the form of a properties file. |
Exists?
|
Router |
Checks to see if the incoming Bundle contains at least one practitioner and sends the data for further processing. Otherwise, the component triggers the RESTful Web Service to send out a response to the FHIR Server. |
200 OK
|
RESTful Web Service Outbound |
Sends out an HTTP response stating that no practitioners are available. |
Process Bundle
|
Groovy |
Splits the FHIR Bundle into separate files by practitioners. |
Build JSON
|
Velocity |
Restructures the incoming FHIR bundles based on the provided Velocity template. |
Aggregate
|
Aggregation |
Batches all the incoming files. |
200 OK
|
RESTful Web Service Outbound |
Sends back an HTTP response with a list of available practitioners. |