Configurable retention policies with cryptographic deletion guarantees. Meet regulatory requirements while maintaining operational efficiency and supporting patient rights to data deletion.
Rubric provides flexible data retention controls that balance regulatory requirements, operational needs, and patient privacy rights. All deletion operations are cryptographically verified and audited.
Configurable Policies
Set retention periods by data type, project, or regulatory requirement.
Legal Hold
Suspend deletion for litigation or investigation with legal holds.
Secure Deletion
Cryptographic erasure ensures data is unrecoverable after deletion.
Patient Rights
Support GDPR right to erasure and patient deletion requests.
Rubric applies sensible default retention periods based on healthcare regulatory requirements. These can be customized per project or organization.
Data Type
Default Retention
Regulatory Basis
Configurable Range
Call Transcripts
7 years
HIPAA (6 years) + buffer
1-10 years
Audio Recordings
3 years
Business need
6 months - 7 years
DICOM Studies
7 years
State medical records laws
5-10 years
Evaluation Results
7 years
HIPAA (6 years) + buffer
1-10 years
Clinical Annotations
7 years
Medical records retention
1-10 years
Audit Logs
7 years
HIPAA (6 years) + buffer
Non-configurable
De-identified Data
Indefinite
Not PHI
Indefinite or custom
Temporary Files
24 hours
Operational
1-72 hours
Minimum Retention Requirements: Certain data types have minimum retention periods that cannot be reduced below regulatory requirements. Audit logs, for example, must be retained for at least 6 years per HIPAA requirements.
from rubric import Rubricclient = Rubric()# List available regulatory templatestemplates = client.retention.list_templates()for template in templates: print(f"{template.name}:") print(f" Jurisdiction: {template.jurisdiction}") print(f" Regulations: {', '.join(template.regulations)}")# Apply a regulatory templateclient.retention.apply_template( template="hipaa_standard", scope="organization", # Customize specific settings overrides={ "audio_recordings": "5y" # Extend beyond template default })# Available templates:# - hipaa_standard: US HIPAA requirements# - hipaa_research: HIPAA + research requirements# - gdpr_healthcare: EU GDPR for healthcare# - state_california: California CCPA + medical records# - state_texas: Texas medical records requirements
Legal holds suspend automatic deletion for data that may be relevant to litigation, investigations, or regulatory inquiries.
legal_holds.py
Copy
Ask AI
from rubric import Rubricclient = Rubric()# Create a legal holdlegal_hold = client.retention.create_legal_hold( name="Smith v. Hospital - Discovery", # Scope of hold scope={ "projects": ["patient-triage"], "date_range": { "start": "2023-06-01T00:00:00Z", "end": "2023-12-31T23:59:59Z" }, "patient_ids": ["PAT-12345", "PAT-67890"], "include_related": True # Include all related records }, # Hold details matter_name="Smith v. Regional Hospital", matter_number="CASE-2024-001", custodian="[email protected]", # Hold duration expires_at=None, # Indefinite until released # Notifications notify_on_access=True, notify_email=["[email protected]"])print(f"Legal hold created: {legal_hold.id}")print(f"Records preserved: {legal_hold.record_count}")print(f"Status: {legal_hold.status}")
Legal Hold Priority: Legal holds take absolute priority over all retention policies. Data under legal hold cannot be deleted by any means, including patient deletion requests, until the hold is properly released by authorized personnel.