Ambient clinical documentation: every line of the note traced back to the consultation
An AI scribe listens to the consultation, drafts the clinical note and suggests diagnosis codes for the clinician to sign. ZizkaDB links each statement and code to the part of the conversation it came from, so unsupported content is caught and every signed note can be explained.
The situation
A hospital group rolls out an ambient documentation agent in its outpatient clinics. During a consultation the agent transcribes the conversation, drafts the clinical note (history, examination, assessment, plan), proposes diagnosis and procedure codes for billing, and presents the draft to the clinician, who edits and signs it.
The draft saves clinicians time, but a note is a legal medical record. If the agent invents a medication, a dose or a symptom the patient never mentioned, and the clinician signs without noticing, the error enters the record and can travel to the next clinician, the pharmacy and the insurer.
What goes wrong without a record
- A pharmacist queries a dose in a signed note. The clinician does not remember saying it, and the recording was not kept. Nobody can tell whether the agent misheard, invented it, or the clinician dictated it.
- Coding auditors find a pattern of higher-complexity codes. Was it the agent's suggestion, the clinician's choice, or real case mix?
- The vendor updates the model. Notes become longer and include more assumed findings, and nobody can show when this started.
How ZizkaDB is used
Each consultation is a session; the agent records:
transcript_segment: one event per segment of the conversation, with speaker role and time offset. (Store references and short segments; the hospital decides how much text is kept.)note_statement: each statement in the draft note, linked byparent_idto the transcript segment it is based on. A statement with no supporting segment is recorded asunsupported_statementand highlighted to the clinician.code_suggested: each suggested code, linked to the statements that justify it.llm_end: the model calls, recorded automatically byzizkadb.instrument(); withcapture_content=Falseonly the model, token usage and links are stored, not the text.clinician_editandnote_signed: what the clinician changed and when the note was signed, so the record shows which content came from the agent and which from the clinician.
For patient data that must not leave the hospital, ZizkaDB runs self-hosted inside the hospital's own network.
Example
seg = await db.log(agent="ambient-scribe", event="transcript_segment",
data={"speaker": "patient", "t": "04:12", "ref": seg_ref},
session_id=visit_id)
stmt = await db.log(agent="ambient-scribe", event="note_statement",
data={"section": "medications", "text_ref": stmt_ref,
"summary": "takes metformin twice daily"},
parent_id=seg.event_id, session_id=visit_id)
await db.log(agent="ambient-scribe", event="code_suggested",
data={"system": "ICD-10", "code": "E11.9"},
parent_id=stmt.event_id, session_id=visit_id)Questions the hospital can now answer
- Where in the consultation did this statement come from? (
whyon the note statement leads to the transcript segment) - Which statements in signed notes had no supporting segment, and did the clinician remove or keep them?
- Why was this code suggested? (
whyon the code leads to the statements and segments behind it) - Did note length, unsupported statements or code complexity change after the vendor's model update? (
baselinedrift and the Agent Behavior page) - Is the audit trail for this note complete and unchanged? (
verify_chain)
Regulation and standards this supports
- HIPAA Security Rule audit controls (45 CFR 164.312(b)) for systems handling electronic protected health information, in the US.
- GDPR Article 9 (health data) and Article 30 (records of processing) in the EU, helped by self-hosting and content minimisation.
- EU AI Act transparency and, where the system is a medical device or a safety component of one, the obligations for high-risk AI systems.
- Clinical safety management of health IT (for example DCB0129 and DCB0160 in the NHS): evidence for hazard analysis and incident review.
What to measure
- Share of note statements linked to a transcript segment.
- Unsupported statements per note, before and after each model update.
- Clinician edit rate per section of the note.
- Time to answer a documentation query from pharmacy, coding audit or a complaint.