| name | abridge-hello-world |
| description | Create a minimal Abridge ambient AI clinical documentation example.
Use when testing Abridge integration, verifying EHR connectivity,
or learning how Abridge captures and structures clinical conversations.
Trigger: "abridge hello world", "abridge example", "abridge quick start", "test abridge".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*) |
| version | 1.4.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","healthcare","ai","abridge","clinical-documentation"] |
| compatibility | Designed for Claude Code |
Abridge Hello World
Overview
Minimal working example demonstrating Abridge's ambient clinical documentation. This creates a simulated encounter session, sends audio/transcript data, and receives a structured clinical note.
Prerequisites
- Completed
abridge-install-auth setup
- Abridge sandbox credentials configured
- Node.js 18+ with TypeScript
Instructions
Step 1: Create Project Structure
mkdir abridge-hello-world && cd abridge-hello-world
npm init -y
npm install axios dotenv typescript @types/node
npx tsc --init --target ES2022 --module NodeNext --moduleResolution NodeNext
Step 2: Build the Encounter Session Client
import axios, { AxiosInstance } from 'axios';
interface EncounterSession {
session_id: string;
patient_id: string;
provider_id: string;
encounter_type: 'outpatient' | 'inpatient' | 'emergency';
status: 'active' | 'processing' | 'completed';
created_at: string;
}
interface ClinicalNote {
note_id: string;
session_id: string;
sections: {
chief_complaint: string;
history_present_illness: string;
review_of_systems: ;
: ;
: ;
: ;
};
: <{ : ; : }>;
: <{ : ; : }>;
: ;
: <{
: ;
: ;
: ;
: ;
}>;
}
{
: ;
() {
. = axios.({
: process.. || ,
: {
: ,
: process..!,
: ,
},
: ,
});
}
(
: ,
: ,
: [] =
): <> {
{ data } = ..(, {
: patientId,
: providerId,
: encounterType,
: ,
: ,
});
data;
}
(: , : ): <> {
..(, {
: transcript,
: ,
});
}
(: ): <> {
..();
attempts = ;
(attempts < ) {
{ : session } = ..();
(session. === ) {
{ : note } = ..();
note;
}
( (r, ));
attempts++;
}
();
}
}
{ , , };