Circle V2 API Docs
    Preparing search index...

    Function extractSectionHeadings

    • The markdown section headings in text, in document order, de-duplicated.

      A triage signal, not a contract: it is what makes "every chart typed biopsychosocial with no Substance Use History section" a query rather than a re-render of the corpus. Deliberately only Markdown headings, which is what EMRDocumentBuilder emits for LightningStep, Sunwave, synthetic, and most of Kipu. Two known renderings are invisible to it: Kipu evaluation header blocks, which emit plain EVALUATION: … / Status: … lines, and InSync RPA, which emits Key: value. Both are key-value lines rather than sections, and widening the pattern to catch them would report every labeled field in the document as a heading.

      Parameters

      • text: string

      Returns string[]