Guided Forms
Fill any FHIR Questionnaire in real time from a live clinical conversation, with confidence, evidence and provenance on every answer.
Guided Forms turn a live conversation into structured answers on your form. You register a FHIR Questionnaire once. During a visit you stream audio (or send your own transcript), and Scribeberry fills the fields your UI has unlocked, as people speak.
- Any form. FHIR R4 or R5
Questionnaire, includingenableWhenlogic. You don't write code per form. - Field-level output. Each answer carries the exact
linkId, a typed value, a confidence score, the verbatim quote it came from, and a reference to any earlier answer it corrects. - Your UI stays in charge. You decide which fields are active. Clinician-entered answers are never overwritten.
- Canadian-resident. Speech and AI run in Canadian data centres. Scribeberry stores no audio, transcripts or answers.
1. Register your Questionnaire
The response is a compile report: field counts, conditional items, and
anything Scribeberry can't honour (for example, a choice item with no
options).
- Versions are immutable. Re-sending the same content is safe. Changing
the content of an existing version returns
409, so publish a new version instead. extractableLinkIdsis optional. It limits which fields the scribe may fill; the rest stay clinician-entered.sectionLinkIdis optional. It scopes the form to one top-level section.- Per-field prompt metadata (
scribe-instruction). AnyQuestionnaireitem can include an extension withurl: "https://scribeberry.com/fhir/StructureDefinition/scribe-instruction"and avalueStringtelling the scribe how to summarize or format that field (especially useful for free-text summaries and prescription rationales).
1b. Admin prompt authoring & pre-publish sandbox
Before publishing a new form version to clinicians, form admins can refine per-field instructions with natural language and test extraction against sample consultations without storing any patient data:
2. Start a realtime visit
Create a short-lived browser token on your server
(Realtime in the browser). Then start a
session with guidedForm:
3. Keep the scribe in sync with your UI
When a gate opens or closes in your form (for example, pregnant = yes unlocks breastfeeding), tell the scribe. Newly unlocked fields are filled from what was already said.
When the clinician enters or changes an answer, share it so later corrections use the same context:
4. Finish the visit
Every answer in the QuestionnaireResponse records its source (scribe-ai
or pharmacist-manual), confidence, evidence and utterance. When an answer
changed, it also records the previous value and what it corrected.
Events
| Event | When |
|---|---|
guidedFormStarted | Session accepted; includes active fields, fill_timing, and conflict_policy |
extraction | An utterance or typed note filled or corrected fields (kind: extraction, correction, backfill, batch, conflict) |
guidedFormDegraded | One utterance couldn't be processed; continue manually |
guidedFormComplete | Final QuestionnaireResponse and Provenance |
Configurable fill timing & conflict policy
Pass fill_timing and conflict_policy on start.config.guidedForm:
fill_timing:"realtime"(default: fills live per utterance) or"end-of-visit"(buffers utterances and runs a singlebatchsynthesis onstop).conflict_policy:"latest-wins"(default: auto-updates and emitscorrection),"flag-for-review"(keeps the original answer and emitsconflictwith both current and proposed quotes), or"first-wins".field_instructions: Optional per-linkIdprompt overrides for the session.live_dictation_partials: Optional boolean (defaultfalse). Whentrue, Scribeberry extracts incrementally from live dictation partials without waiting for long silence pauses.- Typed notes mid-session: Send
{ "type": "note.live", "session_id": "enc-001", "text": "..." }for live-as-you-type updates in place, and{ "type": "note.submit", "session_id": "enc-001", "text": "..." }to commit a typed or pasted summary on the same WebSocket.
Extraction event
Typed notes, batch synthesis, or your own speech recognition
Send a single spoken utterance (mode: "utterance"), a typed/pasted pharmacist
summary (mode: "note", up to 8,000 characters), or a full encounter transcript
for end-of-visit synthesis (mode: "batch", up to 120 turns):
The response is the same extraction event. Nothing is stored between calls.
Engines
| Engine | Best for |
|---|---|
scribe-balanced (default) | Best accuracy at real-time speed |
scribe-swift | Lowest latency |
scribe-precise | Long, nuanced answers |
scribe-classic | Previous generation |
All engines run in Canada.
Good practice
- Treat low confidence as a suggestion. Values under your threshold (we suggest 0.7) should be shown for one-tap confirmation, not auto-filled.
- Never overwrite a clinician's entry with a scribe value. Surface it as a suggestion instead.
- Questions don't fill fields. "Are you pregnant?" fills nothing; the answer does.
- Audio: 16 kHz mono PCM16. See Audio format.
Guided-form extraction is billed as input and output tokens; streamed audio is billed as realtime transcription.