Route function calls to Encounter Search via REST
Recipe ToolsDeveloper ToolAPI Integration
What it does
When someone calls this function, this automation searches for an encounter in the Lookup Table. It validates the encounter ID and performed date, then sends the result to a REST endpoint so the caller receives the response.
Who it's for
Engineering teams who need to route function calls to an encounter system without building custom integrations.
How teams use this
Route encounter lookups from external systems
Call this function from another application to search encounters and get results back via REST without manual steps. The lookup and response happen in real time.
Validate encounter data before processing
Check that the encounter ID and performed date exist before sending the request downstream via REST. Only valid records move forward to the endpoint.
Add custom field mapping to the response
Include additional fields from the encounter record in the REST request by setting up variable transformations. The function returns a richer payload to the caller.
How it works
- Receive the function call. A real-time function call arrives with encounter details like ID and performed date time.
- Search the Lookup Table for the encounter. Look up the encounter record in the Lookup Table using the ID from the function call to retrieve matching data.
- Send the result via REST request. Post the encounter data to the REST endpoint so the caller receives the response immediately with all matched records.