1b Generate and Save to Local FHIR Server Route

This subroute creates an Alert Message Bundle and a DocumentReference resource with metadata about the Alert Message Bundle, stores this bundle and the DocumentReference resource with metadata to the Payer's FHIR Server, and returns the bundle to the main route.

Route Structure

Route Components Description

Component Name Component Type Description
Get Patient-Conditions-Encounters Parent Route Input Picks up data from the parent route.
Build Bundle Groovy Transforms the patient's data (conditions, encounters, coverage, and observations resources) into an Alert Message Bundle.
Bundle building error RESTful Web Service Outbound Sends back an internal server error message.
Contains Patient Router Checks to see if the bundle contains the property hasPatient.
404 No Patient RESTful Web Service Outbound Sends back an error message that the patient data could not be retrieved.
Contains entries Router Checks to see if the bundle contains any data on conditions, encounters, coverage, and observations.
400 Bad Request RESTful Web Service Outbound Sends back an error message that the request body could not be processed.
Save Bundle FHIR System Action Submits the bundle to the Payer's FHIR Server.
If Debug Mode_1 Router Checks to see if the debug mode is enabled. By default, the value of the property DebugMode in the profile environment is set to false.
Log Bundle FS Outbound Saves the bundle to the file system, if the debug mode is enabled.
Get Bundle ID JSON Value Extractor Extracts the bundle ID and the bundle creation date from the incoming request and passes the data as message properties.
Return Bundle Parent Route Output Sends the Alert Message Bundle for further processing on the parent route.
Build DocRef Groovy Creates a DocumentReference with metadata on the Alert Message Bundle.
Save DocRef FHIR System Action Submits the DocumentReference to the Payer's FHIR Server.
If Debug Mode Router Checks to see if the debug mode is enabled.
Log DocRef FS Outbound Saves the DocumentReference to the file system, if the debug mode is enabled.