Enhanced Chatbot Privacy Demo
Current User Status
Not authenticated
Guest - Can only search by patient codes
Privacy Features
❌ Cannot search patients by name
✅ Can search patients by code only
🔒 Restricted access for privacy
🔐 Patient codes work like passwords
Test Chat API
How It Works
Privacy-First Design: The chatbot now enforces strict privacy controls based on user roles.
Role-Based Access: Only administrators can search by patient names, while all users can search by patient codes.
Role-Based Patient Privacy: Administrators can see patient names for convenience, while guests must use patient codes for privacy protection.
Secure Communication: Patient codes work like passwords, ensuring only those with the code can access information.
Personalized Experience: Each user role receives a personalized greeting for enhanced user experience.
Example Scenarios
For Administrators:
• "How is John Smith doing?" → Searches by name, responds with "John Smith is currently in recovery"
• "Check status for ABC123" → Searches by code, responds with "John Smith is currently in recovery"
For Guests/Surgical Team:
• "How is John Smith doing?" → Blocked, explains code-only search requirement
• "Check status for ABC123" → Searches by code, responds with "Patient ABC123 is..."
Personalized Greetings:
• Admin: "Hello Admin! I'm your AI assistant..."
• Surgical Team: "Hello Surgical Team! I'm your AI assistant..."
• Guest: "Hello! I'm your AI assistant..." (standard greeting)