Skip to content

Commit

Permalink
Update src/recordlinker/schemas/pii.py
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Buckley <[email protected]>
  • Loading branch information
cbrinson-rise8 and ericbuckley authored Jan 9, 2025
1 parent d7ed822 commit 6d835b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recordlinker/schemas/pii.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def blocking_keys(self, key: models.BlockingKey) -> set[str]:
vals.update(self.feature_iter(Feature(attribute=FeatureAttribute.BIRTHDATE)))
elif key == models.BlockingKey.IDENTIFIER:
vals.update({
f"{type_part}:{authority_part}:{value_part[-4:]}"
f"{type_part}:{authority_part[:2]}:{value_part[-4:]}"
for x in self.feature_iter(Feature(attribute=FeatureAttribute.IDENTIFIER))
for type_part, authority_part, value_part in [x.split(":", 2)]
})
Expand Down

0 comments on commit 6d835b2

Please sign in to comment.