"use client"; /** * v1.25 (W-RECORDS) — Settings → Anamnese (medical history). * * The home for the structured health records: allergies / intolerances and * family history. Each is a self-contained CRUD manager rendered in its own * card. These are patient-reported reference records — not a time-series * signal and not a clinical diagnosis — surfaced alongside the existing * tracking-domain settings sections (Labs / Illness / Vorsorge). * * v1.25.12 — the section is the single home for the pre-existing / chronic * conditions the Coach watches, edited inline here so conditions + allergies + * family history read (and write) as one coherent medical history. The * conditions card is coach-gated (the data only feeds the Coach); it reads and * writes the same self-context store (`/api/coach/about-me`) the rest of the app * uses — the placement simply moved out of personal context into the medical * record where it belongs. */ import { ClipboardList, EyeOff, HeartPulse, NotebookPen, ShieldAlert, Siren, Users, } from "lucide-react"; import { SettingsCard } from "@/components/settings/settings-card"; import { SettingsCardHeader } from "@/components/settings/_card-header"; import { useTranslations } from "@/lib/i18n/context"; import { useModuleEnabled } from "@/hooks/use-module-enabled"; import { AllergyManager } from "@/components/records/allergy-manager"; import { AllergyFreeTextNote } from "@/components/records/allergy-free-text-note"; import { AboutMeNoteManager } from "@/components/records/about-me-note-manager"; import { ConditionsManager } from "@/components/records/conditions-manager"; import { EmergencyProfileManager } from "@/components/records/emergency-profile-manager"; import { FamilyHistoryManager } from "@/components/records/family-history-manager"; import { AiProfileInclusionManager } from "@/components/records/ai-profile-inclusion-manager"; import { HealthProfileFactsManager } from "@/components/records/health-profile-facts-manager"; export function AnamnesisSection() { const { t } = useTranslations(); // The inclusion card and the about-me note only feed AI surfaces, so they // follow the person's two AI opt-outs: the Coach module and "AI analysis" // (the `insights` module, which since v1.39 governs model-written text and // nothing else). They are opt-outs, not capabilities, on purpose: somebody // without a provider yet can still write the note the AI will read later. const coachEnabled = useModuleEnabled("coach"); const insightsEnabled = useModuleEnabled("insights"); return (
{t("records.disclaimer")}