NeMo Guardrails for healthcare

Patient-facing and clinical assistants need input and output rails, self-hosting inside your boundary and evidence a compliance team can review. This page covers what to build, what drives the work and what to ask a partner.

On this page

Why NeMo Guardrails for healthcare starts with your ePHI boundary

NeMo Guardrails fits a health organization's patient-facing or clinical assistant when the rails, the model hosting and the logs can all run in infrastructure the organization controls. The question to settle first is not which rail to switch on, but where protected health information (PHI) is allowed to travel. Every prompt, retrieved chunk, model response and log line that contains PHI sits inside the boundary your HIPAA risk analysis must cover, so the architecture should define that boundary before any Colang or configuration work begins.

The build changes in four places. Input rails screen patient messages before they reach the model, output rails check responses before patients see them, retrieval rails govern which approved content can be quoted, and the model itself is served from hosting you run. Each of these needs a home inside your boundary. The NeMo Guardrails library is licensed under Apache 2.0, so you can run it yourself. NVIDIA sunset the NeMo microservice as of October 2026 and will not release new versions of it, so a plan built around that container needs to be revisited before it goes into production.

Before you commit to a design, confirm three things with your security and privacy teams: which systems will hold PHI in prompts and logs, which model endpoints the assistant will call and whether they are self-hosted, and who in your organization owns the logging and retention settings. Those answers decide whether the library runs as a server in your cluster or embedded in your application, and whether a business associate contract is needed for any vendor that touches PHI, which the HIPAA Security Rule requires under 45 CFR 164.314. Settling these early keeps the later work on refusals and grounding from being redone.

What NeMo Guardrails for healthcare must satisfy under HIPAA and related rules

This table maps each requirement that applies to a healthcare assistant built on NeMo Guardrails to what the rails, hosting or logs must do about it. Read each row as a build input, not a summary of the regulation, and confirm final applicability with your privacy and legal counsel.

RequirementSourceWhat it means for the NeMo Guardrails build
HIPAA Security Rule scope45 CFR 164.302; covered entities and business associatesDetermine whether your assistant handles ePHI as a covered entity or business associate. Every component that creates, receives, stores or transmits ePHI, including rails logs and model endpoints, falls in scope.
Required implementation specificationsAppendix A to Subpart C (14 required specifications)Build the required controls into the rails deployment: unique user identification for every assistant user and service account, and a documented emergency access procedure for the hosting environment.
Addressable implementation specifications45 CFR 164.306(d); 22 addressable specificationsFor each addressable control, such as automatic logoff, encryption and audit controls, record your assessment and either implement it in the NeMo Guardrails host and session layer or document an equivalent alternative.
Technical safeguards for access and audit45 CFR 164.312Log which rail fired, the user or service identity, and the time, without writing raw PHI into the log. Confirm that log retention and access follow your audit policy.
Business associate contract flow-down45 CFR 164.314(a)(2)(i)If a hosting provider, safety model vendor or moderation API touches ePHI, confirm the contract requires Security Rule compliance and flows the same terms to subcontractors. Self-hosted models in your own network reduce the number of parties in this chain.
Security incident reporting45 CFR 164.314(a)(2)(i)Rails and logs must make suspected leakage detectable and attributable, such as a PHI detection event on output, so the business associate can report it to the covered entity.
No HIPAA certificationHHS FAQ 2003Do not describe the deployment as HIPAA certified. Prepare evidence of controls, configuration and testing that an OCR investigation or audit can review.
NIS2 health sectorDirective (EU) 2022/2555, Annex IFor EU healthcare providers and medical device manufacturers in scope, the hosting, access control and incident handling of the assistant may fall under NIS2 obligations. Confirm applicability with national transposition rules.
GDPR Article 32 security of processingRegulation (EU) 2016/679, Article 32Access to the assistant and its data stores must follow a need-to-know model with strong authentication. Test that rails do not expose patient data to users without a care relationship.
GDPR Article 34 breach noticeRegulation (EU) 2016/679, Article 34Logs and monitoring must identify affected data subjects quickly enough to support notice to individuals after a high-risk breach. Confirm the required timelines with your data protection officer.

Which NeMo Guardrails rails and settings matter for patient and clinical assistants

A patient or clinical assistant carries risk at every stage of a conversation, from what the user types to what the model returns. The cards below cover the rails that address those risks, the Colang and configuration files that define them, and the deployment choices that determine where patient data travels.

Input rails for PHI masking

Input rails run before the model sees a message, so they are the first place to detect and mask identifiers such as names, dates of birth, record numbers and phone numbers. Decide which identifiers must be masked before any model call, and which must be preserved because the assistant needs them to answer. Test masking with realistic clinical phrasing, misspellings and identifiers embedded in free text, because pattern-based detection misses many of these. Confirm with your privacy office whether masked prompts still count as ePHI in your logs.

NeMo Guardrails docs

Input rails for out-of-scope medical advice

A rail that classifies incoming questions can route requests for diagnosis, dosing or treatment changes away from the model before it answers. Define the scope in plain terms with clinical owners, including which symptoms trigger an urgent-care message. Check how the classifier handles borderline questions, such as a patient asking whether a medication is safe during pregnancy, and test those cases with clinicians rather than only with engineers.

Dialog rails in Colang

Dialog rails define how the assistant refuses, redirects and escalates in multi-turn conversations. Colang 1.0 is the default syntax, and Colang 2.0 is also supported, so choose one syntax before writing flows and record that choice in your configuration standards. Write escalation flows that hand a conversation to a clinician or a nurse line when a patient describes an emergency, and confirm the exact handoff path with your clinical operations team.

Colang 2 migration guide

Retrieval rails for approved clinical content

Retrieval rails check the chunks a RAG pipeline passes to the model, so answers can be limited to approved patient education or formulary content. Maintain a named source list with version owners, and make the rail reject or flag chunks from unapproved sources. Ask your clinical content owners how retired leaflets are removed from the index, because a stale chunk can produce an answer that was once correct but is now wrong.

Execution rails for EHR and scheduling calls

Execution rails govern the custom actions that call electronic health record or scheduling APIs. Limit each action to the minimum data and operations the assistant needs, and require the calling user's identity to be passed through, so the EHR's own access control still applies. Log every action call with a reference to the patient record without copying clinical content into the log. Confirm with your EHR vendor which of its APIs support delegated, per-user access.

Output rails before display

Output rails check the model's response before the patient sees it. Use them to block diagnostic language, to strip any identifier the model reproduced from context, and to catch unsupported clinical claims. Output checks add latency to every response, so measure the delay at expected concurrency and agree on which failures show a safe fallback message rather than an error. Test the fallback text with clinicians before go-live.

Configuration files, actions and server deployment

A guardrails configuration is a config.yml file, optional Python actions and Colang files, loaded by the Python API or by a guardrails server that exposes an HTTP API. Version 0.25.0 requires Python 3.11, 3.12 or 3.13, so pin the interpreter in your build image. Store the configuration folder in version control with clinical sign-off on changes. Confirm which NeMo Guardrails version your vendor or platform team will support, because the NeMo microservice was retired in October 2026.

Python versions for 0.25.0
3.11 to 3.13
NeMo Guardrails repository

How a patient message moves through the rails inside your boundary

The request starts with a patient or clinician message reaching the guardrails server inside the organization's network. Input rails mask protected health information and check whether the question is within scope before any model call. Dialog and retrieval rails then ground the answer in approved clinical content, and execution rails handle any calls to EHR tools. Output rails check the draft response before it returns, and every decision is written to an audit log store inside the same boundary. Teams should confirm that no step sends content outside the boundary and that the log captures the rail outcome for each turn.

One patient message through the rails, with the audit log inside the trust boundary.

How patient-facing and clinical assistants need different rails

Patient-facing assistants handle scheduling, navigation through a health system's services, general health information and escalation when a message suggests an emergency. The main risk is that a fluent answer sounds like clinical advice. Rails for this group should keep answers to approved health information, route crisis language to fixed wording and refuse diagnosis, dosing and treatment decisions in plain language that a worried patient can act on.

  • Scope limits: Define the topics the assistant may answer, such as clinic hours, directions, preparation for a visit and approved educational content. Topic control and dialog rails hold the boundary across multi-turn conversations.
  • Crisis and emergency wording: Approve the exact escalation text, including instructions to call local emergency services, with clinical governance. Input rails should detect self-harm or emergency language and return that text rather than a generated reply.
  • Plain-language refusals: Write refusals that say what the assistant cannot do and where the patient can go next, reviewed for reading level and translated where your patient population needs it.
  • Grounding: Limit health information answers to approved content through retrieval rails, so answers can be traced to a source your clinicians signed off on.
  • Scheduling tools: Restrict actions to booking and rescheduling through narrow, reviewed actions, with no access to the record.

Before launch, confirm with clinical governance who signs off on each refusal and escalation text, and test with adversarial questions that try to pull diagnosis or dosing advice out of the assistant.

Why self-hosting NeMo Guardrails keeps protected data under your control

Running NeMo Guardrails inside your own cloud account, data center or private network keeps prompts, retrieved records and logs within the boundary your HIPAA obligations already cover. The library can be called from your application through its Python API, or the guardrails server can load a configuration folder and expose an HTTP API inside your network. Either way, the input rails, retrieval rails and output rails see the raw patient question, any chunk pulled from the chart or knowledge base, and the model's draft answer. If those components run in your environment, the protected health information (PHI) they handle is not sent to a third party just to be checked. The Security Rule applies to electronic protected health information your covered entity or business associate creates, receives, maintains or transmits, so the first question is where each of those flows lands.

Four decisions follow. First, decide where the self-hosted safety models run, such as the content safety, topic safety and jailbreak detection models the library includes, and confirm the hardware, network path and logging each one needs in your environment. Second, map every model endpoint that can receive PHI, including the main generation model, any judge model used for fact-checking, and any hosted moderation API, and confirm which of them are on your side of the boundary. Third, if any hosted service receives PHI, a business associate contract under 45 CFR 164.314(a)(2)(i) must be in place before the data flows. Confirm with each vendor whether it will sign one and what it logs. Fourth, if you use NVIDIA's NeMo Helix control plane, confirm with NVIDIA where its guardrail configurations and gateway logs are stored, who can read them, and whether it introduces a component that touches PHI. Your own environment still has to be checked: encryption in transit between components, log retention and access to the guardrail traces that may contain prompt text.

What the compliance team can be shown from a NeMo Guardrails build

HHS does not certify HIPAA compliance, so the question for a NeMo Guardrails assistant is what records and controls the organization can show an assessor. The cards below cover the records a build should produce, who should own each one, and what to confirm before the assessment starts.

Risk analysis and management records

The Security Rule expects a risk analysis of the electronic protected health information an assistant touches, followed by risk management decisions. For a NeMo Guardrails build, record which prompts, retrieved documents, logs and model endpoints carry patient data, which rails address each risk, and which risks remain accepted. Keep these records versioned alongside the configuration files so an assessor can see what changed and why.

Security Rule text

Unique user identification and access control

Each person or service using the assistant needs a unique identifier, and access to logs and configuration must follow the principle of need to know. Decide whether assistant users sign in through the organization's identity provider, how clinical and patient roles map to rails, and who can edit the Colang and config files. Confirm that the guardrails server does not share one credential across all users.

Audit logging of blocked and passed requests

Audit trails should show which input or output rail fired, when it fired and which configuration version was active. Log blocked requests and passed requests separately, and decide how much content to store, since logs can themselves hold PHI. Confirm the retention period with your records policy and test that logs cannot be altered by the assistant's own service account.

Business associate and subcontractor terms

If a vendor, hosting provider or model service handles ePHI for the organization, a business associate contract must require Security Rule compliance, flow the same terms to subcontractors and require incident reporting. Map every component in the build, including any external moderation API, to a contract or to a decision to keep it inside your own infrastructure. The fewer external processors, the shorter this list.

Organizational requirements
164.314
Section 164.314 text

Periodic testing of rails

Rails change when models, prompts or Colang files change, so a single pre-launch test is not enough evidence. Keep a test suite that checks refusals, PHI masking and grounded answers against the current configuration, and rerun it after each upgrade. Record the test cases, results and fixes so the team can show that the controls were checked on a schedule, not only once.

Risk-based safeguard mapping

NIST SP 800-66 Rev. 2, published in February 2024, is an informational guide that walks through key activities and sample questions for each Security Rule standard. It is not legally binding, but it gives assessors and engineers a shared vocabulary. Map each rail and log to the standard it supports, and treat the proposed Security Rule revision as pending: HHS proposed it on 6 January 2025, and no final rule had been published as of October 2026.

NIST guide revision
Feb 2024
NIST SP 800-66 Rev. 2

How a NeMo Guardrails healthcare rollout runs in phases

The sequence moves from agreed clinical and privacy scope to a monitored go-live, and each phase leaves a record the compliance team can review.

  1. Agree scope and risk with clinical, privacy and security owners

    Before any configuration, the clinical lead, privacy officer, security lead and the platform owner agree what the assistant may and may not answer, which patient populations it serves, and which users reach it. Output: a signed scope statement listing permitted topics, refusal categories such as medical advice outside the approved scope, and the named risk owner for each. The step is done when every owner has signed the scope and the open risks have an assigned owner.

  2. Map data flows and build the PHI inventory

    The team maps every place patient data enters, is processed, is retrieved and is stored, including prompts, retrieved chunks, model responses, logs, traces and any backup. For each flow they record whether electronic protected health information is present and whether it is covered by a business associate contract where a third party touches it. Output: a data flow diagram and PHI inventory that the privacy and security owners approve. The step is done when no flow is left unclassified.

  3. Configure input, dialog, retrieval and output rails

    Engineers write the config.yml file, Colang files and any Python actions for the approved rails: input checks for PHI masking, dialog flows that refuse out-of-scope medical advice, retrieval rails that limit answers to approved content, and output checks before a response reaches the patient. Colang 1.0 and 2.x configurations are both supported, and any conversion made with the nemoguardrails convert tool still needs manual review before use. Output: a versioned configuration repository with a review record for every Colang file. The step is done when a clinical reviewer and a developer have approved each flow.

  4. Deploy self-hosted with controlled access

    The platform team runs the guardrails server, or the Python API inside the application, in the health organization's own infrastructure, with the model endpoints, secrets and logs kept inside the approved boundary. They define who can change configurations, who can read logs containing patient content, and how SSO and role separation are applied. Output: a deployment record with network paths, access roles and a list of where each data class is stored. The step is done when access reviews and the storage inventory match the data flow diagram.

  5. Evaluate with clinical test cases and adversarial prompts

    The team builds a test set from the approved scope: clinical questions the assistant should answer from approved content, out-of-scope medical questions it should refuse, sample records containing identifiers that must be masked, and adversarial prompts that try to extract patient data or bypass refusals. Clinical reviewers judge the results, and failures return to the configuration step. Output: a dated test report with pass and fail results per rail and a retest log. The step is done when every critical case passes or has an accepted, documented risk.

  6. Go live with monitoring and an approved-content change process

    Before launch, the team confirms monitoring of blocked requests, errors and access to logs, and assigns an on-call owner. Any change to approved content, rails or prompts goes through the same review as the original build, with the clinical owner approving content changes and a retest before release. Output: a launch checklist, a change log and a monitoring runbook. The step is done when the change process has been exercised once on a non-production change.

  7. Assemble the evidence pack for the compliance team

    The team compiles the records produced in each phase into one evidence pack: the signed scope, the PHI inventory, the configuration repository and review history, the deployment and access records, the test report and retests, and the change log. The pack maps each record to the safeguard it supports under the HIPAA Security Rule, while noting that no HIPAA certification exists and that independent assessors make the determination. Output: an indexed evidence folder handed to the compliance lead. The step is done when the compliance team confirms that each control has a named artifact.

Why the pending HIPAA Security Rule revision still shapes the build

The HIPAA Security Rule revision is not yet law, but it should not change how you build a NeMo Guardrails assistant that handles electronic protected health information today. HHS proposed a major revision on 6 January 2025 (90 FR 898), and as of October 2026 no final rule has been published. The latest Unified Agenda entry for RIN 0945-AA22 projects final action for July 2027, which is a projection and not a commitment. Your build should therefore meet the rule as codified in 45 CFR Part 164 Subpart C, with the proposed changes tracked as a separate work item that your compliance lead reviews at each planning cycle.

The enforcement stakes are already concrete. For penalties assessed on or after 28 January 2026, the inflation-adjusted civil money penalty ranges from $145 per violation to $2,190,294 per violation, with a calendar-year cap of $2,190,294 (45 CFR 102.3, 91 FR 3666). Those figures apply to the rule in force now, so a guardrail layer that masks PHI in prompts, logs or retrieved chunks should be documented against current standards, such as access control, audit controls and transmission security. Keep the configuration files, test results and access records for each rail in a versioned repository so you can show what was in place on any given date.

Ask your counsel three questions before you finalize the design: which entity type you are (covered entity or business associate), whether your assistant creates, receives, maintains or transmits ePHI, and how a finalized revision would apply to contracts and systems already in production. Confirm these in writing, because the answers determine whether your business associate contracts under 45 CFR 164.314 must be updated. Where the proposed revision would require stronger controls, such as encryption or asset inventories, design your NeMo Guardrails hosting so those controls can be added without rebuilding the rails.

What NeMo Guardrails for healthcare implementation involves and who does the work

What drives the cost of a NeMo Guardrails healthcare implementation?

The main drivers are how many assistants you run, how many systems they connect to, how much protected health information they touch, where they are hosted, and how deeply the rails are tested. A single patient-facing FAQ assistant with no record lookups is a much smaller job than a clinical assistant that reads chart content, calls scheduling APIs and writes to an audit store. Each added EHR integration, data flow and approval step adds design and test work. Hosting in your own cloud account, data center or air-gapped network adds infrastructure and access setup. Evaluation depth is the last lever: a short test set costs less than a documented, repeatable evaluation suite. DeployOpen does not publish prices. Ask for a written scope that lists each assistant, integration, data category, hosting target and test level, and a quote that follows from it.

How long does a NeMo Guardrails healthcare project take?

The pace is set by decisions and access more than by configuration work. The longest waits are usually clinical sign-off on refusal wording and approved content, the data flow review that tells you which fields may reach a model, and access to a test environment that mirrors production identity and logging. Engineering time grows with the number of rails and the number of integrations. Before a timeline is agreed, ask the proposal to separate the discovery and approval phase from the build, testing and go-live phases, and to name which of those depend on your staff. Any duration should appear in the written scope rather than in a general estimate.

What must our organization provide for the implementation?

Several people from your organization need to be available, because clinical and compliance decisions cannot be made by the implementation team alone. Plan for:

  • Clinical content owners who approve the scope of medical information the assistant may give, the refusal messages and the escalation paths to clinicians.
  • A data flow owner who documents which patient data enters prompts, retrieved content, logs and model endpoints, and where each item is stored.
  • An identity administrator who provides the single sign-on system, roles and group mappings for staff who use the assistant.
  • Approvers from privacy, security and compliance who sign off on logging, retention and the evidence pack.
  • Infrastructure contacts for hosting, networking and secrets management in the environment where the software will run.

Ask the proposal to list these roles and the decisions each one must make.

Can our internal team implement NeMo Guardrails for healthcare on its own?

Yes, a capable internal team can implement NeMo Guardrails without a partner, because the library is open source and the configuration uses a config.yml file, optional Python actions and Colang files. The harder parts are the ones that need healthcare and security experience: deciding which rails protect which data, testing refusals against clinical edge cases, documenting controls in a form an assessor can follow, and running the platform under your own change control. Check whether your team has the Python, Kubernetes or container, identity, and security testing skills for those tasks, and whether it can staff the work during the period your clinical approvers are available. Many organizations use a partner for the build and keep operation in-house, or the reverse.

Is a fixed-scope agreement possible for a NeMo Guardrails healthcare project?

Most DeployOpen engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts. For a healthcare assistant, the written scope usually names the assistants covered, the data categories and integrations in scope, the rails to be configured, the hosting target, the testing level and the evidence to be delivered. Changes found during clinical review, such as a new use case or an extra system, are handled as a documented change to the scope and quote. Ask for a list of assumptions, including which approvals and environments the work depends on, so that a delay on your side is visible in the agreement.

What happens after go-live for a NeMo Guardrails healthcare assistant?

After go-live, the assistant needs ongoing operation: monitoring of blocked and escalated requests, review of refusal quality, updates to approved content, library upgrades, and retesting after changes. DeployOpen offers ongoing support, upgrades and continuous testing as retainers. A retainer can be scoped to the operations your team does not want to carry, such as upgrade testing against each new NeMo Guardrails release, or periodic evaluation runs. Ask for the response expectations, the upgrade process and the evidence produced each period in the written retainer scope, and confirm how your change control and incident process connect to it.

Is NeMo Guardrails free to use under the Apache 2.0 license?

The NeMo Guardrails library is licensed under Apache 2.0, so you can use, modify and deploy it without paying a license fee to NVIDIA for the library itself. The license does not cover the rest of your costs: infrastructure, GPU or model hosting, staff time, third-party moderation or safety model services, and any commercial support you buy. The NVIDIA NeMo Guardrails microservice has been sunset, so do not build a plan around that container. Confirm the current license terms and any model licenses for the safety models you choose with the license file in the official repository and with your legal team before deployment.

How DeployOpen scopes and delivers NeMo Guardrails for healthcare

DeployOpen plans, builds, tests, documents and supports NeMo Guardrails inside your own infrastructure, so your clinical, security and compliance teams can review the rails, the hosting and the logs. Each engagement starts from a written scope that names the assistant, the rails and the evidence your reviewers will ask for.

How we scope

  • Map the patient-facing or clinical assistant, its users and every point where protected health information could enter or leave.
  • Agree in writing which rails apply, such as PHI masking, out-of-scope medical advice refusals and grounding in approved content.
  • Confirm the hosting target, identity integration and logging destination before any build work begins.
  • Engagements are fixed-scope, so deliverables and timelines are set in writing before work starts.

How we build

  • Install NeMo Guardrails in your environment and configure config.yml, Colang files and any Python actions against your approved content.
  • Check the Python version your chosen release supports, then build and pin the server image for your hosting platform.
  • Test each rail with clinical scenarios and adversarial prompts, and record which inputs were blocked, masked or refused.
  • Document configuration decisions, Colang version choices and any model dependencies so your reviewers can trace each control.

How we hand over

  • Deliver the configuration repository, deployment runbooks and access settings for your engineers to operate.
  • Provide test results, rail decision logs and a mapping of controls to the HIPAA Security Rule standards your reviewers use.
  • Walk your clinical, security and compliance teams through the evidence so they can review it before go-live.
  • Confirm with your legal and privacy advisers how business associate terms apply to any party that touches ePHI.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Plan version upgrades against the NeMo Guardrails release notes, since configuration and API changes can affect rail behavior.
  • Retest rails after content, model or policy changes, and keep the evidence current for each review cycle.
  • Agree the retainer scope, response expectations and upgrade cadence in writing before support begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.