scribe:write to convert or map; scribe:read to retrieve mappings.
Convert a saved note
# History and # Plan headings:
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
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.