Builds PaperTrail from the base skeleton into a full evidence-verification platform for the "Built with Claude: Life Sciences" hackathon (Builder Track). New named-user features (Build Beyond the Bench): - Lab Notebook Companion — rough bench notes -> structured, searchable, grounded experiment records (lib/labNotebook, /console/lab-notebook, migration 0059) - Clinical Trial Matcher — de-identified patient notes -> ranked eligible ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning (lib/trialMatcher, /console/trial-matcher, migrations 0060) Platform: - Deterministic verification moat (biostats recompute, exact-span grounding) - 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar, PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier) - Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise governance (RBAC, /api/v1 gateway, metering, audit chain, retention) - 17 OSS projects assimilated into native TypeScript on our stack (backend/engines retained + credited in NOTICE) - Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site - Next.js 16 upgrade, benchmark harness (honest smoke-test caveat) Licensing: Apache-2.0 (LICENSE + NOTICE).
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import type { GuidelineAuditSummary } from "@/lib/guidelineAudit/schemas";
|
|
|
|
// Headline summary bar for an audit run: how many claims were extracted and how they
|
|
// broke down. The overstated count is the money number — it's what a translational
|
|
// researcher scanning a press release wants to see first.
|
|
|
|
const CARDS: {
|
|
key: keyof GuidelineAuditSummary;
|
|
label: string;
|
|
tone: string;
|
|
}[] = [
|
|
{ key: "total", label: "Efficacy claims", tone: "text-ink/80" },
|
|
{ key: "accurate", label: "Accurate", tone: "text-emerald-600" },
|
|
{ key: "overstated", label: "Overstated", tone: "text-red-600" },
|
|
{ key: "unsupported", label: "Unsupported", tone: "text-amber-600" },
|
|
];
|
|
|
|
export function AuditSummary({ summary }: { summary: GuidelineAuditSummary }) {
|
|
return (
|
|
<div className="grid grid-cols-2 gap-3 sm:grid-cols-4">
|
|
{CARDS.map((card) => (
|
|
<div
|
|
key={card.key}
|
|
className="rounded-lg border border-ink/10 bg-white/40 px-4 py-3"
|
|
>
|
|
<p className={`text-2xl font-semibold ${card.tone}`}>
|
|
{summary[card.key]}
|
|
</p>
|
|
<p className="mt-0.5 text-xs text-ink/40">{card.label}</p>
|
|
</div>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|