Skip to content

Conversation

@danlu1
Copy link
Contributor

@danlu1 danlu1 commented Sep 17, 2025

Problem:

  • We initially only redacted BIRTH_YEAR, but we want to continue standardizing any center-uploaded masked data by labeling it as "withheld."

Solution:

  • add a function to redact year column has <.

Testing:

Unit test cases have been added.

@danlu1 danlu1 requested a review from a team as a code owner September 17, 2025 17:44
Copy link
Contributor

@rxu17 rxu17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a comment

)
clinicaldf.loc[to_redact, "BIRTH_YEAR"] = "cannotReleaseHIPAA"

# redact range year for pediatric data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might have missed this in the discussion but to confirm, YEAR_CONTACT and YEAR_DEATH are also phi so that's why they are being redacted as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Xindi referred to the AC of the ticket:'Keep standardizing the center uploaded masked data as "withheld"' and confirmed that we need to redact these two columns. I believe these are phi but the reason to redact should be more related to standardization.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see. Sounds good as long as that's clearly documented, see JIRA comment

@sonarqubecloud
Copy link

@danlu1 danlu1 merged commit b589b31 into develop Sep 17, 2025
12 of 13 checks passed
@rxu17 rxu17 deleted the gen-1892-patch branch October 28, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants