Why n8n for healthcare starts with where ePHI flows
Healthcare teams want workflow automation across EHRs, FHIR servers and scheduling tools without moving patient data into a third-party cloud. The first design decision is therefore not which nodes to use but where every execution runs, where its data is stored and who can reach it. The HIPAA Security Rule in 45 CFR Part 164 Subpart C applies to covered entities and their business associates for all electronic protected health information they create, receive, maintain or transmit. Once n8n handles that data, each execution record, credential, webhook payload, binary file and log line becomes part of the environment an auditor or the HHS Office for Civil Rights may assess. Confirm with your privacy and security officers which systems hold ePHI before you draw the n8n boundary, because the boundary follows the data, not the server.
n8n is fair-code under the Sustainable Use License, not open source in the OSI sense. That license permits use or modification for your own internal business purposes, and distribution only free of charge for non-commercial purposes. A hospital or clinic using n8n internally to move records between its own systems is generally within that internal use grant, but a health tech company that embeds n8n in a product it sells to providers, or hands an instance to a vendor to run for customers, needs a license review first. Files with .ee in their name or directory fall outside the Sustainable Use License and require a valid n8n Enterprise License, so check which features you plan to rely on before the build starts. Read the n8n license terms with counsel rather than relying on a summary.
A healthcare build differs from a generic n8n install in four ways that follow from this boundary. The instance, its database and its worker hosts sit inside your network, with the encryption key handled as a protected secret because workers need it to read stored credentials. Access paths to EHR and FHIR endpoints are documented as data flows. Execution data retention and redaction are set before production, not after an incident. Access to the instance goes through your identity provider, and the plan you choose determines whether SSO and environments are available. Confirm each of these with your security team and your vendor contracts before you commit to a design.
Which healthcare requirements shape the n8n build
This table maps each healthcare requirement to its source and to the n8n setting or process decision it drives. Read each row as a question your build must answer, then confirm the answer with your privacy officer and security team. The main takeaway is that most HIPAA-driven choices in an n8n build are about where execution data lives, who can reach credentials, and how vendors are bound by contract.
| Requirement | What it asks for and source | Build implication in n8n |
|---|---|---|
| ePHI on infrastructure you control | The Security Rule covers ePHI that covered entities and business associates create, receive, maintain or transmit (45 CFR 164.302). | Host n8n, its PostgreSQL database and binary storage in your own environment. Confirm which execution data, webhook payloads and logs can contain patient identifiers. |
| Unique user identification | Technical safeguard standard 164.312 requires unique user identification as a required specification (Appendix A to Subpart C). | Use individual accounts through SSO rather than shared logins. SAML single sign-on requires a Business or Enterprise plan, so confirm your plan before design. |
| Emergency access procedure | Emergency access procedure is a required technical specification (Appendix A to Subpart C). | Document a break-glass owner account, its storage location and how access is logged and reviewed. Test the procedure before go-live. |
| Automatic logoff | Automatic logoff is an addressable technical specification (Appendix A to Subpart C), so you must assess whether it is reasonable and document the result (45 CFR 164.306(d)). | Set session timeouts for the editor and admin console through your identity provider and n8n settings. Record the timeout value and the reasoning in your risk file. |
| Encryption at rest and in transit | Both encryption specifications are addressable under 164.312 (Appendix A to Subpart C). | Encrypt the database and storage volumes, and terminate TLS at your reverse proxy. Protect the n8n encryption key, because queue mode workers need it to read stored credentials (n8n queue mode docs). |
| Business associate contract terms | A business associate contract must require Security Rule compliance, flow terms to subcontractors handling ePHI and require incident reporting (45 CFR 164.314(a)(2)(i)). | Identify every vendor or contractor who can reach n8n data, including any hosted AI model or SaaS node that receives patient data. Confirm contract terms before adding those nodes to a patient workflow. |
| Security incident reporting | Business associates must report security incidents, including breaches of unsecured PHI, to the covered entity (45 CFR 164.314(a)(2)(i)). | Enable audit and execution logs with retention that supports investigation, and define who receives alerts and how quickly they escalate. Confirm which log streaming option your plan includes. |
| Access control and need to know (GDPR Article 32) | CNIL fined Hopital Prive de la Loire EUR 500,000 on 3 September 2026 under GDPR Articles 32 and 34, citing external access without VPN or multi-factor authentication and access not limited to the care team's need to know. | Restrict external access to n8n behind a VPN or zero-trust gateway with multi-factor authentication. Use projects and roles so each team sees only the workflows and credentials it needs. |
Which n8n settings and integrations matter for clinical data
An n8n instance that touches patient data is shaped by a handful of settings: how workers share encryption keys, where the database lives, who can sign in, how changes are reviewed, and what execution records keep. The cards below cover the decisions to make before a clinical workflow goes live, and the checks to run on each one.
Queue mode and the shared encryption key
In queue mode, the main instance hands executions to worker processes through Redis, and those workers read credentials from the database. Every worker and webhook processor therefore needs the main instance's encryption key. Treat that key as a clinical secret: store it in a managed secrets store, restrict who can read it, and plan a rotation procedure before the first patient-facing workflow runs. Confirm how your chosen deployment injects the key into each container.
Queue mode docsPostgreSQL placement and access
Workers read and write workflow data and encrypted credentials in PostgreSQL, so the database is where ePHI-adjacent records accumulate. Place it on infrastructure you control, inside the same network boundary as the workers, and restrict connections to the n8n services only. Ask your database team to confirm encryption at rest, backup handling and who holds administrative access to the n8n schema.
SAML single sign-on and plan level
Clinical staff should sign in through your identity provider, not with local n8n accounts that outlive a role change. SAML single sign-on is available on the Business and Enterprise plans, and n8n publishes setup guides for Okta Workforce Identity and Azure AD. Confirm the current plan that includes SAML before you commit to a design, because feature availability changes between plan releases.
SAML setup docsEnvironments and Git for change control
A workflow that moves a patient record or triggers a clinical notification should not be edited directly in production. Environments backed by Git give you reviewable history and a promotion path from test to production. Git-backed environments are included only on the Business and Enterprise plans, so confirm this against the current pricing page before you plan your change process.
Log streaming to your audit systems
Execution and access events need to reach the logging platform your security team reviews, not stay only inside n8n. Log streaming is listed as a Business and Enterprise feature. If it is not available on your plan, decide how audit records will leave the instance through your own log collection. Either way, define which events are retained, who reviews them and for how long.
HTTP Request nodes calling FHIR endpoints
Most FHIR integrations in n8n are HTTP Request nodes calling REST endpoints on your FHIR server. Give each workflow its own credential with the narrowest read or write scope it needs, and avoid one shared administrator token. Restrict outbound calls to the FHIR base URLs you have approved, and confirm the server's own audit logging records which workflow made each request.
Execution data redaction and retention
Execution records can contain full patient payloads from every step of a workflow. Decide what is saved for successful and failed runs, redact identifiers before they reach logs or error messages, and set a retention period that your record schedule supports. Test deletion as well as saving, because retention settings only protect data you have actually configured to expire.
Multi-main high availability limits
Running several main instances for high availability is restricted to Enterprise self-hosted deployments, and is not available in the Community edition or n8n Cloud. If your clinical workflows need that level of availability, make it a licensing requirement in your design. Confirm the current edition terms with n8n before you assume it is included in any plan.
How FHIR calls through HTTP Request nodes keep patient data controlled
Map the request path before you build anything, because it decides where patient data sits at each hop. A trigger such as a webhook from an integration engine or a schedule starts a workflow on the main instance. In queue mode, the main instance passes the execution through Redis to a worker, and the worker calls the FHIR server through the HTTP Request node and writes results to PostgreSQL. Every worker and webhook processor needs the main instance's encryption key to read stored credentials, so each host running those processes sits inside the same trust boundary as that key. Store FHIR client secrets and tokens as n8n credentials, never as literal values in node parameters, and request the narrowest read or write scopes your FHIR server offers. Confirm which grant types your FHIR server supports and how token refresh behaves in your installed version.
Patient resources are the main risk in saved execution data. Each FHIR response becomes workflow items, and those items can be stored in execution data depending on how the instance saves successful and failed runs. Decide which workflows may save payloads at all, and default the rest to saving only error information. Keep steps that handle identifiable resources in sub-workflows so that the parent workflow only passes identifiers. Remove unneeded fields with a Set node or a Code node before any logging step, and avoid debug output that echoes full bundles. The exact save and redaction options depend on the n8n version you install, so confirm them against that version's configuration reference and test them with a synthetic patient before go-live.
Where ePHI crosses the trust boundary in an n8n deployment
The flow starts with a clinician signing in through the hospital identity provider, which hands the session to the n8n main instance. The main instance accepts triggers and webhooks and queues executions in Redis, and the worker pool picks them up. Workers read and write workflow data and encrypted credentials in PostgreSQL, and they call the FHIR server or EHR through HTTP Request nodes inside the boundary. The edge to check first is the external vendor: any ePHI leaving the network needs a business associate contract and a documented data flow before the workflow goes live.
Trust boundary showing internal hand-offs and the one outbound vendor flow.
How a healthcare n8n rollout moves from pilot to audit-ready
This sequence takes a healthcare n8n pilot through scoping, hosting, access, FHIR integration, data protection and change control to a set of evidence that maps each build decision to the HIPAA Security Rule standards it touches. The result is a deployment your compliance and security teams can review before any production patient data flows through it.
Scope data flows and business associate status
Start by listing every workflow the pilot will run, the systems each one reads from or writes to, and whether any step creates, receives, maintains or transmits electronic protected health information. Compliance and privacy leads confirm which parties are covered entities or business associates, and legal reviews whether a business associate contract is needed with the vendors and hosting providers involved. The step is done when each flow is tagged with its data classification and each third party has a documented contract status. Ask your counsel to confirm the contract terms against 45 CFR 164.314 before any ePHI moves.
Design network and hosting boundaries
Decide where the n8n main instance, workers, webhook processors, PostgreSQL and Redis will run, and which network segments can reach each of them. Map inbound paths for webhooks and outbound paths to FHIR servers, identity providers and messaging systems, and restrict each to the destinations the workflows need. The output is a reviewed network diagram, a firewall rule set and a hosting record that shows ePHI stays inside infrastructure your organization controls. Confirm that encryption in transit and at rest is configured for every hop before moving on.
Configure SSO and role-based access
Connect n8n to your identity provider so each person signs in with an individual account, and define roles that match clinical and technical duties, such as builders, reviewers and operators. Remove shared logins and test emergency access, including how an administrator regains control if the identity provider is unavailable. Confirm which SSO features your chosen edition includes, because SAML and LDAP sit on paid plans in n8n's published pricing. The step is complete when access reviews show unique user identification for every account and a tested break-glass procedure is documented.
Build FHIR connections with test data only
Build the HTTP Request node calls to the FHIR API in a non-production environment, using synthetic or de-identified patient records that cannot be traced back to real people. Store the FHIR base URL, client credentials and tokens in n8n's credential store, and restrict which workflows can use each one. Verify that the calls return the expected resources, that error responses are handled, and that the workflow does not fetch more fields than the business purpose requires. The output is a tested workflow package and a short record of each endpoint, scope and credential.
Validate redaction and execution logging
Run the test workflows and inspect what n8n stores in execution data, error messages, logs and any log streaming destination. Confirm that patient identifiers and clinical content are removed, masked or excluded where the design requires it, and that failed runs do not write payloads into shared logs. Check that the encryption key is protected because it protects credentials, and record the retention settings that govern how long execution data remains. The step is done when a reviewer has signed off on a sample of redacted outputs and logs, and the findings are recorded as test evidence.
Manage change through separate environments
Promote workflows from development to test to production through a controlled process rather than editing live workflows directly. Require a documented review and approval for each promotion, and keep credentials for each environment separate so test systems cannot reach production patient data. Confirm which environment and Git features your edition supports, since they are listed on paid plans. The output is a change log, approval records for each release, and a rollback procedure that operators have rehearsed.
Collect evidence mapped to Security Rule standards
Build a matrix that maps each control in the deployment to the relevant HIPAA Security Rule standard and implementation specification in Appendix A to Subpart C, including whether each is required or addressable. For addressable specifications, document the reasoning for the chosen approach and any equivalent alternative measure. Gather the evidence behind each row, such as access reviews, network diagrams, test results, change approvals and backup records. Note that HHS does not certify compliance, so the goal is a reviewable file your auditors and compliance team can test, not a certificate.
What HIPAA and adjacent rules expect from the evidence
HIPAA does not issue a certificate, so the evidence your organization carries into an audit or complaint investigation is what matters. The cards below cover which rules apply to an n8n workflow that touches ePHI, how the standards are classified, and which adjacent frameworks European providers may also face.
Security Rule scope
The Security Rule under 45 CFR 164.302 applies to covered entities and business associates for all electronic protected health information they create, receive, maintain or transmit. An n8n instance that moves patient records between an EHR and a billing system is in scope even if the workflow engine itself never stores clinical notes. Confirm with counsel whether your self-hosted n8n instance and its execution logs count as a system holding ePHI.
Subpart C textRequired versus addressable specifications
Each implementation specification is either required or addressable. For an addressable one, 45 CFR 164.306(d) requires you to assess whether it is reasonable and appropriate, document the reason if you skip it, and adopt an equivalent measure where one fits. Automatic logoff and encryption are addressable in the technical safeguards, so a n8n team must record its decision on each one rather than assume the default settings satisfy it.
- Addressable specifications
- 22
Business associate contract terms
Under 45 CFR 164.314(a)(2)(i), a business associate contract must require compliance with the Security Rule, flow the same terms down to subcontractors that handle ePHI, and require reporting of security incidents. If an implementation partner or hosting provider touches your n8n environment, check that the contract covers these terms and that subcontractors such as cloud or database providers are named in the chain.
No HIPAA certification exists
HHS states that no Security Rule standard requires certification and that HHS does not recognize private certifications, which do not prevent a later violation finding. Be wary of any vendor or consultant that offers a HIPAA certificate for n8n or for its own services. Evidence should instead show your controls, your risk analysis and your documented decisions, which OCR can review through complaints, compliance reviews and audits.
OCR enforcement and audits
The HHS Office for Civil Rights enforces the Security Rule through complaint investigations, compliance reviews and audits. Its 2024 to 2025 audit program reviews 50 covered entities and business associates on provisions most relevant to hacking and ransomware. Keep access reviews, n8n audit logs, backup test records and incident procedures in a form you can produce quickly, because a healthcare workflow platform is a plausible audit target.
Pending Security Rule revision
HHS proposed a major Security Rule revision on 6 January 2025 that would strengthen cybersecurity requirements for ePHI. As of October 2026 no final rule has been published, and the Unified Agenda projects final action for July 2027. Track the proposal now, since it may change how you document encryption, asset inventories and recovery for workflow platforms like n8n, and plan your evidence so it can be extended later.
Proposed rule textNIST SP 800-66 Rev. 2 guidance
NIST SP 800-66 Rev. 2, published in February 2024, is a resource guide that gives key activities and sample questions for every Security Rule standard. HHS lists it as informational rather than legally binding. Use it to structure your n8n risk analysis and control mapping, and record which sample questions your team answered and where the evidence lives.
NIST SP 800-66 Rev. 2NIS2 and GDPR for European providers
NIS2 Annex I lists healthcare providers and certain health manufacturers as sectors of high criticality, and GDPR Articles 32 and 34 require appropriate security and breach notification for personal data. In 2026 the French data protection authority fined a hospital under those articles after finding that external access to patient records lacked VPN and multi-factor authentication. European n8n deployments should apply the same access discipline to remote administrators and integration accounts.
NIS2 Annex I textQuestions health teams ask before self-hosting n8n
How much does a self-hosted n8n healthcare deployment cost?
The n8n license is only one part of the total, and the Community edition has no license fee. Total cost has four parts: n8n licensing, the partner's fixed-scope fee, your own team's time, and the infrastructure n8n runs on. The n8n pricing page lists a Business plan at 667 euros per month billed annually, currently self-hosted only, which includes SSO and LDAP, environments with Git and log streaming. Enterprise uses custom pricing, and it is the only tier that includes multi-main high availability for self-hosted deployments. Cost rises with the number of FHIR endpoints, identity integrations, environments and the evidence your audit file requires. Ask for a quote built from a written scope that lists each integration, environment and deliverable. Ask which items are one-time (design, build, validation) and which recur (licenses, hosting, retainers, upgrades).
How long does an n8n implementation for a hospital take?
The timeline depends on scope, so treat any duration without a written scope with caution. The main drivers are how many systems n8n must reach, such as the EHR, FHIR servers, identity provider and secrets store, whether you need queue mode with worker pools, and how many environments you require. Approval steps add time: security review of the network design, clinical informatics sign-off on each data flow, and privacy review of execution data. Regulatory change also affects planning. HHS proposed a major Security Rule revision on 6 January 2025, and the latest Unified Agenda projects final action for July 2027, so decide early which controls you will build to. Ask any partner for milestones tied to named review dates from your own team, so delays show up in the plan rather than at go-live.
What must our own team provide for an n8n project?
Your team supplies the decisions and access that only your organization can make. Expect to provide:
- Security: data classification for the workflows in scope, approval of the encryption design, and inputs to the risk analysis for this system.
- Clinical informatics: which FHIR resources and operations are needed, and who owns each clinical use case.
- Network: segmentation, firewall rules, outbound allowlists for FHIR endpoints, DNS, certificates and the hosting location in your data center or cloud account.
- Identity and secrets: your identity provider for SSO, and a process for protecting the n8n encryption key, which queue mode requires on every worker and webhook processor.
Name one accountable owner for ePHI decisions. Without these inputs, a partner can build a working system that your security and compliance reviewers cannot approve.
Can an internal team build a secure n8n deployment alone?
Yes, an internal team can build it, but it needs skills in n8n administration, Linux and container operations, identity integration and HIPAA technical safeguards. The harder gap is usually documentation. Under 45 CFR 164.306(d), each addressable implementation specification requires you to assess whether it is reasonable and appropriate, document your reasoning if you decline it, and implement an equivalent measure where reasonable. NIST SP 800-66 Rev. 2, published in February 2024, gives key activities and sample questions for each standard, which makes a useful build checklist, although HHS lists it as informational rather than binding. Also plan for run-time work after go-live, including upgrades, backups, monitoring and access reviews. Decide whether the same people can carry a build project and normal operations at once, and whether they can keep up with n8n's roughly weekly minor releases.
Is n8n Cloud acceptable for ePHI?
Whether n8n Cloud is acceptable depends on two points the supplied materials do not settle: whether n8n will sign a business associate agreement covering your use, and whether its cloud controls meet your risk analysis. The HIPAA Security Rule applies to covered entities and business associates for all ePHI they create, receive, maintain or transmit (45 CFR 164.302). If a cloud provider holds or processes ePHI for you, it is generally treated as a business associate, and the contract must meet 45 CFR 164.314(a)(2)(i). Ask n8n in writing for its agreement terms, data location, encryption, logging, and incident notification commitments. Self-hosting keeps ePHI in your infrastructure, which simplifies the data flow question, but it moves operational controls to your team. Confirm before you choose.
Do we need a business associate agreement with an implementation partner?
Usually yes, if the partner will access, store or transmit ePHI, for example by viewing production executions, troubleshooting FHIR payloads or handling credentials. Under 45 CFR 164.314(a)(2)(i), a business associate contract must require the business associate to comply with the Security Rule, flow the same terms down to subcontractors that handle ePHI, and report security incidents, including breaches of unsecured PHI, to the covered entity. Ask whether the partner can work with synthetic or de-identified test data for most of the build, which can reduce ePHI exposure, but have your privacy officer confirm that approach. Also ask which subcontractors, such as hosting providers, touch ePHI. HIPAA has no certification that replaces this paperwork, because HHS says no Security Rule standard requires certifying compliance and does not recognize private certifications. Have counsel review the agreement before access begins.
What does the Sustainable Use License mean for a hospital?
For a hospital using n8n for its own operations, the Sustainable Use License generally covers internal business use, but counsel should review its specific limits. The license allows use or modification only for your own internal business purposes or for non-commercial or personal use, and distribution only free of charge for non-commercial purposes. Three cases need legal review: a health system that distributes n8n or custom nodes to affiliates or vendors, a health tech company that embeds n8n in a product it sells to providers, and any arrangement where a third party operates n8n for you. Files with .ee in the name or directory require a valid n8n Enterprise License, so check which features your design depends on. Confirm the position with n8n in writing before you build anything customer-facing.
What the license and support terms mean for a health organization
The Sustainable Use License allows you to use or modify n8n only for your own internal business purposes, or for non-commercial or personal use. For a hospital, clinic or health tech team, internal use of n8n to move patient, scheduling or claims data between your own systems usually fits that limit. The license becomes a problem when the workflows run inside a product you sell to other providers, or when a vendor or partner operates the instance on your behalf. Have counsel confirm how the license applies to your operating model before a clinical or patient-facing workflow goes live, and ask n8n directly how it reads a managed or hosted arrangement with a third party.
Files with .ee in their name or directory are outside the Sustainable Use License and need a valid n8n Enterprise License. Your platform team should check whether any enterprise code paths are enabled in the build or image you deploy, and record which features depend on that license. Plan differences matter for the same reason. According to n8n's pricing page, SSO and LDAP, environments with Git, and log streaming are included only in the Business and Enterprise plans, so a health organization that needs centralized sign-in for clinical staff, change control through Git environments, or audit log forwarding to a SIEM should confirm which plan it is buying before the design is fixed.
According to n8n's pricing page, Enterprise adds dedicated support with an SLA, and the Business plan is currently self-hosted only. Support scope, response times, and any security attestations are contract matters, not properties of the open-source code, so confirm them directly with n8n in writing and ask for the current documents rather than relying on marketing pages. Remember that there is no HIPAA certification to buy. Your business associate agreement with n8n, if one is needed, should be reviewed by your legal and privacy teams against the terms of the Security Rule that flow down to subcontractors.
Deciding between self-hosted n8n and a cloud plan for patient data
The decision starts with one question: does the workflow touch electronic protected health information? If it does not, ordinary planning applies. If it does, check whether your organization is a covered entity or a business associate under the HIPAA Security Rule, because that status determines which safeguards and contracts apply. Next, confirm that n8n can run inside infrastructure you control, then check which plan includes the SSO and logging you need. Self-hosted n8n on your own network is the path to build; if a required control is missing or the workflow cannot be hosted under your controls, redesign the flow before building it.
Decision path for placing n8n workflows that handle patient data.
How DeployOpen scopes and delivers n8n for healthcare
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including n8n deployments for health organizations. Each engagement starts from a written scope that sets out which workflows, FHIR endpoints and evidence artifacts are in and out.
How we scope
- Inventory the workflows that touch patient data, FHIR APIs, and clinical or billing systems, and record which data each one reads and writes.
- Confirm where the n8n instance, its database and its execution data will run, and which network paths to health systems are permitted.
- Agree in writing which HIPAA Security Rule areas, business associate terms and redaction controls the engagement covers, and what the client will provide.
How we build
- Deploy n8n with PostgreSQL, queue mode where needed, and encryption key handling set up so credentials are protected on every worker.
- Configure SSO and role-based access so only staff with a care or operational need can view or edit workflows that handle health data.
- Build HTTP Request node patterns for FHIR calls with scoped credentials, outbound destination controls and redaction of sensitive fields in execution logs.
How we hand over
- Deliver architecture notes, data flow diagrams and a register of workflows, credentials and the people who own each one.
- Provide runbooks for backups, upgrades, key rotation, log retention and access reviews, written for your operations team.
- Map the control evidence your compliance and security teams will ask for, and document where an independent auditor will need to test.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing after the initial delivery.
- Retest workflows and access settings after each n8n upgrade so that redaction and permission controls still behave as documented.
- Confirm with your legal and privacy advisers which obligations apply in your jurisdiction, since DeployOpen does not issue audit reports or certifications.
Sources and further reading
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of ePHI ↗
- Appendix A to Subpart C of Part 164, Security Standards: Matrix ↗
- HHS FAQ 2003: Are we required to certify our organization's compliance with the standards? ↗
- NIST SP 800-66 Rev. 2, Implementing the HIPAA Security Rule (February 2024) ↗
- n8n LICENSE.md ↗
- HHS OCR's HIPAA Audit Program ↗

