Documentation menu
Getting Started
Components
Primitives
- Agent Thinking
- Alert
- Alert Dialog
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Checkbox
- Command
- Command Palette
- Context Menu
- Data Table
- Dialog
- Dropdown Menu
- Empty
- Field
- Glow Cloud
- Input
- Label
- Medication Schedule
- Period Tabs
- Popover
- Rainbow Button
- Scroll Area
- Select
- Selectable Card
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Tag
- Textarea
- Timeline
- Tooltip
- Use Count Up
Charts and metrics
Patterns
- Confirm Button
- Date Picker
- Embedded
- Empty State
- Entity Drawer
- Error Boundary
- Field Row
- File Dropzone
- Form Dialog
- Kv
- List Editor
- List Page
- Live Time
- Mini Table
- Money
- Note Field
- Note Text
- Page Card
- Page Header
- Page Tabs
- Page Toolbar
- Person Cell
- Picture Field
- Print Card
- Range Switcher
- Row Actions
- Search Input
- Search Select
- Selected Box
- Signature Pad
- Status Badge
- Sub Nav Layout
- Suggest Input
- Tab Icons
- Table Footer
- Theme Accent Picker
- Time Picker
- View All Link
Dashboard cards
Advanced
Device frames
Website widgets
Website screens
Website panels
Website screens
Patient Screen
The patient profile step: a duplicate warning, profile tabs and recent visits.
import { PatientScreen } from "@/registry/vcare/site/screens/patient-screen"
export default function SitePatientScreenDemo() {
// Screens fill the main area beside the side nav, about 600 px wide.
return (
<div className="vc-site grid place-items-center overflow-x-auto rounded-2xl bg-[#f5f6f8] p-6">
<div className="w-full max-w-[640px]">
<PatientScreen />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-patient-screenOr install directly from the URL: https://ui.vcarehms.com/r/site-patient-screen.json
- Install the dependencies:
npm i react-icons - Add the registry items it uses: site-kit, site-theme.
- Copy this file into your project and change the
@/registry/vcare/…imports to your own paths.
components/site/screens/patient-screen.tsx
import { LuTriangleAlert } from 'react-icons/lu';
import { Badge, Item, Panel } from '../ui/kit';
/** The patient profile step: a duplicate warning, profile tabs and recent visits. */
export function PatientScreen() {
return (
<div className="space-y-3">
<Item i={1} className="flex items-start gap-3 rounded-2xl bg-[#fff3d6] p-3.5 text-[12px]"><LuTriangleAlert size={16} className="mt-0.5 shrink-0 text-[#b45309]" /><div><p className="font-bold text-[#92400e]">Possible duplicate found</p><p className="text-[#92400e]/80">A. Meyer, same phone number. Review or merge.</p></div></Item>
<Item i={2} className="flex flex-wrap gap-1.5">{['Overview', 'Visits', 'Vitals', 'Prescriptions', 'Lab', 'Documents', 'Billing'].map((t, i) => <span key={t} className={`rounded-lg px-2.5 py-1 text-[11.5px] font-semibold ${i === 0 ? 'bg-primary/10 text-primary' : 'bg-white text-[#6b7280] ring-1 ring-black/[0.06]'}`}>{t}</span>)}</Item>
<Item i={3}><Panel title="Recent visits">{[['Nov 02', 'Cardiology follow up', 'Dr. Rivera', 'green', 'Completed'], ['Oct 12', 'ECG and consultation', 'Dr. Rivera', 'green', 'Completed'], ['Sep 05', 'General check up', 'Dr. Chen', 'green', 'Completed']].map(([d, n, dr, t, st]) => <div key={d} className="flex items-center gap-3 border-b border-[#f1f2f5] px-4 py-2.5 text-[12px] last:border-0"><span className="w-12 font-semibold text-[#6b7280]">{d}</span><span className="flex-1 font-semibold text-ink">{n}<span className="ml-2 font-normal text-[#6b7280]">{dr}</span></span><Badge tone={t as 'green'}>{st}</Badge></div>)}</Panel></Item>
</div>
);
}Usage
import { PatientScreen } from "@/components/site/screens/patient-screen"Exports
PatientScreen
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-patient-screen.json