Overview
Audit logs provide a comprehensive, immutable record of all actions performed in Paw & Care. Every medical record access, data modification, user login, and system setting change is automatically logged with complete details including who, what, when, and where.Audit logs are append-only and cannot be modified or deleted, ensuring data integrity for compliance and legal requirements.
What Gets Logged
Logged Actions
The audit system tracks nine primary action types:Create
New records created:
- Patient profiles
- Medical records
- Appointments
- Users
- Templates
Update
Modifications to existing data:
- Medical record edits
- Patient information changes
- Appointment rescheduling
- Practice settings updates
Delete
Deletion events:
- Record deletion (soft delete)
- User deactivation
- Template archival
- Document removal
View
Data access tracking:
- Medical record viewing
- Patient profile access
- Sensitive data export
- Financial report viewing
Export
Data export operations:
- Medical record PDF export
- Practice data export
- Report generation
- Backup downloads
Login
Authentication events:
- Successful logins
- Failed login attempts
- Session creation
- Device information
Logout
Session termination:
- Manual logout
- Session timeout
- Forced logout
- Device change
Settings Change
Configuration updates:
- Practice settings
- Template modifications
- AI voice configuration
- Integration changes
Status Change
Workflow transitions:
- Medical record finalization
- Appointment status updates
- User role changes
- Billing status changes
Logged Information
Each audit entry captures comprehensive context:Audit Log Entry Structure
Accessing Audit Logs
Web Application
View Recent Activity
The default view shows the most recent 100 log entries, sorted by timestamp (newest first).
Filter and Search
Use the filter controls to narrow results:
- Search: Text search across user names, resources, and details
- Action Filter: Filter by specific action types
- User Filter: View actions by specific team members
- Date Range: Custom date picker for historical logs
Audit Log Interface
The audit log viewer provides an intuitive interface for monitoring system activity:- 🟢 Green: Create actions
- 🔵 Blue: Update/Edit actions
- 🔴 Red: Delete actions
- 🔵 Gray: View/Read-only actions
- 🟣 Purple: Export actions
- 🟢 Emerald: Login events
- 🟡 Amber: Logout events
- 🟠 Orange: Settings changes
- 🔵 Teal: Status changes
Common Audit Scenarios
Tracking Medical Record Access
Use Case: Verify who accessed a specific patient’s medical records
Example Results:
Investigating Unauthorized Access
Use Case: A front desk staff member reports unusual behavior—verify they didn’t access medical records (which they shouldn’t have permission for).Check Resources
Verify resources accessed. Front desk should only see:
- Appointments
- Client contact info
- Call logs
Compliance Audits
Use Case: Annual compliance audit requires proof of who modified patient records.Export Report
Click Export to CSV to generate a spreadsheet with:
- User name and ID
- Timestamp of each modification
- Record ID and patient name
- Details of changes made
- IP address (if available)
Monitoring Practice Manager Actions
Use Case: Ensure practice managers are following proper procedures when making administrative changes.Review Changes
Look for:
- Template modifications
- User role changes
- Practice setting updates
- Deleted records
Example Audit Entries
Below are real-world examples of audit log entries for common scenarios:Medical Record Lifecycle
Medical Record Created (Draft)
Medical Record Updated
Medical Record Finalized
User Authentication
Successful Login
Failed Login Attempt
Administrative Actions
User Role Changed
Practice Settings Updated
Template Deleted
Data Export
Medical Record Exported
Filtering and Search
Available Filters
- By Action Type
- By User
- By Resource Type
- By Date Range
Filter logs by specific actions:
- All Actions (default)
- Create
- Update
- Delete
- View
- Export
- Login
- Logout
- Settings Change
- Status Change
Search Functionality
The search box performs full-text search across:- User names: Find actions by “Dr. Kim”
- Resource types: Search for “Medical Record”
- Details: Search for specific patients like “Buddy”
- Resource IDs: Look up by record ID “rec-12345”
- Search is case-insensitive
- Partial matches supported (“vet” matches “veterinarian”)
- Multiple search terms use AND logic (“Kim Medical” finds entries by Dr. Kim involving medical records)
Exporting Audit Logs
CSV Export
Export filtered audit logs for external analysis or compliance reporting.
CSV Columns:
PDF Report (Coming Soon)
Future feature will generate formatted PDF reports with:- Practice branding
- Executive summary statistics
- Detailed log entries
- Compliance certification
Retention and Storage
Retention Policy
Storage Details:- Logs stored in append-only database table
- Automatic compression for logs >1 year old
- Geographic replication across 3 data centers
- Encrypted at rest (AES-256)
- Recent logs (0-90 days): Instant access
- Historical logs (90 days - 5 years): Retrieved within 1 second
- Archived logs (>5 years): Retrieved within 5 seconds
Data Integrity
Immutability Guarantees:- Logs cannot be modified after creation
- Logs cannot be deleted (even by practice managers)
- Database-level constraints prevent tampering
- Cryptographic checksums verify integrity
- Meets veterinary record-keeping requirements
- Supports legal discovery requests
- Demonstrates due diligence in data protection
Compliance and Legal Use
Regulatory Requirements
Audit logs help satisfy regulatory requirements:Veterinary Practice Acts
State veterinary boards require documentation of who accessed and modified medical records.
Data Protection Standards
HIPAA-equivalent standards for animal health records mandate access logging.
Professional Liability
Malpractice insurance may require proof of proper record handling.
Employment Law
HR investigations may require proof of unauthorized access or data breaches.
Legal Discovery
If records are subpoenaed or required for litigation:- Preserve Evidence: Audit logs are already immutable
- Export Relevant Logs: Use date range and user filters
- Provide to Legal Counsel: CSV export with timestamp authentication
- Maintain Chain of Custody: Document export date, who requested, and why
Consult with your attorney before releasing audit logs in response to legal requests.
Security Monitoring
Detecting Suspicious Activity
Red Flags to Watch For: ⚠️ Unusual Access Patterns:- Staff accessing records outside normal working hours
- Multiple failed login attempts from same IP
- Access to records unrelated to job function
- Large number of export actions by single user
- Exports of all patient records
- Exports shortly before employee resignation
- Front desk staff editing medical records (should be impossible due to permissions)
- Deleted records without documented reason
- Settings changes by non-administrative users
Incident Response
If suspicious activity is detected:Take Action
- If unauthorized: Deactivate account immediately
- If policy violation: Document and apply disciplinary measures
- If data breach: Follow breach notification procedures
Analytics and Insights
Usage Patterns
Audit logs reveal practice workflows and efficiency: Common Metrics:- Most Active Users: Who creates the most medical records?
- Peak Activity Times: When is the system most heavily used?
- Average Time to Finalize: How long between record creation and finalization?
- Deletion Frequency: How often are records deleted (should be rare)?
Future versions will include built-in analytics dashboards for audit log insights.
Troubleshooting
Audit logs not appearing
Audit logs not appearing
Possible Causes:
- User role doesn’t have access (Practice Manager only)
- Date range filter too narrow
- Search query too specific
Cannot find specific log entry
Cannot find specific log entry
Solution:
- Verify the action actually occurred (check medical record, etc.)
- Expand date range—may have happened earlier than expected
- Use broader search terms
- Check if user name is spelled correctly in filter
Export taking too long
Export taking too long
Cause: Very large date range (e.g., exporting 5 years of logs)Solution:
- Narrow date range to smaller periods (e.g., monthly exports)
- Export during off-peak hours
- For very large exports, contact support for database query
Suspicious entry but unsure if legitimate
Suspicious entry but unsure if legitimate
Solution:
- Note the user, timestamp, and action
- Check the resource (e.g., view the medical record in question)
- Ask the user directly if they remember performing that action
- Verify IP address matches expected location
- If still suspicious, escalate to practice owner/manager
Best Practices
Regular Monitoring
Weekly Review
Practice managers should review audit logs weekly for unusual patterns or policy violations.
Monthly Reports
Generate monthly compliance reports showing all record access, exports, and administrative changes.
Quarterly Audits
Conduct thorough quarterly reviews of all user actions, especially for high-privilege accounts.
Annual Certification
Export annual audit summary for professional liability insurance and regulatory compliance.
Privacy Considerations
Balance Monitoring with Privacy:- Audit logs should be used for security and compliance, not micromanagement
- Inform staff that actions are logged (include in employee handbook)
- Limit audit log access to Practice Managers only
- Don’t use logs to penalize reasonable clinical decisions
Documentation
Maintain Audit Procedures:- Document when and why audit logs are reviewed
- Keep records of compliance reports generated
- Document any investigations triggered by audit findings
- Store exported audit logs securely (encrypted)
Related Resources
User Roles
Understand permissions and access control
Security Overview
Learn about encryption and data protection
Practice Settings
Configure settings that generate audit entries
Compliance
Regulatory requirements and best practices