Views
No views yet
| Label | HIPAA Category |
|---|---|
| NAME | Names |
| LOCATION | Geographic subdivisions |
| DATE | Dates |
| PHONE | Phone numbers |
| FAX | Fax numbers |
| Email addresses | |
| SSN | Social Security numbers |
| MRN | Medical record numbers |
| HEALTH_PLAN | Health plan beneficiary numbers |
| ACCOUNT | Account numbers |
| LICENSE | Certificate/license numbers |
| VEHICLE | Vehicle identifiers |
| DEVICE | Device identifiers |
| URL | Web URLs |
| IP | IP addresses |
| BIOMETRIC | Biometric identifiers |
| PHOTO | Photographic images |
| OTHER | Any other unique identifying number |
1from transformers import pipeline
2
3pipe = pipeline("token-classification", model="mkocher/hipaa-phi-detector", aggregation_strategy="simple")
4results = pipe("Patient John Smith, SSN 123-45-6789")aare-core package:1from aare import HIPAAGuardrail
2
3guardrail = HIPAAGuardrail()
4result = guardrail.check("Patient John Smith, SSN 123-45-6789")
5if result.blocked:
6 print(f"PHI detected: {result.violations}")