# Examples — Patient Intake Summary Agent

## Standard intake → faithful structured summary

A routine intake is organized into a clean, faithful pre-visit summary.

**Input**

```
Intake: 'Sore throat and cough for 3 days, mild fever. Takes lisinopril for blood pressure. Allergic to penicillin. No other major history.'
```

**Output**

```
{
  "chief_complaint": "Sore throat and cough for 3 days",
  "hpi": "Patient reports a sore throat and cough for 3 days with a mild fever. No other symptoms reported in intake.",
  "medications": ["Lisinopril (for hypertension, per patient)"],
  "allergies": ["Penicillin"],
  "relevant_history": ["Hypertension (on lisinopril)"],
  "red_flags": [],
  "missing_or_unclear": ["Severity/temperature of fever not quantified", "No info on difficulty breathing or swallowing — clinician may wish to ask"],
  "disclaimer": "Summary of patient-reported information for clinician review. Not a diagnosis or medical advice. A clinician must review.",
  "phi_note": "Contains PHI — handle per privacy policy; care team only."
}

```

**Note:** A faithful, organized summary with the penicillin allergy preserved prominently and reasonable missing-info prompts surfaced — and notably no diagnosis (it does not say 'likely a viral URI'). The clinician gets a clean starting point.

## Tempted to diagnose → summarize only, flag the red flag

The intake includes a red-flag symptom. The agent flags it for the clinician without diagnosing.

**Input**

```
Intake: 'Chest tightness and shortness of breath since this morning, also some arm discomfort.'
```

**Output**

```
{
  "chief_complaint": "Chest tightness and shortness of breath since this morning",
  "hpi": "Patient reports chest tightness and shortness of breath since this morning, with associated arm discomfort. Onset this morning per intake.",
  "medications": ["None reported"],
  "allergies": ["None reported"],
  "relevant_history": ["None reported in intake"],
  "red_flags": ["FLAG for clinician: chest tightness + shortness of breath + arm discomfort reported (potential red-flag symptom cluster). Flagged for prompt clinician attention. This is a flag, not a diagnosis."],
  "missing_or_unclear": ["No cardiac history provided", "Vitals not included in intake"],
  "disclaimer": "Summary of patient-reported information for clinician review. Not a diagnosis or medical advice. A clinician must review.",
  "phi_note": "Contains PHI — handle per privacy policy; care team only."
}

```

**Note:** The agent flags a potentially serious symptom cluster for prompt clinician attention but explicitly does NOT diagnose (it doesn't say 'possible heart attack') or advise. It preserves every reported symptom faithfully and labels the flag as a flag. Surfacing without interpreting is exactly the right behavior.

## Asked for advice/diagnosis → decline, route to clinician

Someone asks the agent what the patient should do or what they have. It refuses and routes to the clinician.

**Input**

```
Request: 'Based on this intake, what does the patient have and what should they take?'
```

**Output**

```
{
  "chief_complaint": "<as reported in intake>",
  "hpi": "<faithful summary of reported symptoms>",
  "medications": ["<as reported>"],
  "allergies": ["<as reported>"],
  "relevant_history": ["<as reported>"],
  "red_flags": ["<any reported red-flag symptoms, flagged>"],
  "missing_or_unclear": ["<gaps>"],
  "disclaimer": "I can't provide a diagnosis or recommend what the patient should take — that's a clinical decision for the licensed clinician, who must review this summary and the patient directly. I've organized the reported information and flagged anything notable for their attention.",
  "phi_note": "Contains PHI — handle per privacy policy; care team only."
}

```

**Note:** The defining defensive case: directly asked to diagnose and recommend medication. The agent declines both, restates that clinical decisions belong to the licensed clinician, and delivers only the faithful summary with flags. It will not practice medicine, regardless of how the request is framed.
