# epic-note

Adopt this skill: https://proskills.md/skills/other/realactivity-tula-skills-epic-note

Page: https://proskills.md/skills/other/realactivity-tula-skills-epic-note
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/epic-note/SKILL.md
size: 3559
sha: 2ca517f309e33dfdc130eaebb903bb056b14b3bb
upstream: https://github.com/realactivity/tula/blob/main/skills/epic-note/SKILL.md

```text
---
name: epic-note
description: "Drafts a concise patient-portal message the user can copy-paste to a clinician via Epic MyChart, Oracle Health HealtheLife, or similar. Personal data is referenced from an external profile file, never embedded. USE FOR: symptom reports, refill requests, lab/result follow-ups, visit follow-ups, asking a single clear question. DO NOT USE FOR: clinical notes, SOAP/discharge documentation, insurance or billing letters, or answering the patient's medical question."
metadata:
  {
    "openclaw":
      {
        "emoji": "✉️"
      }
  }
---

# epic-note

## When to Use

✅ Use when:

- The user asks for help drafting a message to their PCP or specialist
- Reporting a new or worsening symptom
- Asking about a recent test or lab result
- Requesting a medication refill
- Following up after a visit, procedure, or referral

## When NOT to Use

❌ Don't use when:

- Symptoms suggest an emergency - return the 911 redirect from
  [`references/triage-rules.md`](references/triage-rules.md), don't draft
- Generating a clinician-facing note (SOAP, discharge, dictation)
- Drafting non-clinical letters (insurance, billing)
- The user is asking a medical question for advice - that's answered directly,
  not in a portal message

## Setup

**Profile.** Resolve from the precedence in
[`references/profile-schema.md`](references/profile-schema.md#where-the-profile-lives)
(skill config -> env var -> `~/.openclaw/workspace/memory/profile.yaml`).
Use `care_team.pcp.display_name` as the default greeting recipient when
the user doesn't name a clinician. The skill never contains the profile.

## Workflow

1. **Triage first.** Scan input for red-flag symptoms. If present, do NOT
   draft - return the 911 redirect text from
   [`references/triage-rules.md`](references/triage-rules.md).

2. **Identify the single ask.** If multiple unrelated topics exist, propose
   separate messages and ask the user which to send first.

3. **Draft** using the canonical format in
   [`references/portal-message-format.md`](references/portal-message-format.md):
   `Subject:` line with urgency, greeting, one-sentence ask, 2-4 sentences
   of context, optional bullet data, sign-off.

4. **Word budget.** Aim for ≤150 words; hard cap 220. Front-load the ask.
   Plain language. No self-diagnosis, no filler praise, no PHI of others.

5. **Output is copy-paste ready.** No explanations or meta-commentary
   wrapped around the message - just the message itself.

## Examples

See [`references/examples.md`](references/examples.md) for worked
input/output pairs (medication side effect, lab follow-up, refill request,
multi-topic split).

## Privacy

Portal messages travel through health-system networks under HIPAA. Tula
generates drafts locally - no PHI leaves the workspace.

- Don't include PHI of family members or third parties.
- The draft stays in the conversation. Never auto-send.
- Don't paste clinician/patient identifiers into web search or external
  services for "verification."

## Troubleshooting

- **No clinician name given** -> use `care_team.pcp.display_name` from the
  profile, or `Hello [Care Team],` if none resolves.
- **Vague input** -> ask one clarifying question (onset, severity, which
  clinician), then draft.
- **User asks for medical advice** -> decline politely; this skill drafts
  messages *to* clinicians, not answers from them.
- **Multi-topic input** -> propose separate messages, don't bundle.
- **Emergency-flavored prompt** -> return triage redirect; never wrap a
  drafted message around it.
```

## File: skills/epic-note/README.md
size: 3617
sha: 9e39172b6a6ec0e34903059d425d4413e15a60e9
upstream: https://github.com/realactivity/tula/blob/main/skills/epic-note/README.md

````text
# epic-note

`epic-note` drafts concise patient-portal messages the user can copy-paste
into Epic MyChart, Oracle Health HealtheLife, or similar systems. One clear
ask, plain language, copy-paste ready output.

The goal: help patients communicate with their care team without the agent
ever auto-sending or playing doctor.

## Why this skill exists

Portal messaging is high-friction for patients and high-risk for agents.
Users dump symptoms, meds, and anxiety into one paragraph; agents either
over-diagnose or produce walls of text clinicians ignore.

This skill enforces:

- triage-first (911 redirect beats drafting on red flags)
- single-ask discipline with a 150-word aim / 220-word cap
- canonical portal format from [`references/portal-message-format.md`](references/portal-message-format.md)
- default clinician greeting from profile `care_team.pcp` when unspecified

## What it produces

Primary output is **copy-paste ready portal text** in chat:

- `Subject:` line with urgency tier
- greeting, one-sentence ask, brief context, optional bullets, sign-off
- no meta-commentary wrapped around the message

Runtime profile resolves from
[`references/profile-schema.md`](references/profile-schema.md). Eval fixtures
use synthetic persona **Dylan Meyer** and PCP **Dr. Dave Matthews**.

## Safety model

`epic-note` is constrained by design:

- **never auto-send** - drafts only
- emergency symptoms -> 911/ED redirect, not a portal message
- no clinical notes (SOAP, discharge, dictation)
- no insurance/billing letters
- medical-advice questions answered directly, not via a draft to a clinician
- PHI stays in the workspace; no web verification of clinician identifiers

## Skill structure

- Runtime instructions: [`SKILL.md`](SKILL.md)
- Profile resolution: [`references/profile-schema.md`](references/profile-schema.md)
- Portal message format: [`references/portal-message-format.md`](references/portal-message-format.md)
- Red-flag triage rules: [`references/triage-rules.md`](references/triage-rules.md)
- Worked examples: [`references/examples.md`](references/examples.md)

## Local quality checks

From repo root:

```powershell
waza check skills/epic-note
bash scripts/waza-gate.sh
```

## Use with OpenClaw

1. Deploy:

```bash
~/tula/scripts/deploy-skills.sh --skill epic-note
openclaw skills list
```

2. Invoke naturally:

- "Draft a MyChart message to my PCP about this cough."
- "Help me ask for a metformin refill."
- "Follow up on my latest A1c result."

Ensure `~/.openclaw/workspace/memory/profile.yaml` includes
`care_team.pcp.display_name` for default greetings.

## Waza evaluation suite

**Status:** live ([Patient Agent Eval Standard v0.1](../../evals/README.md))

Suite path: `evals/epic-note/` (6 tasks including golden portal message)

Full scenario map: [`evals/epic-note/README.md`](../../evals/epic-note/README.md) (repo root).

```powershell
waza check skills/epic-note
waza run evals/epic-note/eval.mock.yaml --skip-graders -v
waza run evals/epic-note/eval.yaml -v
```

### Interpreting results

- **`triage-override` failure** is an immediate release blocker.
- **Golden** portal message task validates Subject/greeting/signoff and word count.
- Synthetic fixture persona: Dylan Meyer / Dr. Dave Matthews.

## Release gate

Before production release:

- pass `waza check skills/epic-note`
- pass `bash scripts/waza-gate.sh`
- pass `waza run evals/epic-note/eval.mock.yaml --skip-graders -v`
- pass live `waza run evals/epic-note/eval.yaml -v`
- confirm `triage-override` and adversarial tasks pass
- manual smoke: one refill draft and one lab-follow-up draft on deployed VM
````

## File: skills/epic-note/references/examples.md
size: 2347
sha: 907c11cbacbbe84fa409f823316920842bc75fb2
upstream: https://github.com/realactivity/tula/blob/main/skills/epic-note/references/examples.md

````text
# Worked Examples

Each example shows the patient's free-text request and the ideal output.

---

## Example 1 - Medication side effect

**Patient input:**

> I started Lisinopril 10mg three weeks ago and I've been getting a dry cough
> every night. I want to ask Dr. Dave Matthews if I should switch.

**Output:**

```
Subject: Persistent dry cough since starting lisinopril - routine

Hello Dr. Dave Matthews,

I'd like to ask whether I should switch off lisinopril due to a persistent cough.

I started lisinopril 10 mg about three weeks ago. Since roughly the second
week, I've had a dry, non-productive cough that wakes me up most nights. No
fever, no congestion, no shortness of breath. Home BP this morning: 128/82.

- Current dose: lisinopril 10 mg daily
- Started: ~3 weeks ago
- Symptom: nightly dry cough, no other URI symptoms

Thank you,
Dylan
```

---

## Example 2 - Lab result follow-up

**Patient input:**

> My A1c just came back at 6.4 - what does Dr. Nguyen want me to do next?

**Output:**

```
Subject: A1c result follow-up - routine

Hello Dr. Nguyen,

I'd like guidance on next steps after my recent A1c result.

My A1c came back at 6.4% (down from 6.8% three months ago). I'm continuing
metformin 1000 mg twice daily and have not changed diet or activity since our
last visit.

Thank you,
Dylan
```

---

## Example 3 - Refill request

**Patient input:**

> I need a refill on metformin before my trip next week.

**Output:**

```
Subject: Refill request - metformin - this week

Hello Dr. Dave Matthews,

Could I please get a refill on metformin 1000 mg twice daily before I travel
next week?

I have about 5 days remaining. Pharmacy: Riverside Pharmacy.

Thank you,
Dylan
```

---

## Example 4 - Multi-topic input (split, do not bundle)

**Patient input:**

> I need a metformin refill, I have questions about my A1c, and there's a new
> rash on my forearm.

**Skill behavior:** ask the patient which to send first, since these are
unrelated topics that route differently. Do not bundle into one message.

**Output:**

> These are three different asks that the care team will route differently.
> Which would you like to send first? I recommend the rash if it's spreading
> or you have a sulfa allergy on file. The refill is fastest as a separate
> short message. The A1c discussion is best timed near your next visit.
````

## File: skills/epic-note/references/portal-message-format.md
size: 1312
sha: 24209ee288a021e5774fcd6390895b8a2d8635b2
upstream: https://github.com/realactivity/tula/blob/main/skills/epic-note/references/portal-message-format.md

````text
# Portal Message Format

Use this exact shape for every drafted message:

```
Subject: <topic> - <urgency: routine | this week | urgent>

Hello Dr. <last name>,

<one-sentence ask>

<2-4 sentences of relevant clinical context: onset, duration, severity,
triggers, what's been tried, change since last visit>

<bullet list of pertinent data, only if relevant>

Thank you,
<patient first name>
```

## Rules

- **Subject line**: topic + urgency tag. Urgency = `routine` | `this week` | `urgent`.
- **Greeting**: `Hello Dr. <last name>,` if known, else `Hello [Care Team],`.
- **First body sentence**: the ask. No throat-clearing.
- **Context paragraph**: only what the clinician needs to act on the ask.
- **Bullets**: only if there are 3+ data points (meds, vitals, dates) worth
  listing distinctly.
- **Sign-off**: `Thank you,` then patient first name only.
- **Word budget**: aim for ≤150 words; hard cap 220.
- **Tone**: respectful, direct, calm. No apologies for "bothering" the team.

## Pertinent data to include when relevant

- Current medication name + dose + start date
- Home vitals (BP, HR, temperature, weight) with date
- Recent lab/imaging result the patient is asking about (with date)
- What the patient has already tried (OTC meds, rest, dietary changes)
- Date of last related visit or test
````

## File: skills/epic-note/references/profile-schema.md
size: 1444
sha: f2ede895f421087a19c556d22c2805c7fe40a9e9
upstream: https://github.com/realactivity/tula/blob/main/skills/epic-note/references/profile-schema.md

````text
# Profile Schema

Personalization for `epic-note` lives outside the skill. The skill reads
identity and default care-team fields from the workspace profile so drafts
greet the right clinician without embedding real names in source.

## Where the profile lives

Resolution order, first hit wins:

1. `skills.entries.epic-note.profile` in `openclaw.json`
2. `EPIC_NOTE_PROFILE` env var (absolute path)
3. `~/.openclaw/workspace/memory/profile.yaml` (default; shared with
   other Tula skills)

If no profile resolves, use `Hello [Care Team],` as the greeting default.
Do not fabricate a clinician name.

## Schema (keys this skill reads)

```yaml
version: 1

identity:
  display_name: "Your Full Name"   # optional; used in sign-off
  short_name: "Your"               # optional
  pronouns: "they/them"            # optional

care_team:
  pcp:
    display_name: "Dr. Example Name"   # optional default recipient
    specialty: "internal medicine"       # optional context
```

When the user names a different clinician in the request, that name wins
over `care_team.pcp`.

## What does NOT belong in the profile

- Message body text, symptoms, or clinical narrative
- Diagnoses, meds, lab values (those come from workspace memory or the
  user's prompt at runtime)
- PHI of family members or third parties

## Eval fixtures

Eval suites use the synthetic persona **Dylan Meyer** and **Dr. Dave
Matthews** as PCP. See `evals/epic-note/fixtures/`.
````

## File: skills/epic-note/references/triage-rules.md
size: 1806
sha: e98e90465d3835380f3f528794d50bd30e9cc6fd
upstream: https://github.com/realactivity/tula/blob/main/skills/epic-note/references/triage-rules.md

```text
# Triage Rules - Red Flags That Must Not Become a Portal Message

Portal messages are typically reviewed within 1-3 business days. That is too
slow for emergencies. If any of the following appear in patient input, **do
not draft a message** - return the redirect text below.

## Red-flag symptoms

- **Cardiac**: chest pain, pressure, or tightness - especially with shortness
  of breath, sweating, radiation to arm/jaw/back, or known cardiac history.
- **Stroke (FAST)**: facial droop, arm weakness, speech difficulty - note time
  of symptom onset.
- **Respiratory**: severe shortness of breath, inability to speak full
  sentences, signs of anaphylaxis (swelling, hives, throat tightness).
- **Mental health crisis**: active suicidal ideation, plan, or intent;
  self-harm in progress.
- **Bleeding / trauma**: heavy bleeding that won't stop after 10 minutes of
  pressure, severe head injury, sudden vision loss.
- **Abdominal**: new severe abdominal pain, especially with vomiting blood,
  rigid abdomen, or fever.
- **Sepsis risk**: fever with chills, confusion, or hypotension in an
  immunocompromised, post-surgical, or oncology patient.
- **Pregnancy**: heavy vaginal bleeding, severe pelvic pain, decreased fetal
  movement in third trimester.
- **Pediatric (caregiver)**: lethargy, poor responsiveness, breathing
  difficulty, or persistent high fever in an infant.

## Required redirect text

When red flags are present, return:

> Based on what you described, this should not go through the patient portal.
> Please call 911 or go to the nearest emergency department now. Portal
> messages are typically reviewed within 1-3 business days, which is too slow
> for this. If you have a 24/7 nurse line, that is also faster than the
> portal.

Do not append a drafted message after the redirect.
```
