{"product_id":"webhook-lab-results-to-fhir-r4-observations-loinc-slack-alerts","title":"Webhook Lab Results to FHIR R4 Observations (LOINC) + Slack Alerts","description":"\u003ch3\u003eSend lab results to FHIR R4 Observations (LOINC) and get instant Slack alerts for critical values\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow accepts lab results via a \u003cstrong\u003e\/lab-result\u003c\/strong\u003e webhook, validates and maps each test to a \u003cstrong\u003eLOINC-coded FHIR R4 Observation\u003c\/strong\u003e, saves it to your FHIR server with duplicate protection, and can notify your team in \u003cstrong\u003eSlack\u003c\/strong\u003e when a result falls into a configurable \u003cem\u003epanic range\u003c\/em\u003e—without including patient identifiers in alerts.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives lab results\u003c\/strong\u003e through a POST request on the \u003ccode\u003e\/lab-result\u003c\/code\u003e webhook with a JSON payload.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates required fields and formats\u003c\/strong\u003e (including \u003cstrong\u003eISO timestamps\u003c\/strong\u003e) and normalizes the test identifier.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMaps tests to supported LOINC codes\u003c\/strong\u003e and expected units, then enriches the Observation with configurable \u003cstrong\u003ereference\u003c\/strong\u003e and \u003cstrong\u003epanic ranges\u003c\/strong\u003e (demo examples are configurable).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrevents duplicates\u003c\/strong\u003e using an \u003cstrong\u003eidempotency key\u003c\/strong\u003e, returning early if the result was already processed.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a FHIR R4 Observation\u003c\/strong\u003e linked to \u003ccode\u003ePatient\/{patient_id}\u003c\/code\u003e and sends the request with an \u003cstrong\u003eIf-None-Exist\u003c\/strong\u003e header to avoid re-creating the same Observation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers Slack alerts for critical results\u003c\/strong\u003e when the value is within the configured panic range and Slack alerts are enabled—posting a critical alert \u003cstrong\u003ewithout patient identifiers\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eRoute incoming lab results from a lab system or app to a \u003cstrong\u003eFHIR R4\u003c\/strong\u003e clinical repository.\u003c\/li\u003e\n  \u003cli\u003eEnsure Observations are consistent by enforcing \u003cstrong\u003eLOINC\u003c\/strong\u003e mapping and expected units.\u003c\/li\u003e\n  \u003cli\u003eOperational monitoring for critical lab findings using \u003cstrong\u003eSlack\u003c\/strong\u003e notifications with no patient identifying details.\u003c\/li\u003e\n  \u003cli\u003eBuild reliable, repeatable ingestion with webhook validation and duplicate protection.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e: POST endpoint at \u003ccode\u003e\/lab-result\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/logic\u003c\/strong\u003e: if, set, code, webhook, sticky note, http request\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFHIR integration\u003c\/strong\u003e: requires a reachable FHIR R4 base URL; posts an Observation linked to \u003ccode\u003ePatient\/{patient_id}\u003c\/code\u003e using HTTP \u003cstrong\u003eIf-None-Exist\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOptional auth\u003c\/strong\u003e: configure a Bearer token (or other HTTP auth) if needed\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack integration\u003c\/strong\u003e: sends critical alerts when panic-range conditions are met\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46190236106931,"sku":"N8N-20629","price":63.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/pfW0SPXKaErg7h5cSG2b1_cHN0AbtK.png?v=1791450844","url":"https:\/\/buyflowscripts.com\/products\/webhook-lab-results-to-fhir-r4-observations-loinc-slack-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}