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

https://mintcdn.com/medera-357fd587/n1mgcc3nR2sq_PoL/icons/ui/stethoscope.svg?fit=max&auto=format&n=n1mgcc3nR2sq_PoL&q=85&s=c8a7441d30a2ae7471a136c60f734adc

Visit Scribe Agent

Agent-level documentation.
https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/code.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=55229463dbd5bbb579cce6192dbc5ffc

Encounter Coding

How code suggestions work.
https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/link.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=44f5f1ae1b0122daa0138e9f47b49449

EHR Integrations

Connect Epic, Cerner, athenahealth.
https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/mic.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=2fa5bf2e6c0f7c96c6db63c83d109eb1

STT — best practices

Audio quality recommendations.