Circle V2 API Docs
    Preparing search index...

    Function toContextSourceDocumentType

    • Maps a citation's full provenance onto v1's two-value context_sources.document_type, which PR7 must keep writing for compatibility with the legacy forms UI. EMR-sourced evidence is a patient evaluation; everything else is a pdf. The unmapped documentType stays on the citation, so the lossy projection is the compatibility shim and not the record.

      Parameters

      • documentType: string | null

      Returns "pdf" | "patient_evaluation"