React Advanced Odontogram - v2.6.0
    Preparing search index...

    Variable __pdfPatientRowsForTestConst

    __pdfPatientRowsForTest: (
        cm: { examDate: string; patientDob: string; patientName: string },
        settings: Pick<
            PdfSettings,
            "defaultName"
            | "defaultDob"
            | "showAge"
            | "dateFormat",
        >,
        todayIso: string,
    ) => { label: string; value: string }[] = pdfPatientRows

    Test seam for pdfPatientRows (a real exportPdf needs jsPDF and a canvas).

    Type Declaration

      • (
            cm: { examDate: string; patientDob: string; patientName: string },
            settings: Pick<
                PdfSettings,
                "defaultName"
                | "defaultDob"
                | "showAge"
                | "dateFormat",
            >,
            todayIso: string,
        ): { label: string; value: string }[]
      • The PDF report's patient-identity rows: name, date of birth (+ age), exam date.

        An identity field the case does not have prints "not specified" — unless the host deliberately configured a placeholder in the PDF settings. The row stays either way: a missing row reads as "nothing here", a labelled empty one as "not recorded". The EXAM date is the one exception and still falls back to today: a report is produced today, which invents nothing about the patient.

        The age is computed from a REAL date of birth only — never from a placeholder, which would print a plausible, invented age beside it.

        These used to default to "John Doe" / "1980-01-01" and print them as if real. Reported and fixed in a downstream fork (saegerdirk-star/React-Advanced-Odontogram, 2.29.1).

        Parameters

        • cm: { examDate: string; patientDob: string; patientName: string }
        • settings: Pick<PdfSettings, "defaultName" | "defaultDob" | "showAge" | "dateFormat">
        • todayIso: string

        Returns { label: string; value: string }[]