Skip to content

Treat anonymized X-only values as valid in PHI/PII validation #56

Description

@hoodriverheather

The PHI/PII validation code is currently flagging anonymized DICOM values where the reported value consists only of repeated X-only characters. These should be treated as anonymized values rather than potential PHI/PII.

Examples from the UPMC report:

  • OtherPatientIDs: XXXXXXXX
  • ReferringPhysicianName: XXXXXXXX
  • AdditionalPatientHistory: XXXXXXXXXX
  • RequestingPhysician: XXXXXXXX

Update the PHI/PII validation logic so values consisting only of one or more X characters are considered valid/anonymized and are not reported as PHI/PII findings.

Acceptance criteria:

  • Values such as X, XX, XXX, XXXXXXXX, and XXXXXXXXXX are not reported as PHI/PII.
  • The UPMC examples above are excluded from PHI/PII findings after the code update.
  • Values such as X123, JOHN X, XXX-12-3456, or X_KINCAID are still reviewed or flagged as appropriate.

Examples Rows from UPMC Report where this is occurring:

<style> </style>
UPMC_00020 2.16.840.1.114151.2.2.1.40257.5779.16898415 1.2.840.113619.2.55.1.1762891702.2046.1269343769.250 🙈 Possible PHI/PII in Header High-risk tag: ReferringPhysicianName XXXXXX 291 HB35731_CT_13058FE6_04_001_01_001.dcm https://edrn-labcas.jpl.nasa.gov/labcas-ui/f/index.html?file_id=Pre-diagnostic_PDAC_Images/UPMC/Original/UPMC_00020/UPMC_00021/Date_20100101/001/HB35731_CT_13058FE6_04_001_01_001.dcm
UPMC_00020 2.16.840.1.114151.2.2.1.41243.5796.21315419 1.2.840.113619.2.284.3.2474697517.266.1354188232.367 🙈 Possible PHI/PII in Header High-risk tag: ReferringPhysicianName XXXXXXXX 241 HB35731_CT_9A0D8FC6_06_001_01_001.dcm https://edrn-labcas.jpl.nasa.gov/labcas-ui/f/index.html?file_id=Pre-diagnostic_PDAC_Images/UPMC/Original/UPMC_00020/UPMC_00023/Date_20120101/001/HB35731_CT_9A0D8FC6_06_001_01_001.dcm
UPMC_00020 2.16.840.1.114151.2.2.1.41952.5123.24514630 1.2.752.243.1.1.20250924103016139.1300.87527.1 🙈 Possible PHI/PII in Header High-risk tag: ReferringPhysicianName XXXXXXXXXXXX 2507 RS1.2.752.243.1.1.20250924103016139.1300.87527.dcm https://edrn-labcas.jpl.nasa.gov/labcas-ui/f/index.html?file_id=Pre-diagnostic_PDAC_Images/UPMC/Annotated/UPMC_00020/Case%204/CT%203/080933/RS1.2.752.243.1.1.20250924103016139.1300.87527.dcm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions