forked from susom/tide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deid_config_clarity.yaml
193 lines (160 loc) · 6.19 KB
/
deid_config_clarity.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
name: note_deid_20180831
deidJobs:
- jobName: stanford_deid_v1_strict
version: v1.5
textFields: fullnote
textIdFields: note_id
analytic: true
dateJitter: local
dateJitterRange: 30
dateJitterSeedField: pat_id
googleDlpEnabled: false
nerEnabled: true
googleDlpInfoTypes:
# - itemName: age
# infoTypes: AGE
- itemName: date
infoTypes: DATE
actionParam: ''
fields: 'jitter'
- itemName: phi_date
infoTypes: DATE_OF_BIRTH
actionParam: ''
fields: 'jitter'
- itemName: payment_id
infoTypes: CREDIT_CARD_NUMBER,CREDIT_CARD_TRACK_NUMBER,US_BANK_ROUTING_MICR,AMERICAN_BANKERS_CUSIP_ID,IBAN_CODE
actionParam: 999999999999999
- itemName: public_id
infoTypes: US_ADOPTION_TAXPAYER_IDENTIFICATION_NUMBER,US_DRIVERS_LICENSE_NUMBER,US_INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER,US_PREPARER_TAXPAYER_IDENTIFICATION_NUMBER,US_PASSPORT,SWIFT_CODE
actionParam: 999999999
- itemName: patient_ssn
infoTypes: US_SOCIAL_SECURITY_NUMBER
actionParam: 999-99-9999
- itemName: other_id
infoTypes: US_EMPLOYER_IDENTIFICATION_NUMBER,US_VEHICLE_IDENTIFICATION_NUMBER,IMEI_HARDWARE_ID
actionParam: 999999999
- itemName: other_email
infoTypes: EMAIL_ADDRESS
actionParam: [email protected]
- itemName: other_name
infoTypes: PERSON_NAME
- itemName: other_phone
infoTypes: PHONE_NUMBER,US_TOLLFREE_PHONE_NUMBER
- itemName: care_provider_id
infoTypes: US_HEALTHCARE_NPI,US_DEA_NUMBER
actionParam: 9999999999999
- itemName: other_address
infoTypes: LOCATION,STREET_ADDRESS
- itemName: internet_locator
infoTypes: IP_ADDRESS,MAC_ADDRESS,URL
spec:
# - itemName: phi_date
# action: jitter_date
# actionParam: gf2jKlYrX6
# fields: ''
# - itemName: age
# action: remove_age
# fields: ''
- itemName: mrn
action: remove_mrn
actionParam: [mrn]
fields: ''
- itemName: patient_mrn
action: replace_minimumlengthword_with
actionParam: [mrn] 3
fields: PAT_MRN_ID
- itemName: other_id
action: replace_minimumlengthword_with
actionParam: [id] 3
fields: pat_id, birth_wrist_band, epic_pat_id, PRIM_CVG_ID, PRIM_EPP_ID, EMPLOYER_ID
- itemName: general
action: general
actionParam:
actionParamMap: {"general-phone":"[phone]","general-email":"[email]","general-ip":"[ip address]","general-url":"[url]","general-ssn":"[ssn]"}
fields:
- itemName: patient_ssn
action: replace_minimumlengthword_with
actionParam: [ssn] 4
fields: ssn
- itemName: patient_email
action: replace_minimumlengthword_with
actionParam: [patient_email] 3
fields: email_address
- itemName: other_email
action: replace_minimumlengthword_with
actionParam: [email] 3
fields:
- itemName: public_id
action: replace_minimumlengthword_with
actionParam: [public_id] 3
fields: medicare_num, medicaid_num
- itemName: family_id
action: replace_minimumlengthword_with
actionParam: [family_id] 3
fields: mother_pat_id, father_pat_id
- itemName: patient_name
action: surrogate_name
actionParamMap: {"format":"L,F","f_zip":"zip","f_gender":"","f_dob":"birth_date"}
fields: pat_name, PROXY_NAME
- itemName: patient_name
action: surrogate_name
actionParamMap: {"format":"F","f_zip":"zip","f_gender":"","f_dob":"birth_date"}
fields: PAT_FIRST_NAME
- itemName: patient_name
action: surrogate_name
actionParamMap: {"format":"L","f_zip":"zip","f_gender":"","f_dob":"birth_date"}
fields: PAT_LAST_NAME, PAT_MIDDLE_NAME
# - itemName: care_provider_name
# action: replace_with
# actionParam: care_provider
# fields: EMP_NAME, PROV_NAME
# - itemName: other_name
# action: replace_with
# actionParam: [name]
# fields: GUARDIAN_NAME
- itemName: emergency_contact
action: replace_strictly_with
actionParam: emergency_contact
fields: [father_name], mother_name
- itemName: other_address
action: surrogate_address
fields: ''
- itemName: patient_address
action: surrogate_address
actionParamMap: {"f_address_1":"add_line_1","f_address_2":"add_line_2", "f_city":"city", "f_zip":"zip"}
fields: ''
- itemName: patient_address
action: surrogate_address
actionParamMap: {"f_address_1":"tmp_addr_line_1","f_address_2":"tmp_addr_line_2", "f_city":"tmp_city", "f_zip":"tmp_zip"}
fields: ''
- itemName: emergency_contact_address
action: surrogate_address
actionParamMap: {"f_address_1":"father_addr_ln_1","f_address_2":"father_addr_ln_2", "f_city":"father_city", "f_zip":"father_zip"}
fields: ''
- itemName: emergency_contact_address
action: surrogate_address
actionParamMap: {"f_address_1":"mother_addr_ln_1","f_address_2":"mother_addr_ln_2", "f_city":"mother_city", "f_zip":"mother_zip"}
fields: ''
# - itemName: emergency_contact_address
# action: replace_with
# actionParam: emergency_contact_address
# fields: father_addr_ln_1, father_addr_ln_2, father_city, father_zip, mother_addr_ln_1, mother_addr_ln_2, mother_city, mother_zip
- itemName: patient_phone
action: replace_minimumlengthword_with
actionParam: [patient_phone] 7
fields: home_phone, work_phone, tmp_home_phone, PROXY_PHONE,
# - itemName: other_phone
# action: replace_with
# actionParam: phone
# fields:
- itemName: emergency_contact_phone
action: replace_minimumlengthword_with
actionParam: [emergency_contact_phone] 7
fields: father_cell_phone, mother_cell_phone
- itemName: accession_num
action: replace_minimumlengthword_with
actionParam: [accession_number] 5
fields: accession_num
- itemName: general_name
action: surrogate_name
fields: ''