> ## Documentation Index
> Fetch the complete documentation index at: https://docs.telepatia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Guard de Paciente

> Verifica se o paciente da sessao coincide com o do EMR antes de injetar. Bloqueia com modal de confirmacao se houver divergencia.

Verifica se o paciente da sessao coincide com o do EMR antes de injetar. Bloqueia com modal de confirmacao se houver divergencia.

Safety guard (INTE-1126) that prevents injecting a medical record into the wrong patient's chart. Before every injection, the panel re-extracts the patient name from the EMR page (fresh read, not cache) and compares it with the session patient.

The guard is **fail-open**: absent names, placeholders, accent/case/word-order differences never block. Only a definite disagreement triggers the modal.

The modal offers three options:

* **Switch session** — opens the session switcher dropdown
* **Inject anyway** — audited escape hatch (logged to Datadog with session ID, both names, URL)
* **Cancel** — closes the modal
