caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a
deterministic verification core: clinical-trial claims checked against
ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI
recomputed in code, oracle-tested), code-enforced exact-span grounding, and
multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing
at scale (unpdf + Docling), agentic workflows, Claude Science connector,
compliance/audit, billing, public API, and more.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 07:21:22 +03:00

36 lines
1.1 KiB
TypeScript

import type { MlrDecision, MlrRole } from "@/app/api/publications/lib/types";
// MLR role/decision option lists and label helpers shared by the detail page's
// readiness panel and review form.
export const MLR_ROLES: { value: MlrRole; label: string }[] = [
{ value: "medical", label: "Medical" },
{ value: "legal", label: "Legal" },
{ value: "regulatory", label: "Regulatory" },
{ value: "editorial", label: "Editorial" },
];
export const MLR_DECISIONS: { value: MlrDecision; label: string }[] = [
{ value: "approved", label: "Approve" },
{ value: "changes_requested", label: "Request changes" },
{ value: "rejected", label: "Reject" },
];
export function decisionLabel(decision: string | null): string {
switch (decision) {
case "approved":
return "Approved";
case "rejected":
return "Rejected";
case "changes_requested":
return "Changes requested";
default:
return "Pending";
}
}
export function roleLabel(role: string): string {
const found = MLR_ROLES.find((r) => r.value === role);
return found ? found.label : role;
}