> ## 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.

# Patient Detection

> Automatically extracts patient name and document from the EMR page in real time.

Automatically extracts patient name and document from the EMR page in real time.

The panel initializes an `EmrPlatformHandler` that creates a platform-specific patient extractor based on the detected EMR. A `MutationObserver` watches the DOM for changes to patient-related elements.

When patient information changes (navigation to a new chart), the extractor re-runs and updates the panel display. The extracted name is also used by the mismatch guard and as a fallback display name when the session has no patient assigned.
