Skip to content

Commit

Permalink
- Update based on review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Dec 20, 2023
1 parent 05b0b8b commit 06ca2ab
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t2.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
endIndex=49,
required=False,
validators=[
validators.isLargerThanOrEqualTo(0),
validators.isInLimits(0, 2),
],
),
Field(
Expand Down Expand Up @@ -367,7 +367,7 @@
endIndex=55,
required=False,
validators=[
validators.isInLimits(0, 9),
validators.isInLimits(0, 2),
],
),
Field(
Expand Down Expand Up @@ -440,7 +440,7 @@
endIndex=65,
required=False,
validators=[
validators.isInLimits(0, 9),
validators.isInLimits(0, 2),
],
),
Field(
Expand Down
72 changes: 36 additions & 36 deletions tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t3.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
validators=[validators.isAlphaNumeric()],
),
Field(
item="67",
item="66",
name="FAMILY_AFFILIATION",
friendly_name="family affiliation",
type="number",
Expand All @@ -130,7 +130,7 @@
validators=[validators.oneOf([1, 2, 4])],
),
Field(
item="68",
item="67",
name="DATE_OF_BIRTH",
friendly_name="date of birth",
type="number",
Expand All @@ -144,7 +144,7 @@
),
TransformField(
transform_func=tanf_ssn_decryption_func,
item="69",
item="68",
name="SSN",
friendly_name="social security number - ssn",
type="string",
Expand All @@ -155,7 +155,7 @@
is_encrypted=False,
),
Field(
item="70A",
item="69A",
name="RACE_HISPANIC",
friendly_name="race hispanic",
type="number",
Expand All @@ -165,7 +165,7 @@
validators=[validators.validateRace()],
),
Field(
item="70B",
item="69B",
name="RACE_AMER_INDIAN",
friendly_name="race american indian",
type="number",
Expand All @@ -175,7 +175,7 @@
validators=[validators.validateRace()],
),
Field(
item="70C",
item="69C",
name="RACE_ASIAN",
friendly_name="race asian",
type="number",
Expand All @@ -185,7 +185,7 @@
validators=[validators.validateRace()],
),
Field(
item="70D",
item="69D",
name="RACE_BLACK",
friendly_name="race black",
type="number",
Expand All @@ -195,7 +195,7 @@
validators=[validators.validateRace()],
),
Field(
item="70E",
item="69E",
name="RACE_HAWAIIAN",
friendly_name="race hawaiian",
type="number",
Expand All @@ -205,7 +205,7 @@
validators=[validators.validateRace()],
),
Field(
item="70F",
item="69F",
name="RACE_WHITE",
friendly_name="race white",
type="number",
Expand All @@ -215,7 +215,7 @@
validators=[validators.validateRace()],
),
Field(
item="71",
item="70",
name="GENDER",
friendly_name="gender",
type="number",
Expand All @@ -225,7 +225,7 @@
validators=[validators.isInLimits(0, 9)],
),
Field(
item="72A",
item="71A",
name="RECEIVE_NONSSA_BENEFITS",
friendly_name="receives non-social security act benefits",
type="number",
Expand All @@ -235,7 +235,7 @@
validators=[validators.oneOf([1, 2])],
),
Field(
item="72B",
item="71B",
name="RECEIVE_SSI",
friendly_name="receives social security income",
type="number",
Expand All @@ -245,7 +245,7 @@
validators=[validators.oneOf([1, 2])],
),
Field(
item="73",
item="72",
name="RELATIONSHIP_HOH",
friendly_name="relationship to head of household",
type="string",
Expand All @@ -255,7 +255,7 @@
validators=[validators.isInStringRange(0, 10)],
),
Field(
item="74",
item="73",
name="PARENT_MINOR_CHILD",
friendly_name="parent of minor child",
type="number",
Expand All @@ -265,7 +265,7 @@
validators=[validators.oneOf([0, 2, 3])],
),
Field(
item="75",
item="74",
name="EDUCATION_LEVEL",
friendly_name="education level",
type="string",
Expand All @@ -280,7 +280,7 @@
],
),
Field(
item="76",
item="75",
name="CITIZENSHIP_STATUS",
friendly_name="citizenship status",
type="number",
Expand All @@ -290,7 +290,7 @@
validators=[validators.oneOf([0, 1, 2, 9])],
),
Field(
item="77A",
item="76A",
name="UNEARNED_SSI",
friendly_name="unearned ssi benefit",
type="string",
Expand All @@ -300,7 +300,7 @@
validators=[validators.isInStringRange(0, 9999)],
),
Field(
item="77B",
item="76B",
name="OTHER_UNEARNED_INCOME",
friendly_name="other unearned income",
type="string",
Expand Down Expand Up @@ -424,7 +424,7 @@
validators=[validators.isAlphaNumeric()],
),
Field(
item="67",
item="66",
name="FAMILY_AFFILIATION",
friendly_name="family affiliation",
type="number",
Expand All @@ -434,7 +434,7 @@
validators=[validators.oneOf([1, 2, 4])],
),
Field(
item="68",
item="67",
name="DATE_OF_BIRTH",
friendly_name="date of birth",
type="number",
Expand All @@ -448,7 +448,7 @@
),
TransformField(
transform_func=tanf_ssn_decryption_func,
item="69",
item="68",
name="SSN",
friendly_name="social security number - ssn",
type="string",
Expand All @@ -459,7 +459,7 @@
is_encrypted=False,
),
Field(
item="70A",
item="69A",
name="RACE_HISPANIC",
friendly_name="race hispanic",
type="number",
Expand All @@ -469,7 +469,7 @@
validators=[validators.validateRace()],
),
Field(
item="70B",
item="69B",
name="RACE_AMER_INDIAN",
friendly_name="race american indian",
type="number",
Expand All @@ -479,7 +479,7 @@
validators=[validators.validateRace()],
),
Field(
item="70C",
item="69C",
name="RACE_ASIAN",
friendly_name="race asian",
type="number",
Expand All @@ -489,7 +489,7 @@
validators=[validators.validateRace()],
),
Field(
item="70D",
item="69D",
name="RACE_BLACK",
friendly_name="race black",
type="number",
Expand All @@ -499,7 +499,7 @@
validators=[validators.validateRace()],
),
Field(
item="70E",
item="69E",
name="RACE_HAWAIIAN",
friendly_name="race hawaiian",
type="number",
Expand All @@ -509,7 +509,7 @@
validators=[validators.validateRace()],
),
Field(
item="70F",
item="69F",
name="RACE_WHITE",
friendly_name="race white",
type="number",
Expand All @@ -519,7 +519,7 @@
validators=[validators.validateRace()],
),
Field(
item="71",
item="70",
name="GENDER",
friendly_name="gender",
type="number",
Expand All @@ -529,7 +529,7 @@
validators=[validators.isInLimits(0, 9)],
),
Field(
item="72A",
item="71A",
name="RECEIVE_NONSSA_BENEFITS",
friendly_name="receives non-ssa benefits",
type="number",
Expand All @@ -539,7 +539,7 @@
validators=[validators.oneOf([1, 2])],
),
Field(
item="72B",
item="71B",
name="RECEIVE_SSI",
friendly_name="receives social security income",
type="number",
Expand All @@ -549,7 +549,7 @@
validators=[validators.oneOf([1, 2])],
),
Field(
item="73",
item="72",
name="RELATIONSHIP_HOH",
friendly_name="relationship to head of household",
type="string",
Expand All @@ -559,7 +559,7 @@
validators=[validators.isInStringRange(0, 10)],
),
Field(
item="74",
item="73",
name="PARENT_MINOR_CHILD",
friendly_name="parent of minor child",
type="number",
Expand All @@ -569,7 +569,7 @@
validators=[validators.oneOf([0, 2, 3])],
),
Field(
item="75",
item="74",
name="EDUCATION_LEVEL",
friendly_name="education level",
type="string",
Expand All @@ -583,7 +583,7 @@
],
),
Field(
item="76",
item="75",
name="CITIZENSHIP_STATUS",
friendly_name="citizenship status",
type="number",
Expand All @@ -593,7 +593,7 @@
validators=[validators.oneOf([0, 1, 2, 9])],
),
Field(
item="77A",
item="76A",
name="UNEARNED_SSI",
friendly_name="unearned ssi benefit",
type="string",
Expand All @@ -603,7 +603,7 @@
validators=[validators.isInStringRange(0, 9999)],
),
Field(
item="77B",
item="76B",
name="OTHER_UNEARNED_INCOME",
friendly_name="other unearned income",
type="string",
Expand Down

0 comments on commit 06ca2ab

Please sign in to comment.