Skip to content

Add suffix normalization #297

@m-goggins

Description

@m-goggins

Summary

We need to normalize suffixes upon ingestion so that they may be prepended.

Acceptance Criteria

  • A Pydantic field_validator is added to the Name feature that normalizes suffixes
  • Non-roman numerals should ideally be shortened, e.g., Senior -> Sr
  • Suffixes that cannot be normalized should be returned as is
  • Documentation is updated to reflect that normalization occurs

Details / Tasks

  • I'm not sure if we should normalize roman numerals at this stage; it may be beneficial to preserve the numerals for the sake of readability to an epi looking at records (Richard 3 looks odd compared to Richard III). We could only normalize roman numerals in blocking fields and during evaluation of FULL_FIRST_NAME to abstract this oddness away from users.
  • It may be helpful to have a list of common suffixes, but we could start with Senior, Sr, Junior, Jr

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions