Constructs a versioned field policy. These policies are technical controls,
not legal determinations. A safe_harbor_candidate still requires the
no-actual-knowledge and organizational review required by the applicable
workflow. Pseudonymized data remain personal data when separately held
information permits re-identification.
Arguments
- additional_fields
A named plain list mapping canonical category IDs to deployment-specific aliases.
- date_action
Replace person-related dates with year-only values or remove them.
- free_text
Refuse, drop, or (for pseudonymized data only) retain detected free text.
- biometric_data
Refuse or drop detected biometric/image content.
Examples
# A conservative field policy. The `safe_harbor_candidate` label is a
# configured-field result, not a legal de-identification determination.
policy <- safeHarborPolicy(free_text = "drop", biometric_data = "drop")
head(policy[, c("category", "action")])
#> category action
#> 1 names remove
#> 2 substate_geography remove
#> 3 dates_ages year
#> 4 telephone remove
#> 5 fax remove
#> 6 email remove
# The pseudonymized variant shifts dates instead of reducing them to a year.
head(pseudonymizedPolicy(free_text = "drop")[, c("category", "action")])
#> category action
#> 1 names pseudonymize
#> 2 substate_geography pseudonymize
#> 3 dates_ages date_shift
#> 4 telephone pseudonymize
#> 5 fax pseudonymize
#> 6 email pseudonymize