terra vidhal

Lab Results Review

Component

About

A lab results review with grouped test panels, out-of-range summary lanes, abnormal and normal filtering, reference-range bars, per-panel flags, reviewer notes, per-result and bulk acknowledgement, a review banner and a sign-off gate with a completed state.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Lab Results Review to your project and fits it to your theme.

Code

How Lab Results Review is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import {
  LabResultsReview,
  type LabPanel,
} from "@/components/ui/lab-results-review";

const PANELS: LabPanel[] = [
  {
    id: "cbc",
    name: "Complete blood count",
    tests: [
      { id: "hgb", name: "Hemoglobin", value: 13.4, unit: "g/dL", low: 12, high: 16 },
      { id: "wbc", name: "White cells", value: 11.8, unit: "10³/µL", low: 4, high: 11 },
      { id: "plt", name: "Platelets", value: 254, unit: "10³/µL", low: 150, high: 400 },
      { id: "hct", name: "Hematocrit", value: 39.1, unit: "%", low: 36, high: 46 },
    ],
  },
  {
    id: "metabolic",
    name: "Metabolic panel",
    tests: [
      { id: "glu", name: "Glucose", value: 104, unit: "mg/dL", low: 70, high: 99 },
      { id: "na", name: "Sodium", value: 139, unit: "mmol/L", low: 135, high: 145 },
      { id: "k", name: "Potassium", value: 3.3, unit: "mmol/L", low: 3.5, high: 5.1 },
      { id: "cre", name: "Creatinine", value: 0.82, unit: "mg/dL", low: 0.6, high: 1.1 },
    ],
  },
  {
    id: "lipids",
    name: "Lipid panel",
    tests: [
      { id: "ldl", name: "LDL cholesterol", value: 118, unit: "mg/dL", low: 50, high: 100 },
      { id: "hdl", name: "HDL cholesterol", value: 58, unit: "mg/dL", low: 40, high: 90 },
      { id: "tri", name: "Triglycerides", value: 132, unit: "mg/dL", low: 50, high: 150 },
    ],
  },
];

export default function LabResultsReviewDemo() {
  return (
    <main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <LabResultsReview
        patient={{ name: "Mara Ellison", age: 34, reference: "LAB-5521" }}
        collectedAt="today, 08:12"
        panels={PANELS}
        title="Routine blood panel"
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.