{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "patient-medical-record",
  "title": "Patient Medical Record",
  "type": "registry:block",
  "files": [
    {
      "path": "packages/registry-react/blocks/patient-medical-record/PatientMedicalRecord.tsx",
      "content": "'use client'\n\nimport {\n  Activity,\n  AlertTriangle,\n  Calendar,\n  CheckCircle2,\n  Clock,\n  Droplets,\n  FileText,\n  FlaskConical,\n  HeartPulse,\n  MapPin,\n  Phone,\n  Pill,\n  Printer,\n  Scale,\n  Stethoscope,\n  Thermometer,\n  UserCheck,\n  Wind,\n} from 'lucide-react'\nimport { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'\nimport { Badge } from '@/components/ui/badge'\nimport { Button } from '@/components/ui/button'\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'\nimport { Separator } from '@/components/ui/separator'\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'\n\nexport function PatientMedicalRecord() {\n  return (\n    <div data-slot=\"patient-medical-record\" className=\"bg-background text-foreground w-full space-y-6\">\n      {/* Patient Header Card */}\n      <header className=\"bg-card border-border rounded-xl border p-5 shadow-xs sm:p-6\">\n        <div className=\"flex flex-col gap-5\">\n          {/* Top Row: Patient Demographics & Action Buttons */}\n          <div className=\"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between\">\n            <div className=\"flex flex-wrap items-start gap-4 sm:items-center\">\n              <Avatar className=\"ring-border size-14 ring-2 sm:size-16\">\n                <AvatarImage\n                  src=\"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=150&auto=format&fit=crop&q=80\"\n                  alt=\"David Chen\"\n                />\n                <AvatarFallback className=\"bg-primary/10 text-primary text-base font-semibold\">DC</AvatarFallback>\n              </Avatar>\n              <div className=\"space-y-1\">\n                <div className=\"flex flex-wrap items-center gap-2\">\n                  <h1 className=\"text-foreground text-xl font-bold tracking-tight sm:text-2xl\">David Chen</h1>\n                  <span className=\"text-muted-foreground text-sm font-medium\">48 yrs · Male</span>\n                  <Badge variant=\"outline\" className=\"border-success/30 bg-success/10 text-success gap-1.5 font-medium\">\n                    <span className=\"bg-success size-1.5 animate-pulse rounded-full\" />\n                    Active Inpatient · Room 412B\n                  </Badge>\n                </div>\n\n                <div className=\"text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1 text-xs\">\n                  <span className=\"text-foreground flex items-center gap-1 font-mono font-medium\">#MRN-849201</span>\n                  <span className=\"flex items-center gap-1\">\n                    <Calendar className=\"size-3.5\" />\n                    DOB: <strong className=\"text-foreground font-medium tabular-nums\">Oct 14, 1978</strong>\n                  </span>\n                  <span className=\"flex items-center gap-1\">\n                    <Droplets className=\"text-destructive size-3.5\" />\n                    Blood: <strong className=\"text-foreground font-medium\">O+</strong>\n                  </span>\n                  <span className=\"flex items-center gap-1\">\n                    <Stethoscope className=\"text-primary size-3.5\" />\n                    PCP: <strong className=\"text-foreground font-medium\">Dr. Emily Vance, MD</strong>\n                  </span>\n                </div>\n              </div>\n            </div>\n\n            {/* Action Buttons */}\n            <div className=\"flex flex-wrap items-center gap-2\">\n              <Button variant=\"outline\" size=\"sm\" className=\"gap-1.5 text-xs font-medium\">\n                <FlaskConical className=\"text-primary size-3.5\" />\n                Order Labs\n              </Button>\n              <Button variant=\"outline\" size=\"sm\" className=\"gap-1.5 text-xs font-medium\">\n                <Pill className=\"text-primary size-3.5\" />\n                Write Prescription\n              </Button>\n              <Button variant=\"outline\" size=\"sm\" className=\"gap-1.5 text-xs font-medium\">\n                <Printer className=\"size-3.5\" />\n                Print Summary\n              </Button>\n            </div>\n          </div>\n\n          {/* Red Alert Severe Allergy Pill / Banner */}\n          <div className=\"border-destructive/30 bg-destructive/10 text-destructive dark:bg-destructive/20 flex flex-wrap items-center justify-between gap-3 rounded-lg border px-4 py-2.5 text-xs font-medium sm:text-sm\">\n            <div className=\"flex items-center gap-2\">\n              <AlertTriangle className=\"text-destructive size-4 shrink-0\" />\n              <span>\n                Severe Allergies: <strong className=\"font-semibold underline\">Penicillin</strong> (Anaphylaxis),{' '}\n                <strong className=\"font-semibold underline\">Sulfa drugs</strong> (Severe Rash)\n              </span>\n            </div>\n            <Badge variant=\"destructive\" className=\"text-xs font-semibold tracking-wider uppercase\">\n              High Alert\n            </Badge>\n          </div>\n        </div>\n      </header>\n\n      {/* 2-Column Clinical Layout */}\n      <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-12\">\n        {/* Left Main Panel (65%) */}\n        <main className=\"space-y-6 lg:col-span-8\">\n          {/* Latest Vitals Strip */}\n          <Card>\n            <CardHeader className=\"flex-row items-center justify-between space-y-0 pb-3\">\n              <div>\n                <CardTitle className=\"flex items-center gap-2 text-base font-semibold\">\n                  <Activity className=\"text-primary size-4\" />\n                  Latest Vitals Strip\n                </CardTitle>\n                <CardDescription className=\"text-xs\">\n                  Recorded today at 08:30 AM EDT · Nurse J. Miller, RN (Floor 4 East)\n                </CardDescription>\n              </div>\n              <Badge variant=\"secondary\" className=\"text-xs font-normal\">\n                Within Normal Limits\n              </Badge>\n            </CardHeader>\n            <CardContent>\n              <div className=\"grid grid-cols-2 gap-3 sm:grid-cols-5\">\n                {/* BP */}\n                <div className=\"bg-muted/30 border-border space-y-1 rounded-lg border p-3\">\n                  <div className=\"text-muted-foreground flex items-center justify-between\">\n                    <span className=\"text-xs font-medium tracking-wider uppercase\">Blood Pressure</span>\n                    <HeartPulse className=\"text-destructive size-3.5\" />\n                  </div>\n                  <div className=\"text-foreground text-xl font-bold tracking-tight tabular-nums sm:text-2xl\">\n                    124/82\n                  </div>\n                  <p className=\"text-muted-foreground text-xs\">mmHg · Normal</p>\n                </div>\n\n                {/* HR */}\n                <div className=\"bg-muted/30 border-border space-y-1 rounded-lg border p-3\">\n                  <div className=\"text-muted-foreground flex items-center justify-between\">\n                    <span className=\"text-xs font-medium tracking-wider uppercase\">Heart Rate</span>\n                    <Activity className=\"text-destructive size-3.5\" />\n                  </div>\n                  <div className=\"text-foreground text-xl font-bold tracking-tight tabular-nums sm:text-2xl\">72</div>\n                  <p className=\"text-muted-foreground text-xs\">bpm · Resting</p>\n                </div>\n\n                {/* Temp */}\n                <div className=\"bg-muted/30 border-border space-y-1 rounded-lg border p-3\">\n                  <div className=\"text-muted-foreground flex items-center justify-between\">\n                    <span className=\"text-xs font-medium tracking-wider uppercase\">Temp (Oral)</span>\n                    <Thermometer className=\"text-warning size-3.5\" />\n                  </div>\n                  <div className=\"text-foreground text-xl font-bold tracking-tight tabular-nums sm:text-2xl\">98.6</div>\n                  <p className=\"text-muted-foreground text-xs\">°F · Afebrile</p>\n                </div>\n\n                {/* SpO2 */}\n                <div className=\"bg-muted/30 border-border space-y-1 rounded-lg border p-3\">\n                  <div className=\"text-muted-foreground flex items-center justify-between\">\n                    <span className=\"text-xs font-medium tracking-wider uppercase\">Oxygen SpO2</span>\n                    <Wind className=\"text-info size-3.5\" />\n                  </div>\n                  <div className=\"text-foreground text-xl font-bold tracking-tight tabular-nums sm:text-2xl\">98%</div>\n                  <p className=\"text-muted-foreground text-xs\">Room air</p>\n                </div>\n\n                {/* BMI */}\n                <div className=\"bg-muted/30 border-border space-y-1 rounded-lg border p-3\">\n                  <div className=\"text-muted-foreground flex items-center justify-between\">\n                    <span className=\"text-xs font-medium tracking-wider uppercase\">BMI</span>\n                    <Scale className=\"text-success size-3.5\" />\n                  </div>\n                  <div className=\"text-foreground text-xl font-bold tracking-tight tabular-nums sm:text-2xl\">24.2</div>\n                  <p className=\"text-muted-foreground text-xs\">kg/m² · Normal</p>\n                </div>\n              </div>\n            </CardContent>\n          </Card>\n\n          {/* Active Diagnoses & Problem List */}\n          <Card>\n            <CardHeader className=\"flex-row items-center justify-between space-y-0 pb-3\">\n              <div>\n                <CardTitle className=\"flex items-center gap-2 text-base font-semibold\">\n                  <FileText className=\"text-primary size-4\" />\n                  Active Diagnoses & Problem List\n                </CardTitle>\n                <CardDescription className=\"text-xs\">\n                  Chronic and active conditions under clinical management\n                </CardDescription>\n              </div>\n              <Badge variant=\"secondary\" className=\"text-xs font-normal\">\n                3 Active Conditions\n              </Badge>\n            </CardHeader>\n            <CardContent className=\"space-y-3\">\n              {/* Item 1: Type 2 Diabetes */}\n              <div className=\"border-border bg-card flex flex-col justify-between gap-2 rounded-lg border p-3.5 sm:flex-row sm:items-center\">\n                <div className=\"space-y-1\">\n                  <div className=\"flex flex-wrap items-center gap-2\">\n                    <span className=\"text-foreground text-sm font-semibold\">Type 2 Diabetes Mellitus</span>\n                    <Badge variant=\"outline\" className=\"font-mono text-xs\">\n                      ICD-10 E11.9\n                    </Badge>\n                    <Badge variant=\"secondary\" className=\"text-xs\">\n                      Chronic\n                    </Badge>\n                  </div>\n                  <p className=\"text-muted-foreground text-xs\">\n                    Onset: <span className=\"text-foreground font-medium\">March 2019</span> · Managed with oral\n                    hypoglycemics · Last HbA1c: <span className=\"text-foreground font-medium\">7.2%</span>\n                  </p>\n                </div>\n                <div className=\"text-left sm:text-right\">\n                  <span className=\"text-muted-foreground block text-xs\">Diagnosed by</span>\n                  <span className=\"text-foreground text-xs font-medium\">Dr. Emily Vance, MD</span>\n                </div>\n              </div>\n\n              {/* Item 2: Essential Hypertension */}\n              <div className=\"border-border bg-card flex flex-col justify-between gap-2 rounded-lg border p-3.5 sm:flex-row sm:items-center\">\n                <div className=\"space-y-1\">\n                  <div className=\"flex flex-wrap items-center gap-2\">\n                    <span className=\"text-foreground text-sm font-semibold\">Essential (Primary) Hypertension</span>\n                    <Badge variant=\"outline\" className=\"font-mono text-xs\">\n                      ICD-10 I10\n                    </Badge>\n                    <Badge variant=\"secondary\" className=\"text-xs\">\n                      Controlled\n                    </Badge>\n                  </div>\n                  <p className=\"text-muted-foreground text-xs\">\n                    Onset: <span className=\"text-foreground font-medium\">November 2021</span> · ACE inhibitor therapy ·\n                    Monitored daily\n                  </p>\n                </div>\n                <div className=\"text-left sm:text-right\">\n                  <span className=\"text-muted-foreground block text-xs\">Diagnosed by</span>\n                  <span className=\"text-foreground text-xs font-medium\">Dr. Emily Vance, MD</span>\n                </div>\n              </div>\n\n              {/* Item 3: Asthma */}\n              <div className=\"border-border bg-card flex flex-col justify-between gap-2 rounded-lg border p-3.5 sm:flex-row sm:items-center\">\n                <div className=\"space-y-1\">\n                  <div className=\"flex flex-wrap items-center gap-2\">\n                    <span className=\"text-foreground text-sm font-semibold\">Moderate Persistent Asthma</span>\n                    <Badge variant=\"outline\" className=\"font-mono text-xs\">\n                      ICD-10 J45.40\n                    </Badge>\n                    <Badge variant=\"secondary\" className=\"text-xs\">\n                      Intermittent\n                    </Badge>\n                  </div>\n                  <p className=\"text-muted-foreground text-xs\">\n                    Onset: <span className=\"text-foreground font-medium\">June 2015</span> · Bronchodilator PRN · No\n                    hospitalizations in past 12m\n                  </p>\n                </div>\n                <div className=\"text-left sm:text-right\">\n                  <span className=\"text-muted-foreground block text-xs\">Diagnosed by</span>\n                  <span className=\"text-foreground text-xs font-medium\">Dr. Marcus Vance, MD</span>\n                </div>\n              </div>\n            </CardContent>\n          </Card>\n\n          {/* Active Medications Table */}\n          <Card>\n            <CardHeader className=\"flex-row items-center justify-between space-y-0 pb-3\">\n              <div>\n                <CardTitle className=\"flex items-center gap-2 text-base font-semibold\">\n                  <Pill className=\"text-primary size-4\" />\n                  Active Medications Table\n                </CardTitle>\n                <CardDescription className=\"text-xs\">\n                  Current inpatient and outpatient pharmacotherapy regimen\n                </CardDescription>\n              </div>\n              <Badge variant=\"secondary\" className=\"text-xs font-normal\">\n                4 Prescriptions\n              </Badge>\n            </CardHeader>\n            <CardContent>\n              <div className=\"border-border overflow-x-auto rounded-lg border\">\n                <Table>\n                  <TableHeader>\n                    <TableRow>\n                      <TableHead className=\"text-xs\">Medication & Brand</TableHead>\n                      <TableHead className=\"text-xs\">Dosage & Route</TableHead>\n                      <TableHead className=\"hidden text-xs md:table-cell\">Instructions</TableHead>\n                      <TableHead className=\"text-xs\">Prescribed By</TableHead>\n                      <TableHead className=\"text-right text-xs\">Status</TableHead>\n                    </TableRow>\n                  </TableHeader>\n                  <TableBody>\n                    <TableRow>\n                      <TableCell>\n                        <div className=\"text-foreground text-sm font-medium\">Metformin HCl</div>\n                        <div className=\"text-muted-foreground text-xs\">Glucophage · Biguanide</div>\n                      </TableCell>\n                      <TableCell className=\"text-foreground font-mono text-xs font-medium\">500mg PO BID</TableCell>\n                      <TableCell className=\"text-muted-foreground hidden text-xs md:table-cell\">\n                        Take with morning & evening meals\n                      </TableCell>\n                      <TableCell className=\"text-foreground text-xs\">Dr. Emily Vance, MD</TableCell>\n                      <TableCell className=\"text-right\">\n                        <Badge variant=\"default\" className=\"text-xs font-medium\">\n                          Active\n                        </Badge>\n                      </TableCell>\n                    </TableRow>\n\n                    <TableRow>\n                      <TableCell>\n                        <div className=\"text-foreground text-sm font-medium\">Lisinopril</div>\n                        <div className=\"text-muted-foreground text-xs\">Prinivil · ACE Inhibitor</div>\n                      </TableCell>\n                      <TableCell className=\"text-foreground font-mono text-xs font-medium\">10mg PO Daily</TableCell>\n                      <TableCell className=\"text-muted-foreground hidden text-xs md:table-cell\">\n                        Take once daily in morning with water\n                      </TableCell>\n                      <TableCell className=\"text-foreground text-xs\">Dr. Emily Vance, MD</TableCell>\n                      <TableCell className=\"text-right\">\n                        <Badge variant=\"default\" className=\"text-xs font-medium\">\n                          Active\n                        </Badge>\n                      </TableCell>\n                    </TableRow>\n\n                    <TableRow>\n                      <TableCell>\n                        <div className=\"text-foreground text-sm font-medium\">Albuterol Sulfate</div>\n                        <div className=\"text-muted-foreground text-xs\">ProAir HFA · SABA</div>\n                      </TableCell>\n                      <TableCell className=\"text-foreground font-mono text-xs font-medium\">\n                        90mcg Inhalation Q4H PRN\n                      </TableCell>\n                      <TableCell className=\"text-muted-foreground hidden text-xs md:table-cell\">\n                        1–2 puffs every 4–6 hrs as needed\n                      </TableCell>\n                      <TableCell className=\"text-foreground text-xs\">Dr. Emily Vance, MD</TableCell>\n                      <TableCell className=\"text-right\">\n                        <Badge variant=\"default\" className=\"text-xs font-medium\">\n                          Active\n                        </Badge>\n                      </TableCell>\n                    </TableRow>\n\n                    <TableRow>\n                      <TableCell>\n                        <div className=\"text-foreground text-sm font-medium\">Atorvastatin Calcium</div>\n                        <div className=\"text-muted-foreground text-xs\">Lipitor · Statin</div>\n                      </TableCell>\n                      <TableCell className=\"text-foreground font-mono text-xs font-medium\">20mg PO QHS</TableCell>\n                      <TableCell className=\"text-muted-foreground hidden text-xs md:table-cell\">\n                        Take once daily at bedtime\n                      </TableCell>\n                      <TableCell className=\"text-foreground text-xs\">Dr. Marcus Vance, MD</TableCell>\n                      <TableCell className=\"text-right\">\n                        <Badge variant=\"default\" className=\"text-xs font-medium\">\n                          Active\n                        </Badge>\n                      </TableCell>\n                    </TableRow>\n                  </TableBody>\n                </Table>\n              </div>\n            </CardContent>\n          </Card>\n\n          {/* Recent Clinical Encounter Notes */}\n          <Card>\n            <CardHeader className=\"pb-3\">\n              <div className=\"flex flex-wrap items-center justify-between gap-2\">\n                <div>\n                  <CardTitle className=\"flex items-center gap-2 text-base font-semibold\">\n                    <FileText className=\"text-primary size-4\" />\n                    Recent Clinical Encounter Notes\n                  </CardTitle>\n                  <CardDescription className=\"text-xs\">\n                    Inpatient Daily Progress Note · General Internal Medicine\n                  </CardDescription>\n                </div>\n                <Badge variant=\"outline\" className=\"font-mono text-xs\">\n                  Encounter #ENC-91823\n                </Badge>\n              </div>\n            </CardHeader>\n            <CardContent className=\"space-y-4\">\n              <div className=\"bg-muted/30 border-border flex flex-wrap items-center justify-between gap-2 rounded-lg border p-3 text-xs\">\n                <div className=\"flex items-center gap-2\">\n                  <span className=\"text-muted-foreground\">Provider:</span>\n                  <span className=\"text-foreground font-medium\">Dr. Emily Vance, MD (Attending)</span>\n                </div>\n                <div className=\"flex items-center gap-2\">\n                  <span className=\"text-muted-foreground\">Date:</span>\n                  <span className=\"text-foreground font-medium tabular-nums\">Oct 24, 2026 · 09:30 AM EDT</span>\n                </div>\n              </div>\n\n              {/* History of Present Illness */}\n              <div className=\"space-y-2\">\n                <h4 className=\"text-muted-foreground flex items-center gap-1.5 text-xs font-semibold tracking-wider uppercase\">\n                  <span className=\"bg-primary size-1.5 rounded-full\" />\n                  History of Present Illness (HPI)\n                </h4>\n                <div className=\"border-border bg-card text-foreground/90 space-y-2 rounded-lg border p-3.5 text-sm leading-relaxed\">\n                  <p>\n                    Patient is a 48-year-old male with a documented history of Type 2 Diabetes Mellitus and Essential\n                    Hypertension, currently admitted to Inpatient Floor 4 East (Room 412B) for glycemic optimization\n                    following mild erratic home glucose readings.\n                  </p>\n                  <p>\n                    This morning, patient reports feeling well with notable improvement in energy levels. Denies\n                    episodes of dizziness, diaphoresis, chest pain, palpitations, or acute dyspnea. Fasting blood\n                    glucose at 07:00 was 118 mg/dL on Metformin 500mg BID. Vital signs remain within normal\n                    physiological parameters. Tolerating scheduled diabetic meal plan without gastrointestinal distress.\n                  </p>\n                </div>\n              </div>\n\n              {/* Assessment & Plan */}\n              <div className=\"space-y-2\">\n                <h4 className=\"text-muted-foreground flex items-center gap-1.5 text-xs font-semibold tracking-wider uppercase\">\n                  <span className=\"bg-primary size-1.5 rounded-full\" />\n                  Assessment & Plan (A&P)\n                </h4>\n                <div className=\"border-border bg-card text-foreground/90 space-y-3 rounded-lg border p-3.5 text-sm leading-relaxed\">\n                  <div>\n                    <div className=\"text-foreground text-xs font-semibold tracking-wide uppercase\">\n                      1. Type 2 Diabetes Mellitus (E11.9) — Controlled\n                    </div>\n                    <p className=\"text-muted-foreground mt-0.5 text-xs sm:text-sm\">\n                      Glycemic control stabilized. Continue Metformin HCl 500mg PO BID with meals. Re-check fasting\n                      blood sugar tomorrow at 07:00. HbA1c stable at 7.2%. No need for supplementary sliding-scale\n                      insulin at this time.\n                    </p>\n                  </div>\n                  <Separator />\n                  <div>\n                    <div className=\"text-foreground text-xs font-semibold tracking-wide uppercase\">\n                      2. Essential Hypertension (I10) — Stable\n                    </div>\n                    <p className=\"text-muted-foreground mt-0.5 text-xs sm:text-sm\">\n                      Normotensive on Lisinopril 10mg PO Daily (today BP 124/82 mmHg). Maintain current dosage. Continue\n                      routine Q8H vital signs monitoring.\n                    </p>\n                  </div>\n                  <Separator />\n                  <div>\n                    <div className=\"text-foreground text-xs font-semibold tracking-wide uppercase\">\n                      3. Bronchial Asthma (J45.40) — Quiescent\n                    </div>\n                    <p className=\"text-muted-foreground mt-0.5 text-xs sm:text-sm\">\n                      Bilateral breath sounds clear to auscultation without wheeze or crackles. Continue Albuterol 90mcg\n                      MDI PRN.\n                    </p>\n                  </div>\n                  <Separator />\n                  <div>\n                    <div className=\"text-foreground text-xs font-semibold tracking-wide uppercase\">\n                      4. Disposition & Discharge Planning\n                    </div>\n                    <p className=\"text-muted-foreground mt-0.5 text-xs sm:text-sm\">\n                      Anticipate discharge tomorrow morning pending afternoon CMP and final attending evaluation.\n                      Outpatient follow-up with PCP in 2 weeks.\n                    </p>\n                  </div>\n                </div>\n              </div>\n\n              {/* Signature block */}\n              <div className=\"border-border text-muted-foreground flex flex-wrap items-center justify-between border-t pt-3 text-xs\">\n                <div className=\"flex items-center gap-1.5\">\n                  <CheckCircle2 className=\"text-success size-4\" />\n                  <span>\n                    Electronically Signed by:{' '}\n                    <strong className=\"text-foreground font-medium\">Dr. Emily Vance, MD</strong>\n                  </span>\n                </div>\n                <span className=\"tabular-nums\">Signed: Oct 24, 2026 at 10:15 AM EDT</span>\n              </div>\n            </CardContent>\n          </Card>\n        </main>\n\n        {/* Right Side Panel (35%) */}\n        <aside className=\"space-y-6 lg:col-span-4\">\n          {/* Upcoming Appointments & Labs schedule */}\n          <Card>\n            <CardHeader className=\"flex-row items-center justify-between space-y-0 pb-3\">\n              <div>\n                <CardTitle className=\"flex items-center gap-2 text-base font-semibold\">\n                  <Calendar className=\"text-primary size-4\" />\n                  Upcoming Schedule & Labs\n                </CardTitle>\n                <CardDescription className=\"text-xs\">Pending orders and scheduled consultations</CardDescription>\n              </div>\n            </CardHeader>\n            <CardContent className=\"space-y-3\">\n              {/* Item 1: CMP */}\n              <div className=\"border-border bg-muted/20 space-y-1.5 rounded-lg border p-3\">\n                <div className=\"flex items-center justify-between gap-2\">\n                  <span className=\"text-foreground text-xs font-semibold\">Comprehensive Metabolic Panel</span>\n                  <Badge variant=\"secondary\" className=\"text-xs\">\n                    Today\n                  </Badge>\n                </div>\n                <div className=\"text-muted-foreground flex items-center gap-2 text-xs\">\n                  <Clock className=\"size-3.5\" />\n                  <span className=\"text-foreground font-medium tabular-nums\">02:00 PM EDT</span>\n                  <span>· Main Clinical Lab</span>\n                </div>\n                <div className=\"text-muted-foreground text-xs\">Order #LAB-4819 · Stat processing</div>\n              </div>\n\n              {/* Item 2: Echocardiogram */}\n              <div className=\"border-border bg-muted/20 space-y-1.5 rounded-lg border p-3\">\n                <div className=\"flex items-center justify-between gap-2\">\n                  <span className=\"text-foreground text-xs font-semibold\">Transthoracic Echocardiogram</span>\n                  <Badge variant=\"outline\" className=\"text-xs\">\n                    Tomorrow\n                  </Badge>\n                </div>\n                <div className=\"text-muted-foreground flex items-center gap-2 text-xs\">\n                  <Clock className=\"size-3.5\" />\n                  <span className=\"text-foreground font-medium tabular-nums\">10:30 AM EDT</span>\n                  <span>· Cardiology Suite 2B</span>\n                </div>\n                <div className=\"text-muted-foreground text-xs\">Non-invasive Doppler evaluation</div>\n              </div>\n\n              {/* Item 3: Endo consult */}\n              <div className=\"border-border bg-muted/20 space-y-1.5 rounded-lg border p-3\">\n                <div className=\"flex items-center justify-between gap-2\">\n                  <span className=\"text-foreground text-xs font-semibold\">Endocrinology Follow-Up</span>\n                  <Badge variant=\"outline\" className=\"text-xs\">\n                    Nov 02\n                  </Badge>\n                </div>\n                <div className=\"text-muted-foreground flex items-center gap-2 text-xs\">\n                  <Clock className=\"size-3.5\" />\n                  <span className=\"text-foreground font-medium tabular-nums\">11:00 AM EDT</span>\n                  <span>· Outpatient Clinic Rm 304</span>\n                </div>\n                <div className=\"text-muted-foreground text-xs\">Dr. Robert Chen, MD · Glycemic review</div>\n              </div>\n            </CardContent>\n          </Card>\n\n          {/* Care Team Contact list */}\n          <Card>\n            <CardHeader className=\"pb-3\">\n              <CardTitle className=\"flex items-center gap-2 text-base font-semibold\">\n                <UserCheck className=\"text-primary size-4\" />\n                Care Team Directory\n              </CardTitle>\n              <CardDescription className=\"text-xs\"> Assigned inpatient clinical providers </CardDescription>\n            </CardHeader>\n            <CardContent className=\"space-y-3.5\">\n              {/* Doctor */}\n              <div className=\"flex items-center justify-between gap-3\">\n                <div className=\"flex min-w-0 items-center gap-3\">\n                  <Avatar className=\"size-9\">\n                    <AvatarFallback className=\"bg-primary/10 text-primary text-xs font-semibold\">EV</AvatarFallback>\n                  </Avatar>\n                  <div className=\"min-w-0\">\n                    <div className=\"text-foreground truncate text-sm font-semibold\">Dr. Emily Vance, MD</div>\n                    <div className=\"text-muted-foreground truncate text-xs\">Attending Physician · Internal Med</div>\n                  </div>\n                </div>\n                <Badge variant=\"secondary\" className=\"shrink-0 font-mono text-xs\">\n                  ext. 2940\n                </Badge>\n              </div>\n\n              <Separator />\n\n              {/* Nurse */}\n              <div className=\"flex items-center justify-between gap-3\">\n                <div className=\"flex min-w-0 items-center gap-3\">\n                  <Avatar className=\"size-9\">\n                    <AvatarFallback className=\"bg-primary/10 text-primary text-xs font-semibold\">JM</AvatarFallback>\n                  </Avatar>\n                  <div className=\"min-w-0\">\n                    <div className=\"text-foreground truncate text-sm font-semibold\">Jason Miller, BSN, RN</div>\n                    <div className=\"text-muted-foreground truncate text-xs\">Charge Nurse · Floor 4 East</div>\n                  </div>\n                </div>\n                <Badge variant=\"secondary\" className=\"shrink-0 font-mono text-xs\">\n                  ext. 4802\n                </Badge>\n              </div>\n\n              <Separator />\n\n              {/* Pharmacist */}\n              <div className=\"flex items-center justify-between gap-3\">\n                <div className=\"flex min-w-0 items-center gap-3\">\n                  <Avatar className=\"size-9\">\n                    <AvatarFallback className=\"bg-primary/10 text-primary text-xs font-semibold\">SL</AvatarFallback>\n                  </Avatar>\n                  <div className=\"min-w-0\">\n                    <div className=\"text-foreground truncate text-sm font-semibold\">Sarah Lin, PharmD</div>\n                    <div className=\"text-muted-foreground truncate text-xs\">Clinical Pharmacist · Inpatient</div>\n                  </div>\n                </div>\n                <Badge variant=\"secondary\" className=\"shrink-0 font-mono text-xs\">\n                  ext. 3319\n                </Badge>\n              </div>\n            </CardContent>\n          </Card>\n\n          {/* Emergency Contact card */}\n          <Card>\n            <CardHeader className=\"flex-row items-center justify-between space-y-0 pb-3\">\n              <div>\n                <CardTitle className=\"flex items-center gap-2 text-base font-semibold\">\n                  <Phone className=\"text-primary size-4\" />\n                  Emergency Contact\n                </CardTitle>\n                <CardDescription className=\"text-xs\"> Designated healthcare surrogate </CardDescription>\n              </div>\n              <Badge variant=\"secondary\" className=\"text-xs font-medium\">\n                Primary\n              </Badge>\n            </CardHeader>\n            <CardContent className=\"space-y-3 text-xs\">\n              <div className=\"space-y-1\">\n                <div className=\"text-foreground text-sm font-semibold\">Elena Chen</div>\n                <div className=\"text-muted-foreground text-xs\">Spouse · Full Medical Power of Attorney</div>\n              </div>\n\n              <Separator />\n\n              <div className=\"text-muted-foreground space-y-2\">\n                <div className=\"flex items-center justify-between gap-2\">\n                  <span className=\"text-foreground flex items-center gap-1.5 font-medium\">\n                    <Phone className=\"text-primary size-3.5\" />\n                    Primary Mobile\n                  </span>\n                  <span className=\"text-foreground font-mono font-medium tabular-nums\">+1 (555) 234-8901</span>\n                </div>\n                <div className=\"flex items-center justify-between gap-2\">\n                  <span className=\"flex items-center gap-1.5\">\n                    <Phone className=\"size-3.5\" />\n                    Secondary Work\n                  </span>\n                  <span className=\"font-mono tabular-nums\">+1 (555) 234-8902</span>\n                </div>\n                <div className=\"flex items-start justify-between gap-2 pt-1\">\n                  <span className=\"flex shrink-0 items-center gap-1.5\">\n                    <MapPin className=\"size-3.5\" />\n                    Home\n                  </span>\n                  <span className=\"text-foreground text-right\">742 Evergreen Terrace, Seattle, WA 98101</span>\n                </div>\n              </div>\n\n              <Separator />\n\n              <Button variant=\"outline\" size=\"sm\" className=\"w-full justify-center gap-1.5 text-xs font-medium\">\n                <Phone className=\"size-3.5\" />\n                Call Emergency Contact\n              </Button>\n            </CardContent>\n          </Card>\n        </aside>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:block",
      "target": "~/components/blocks/PatientMedicalRecord.tsx"
    }
  ],
  "dependencies": [
    "lucide-react"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://uipkge.dev/r/react/avatar.json",
    "https://uipkge.dev/r/react/badge.json",
    "https://uipkge.dev/r/react/button.json",
    "https://uipkge.dev/r/react/card.json",
    "https://uipkge.dev/r/react/separator.json",
    "https://uipkge.dev/r/react/table.json"
  ],
  "description": "Epic/Cerner-style EHR patient chart and clinical summary: patient demographics header with allergy alerts, latest vitals strip, active diagnoses and ICD-10 problem list, active medications table, recent clinical encounter notes (HPI and Assessment & Plan), upcoming appointments schedule, care team directory, and emergency contacts.",
  "categories": [
    "healthcare",
    "app"
  ]
}