Skip to main content
Spin up a real-time ambient scribe with the AI Services clinical endpoints — diarized capture, in-encounter SOAP drafting, ICD-10 / CPT code suggestions, and EHR sync.

Architecture

medera/ambient-rt.svgambient scribe quickstartAmbient scribe — real timeOpen WSS /sessionsStream encounter audioReceive diarized transcriptReceive SOAP + ICD-10 + CPTwss://api.medera.info/sessionsWSS · real-time stateful transcription2-speaker diarization · DSM-5-TR vocab bias · instrument-score extractionC-SSRS in-line crisis marker · structured SOAP draft

Prerequisites

  • A
Medera Console account and a Developer API Key with write:phi and execute:agents scopes.
  • A microphone — see Microphone Devices.
  • An EHR target configured under Console → Integrations.
1

Authenticate

Set your API key as an env variable.
2

Start the clinical session

Open a clinical session — this anchors the transcript, note, and code suggestions.
3

Stream chunks

Send PCM audio chunks (16 kHz 16-bit mono recommended) as the clinician speaks.
Local Medera STT is the default with Medera STT as fallback. The response returns the accumulated transcript so far.
4

Stop the session

Finalize the transcript and trigger the initial clinical analysis.
5

Generate the SOAP note

Use the enhanced generator for specialty templates and inline code suggestions.
The response includes the structured SOAP plus a list of suggested ICD-10 / CPT codes anchored to transcript spans.
6

Sign and post to the EHR

After clinician sign-off, finalize the note. Medera posts the signed note and code set to the configured EHR target via the integration adapter.

Best practices -

Capture audio at 16 kHz 16-bit PCM mono. Higher rates work but waste bandwidth.
  • Use a dedicated lavalier or beamforming mic. See Microphone Devices.
  • Always require clinician sign-off before posting. Never auto-post to the EHR.
  • Use the transcript span IDs to render the documentation anchor next to every code suggestion.

What’s next

Visit Scribe Agent

Agent-level documentation.

Encounter Coding

How code suggestions work.

EHR Integrations

Connect Epic, Cerner, athenahealth.

STT — best practices

Audio quality recommendations.