nyuchimzizi
Mzizi — an open-architecture project of the Bundu Foundation, operated and developed by Nyuchi. Built on the Five African Minerals palette.
Built by Nyuchi Africav4.0.39
Encrypted health record summary card showing recent visits, active prescriptions, allergies, and conditions. Data sourced from the sovereign Digital Twin pod — NEVER from Supabase. Respects Covenant One.
No interactive demo is registered for this component yet — the source is shown directly.
import * as React from "react"
import { cn } from "@/lib/utils"
interface HealthRecordSummaryProps extends React.ComponentProps<"div"> {
lastVisit?: string
activePrescriptions?: number
allergies?: string[]
conditions?: string[]
podEncrypted?: boolean
}
function HealthRecordSummary({
lastVisit, activePrescriptions, allergies, conditions, podEncrypted = true, loading = false, className, ...props
}: HealthRecordSummaryProps) {
return (
<div
data-slot="health-record-summary" data-portal="https://design.nyuchi.com/components/health-record-summary" role="article"
className={cn("rounded-[var(--radius-lg,14px)] border border-border bg-card p-4", className)}
{...props}
>
<div className="flex items-center justify-between">
<span className="text-sm font-medium">Health Summary</span>
{podEncrypted && (
<span className="rounded-full bg-[var(--color-malachite,#64FFDA)]/10 px-2 py-0.5 text-[9px] font-medium text-[var(--color-malachite,#64FFDA)]">
🔒 Pod Encrypted
</span>
)}
</div>
<div className="mt-3 space-y-2 text-xs">
{lastVisit && (
<div className="flex justify-between"><span className="text-muted-foreground">Last visit</span><span>{lastVisit}</span></div>
)}
{activePrescriptions !== undefined && (
<div className="flex justify-between"><span className="text-muted-foreground">Active prescriptions</span><span>{activePrescriptions}</span></div>
)}
{allergies && allergies.length > 0 && (
<div>
<span className="text-muted-foreground">Allergies: </span>
<span className="text-destructive">{allergies.join(", ")}</span>
</div>
)}
{conditions && conditions.length > 0 && (
<div>
<span className="text-muted-foreground">Conditions: </span>
<span>{conditions.join(", ")}</span>
</div>
)}
</div>
<div className="mt-3 text-[9px] italic text-muted-foreground">
Data sourced from your sovereign pod — never stored on platform servers.
</div>
</div>
)
}
export { HealthRecordSummary }
export type { HealthRecordSummaryProps }
The variants, sizes, and props surfaced by the registry. Each is sourced from the Supabase component_docs table.
Hit the registry API live and see the JSON the shadcn CLI consumes when it installs this component.
/api/v1/ui/health-record-summarynpx shadcn@latest add https://mzizi.dev/api/v1/ui/health-record-summary