What is Medical Info Policy?
Medical information policies detect and protect health records, diagnoses, prescriptions, medical IDs, insurance information, and other Protected Health Information (PHI) for HIPAA compliance.Why its Important?
Medical information policies are crucial for ensuring HIPAA compliance and protecting patient privacy. These policies prevent Protected Health Information (PHI) from being sent to LLMs, which helps maintain compliance with healthcare regulations and protects sensitive medical data from unauthorized access.- Prevents sending PHI to LLM: Blocks medical records, diagnoses, prescriptions, and health insurance information from being processed by language models
- Ensures HIPAA compliance: Helps maintain compliance with Health Insurance Portability and Accountability Act requirements, avoiding severe penalties
- Protects patient privacy: Prevents sensitive medical information from being exposed to third-party LLM providers, protecting patient confidentiality
Anonymize (Unique Random Placeholders)
MedicalInfoAnonymizePolicy replaces detected medical data with unique random placeholders. Original values are restored in the agent’s response:
Replace (Fixed Placeholder)
MedicalInfoReplacePolicy replaces detected medical data with [MEDICAL_INFO_REDACTED]. All detected values share the same placeholder — original values are still restored in the final response:
Block
MedicalInfoBlockPolicy blocks any content containing medical information:
Streaming
Medical policies work with streaming — anonymized medical data is de-anonymized in real-time:Available Variants
MedicalInfoBlockPolicy: Pattern detection with blockingMedicalInfoBlockPolicy_LLM: LLM-powered block messagesMedicalInfoBlockPolicy_LLM_Finder: LLM detection for better accuracyMedicalInfoAnonymizePolicy: Anonymizes medical data with unique random replacementsMedicalInfoReplacePolicy: Replaces with[MEDICAL_INFO_REDACTED](fixed placeholder)MedicalInfoRaiseExceptionPolicy: Raises DisallowedOperation exceptionMedicalInfoRaiseExceptionPolicy_LLM: LLM-generated exception messages

