feat(compliance): add 45 CFR § 164.312 inactivity lockout, break-glass protocol, Fed R Evid 902(11) self-authenticating affidavit, and aai.dev legal dossier

This commit is contained in:
2026-09-07 10:41:40 -07:00
parent 9f376486a3
commit b8b03a2b3c
5 changed files with 306 additions and 4 deletions
+15
View File
@@ -19,6 +19,7 @@ import {
Sparkles,
Command,
Scale,
Lock,
} from 'lucide-react';
import { Patient, StaffRole } from '@/types/clinical';
import { clinicalAudio } from '@/lib/clinical-audio';
@@ -44,6 +45,7 @@ interface CommandPaletteProps {
onToggleAudio: () => void;
audioEnabled: boolean;
onOpenCourtVault?: () => void;
onLockTerminal?: () => void;
}
export const CommandPalette: React.FC<CommandPaletteProps> = ({
@@ -57,6 +59,7 @@ export const CommandPalette: React.FC<CommandPaletteProps> = ({
onToggleAudio,
audioEnabled,
onOpenCourtVault,
onLockTerminal,
}) => {
const [query, setQuery] = useState('');
const [selectedIndex, setSelectedIndex] = useState(0);
@@ -193,6 +196,18 @@ export const CommandPalette: React.FC<CommandPaletteProps> = ({
onClose();
},
},
{
id: 'action-lock-terminal',
category: 'Actions',
title: 'Lock Clinical Terminal (HIPAA Auto-Logoff)',
subtitle: 'Instant exam room screen lock pursuant to 45 CFR § 164.312(a)(2)(iii) (Cmd+L)',
badge: 'HIPAA Lock',
icon: <Lock className="w-4 h-4 text-rose-600" />,
action: () => {
if (onLockTerminal) onLockTerminal();
onClose();
},
},
// Staff Roles
{