Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Data Sync & ETL

Data Sync & ETL

Save lab results as FHIR LOINC Observations and alert Slack on flagged values

Receives lab result payloads via webhook, maps them to LOINC-coded FHIR Observation resources with duplicate protection, and optionally sends Slack alerts for flagged values.

What it does

## INPUT FORMAT Required: lab_order_id, patient_id, test_identifier, value, unit, collected_at Strongly recommended: result_id (stable unique id — best duplicate protection) Optional: patient_name, patient_birth_date (YYYY-MM-DD), patient_gender (male|female|other|unknown) json { "lab_order_id": "ORD-DEMO-2026-8819", "patient_id": "patient-demo-4482", "patient_name": "Synthetic Patient", "patient_birth_date": "1980-01-15", "patient_gender": "unknown", "test_identifier": "potassium", "value": 6.4, "unit": "mmol/L", "collected_at": "2026-10-05T09:15:30.000Z", "result_id": "RESULT-DEMO-001" } patient_id = external identifier (system|patient_id), not the FHIR Patient resource id. collected_at must include a timezone (Z or ±HH:MM).

The steps

  1. Receive Lab Result
  2. Validate Input
  3. Map Test
  4. Check Duplicate
  5. Build Observation
  6. Send Observation
  7. Check Result
  8. Critical Result?
  9. Send Alert
  10. Continue?
  11. Finalize Response
  12. Send Response
  13. Settings
  14. Prepare Patient Search

23 steps in total.

Similar automations