HIPAA Safe Harbor de-identification (45 CFR 164.514(b)(2))¶
Source: 02-hipaa-safe-harbor.phisql (spec v1.0)
PhiSQL¶
-- HIPAA Safe Harbor de-identification (45 CFR 164.514(b)(2)).
-- Demonstrates the DEIDENTIFY convenience form with mixed strategies.
-- Physician names are covered by DETECT PHEYE rather than a rules-based
-- entity type: PHYSICIAN_NAME was removed in spec v1.3.
-- Compiles to 02-hipaa-safe-harbor.json.
POLICY hipaa_safe_harbor
DESCRIPTION 'HIPAA Safe Harbor de-identification (45 CFR 164.514(b)(2)).';
DEIDENTIFY
HOSPITAL AS RANDOM_REPLACE,
DATE AS TRUNCATE,
AGE AS REDACT,
SSN AS REDACT,
PHONE_NUMBER AS REDACT,
EMAIL_ADDRESS AS REDACT,
STREET_ADDRESS AS REDACT,
CITY AS REDACT,
STATE AS REDACT,
ZIP_CODE AS REDACT;
DETECT PHEYE LABELS ('physician name') WITH RANDOM_REPLACE;
Compiles to¶
{
"metadata": {
"description": "HIPAA Safe Harbor de-identification (45 CFR 164.514(b)(2))."
},
"identifiers": {
"hospital": {
"hospitalFilterStrategies": [{ "strategy": "RANDOM_REPLACE" }]
},
"date": {
"dateFilterStrategies": [{ "strategy": "TRUNCATE" }]
},
"age": {
"ageFilterStrategies": [{ "strategy": "REDACT" }]
},
"ssn": {
"ssnFilterStrategies": [{ "strategy": "REDACT" }]
},
"phoneNumber": {
"phoneNumberFilterStrategies": [{ "strategy": "REDACT" }]
},
"emailAddress": {
"emailAddressFilterStrategies": [{ "strategy": "REDACT" }]
},
"streetAddress": {
"streetAddressFilterStrategies": [{ "strategy": "REDACT" }]
},
"city": {
"cityFilterStrategies": [{ "strategy": "REDACT" }]
},
"state": {
"stateFilterStrategies": [{ "strategy": "REDACT" }]
},
"zipCode": {
"zipCodeFilterStrategies": [{ "strategy": "REDACT" }]
},
"pheyes": [
{
"phEyeFilterStrategies": [{ "strategy": "RANDOM_REPLACE" }],
"phEyeConfiguration": {
"labels": ["physician name"]
}
}
]
}
}