Skip to content

AI note

An AI-drafted clinical note whose claims cite the records they rely on, with unsupported claims marked for review.

Subjective

58-year-old with central chest tightness for two hours, worse on exertion. No previous cardiac history (no source).

Objective

Sinus rhythm at 78 bpm without ST changes; high-sensitivity troponin 18 then 21 ng/L, below the 99th percentile.

Assessment

Low risk of acute myocardial infarction on the 0/3-hour pathway; stable angina remains possible.

Plan

Outpatient exercise testing. Return if pain comes on at rest (no source).

Dotted text has no source. Check it against the record.

Installation

bunx shadcn@4.22.1 add @organui/ai-note

This adds components/ui/ai-note.tsx, built on shadcn's components in your project's Base UI or Radix style.

Usage

import { AiNote } from "@/components/ui/ai-note"

<AiNote
  sources={[{ id: "ecg", title: "12-lead ECG", kind: "ECG" }]}
  sections={[
    {
      id: "objective",
      title: "Objective",
      content: [
        { text: "Sinus rhythm without ST changes", sources: ["ecg"] },
        ". ",
        { text: "No previous cardiac history" }, // marked: no source
      ],
    },
  ]}
/>

API Reference

AI note props
PropDescription
sections{ id, title, content }. Content mixes plain strings, which join claims, with claims: { text, sources }.
sourcesEvery record the note cites. See Clinical citation.
markUnsupportedUnderlines claims with no source and says so to screen readers. Defaults to true.
labelNames the note. Defaults to "AI-drafted note".

Notes

Make every factual statement a claim, with its sources, so the ones the model couldn't support stand out.

Installing it also installs Clinical citation and Clinical sources, which draw the citations and the list.