From cc466a93991dddfc87b2395cdbfafc1e26e33060 Mon Sep 17 00:00:00 2001 From: yash-learner Date: Mon, 9 Dec 2024 01:58:15 +0530 Subject: [PATCH] Add SendSpecimen component for specimen dispatch functionality --- src/components/LabTest/SendSpecimen.tsx | 182 ++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 src/components/LabTest/SendSpecimen.tsx diff --git a/src/components/LabTest/SendSpecimen.tsx b/src/components/LabTest/SendSpecimen.tsx new file mode 100644 index 00000000000..d6a7bcda08b --- /dev/null +++ b/src/components/LabTest/SendSpecimen.tsx @@ -0,0 +1,182 @@ +import { ChevronDownIcon, ChevronUpIcon } from "@radix-ui/react-icons"; +import React from "react"; +import { FaDroplet } from "react-icons/fa6"; + +import { Button } from "@/components/ui/button"; +import { + Collapsible, + CollapsibleContent, + CollapsibleTrigger, +} from "@/components/ui/collapsible"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; + +// Mock Labs Data +const labs = [ + { id: "lab-001", name: "Central Lab" }, + { id: "lab-002", name: "Northside Lab" }, + { id: "lab-003", name: "Southside Lab" }, + { id: "lab-004", name: "Eastside Lab" }, + { id: "lab-005", name: "Westside Lab" }, +]; + +export const SendSpecimen: React.FC = () => { + return ( +
+ +

Send Collected Specimen to Lab

+
+
+ + +
+
+ + +
+ +
+
+ + +
+
+
+
+ + Specimen id + +
+ + SPEC009213 + + + Ready for Dispatch + +
+
+
+
+ + + +
+
+
+ + {/* Expanded Content */} + +
+
+
+ {/* Left Section */} +
+

+ Test +

+

+ Complete Blood Count (CBC) +

+
+ + {/* Right Section */} +
+

+ Order Placed by +

+
+

+ Dr. Jahnab Dutta, +

+

+ Cardiologist +

+
+ +

+ Order Date/Time +

+

+ 28-Nov-2024, 2:30PM +

+ +

+ Priority +

+ + Stat + +
+
+ {/* Note Section */} +
+

+ Note: +

+

+ Prescribed CBC to check for anemia or infection and LFT + to evaluate liver health due to complaints of fatigue + and mild abdominal discomfort. +

+
+
+
+
+
+
+
+
+
+ ); +};