Sync encounter data from function calls to lookup table

Recipe ToolsDeveloper ToolAPI Integration

What it does

When someone makes a function call, this automation searches for encounter data in the Rest service. It validates the result and stores it in a lookup table so the data is ready for the next step.

Who it's for

Engineering teams who need to validate and store encounter records from real-time function calls.

How teams use this

Validate encounter records on receipt

When a function call arrives, search for the encounter and confirm it exists before storing the data. The automation stops if the ID is not found, preventing bad records from entering the lookup table.

Route encounters to different systems

Use the lookup table to send encounter data to a CRM or ERP based on the encounter type. Only the destination system changes, not the validation logic.

Add encounter metadata to the record

Include a step that checks for and stores additional fields like facility code or provider ID alongside the encounter object. Set up conditional logic to handle missing metadata gracefully.

How it works

  1. Receive the function call. A real-time function call arrives with a token ID and starts this automation to process and validate the encounter data.
  2. Search for the encounter. Call Encounter Search via Rest to look up the encounter ID and retrieve the matching record from the system.
  3. Update the lookup table. Store the encounter object in the lookup table with the token ID so the data persists and is available for downstream processes.