Skip to main content

Table 7 Algorithms to de-identify date of birth (word form), phone numbers, NHS identification numbers and addresses

From: Development and evaluation of a de-identification procedure for a case register sourced from mental health electronic records

 

Algorithm to identify date of birth (Word date)

<word_date>

::= < beginning > <day > <spaces > <day_suffix > <spaces > <optional_word_delimiter > <spaces > <word_month > <spaces

 

> < optional_comma > <spaces > <year > <end > | < beginning > <word_month > <spaces > <optional_month_delimiter > <spaces > <day > <spaces > <day_suffix > <spaces > <optional_comma > <spaces > <year > <end>

 

Algorithm to identify phone numbers

<phone_number>

::=<optional_open_bracket > <first 5 digits > <optional_close_bracket > <space > <digits 6-8 > <space > <digits 9-11 > |

 

<optional_open_bracket > <first 3 digits > <optional_close_bracket > <space > <digits 4-7 > <space > <digits 8-11 > |

 

<optional_open_bracket > <first 4 digits > <optional_close_bracket > <space > <digits 5-7 > <space > <digits 8-11>

<nhsnumber>

Algorithm to identify NHS Identification numbers

::= < numeral1 > <number_delimiters > <numeral2 > <number_delimiters > … < numeraln>

 

Algorithm to identify addresses

< address>

::= < address_term1 > | < address_term2 > …. <address_termn>