Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Oct 25, 2023
1 parent 8889ed5 commit 8ec5252
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tdrs-backend/tdpservice/parsers/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,12 @@ def validateRace():

# outlier validators
def validate__FAM_AFF__SSN():
"""If item 30 ==2 and item 42 ==1 or 2, then item 33 != 000000000 -- 999999999."""
"""
Validate social security number provided.
If item FAMILY_AFFILIATION ==2 and item CITIZENSHIP_STATUS ==1 or 2,
then item SSN != 000000000 -- 999999999.
"""
# value is instance
def validate(instance):
FAMILY_AFFILIATION = instance['FAMILY_AFFILIATION'] if type(instance) is dict else \
Expand Down

0 comments on commit 8ec5252

Please sign in to comment.