mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
chore: add parsing rules for income: 'yes', 'no' and sped: 'No special needs' and ell: 'ELL'
This commit is contained in:
parent
9938a2cf44
commit
fd61d2753d
4 changed files with 8 additions and 8 deletions
|
|
@ -9,7 +9,7 @@ class Ell < ApplicationRecord
|
|||
|
||||
ell = ell.delete(",")
|
||||
case ell
|
||||
in /lep\s*student\s*1st\s*year|LEP\s*student\s*not\s*1st\s*year|EL\s*Student\s*First\s*Year|LEP\s*student|^EL\s+|true|1/i
|
||||
in /lep\s*student\s*1st\s*year|LEP\s*student\s*not\s*1st\s*year|EL\s*Student\s*First\s*Year|LEP\s*student|^EL\s+|true|1|^ELL$/i
|
||||
"ELL"
|
||||
in /0|2|3|Does\s*not\s*apply/i
|
||||
"Not ELL"
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ class Income < ApplicationRecord
|
|||
return "Economically Disadvantaged - N" if income.blank? or income.nil?
|
||||
|
||||
case income
|
||||
in /Free\s*Lunch|Reduced\s*Lunch|Low\s*Income|Reduced\s*price\s*lunch|true|1/i
|
||||
in /Free\s*Lunch|Reduced\s*Lunch|Low\s*Income|Reduced\s*price\s*lunch|true|1|^Yes$/i
|
||||
"Economically Disadvantaged - Y"
|
||||
in /Not\s*Eligible|false|0/i
|
||||
in /Not\s*Eligible|false|0|^No$/i
|
||||
"Economically Disadvantaged - N"
|
||||
in %r{^#*N/*A$|Unknown|Income}i
|
||||
"Unknown"
|
||||
|
|
|
|||
|
|
@ -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$|Does\s*not\s*apply|Referred|Ineligible/i
|
||||
in /^I$|exited|0|^Not\s*Special\s*Education$|Does\s*not\s*apply|Referred|Ineligible|^No\s*special\s*needs$/i
|
||||
"Not Special Education"
|
||||
in %r{^#*N/*A$|Unknown|SpecialEdStatus|SPED}i
|
||||
"Unknown"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue