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

# DrChrono Get Doctor Flags

> DrChrono patient flag lookup tool used by realtime coding workflows.

This document covers `drchrono_get_doctor_flags`, the DrChrono patient flag lookup tool used by realtime coding workflows.

## Authentication

Uses the DrChrono OAuth connector. The platform injects `access_token`.

## `drchrono_get_doctor_flags`

Fetches patient fields that function like coding flags or chart alerts. The tool parses obvious cash-pay and self-pay indicators for deterministic skip checks.

### Inputs

Required:

* `patient_id`: DrChrono patient ID.

### Output

```json theme={null}
{
  "success": true,
  "patient_id": "456",
  "patient": {},
  "parsed": {
    "is_cash_pay": true,
    "is_self_pay": false,
    "raw_text": "..."
  }
}
```

Common failure reasons:

* `drchrono_not_connected`
* patient fetch failure

## Human-readable text

The tool emits markdown for the feed: a `## Doctor Flags` table (cash-pay, self-pay) and a `## Raw Text` block with the parsed patient text. The full patient record stays in `structuredContent`.

## Agent Instruction Guidance

Call this after `drchrono_get_appointment_summary` passes cheap skip checks and before documentation fetch. If `is_cash_pay` or `is_self_pay` is true, the workflow should skip coding unless the user explicitly wants a draft only.
