import type { SignedReport } from "../../hooks/useOrderLabReports"; import { formatDateTime } from "../../utils/dateUtils"; /** A signed report's own words and who signed them, as the ordering clinician reads them on the order. */ export const SignedReportText = ({ signed }: { signed: SignedReport }) => (
{signed.findings &&

{signed.findings}

} {signed.impression && (

Impression: {signed.impression}

)}

{["Signed by " + (signed.by ?? "a reader not recorded"), signed.at ? formatDateTime(signed.at) : undefined] .filter(Boolean) .join(" ยท ")}

);