---
title: "Development and evaluation of an open source software tool for"
description: "Beckwith and colleagues tested an open-source tool for removing patient identifiers from surgical pathology reports while preserving clinical text."
canonical: "https://research.elamur.ai/free/en/papers/beckwith-2006-development-evaluation-open-source-software/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/beckwith-2006-development-evaluation-open-source-software/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2006](https://md.research.elamur.ai/free/en/papers/2006/) / Development and evaluation of an open source software tool for deidentification of pathology reports

# Development and evaluation of an open source software tool for deidentification of pathology reports

Paper · 2006 · Bruce A. Beckwith, Rajeshwarri Mahaadevan, Ulysses J. Balis et al.

**Authors:** Bruce A. Beckwith, Rajeshwarri Mahaadevan, Ulysses J. Balis and Frank C. Kuo · **Year:** 2006 · **Venue:** BMC Medical Informatics and Decision Making · **Licence:** [CC BY (OpenAlex best open-access location)](https://creativecommons.org/licenses/by/4.0/)

Cited by **4** papers in our library of more than 163,000 papers whose bibliographies we read · BMC Medical Informatics and Decision Making · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://bmcmedinformdecismak.biomedcentral.com/track/pdf/10.1186/1472-6947-6-12)
- [DOI 10.1186/1472-6947-6-12](https://doi.org/10.1186/1472-6947-6-12)

## Summary

A surgical pathology report can help a researcher find a tissue specimen worth studying. It can also identify the person who provided it. Names, dates, and record numbers can appear in the same sentences as descriptions of a specimen or findings from an examination. Beckwith and colleagues developed an open-source program to remove identifying details from those sentences while keeping the report readable. They built it for the Shared Pathology Informatics Network, which was designed to let researchers search reports from different institutions to locate relevant tissue specimens.

The software looks for identifiers in several ways. It starts with values already known for the case, such as a patient name or an accession number, the code assigned to a case by the laboratory. It then uses rules to recognize forms such as dates and addresses, as well as names introduced by titles or institutional terms. Finally, it checks individual words against lists of personal and place names. The authors refined these rules on development reports and then evaluated them on a fresh collection of 1800 surgical pathology reports from three hospitals. Pathologists reviewed both the original and the processed reports to determine which identifiers were present, which were removed, and which ordinary phrases were mistakenly removed.

In the test set, 1254 reports contained at least one identifier in the body. The software removed 3439 (98.3%) of the 3499 identifiers counted once per report. It missed 19 identifiers in categories specified by the Health Insurance Portability and Accountability Act (HIPAA), principally outside accession numbers and misspelled patient names. Among the 41 other misses, partial institutional addresses and ages were the largest groups. Reports on specimens sent from elsewhere for consultation were especially difficult. Every consultation report in the sample contained identifying material, and these reports accounted for most of the misses. Removal rates also varied across the hospitals.

The program sometimes removed ordinary text, averaging 2.6 mistakenly removed phrases per report under the study’s counting procedure. The reviewing pathologists generally found the processed reports easy to understand and judged losses of essential information to be rare. In a follow-up on the same test reports, adding a rule for a local way of writing ages resolved most of one department’s misses. The study shows how far an adaptable set of rules can go on surgical pathology text, and how much the outcome depends on the language used by the institutions that produce it.

## Deep dive: Development and evaluation of an open source software tool for deidentification of pathology reports

Beckwith and colleagues tested an open-source tool for removing patient identifiers from surgical pathology reports while preserving clinical text. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why the report needs to survive the removal

A repository of tissue specimens becomes more useful when researchers can search the findings associated with them. As the authors explain, pathologists examine millions of samples each year in the [United States](https://md.research.elamur.ai/free/en/authors/united-states/), and many specimens are preserved in paraffin after examination. A pathology report records what a pathologist saw and how the specimen was characterized. With reports in electronic form, an investigator can search for material with particular features before asking a hospital about a specimen.

The Shared Pathology Informatics Network, or SPIN, was an effort to make this possible across institutions. The consortium had demonstrated a prototype of a searchable network that used the contents of reports to locate specimens held at participating sites. The reports were thus part of the mechanism for discovery. A specimen description, a diagnostic finding, or the result of a special study might give a researcher the reason to select a case. Removing identifying material had to leave enough of that evidence for the report to serve its purpose.

Some identifying details are easy to locate because a laboratory system gives them dedicated fields. A date of birth can sit in the same place in every export from a particular system. A name can occupy a field intended only for names. The narrative is different. The person dictating a gross description, which records the visible features of a specimen, may also say what was written on its container. If that label includes the patient’s name, the name becomes part of the sentence alongside information about the tissue. Deleting the demographic header leaves this occurrence in the report body.

The same problem arises with numeric information. An accession number belongs to the process of logging and tracking a case, whereas tumor size can belong to the findings. Both may be written with digits and punctuation. The authors give clinical examples of numbers worth preserving, including counts of positive lymph nodes, the distance to an uninvolved margin, and tumor grade. Removing every number would be a simple way to obscure many codes, but it would also take away part of the information for which the reports were collected. The program therefore needed to judge what a string might represent from its shape, its surroundings, or a known value for the case.

#### The privacy target

The paper describes patient permission, an institutional review board waiver of informed consent, and the use of data with identifiers removed as routes by which investigators can use medical records for research. It distinguishes a deidentified dataset from a limited dataset, for which the removal requirements differ. The authors set out to build a tool for producing the former kind of data from pathology text and used the categories listed under HIPAA as a basis for the evaluation.

These categories extend beyond names. They include medical record numbers, contact details, geographic subdivisions smaller than a state, and dates with the year excepted. The paper also notes rules for ages over 89. The listed categories are scoped to information about the individual and certain related people or entities, including relatives, members of the household, and employers. That scope matters because a hospital mentioned in a report and a patient named in the same report did not automatically belong to the same category in the authors’ accounting.

The authors chose to remove additional information. They counted ages below the regulatory threshold, years, states and countries, health care organization names, and provider names in their broader evaluation. The motivation becomes clear in a consultation report. A reference to a sending institution may help somebody interpret an accession number found elsewhere in the narrative. The paper treats that possibility as a reason to scrub institutional material as an extra precaution. As a consequence, the principal removal rate combines items the authors classified as HIPAA identifiers with other details they deliberately sought to remove.

#### What earlier approaches offered

The authors knew of several programs for automated text deidentification and describe four reports concerning systems designed for pathology reports or tested on them. One engine was proprietary. A second system had yet to become available when their project began. A third addressed proper names alone. The remaining approach changed some of the wording during deidentification. Taken together, these options left room for a freely available program adapted to the full range of identifiers encountered in surgical pathology and designed to keep the surrounding text intact.

Earlier work also illustrated different choices about where to put the effort. The authors describe a name-removal tool that made use of word pairs and markers such as professional or personal titles. A marker gives a reader a clue about the role of a neighboring expression. Software can use the same clue when the expression itself is unfamiliar. The strategy is useful for names, although a pathology report also carries identifying information in forms such as dates and laboratory codes. The new scrubber puts marker-based name rules alongside rules for these other targets.

Another approach described in the paper matched expressions against a reference terminology, retained frequent words needed to connect them, and discarded unmatched material. Recognized clinical expressions could then be rendered using synonyms. The authors saw how this could remove identifiers while retaining medical concepts in sequence. They also saw a cost for human readers. A synonym unfamiliar to the reader can make a sentence harder to understand, and clinically important wording can disappear if the reference terminology has no entry for it. That concern helped define the design of the scrubber. The original phrasing would remain wherever the program found no reason to mask it.

The development problem therefore had a common part and a local part. Hospitals needed a shared representation so that the same software could process their reports. The phrasing and formatting in those reports could still differ. A strategy that depended completely on local templates would be difficult to carry across sites, while a strategy that ignored local habits could miss patterns that were obvious to a pathologist working there. The authors addressed the first problem through a common input format and the second through editable rules and name lists.

### The method, step by step

#### Put reports into a shared format

The scrubber receives a report in the XML format defined for SPIN. XML represents information in labeled elements. Here it provides separate places for structured details about the case and for the narrative a pathologist reads. The patient’s name, medical record number, birth date, and Social Security number can appear in the header alongside pathology case details, including the accession number and the department that issued the report. A report’s description and diagnosis can remain full passages even though they sit inside labeled elements.

Each hospital started with extracts from its own laboratory information system. The authors used a custom conversion program for each institution to turn those extracts into the shared format. This division gives the conversion program responsibility for understanding the local export. The scrubber then works with the same kinds of fields at each hospital. The text still reflects the local reporting practice. Converting it to XML gives the program consistent places to look without rewriting the language within those places.

The main text elements store clinical information, the gross description, the diagnosis, and the assembled report. The schema can also accommodate an addendum or material such as electron microscopy findings in a separate element. The example in the paper illustrates that the gross description and diagnosis can occur as dedicated passages and again within the complete report text. The program searches each text field. Identifying material can therefore be masked where it appears in the separate section and where it reappears in the assembled version.

The paper’s example is a fictitious case in which a specimen label contains a patient name. The processed version shows masking characters where the name previously appeared, while the surrounding description remains in place. This example makes the treatment of a report easier to see than the XML structure alone. The result is still a pathology report, with targeted spans of text obscured and an indication of what the software thought those spans contained.

How the scrubber processes a pathology report The steps in order.

#### Start with information already known about the case

In its first pass, the scrubber uses the header as evidence about the body. Suppose the header specifies the patient’s name and the gross description repeats it from the container label. The program can search the text for that known name. It needs no general rule about which words look like a surname to recognize the value already associated with this patient. The same principle applies to a record number or a case accession number available in the header.

This use of a header is particularly helpful for strings that would be ambiguous on their own. A word that is also a surname has a stronger claim to removal when it matches the name attached to the report. A case number obtained from the header gives the program a specific string to look for even when the narrative gives little indication of its function. The usefulness of this pass depends on the information present in the header and on how the corresponding value is written in the text. A distorted spelling or a reference to a different institution’s case may require another source of evidence.

The program’s treatment of the header itself depends on where the file is in the SPIN workflow. In the authors’ implementation, some identifying fields remained available for processing that took place after the body was scrubbed. Those fields were cleared just before the case was loaded into the network. The masking of the narrative and the clearing of the header therefore happened at different times. A file saved after the text-processing pass could still contain the header information needed by the next local step.

#### Use forms and neighboring words as evidence

The next pass searches for types of identifying material whose exact values are unknown in advance. A date can have a recognizable arrangement of digits and punctuation. An address can include words or numbers in a recognizable configuration. An accession code can follow a laboratory’s convention for combining a specimen category with a number. The scrubber represents patterns like these using regular expressions, which describe the kinds of character sequences a program should match.

The rules also use wording around a candidate identifier. Titles and credentials such as Dr, MD, and PhD can indicate that a personal name occurs nearby. Terms such as hospital or clinic can indicate that neighboring words are part of an organization’s name. Such clues allow the software to act on unfamiliar names that it cannot derive from the case header. They also allow recognition of a span containing several words, where a check of independent words would reveal less about what the span refers to.

The implementation describes 50 Java regular expressions. They were kept separately from the main processing logic so that a site could change an existing rule or add another one for a local convention. The authors emphasize that the order of application matters. Some patterns are designed to operate on text from which an earlier pattern has already removed a span. A set of individually plausible rules can behave differently when their order changes, because later rules encounter the text left by earlier ones.

The paper gives several reasons that recognizing a class of strings is harder than recognizing a particular value from the header. Internal record numbers often have a familiar length or arrangement, but a transcription may insert separators in unexpected places. Accession numbers differ more widely, including within a hospital that uses different forms for different types of specimens. A slide identifier can add a suffix that records where the slide belongs within the case. A pattern needs to account for the forms in the reports it will process. The rule file gives a site a place to express those forms.

#### Check the words that remain against name lists

After pattern matching, the scrubber compares individual words with a database of personal and geographic names. This catches some names that appear without a title, institutional marker, or other obvious cue. The authors built the personal-name portion from lists of common names from the 1990 census. These contained over 90,000 distinct first and last names and, as the paper describes it, covered about 90% of the surnames encountered in that census. Geographic entries came from a U.S. gazetteer, a list of named places, with over 16,000 distinct place names. The combined table held over 101,000 distinct entries.

The authors also added to Department A’s database the names of pathologists active during the time covered by the reports. They made no comparable additions of institution-specific pathologist or patient names at the other departments. A local addition serves a practical purpose. A pathologist who signs many reports can recur as a name in the narrative, whether or not all parts of that name are well represented in the general lists.

A list match supplies a different kind of evidence from a match to a known field or a recognizable format. The list establishes that a word can be used as a name. A common word can have that use and an unrelated meaning in a report, as when a color describes tissue. This is a consequence of using words in isolation at this stage. It gives the scrubber a way to catch an otherwise unmarked name and also accounts for some of the disagreements between the software and the reviewing pathologists.

#### Save an auditable output

During processing, the scrubber replaces suspected identifying strings with sequences of X characters and records the apparent type of removal. It saves the result under a new name, preserving the original file. It also creates a log that records the strings removed and the reasons that triggered their removal. A reviewer can use the output to see where information has been suppressed and the log to determine what the program acted on.

The authors implemented the software with Java, JDOM for handling XML, and MySQL for storing the names. They released the source and supporting files under the GNU General Public License, with a separate supplement containing the pattern definitions. The software was described as platform independent. The hospitals ran the study batches on personal computers using Microsoft Windows. The implementation details relevant to the study are the shared XML input, the order of the rule passes, and the replaceable rule and vocabulary resources.

The workflow also separates reports on outside consultations. In these cases a hospital has been asked to examine material from another institution. The authors explain that a consulting department usually does not retain the corresponding tissue, so such reports have limited value for a network intended to locate stored specimens. The software segregated those reports before processing. For the experiment the authors still scrutinized their deidentification results, while the submission workflow discarded the consultation reports rather than loading them into SPIN.

#### Refine the rules, then evaluate fresh reports

Development began with the authors examining typical reports from the participating institutions. They refined the program by running it on small sets, usually 50–100 reports at a time, and adjusting its behavior until common identifiers were removed reliably. Reports from all the sites contributed, with Department A supplying most of the development material. In this setting, training amounted to examining outputs and changing rules and resources. The separate test reports were used to measure how the finished configuration handled cases it had not processed during development.

For that test, pathologists reviewed the scrubbed files for surviving identifiers and examined the originals to establish the inventory of identifying material in the text. The originals also let a reviewer resolve whether a removed expression was actually an identifier. The assessment allowed a partial removal to count as successful when what remained was judged very unlikely to identify the original expression. For instance, masking the distinctive part of an organization’s name could leave a generic description that still reads naturally. Conversely, a misspelling counted as an identifier if the intended name could reasonably be inferred.

The counting procedure also treated address components separately. A street address, a city, and a state could therefore contribute distinct items to the assessment. For repeated identifiers, the paper reports both the raw inventory and the number of distinct identifiers within each report. Its main analysis uses the latter. Repetition of a name in separate parts of a case adds occurrences, while the same name appearing in a different case creates a separate item for that report.

The overall removal percentage can be read as the following ratio, expressed as a percentage.

```
R = M / I
```

R is the removal rate before percentage formatting. M is the number of identifiers judged successfully removed, using the study’s within-report counting rule. I is the total number of identifiers counted on that basis in the reports being evaluated. The slash denotes division. The denominator includes the extra categories the authors chose to remove as well as the HIPAA categories. This measure asks how much of a reviewed identifier inventory the software removed.

The paper also assesses the removal operation from the other direction by asking how frequently a removed phrase contained identifying information.

```
P = H / T
```

P is the share of removed phrases containing an identifier, expressed in the results as a percentage. H counts how many of the phrases removed included one or more identifiers. T is the total count of removed phrases for that analysis. The slash again denotes division. This ratio concerns the software’s decisions to remove text, whereas the overall removal rate starts from the identifiers reviewers found in the original reports. The paper gives both measures because clinical usefulness depends partly on what happens to text outside the identifying spans.

### Experiments and results

#### What was in the test collection

The test corpus contained 1800 surgical pathology reports, with 600 from each hospital. The authors drew the reports in batches of 200 consecutive cases from different periods between 1999 to 2004. The cases had been reserved from earlier development and testing. The consecutive batches sampled routine cases within each selected period, and the equal allocations gave each hospital the same number of reports in the collection. As the results show, equal numbers of reports yielded very different amounts of identifying material.

Among the documents collected were surgical pathology reports that presented findings from special studies, including immunohistochemistry, flow cytometry, and immunofluorescence. It excluded cytology and autopsy reports. This matters for interpreting both the types of identifiers the reviewers encountered and the sorts of ordinary language the scrubber needed to preserve. The corpus tested the designated report type across several institutional styles and multiple reporting periods.

There were 1559 in-house reports, or 86.6% of the test set, and 241 outside consultation reports, or 13.4%. Department B had no consultations in its sampled batches. Its outside cases were assigned accession numbers in a separate series and thus did not enter the sample. Departments A and C had consultations among their extracted cases. Department-level results therefore reflect a mix of institutional wording, configuration, and the kinds of cases that entered each hospital’s batches.

Across the corpus, manual review found 4515 occurrences of identifiers. Counting distinct items within each report yielded 3499 identifiers. The averages for the full test set were 2.5 occurrences per case and 1.9 distinct identifiers per case. At least one identifier was present in 1254 reports, or 69.7% of the corpus. Those figures answer related questions about exposure. The report count tells how often the narrative contained identifying material at all, while the within-report count captures the number of different details the scrubber had to remove.

#### Where identifiers were concentrated

All 241 consultation reports had an identifier, a prevalence of 100%. Among in-house cases, 1013 of 1559 had an identifier, or 65%. The paper reports a chi-square test with p \< 0.001 for the difference by case type. The test assesses the association between the type of report and whether identifying material was present. This measurement uses the original reports and describes the burden presented to the scrubber before it acts.

The consultation reports were also rich in distinct identifiers. They contained 1809 of the 3499 items counted across the collection, or 51.7%, while the in-house reports contained 1690. The authors point to a feature of consultation dictation that helps explain the concentration. A consulting pathologist may describe labels on received slides, repeat numbers from the originating laboratory, and mention the patient information supplied with the material. These can appear together in passages where the consultant is documenting exactly what arrived and what was examined.

The sites differed substantially in the prevalence of identifying material. Department A had 415 reports with an identifier, or 69.2% of its reports. Department B had 239, or 39.8%. Department C had 600, or 100%. The authors report p \< 0.001 for the chi-square comparison by department. They also report averages of 1.8 distinct identifiers per report in Department A, 0.6 in Department B, and 3.5 in Department C. A site with identifiers in many reports can present a larger removal burden, and a site with fewer identifiers can still have conventions that are difficult to recognize.

#### How much the software removed

Against the inventory established by the pathologists, the software removed 3439 of the 3499 distinct identifiers, or 98.3%. There were 60 misses, of which 19 belonged to categories the paper classified as HIPAA identifiers. The other 41 misses came from the broader set the authors wanted to remove. The 98.3% result is therefore an item-level rate for the whole inventory. A single surviving identifier is enough to leave a report with some identifying material, so the percentage does not give the share of reports that emerged entirely clear.

Department A contributed 1079 distinct identifiers, of which the program removed 1057. It removed 320 of 338 in Department B and 2062 of 2082 in Department C. The rates differed by institution in the authors’ chi-square analysis, with p \< 0.001. Department C had the highest rate and the largest identifier inventory. Department B had the lowest rate, though its lower number of identifiers meant it still had fewer misses in absolute terms than either of the other sites. The counts and rates place the same outcome in different contexts.

Unique identifiers removed by hospital on the surgical pathology test set The department with the most identifiers per report had the highest removal rate.

**The numbers**

| System or setting | unique identifiers removed % |
| --- | --- |
| Department A | 98.0% |
| Department B | 94.7% |
| Department C (this paper) | 99.0% |

The HIPAA misses also differed by department. Department A had 11, Department B had 1, and Department C had 7. These are counts within each site’s test reports. The paper’s overall removal ranking concerns the broader identifier set, so it need not tell the same story as the counts for this narrower category. Department B illustrates the distinction. Its overall rate was the lowest, yet the authors counted only 1 HIPAA miss there. Its major source of misses was an age convention, which the study tracked as part of the broader privacy target.

The case-type comparison brings a different aspect of the results into view. Consultation reports accounted for 36 of the 60 misses, or 60%. They also accounted for 12 of the 19 HIPAA misses, or 63%. The authors found 10 missed accession numbers, all in outside consultations. The source of the case mattered because outside laboratories could use code patterns unfamiliar to the sites running the software. A local pattern that works well on in-house data can have limited reach across codes carried into reports from elsewhere.

The study counted 7 missed patient names, all of them misspelled. The correctly spelled names seen in this test were all removed. The paper also describes a missed medical record number written with unfamiliar spacing and a missed date in month/year form. These failures show that a string can be recognizable as identifying information to someone reading a report while falling outside the specific formats the software was built to detect.

Among the additional privacy targets, the error table records 17 partial institutional addresses, 16 ages below the HIPAA threshold, and 6 health care organization names among the misses. Consultation reports accounted for the partial institutional addresses and the organization names in that error breakdown, while the missed ages came from in-house cases. The categories reveal different reporting habits. An in-house report may include an age as a customary part of clinical history. A consultation report frequently carries information about the organization that sent the material.

#### What happened to ordinary text

The authors describe mistakenly removed nonidentifying phrases as over-scrubs. There were 4671 distinct over-scrubs in the test set, with an average of 2.6 per report. The averages by site ranged from 1.6 to 4.3. These errors were frequent enough that clinical readability had to be treated as a separate question from successful identifier removal. A system can achieve high coverage by acting on many ambiguous strings, with the cost depending on how much those strings matter to a reader.

Mistakenly removed phrases per report by hospital on the surgical pathology test set The frequency of unwanted removals varied substantially by hospital.

**The numbers**

| System or setting | unique over-scrubs per report |
| --- | --- |
| Department A | 1.9 |
| Department B (this paper) | 1.6 |
| Department C | 4.3 |

Table 2 reports that 42.4% of distinct phrases removed across the test set were identifiers. Its values by department are 48.4% for Department A, 25.0% for Department B, and 44.4% for Department C. The narrative reports 42.8% for the ratio of removed phrases containing an identifier to all removed phrases. The paper does not reconcile the two overall figures. They are best read as the values reported in their respective locations. Both show that genuine identifiers accounted for less than half of the phrases removed under the corresponding tally.

Department B is a useful case for reading that metric. It had the lowest average number of unnecessary removals per report and the lowest proportion of removed phrases that were genuine identifiers. These findings can coexist because the denominators differ. The average over-scrub count describes the amount of collateral removal across all reports. The proportion of successful removals describes how often the program’s decision to mask a phrase was justified. The original reports at Department B contained fewer identifiers per case, so even a lower count of erroneous removals could account for a large share of its masking activity.

Some errors repeatedly removed a particular word. The paper attributes 387 unnecessary removals to the word toto at a department that used it routinely. Other mistakes included color words such as black and orange, and short expressions denoting anatomical locations in spinal or prostate procedures. A dictionary can give a plausible reason to remove a color word that doubles as a surname. A format rule can raise a similar problem for a location code that resembles a case identifier. The cost in each individual report depends on what the masked word was doing in its sentence.

The reviewing pathologists generally found the resulting reports easy to understand. They judged incorrect removal of information crucial to comprehension to be rare. The numerical count and that judgment answer different questions. The count measures the amount of text erroneously obscured under the study’s criteria. The judgment describes the practical experience of reading the output, where masking a commonly repeated word can have a smaller effect than masking a unique diagnostic detail.

#### Comparison with earlier reports and processing speed

The study used manual review as the reference for its own performance figures. It did not run an alternative engine on the same test corpus. For context, the authors discuss Gupta and colleagues’ multi-round evaluation. By the third round of that earlier trial, 8 reports out of 300 had a missed organizational name, personal name, or accession number. That result uses reports as the unit. Beckwith and colleagues instead use the distinct identifiers within reports as the primary unit, which lets them count several misses in the same case when several different identifiers survive.

The other comparison is to the name-removal study by Thomas and colleagues, which found 228 of 231 names, or 98.7%. The target there was names. Beckwith and colleagues’ main result includes names, dates, numbers, locations, and other entries in their broader inventory. The earlier findings give a sense of how comparable tools performed on their reported tasks. Differences in targets and counting procedures prevent a direct ranking of the programs.

The authors also ran a separate speed test on 6600 cases from one institution. The run took 140 minutes, and the paper reports an average of 47 cases per minute. It projects that over 65,000 cases of typical length could be processed per day at that speed. The measured throughput concerns the software’s batch operation on that collection. The authors expected speed to depend on the amount of text in each file. Manual review, site-specific conversion, and the other steps involved in preparing data for the network were distinct from this timing run.

### What the ablations show

The authors did not test the separate contributions of the header search, pattern rules, and name lookup by disabling them in turn. Their analyses instead compare institutions and case types, identify specific sources of missed identifiers and unwanted removals, and revisit one local failure after a rule change. These comparisons explain several features of the result without assigning a share of the overall performance to each pass.

#### A local age convention accounts for most misses at one site

The clearest test of an individual change concerns the abbreviation y.o. The original configuration missed 16 ages, and 15 of those misses followed this convention at one institution. Once the authors added support for the form, the program removed the affected ages in the test set. Department B had 18 misses in the original trial. The paper reports that the modification resolved 15 of them and raised the department’s removal rate to 99.1% on those same reports.

Unique identifiers removed before and after the age rule change on Department B test reports Recognizing the local age abbreviation resolved most of the department’s original misses.

**The numbers**

| System or setting | unique identifiers removed % |
| --- | --- |
| Original configuration | 94.7% |
| Configuration with the age abbreviation rule (this paper) | 99.1% |

This comparison shows that many apparent failures can have a shared cause. A single reporting convention was repeated across the department’s cases, and the program had one repeated reason to miss it. The revision repaired that specific gap. Since the authors discovered the convention by inspecting errors from the original test and evaluated the revision on those reports, the revised result describes a targeted correction on known cases. The paper preserves the original trial figure as the result for the configuration evaluated before that correction.

The last missed age presented a different problem. It described a fractional age using words. The authors also point out that an age may appear as a bare number at the beginning of a clinical history, followed by the reason for the procedure. The abbreviation rule can recognize an explicit signal beside the number. A written fraction or a bare number requires other signals, such as how an age is expressed in words or where a number appears in the report. The remaining examples show the kinds of variation that one successful correction leaves to be addressed.

The age result also helps interpret the original spread between institutions. The lowest-scoring department supplied the fewest identifiers per report, yet it used a local convention absent from the rule set. Department C supplied the most identifiers per report and had the best initial removal rate. The authors suggest that using Department A’s reports during development may have improved the program’s ability to process reports with many identifiers, since those reports contained many identifiers themselves. That explanation remains plausible rather than isolated experimentally. The study did not vary the composition of the development reports while holding the test collection constant.

#### Names illustrate where the sources of evidence differ

The correctly spelled names in the test set were successfully removed. The program could look for a known patient name from the header, recognize markers around a name, or find relevant words in the name database. The result gives the combined system credit for the removals. The aggregate analysis does not say how many names each source recovered independently or how often several methods would have matched the same name.

All 7 missed misspelled names came from one hospital. The paper describes four first names and three surnames among them. A spelling change can prevent a header value from matching and keep a word out of the vocabulary collected from census lists. Other clues may still be available, including quotation marks around a label, a neighboring name spelled correctly, capitalization, or the wording that introduces a specimen label. The failures show where the program had insufficient evidence in practice to bridge the spelling difference.

The concentration of these misses at one site points to the reporting process as part of the problem. A report that routinely dictates a label can expose the scrubber to a name even when the name is already present in structured form. Variations in how that label was written or transcribed then enter the narrative. The paper links the pattern of name errors to the style at that institution. It offers no direct comparison of alternative name-matching procedures on those errors.

#### Numeric errors expose the boundary of format rules

The missed in-house medical record number was unusual because separators divided its digits into groups the matching rule did not anticipate. The authors discuss how broadening the allowed separators could make similar cases recognizable. Once the reviewer locates the number in context, the omission has a concrete explanation. The error identifies a specific gap in the representation of that identifier’s possible forms.

The outside accession numbers expose a less contained problem. A code may carry a prefix describing the type of pathology case, and a number printed on a slide may extend the original accession code. A transcription can omit leading zeros. The remaining forms can resemble short expressions with medical meaning, including the marker CD-34, which the paper uses to illustrate an ambiguous shape. The question is then whether a rule broad enough to catch many outside formats also catches medically meaningful text. The misses explain why outside codes were difficult, but they do not establish how a broader rule would trade erroneous removals against improved coverage.

Among the reports in which accession numbers survived, the authors found that other information relating to the issuing institution had been removed. They point out that using a code to reidentify somebody would generally require knowing where the code came from and gaining access to records that resolve it. This observation distinguishes the presence of a surviving identifying code from its practical usability. The study counted the code as a miss in either case. It did not attempt to reidentify the patients attached to those reports.

#### Unwanted removals reveal the cost of broad matching

The authors attribute much of the unnecessary removal to the extensive personal- and place-name table. During development they manually removed some entries when those entries caused a large excess of mistaken removals over valid ones. The development choice reflects the fact that a broad list alone cannot tell whether a token names a person, names a place, or carries ordinary descriptive meaning. A often used clinical word can trigger the same mistake wherever it recurs.

The examples also indicate that dictionary pruning would address only some unwanted removals. Colors overlap with surnames. Short alphanumeric expressions used to name anatomical locations can look like identifying codes. Removing a term from a name table could help with the first kind of problem, while the second concerns the scope of a pattern and the context available to it. The paper’s error analysis locates those issues but gives no full-system comparison of a shorter list, a different ordering of the rules, or alternative patterns for short codes.

The variation in unnecessary removal across departments leaves room for different explanations, just as the variation in successful removal does. Department A had local additions to its name table, the hospitals supplied different mixes of reports, and their dictation habits differed. The study compares the complete configurations at the sites as they were run. That makes the comparison informative about performance under those conditions, while the separate effects of vocabulary customization, case mix, and local wording remain unresolved.

### Limitations

#### Limits the authors identify

The authors emphasize that the software needs to be tailored to the report type and institutional style it encounters. That need applies to familiar identifiers as well as obscure ones. A name can be misspelled in a way that produces a valid word. A medical eponym, a term based on someone’s name, can look like personal information while carrying clinical meaning. Common surnames can also describe the appearance of a specimen, and capitalization offers an unreliable distinction in some reports. Exact matching and fixed rules can handle recurring forms while leaving these context-sensitive cases difficult.

Outside accession numbers and addresses remain prominent sources of error in the authors’ discussion. Their geographic vocabulary covered U.S. locations. One participating institution received an appreciable number of international consultations, and the scrubber had difficulty with the foreign place names in those reports. The authors note that foreign addresses also differ in format and may use words absent from the lists available to the program. Extending a vocabulary would help with some of those omissions. Different conventions for ordering or writing an address would still need to be recognized.

Context can identify an individual through information that serves an ordinary clinical purpose. The authors discuss rare diseases as an example. A diagnosis can describe a small group of possible patients, especially when paired with a general location. Removing the diagnosis may also destroy the reason a researcher would want to find that report. The authors raise similar concerns about accounts of publicly known injuries or a distinctive description of a person’s job. These are harder to express as patterns because the identifying power comes from the circumstances described and what someone outside the report already knows.

The reviewing pathologists judged that the test reports contained no examples of that kind of indirect identifier. As a result, the test provided no direct measure of how the program would handle them. The authors regard this as a remaining concern for pattern-based scrubbing. They also distinguish the ability to remove a string from the broader question of how processed reports are used. In discussing the network, they favor access for investigators whose data use agreements forbid attempts to identify the patients again.

The authors observed changes in style within a department over time. They also point out that a new medical term or abbreviation may begin to resemble a pattern that previously served as a useful clue to identifying information. A revision can therefore affect both missed identifiers and mistaken removals. The paper calls for continued review as reports and rules change. The researchers kept the original case collection and ran later versions on it, but they report that they had yet to develop an automated way to evaluate those reruns.

#### Limits of what the study establishes

The hospitals were all processing surgical pathology reports using an input format prepared for this project. The findings directly concern that setting. Experience with cytology or autopsy reports, or with other kinds of medical notes, would have to come from an evaluation of those texts. Similarly, the use of reports from several periods allows some variation in style to enter the corpus, but the study does not measure how performance changed over time. The batches provide an historical test collection shaped by the participating sites and the case types they supplied.

The institutional comparison also combines several factors. The development sets drew heavily on Department A. That department added local pathologist names to the vocabulary. Department B supplied no consultation cases in the test, while the other departments did. Different hospitals used different phrasing and formatting. The overall evaluation shows that the same basic program can be used on all of these reports with local preparation. It cannot identify how much of the difference among hospitals came from the distinct case mix, development exposure, site customization, or the reporting conventions themselves.

Manual assessment gave the study access to ambiguities an automatic check could easily miss. It also introduced judgment into both the original inventory and the outcome. Deciding whether a name can be guessed despite a misspelling, or whether a fragment still identifies an organization, requires a reader to assess what remains. A pathologist reviewed a processed file, and reviewers consulted the originals to clarify what the relevant material represented. The paper does not report a separate agreement measure from multiple reviewers judging the same ambiguous spans. The removal figures should therefore be understood in terms of the authors’ review criteria.

The counting unit is another limit on what can be inferred. The authors considered repetition of the same identifier within one report to add little information, so their primary results count distinct identifiers within each report. That is useful for studying the variety of material the software missed and the kinds of rules that could help. A release decision concerns a report as a whole, including whatever combinations of identifiers remain together. The article’s item-level totals cannot establish the number of reports that retained a HIPAA identifier or the probability of reidentification from an individual report.

The HIPAA misses are reported as a count against the full body-text evaluation. The paper does not give a separate total for all the HIPAA identifiers originally present, so it provides no HIPAA-only removal percentage alongside the broader 98.3% figure. The evaluation also focuses on the narrative, while clearing the identifying header fields is a distinct operation before network loading. These aspects of the procedure matter when interpreting the authors’ aim of producing deidentified data. Their results document the behavior of the scrubber under the study’s definition and workflow, with residual identifiers among the observed outcomes.

For readability, the assessment records mistaken removal and the pathologists’ impressions of the resulting text. It does not report a task in which readers used both versions to find specimens or interpret findings and had their performance compared. An output can be easy to read while losing a detail that matters to a particular search. The study’s examples make that possibility concrete for numeric findings and anatomical references. The effect of actual removals on downstream research tasks remains open.

Finally, the follow-up age rule was evaluated on reports that had already revealed the failure. This was an opportunity to demonstrate that the proposed expression recognized the observed abbreviation. It provides limited evidence about new reports or about erroneous removals introduced by the new pattern. A separate assessment of later outputs would be needed to quantify both effects. The paper gives a concrete account of how the rule set can improve and leaves the longer-term performance of those revisions unresolved.

### What came after

The documented follow-through concerns the authors’ own software and its use in the specimen-search projects. They retained the original evaluation reports and ran later versions of the scrubber on that collection. Those reruns gave them a way to revisit previously observed errors as the rules changed. The paper provides no comparable results for those later runs and describes automated evaluation of their outputs as unfinished.

The authors report that five institutional review boards approved use of the software to deidentify pathology reports for the SPIN demonstration network and for the Virtual Specimen Locator at the Dana Farber Harvard Cancer Center. They also report that over 200,000 cases had been processed with results they considered satisfactory. That figure describes their operational experience. The detailed counts of removed identifiers, missed identifiers, and over-scrubs come from the separately reviewed 1800-report test set.

The paper documents continued development and deployment by its authors. There is no documented subsequent study here that builds on the scrubber’s design or independently measures how it performs on another collection.

## Cite

Cite as Bruce A. Beckwith, Rajeshwarri Mahaadevan, Ulysses J. Balis and Frank C. Kuo. 2006. Development and evaluation of an open source software tool for deidentification of pathology reports. BMC Medical Informatics and Decision Making.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1186/1472-6947-6-12](https://doi.org/10.1186/1472-6947-6-12)

```bibtex
@inproceedings{beckwith2006development,
  title = {{Development and evaluation of an open source software tool for deidentification of pathology reports}},
  author = {Bruce A. Beckwith, Rajeshwarri Mahaadevan, Ulysses J. Balis and Frank C. Kuo},
  booktitle = {BMC Medical Informatics and Decision Making},
  year = {2006},
  doi = {10.1186/1472-6947-6-12},
  url = {https://doi.org/10.1186/1472-6947-6-12}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
