At the database table level, each field could have the following properties which processed together would decide the level of access for that piece of data stored.
data_access: private|public
data_scope: single|composite
data_exempt: age|gender|otherpiifield
Somewhat protecting PII by not allowing querries which would infringe PII rules when selecting multiple sensitive fields.