2 Patients Route

This route receives a request for information on a patient. The route extracts the requested data from the FHIR Server based on the request parameters. As the date of birth is not a mandatory request parameter, the route might retrieve information on a few patients with the same first and last names. The route splits the data received from the FHIR Server into separate JSON-formatted files, one for each patient. All the files are batched into a single message, and the corresponding route component sends the resulting data back through an HTTP response.

Route Structure

Da Vinci Profile Scheduling Generic Practitioner Route

Route Components Description

Component Name Component Type Description
Request Patients RESTful Web Service Inbound Receives an HTTP request for information on a specific patient.
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 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.