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.
View the full component source code below.
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 }
npx shadcn@latest add https://mzizi.dev/api/v1/ui/health-record-summaryFetch this component's metadata and source code from the registry API.
/api/v1/ui/health-record-summary