Skip to content

Conversation

@dmendelowitz
Copy link
Contributor

Summary

Now that other extractors get the Patient ID from context, MRN can just be masked during extraction instead of at the end of extraction and the masked ID will propagate to all other resources.

New behavior

Behavior should be the same as before

Code changes

  • Post extraction MRN masking removed from app.js
  • maskMRN() removed from patientUtils.js
  • maskPatientData() updated to replace id and fullUrl with hashed version of MRN
  • Relevant tests in patientUtils.test.js updated to reflect changes

Testing guidance

Add "mask": ["mrn"] to constructorArgs of the Patient extractor and see that all instances of the MRN used as an ID are replaced with the hashed version of the MRN (appears in Patient's id and fullUrl fields and subject or individual references in other resources)

Copy link
Contributor

@Dtphelan1 Dtphelan1 left a comment

Choose a reason for hiding this comment

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

This looks great! Nice work Dylan 😄

Copy link
Contributor

@julianxcarter julianxcarter left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@dmendelowitz dmendelowitz merged commit 6189a0d into develop Jul 1, 2021
@dmendelowitz dmendelowitz deleted the update-mrn-masking branch July 1, 2021 17:03
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.

4 participants