Skip to main content
Split the latest completed consult note into sections and link them to your EHR’s fields. Conversion preserves the note’s text. Scopes: scribe:write to convert or map; scribe:read to retrieve mappings.

Convert a saved note

Example response for a note with # History and # Plan headings:
Conversion uses the highest-level Markdown section headings. A single overall title followed by lower headings is kept in Preamble, and those lower headings become sections. Other nested headings remain inside their parent section. Code-fence headings are not treated as sections. Text before the first heading becomes Preamble; a note without headings becomes Note. Duplicate headings receive suffixes such as Plan (2). Section body text and Markdown are preserved.

Save a template mapping

Map headings once for this grant and template:
PUT replaces the full mapping; an empty array clears it. You can map up to 100 unique headings from the visible template’s current Markdown body. Mappings are saved for this grant without changing the shared template. Built-in templates without an accessible detail record cannot be mapped this way; use per-note links instead. GET /templates/{template_id}/section-mappings returns the saved template version and stale. Re-save after reviewing a changed template. During conversion, a mapping is applied only when its template version matches the version used to create the note; otherwise mapping_stale is true and the template links are omitted.

Override a field for one note

Use the version and exact heading from conversion. An outdated version returns 409 VERSION_CONFLICT; an unknown heading returns 422 UNKNOWN_NOTE_SECTION. The link is saved for that document version. Editing or regenerating the note invalidates its per-note links; convert and review the new version again. Linking changes the mapping only, not the clinical text or its document version. Concurrent links to the same heading use the last saved value.

Write the reviewed result

After clinician review, write each section to its linked field through your EHR API or an approved connector.