chore: add more rules for finding disaggregation columns and parsing sped values

rpp-main
Nelson Jovel 2 years ago
parent fdc4c49bf0
commit 4c360c9e62

@ -10,7 +10,7 @@ class Sped < ApplicationRecord
case sped
in /active|^A$|1|Special\s*Education/i
"Special Education"
in /^I$|exited|0|Not\s*Special\s*Education/i
in /^I$|exited|0|Not\s*Special\s*Education|Does\s*not\s*apply/i
"Not Special Education"
in /^NA$|^#NA$|Unknown/i
"Unknown"

@ -169,7 +169,7 @@ class SurveyItemValues
end
def raw_income
@raw_income ||= value_from(pattern: /Low\s*Income|Raw\s*Income|SES-\s*SIS|EconDisadvantaged/i)
@raw_income ||= value_from(pattern: /Low\s*Income|Raw\s*Income|SES-\s*SIS|EconDisadvantaged|Income\s*SIS/i)
end
def income
@ -177,7 +177,7 @@ class SurveyItemValues
end
def raw_ell
@raw_ell ||= value_from(pattern: /EL Student First Year|Raw\s*ELL|ELL-\s*SIS/i)
@raw_ell ||= value_from(pattern: /EL Student First Year|Raw\s*ELL|ELL-*\s*SIS/i)
end
def ell

Loading…
Cancel
Save