chore: add parsing rules for income: 'yes', 'no' and sped: 'No special needs' and ell: 'ELL'

rpp-main
Nelson Jovel 2 years ago
parent 5c0851d4f9
commit 051f156126

@ -9,7 +9,7 @@ class Ell < ApplicationRecord
ell = ell.delete(",") ell = ell.delete(",")
case ell 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" "ELL"
in /0|2|3|Does\s*not\s*apply/i in /0|2|3|Does\s*not\s*apply/i
"Not ELL" "Not ELL"

@ -10,9 +10,9 @@ class Income < ApplicationRecord
return "Economically Disadvantaged - N" if income.blank? or income.nil? return "Economically Disadvantaged - N" if income.blank? or income.nil?
case income 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" "Economically Disadvantaged - Y"
in /Not\s*Eligible|false|0/i in /Not\s*Eligible|false|0|^No$/i
"Economically Disadvantaged - N" "Economically Disadvantaged - N"
in %r{^#*N/*A$|Unknown|Income}i in %r{^#*N/*A$|Unknown|Income}i
"Unknown" "Unknown"

@ -10,7 +10,7 @@ class Sped < ApplicationRecord
case sped case sped
in /active|^A$|1|^Special\s*Education$/i in /active|^A$|1|^Special\s*Education$/i
"Special Education" "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" "Not Special Education"
in %r{^#*N/*A$|Unknown|SpecialEdStatus|SPED}i in %r{^#*N/*A$|Unknown|SpecialEdStatus|SPED}i
"Unknown" "Unknown"

@ -4,8 +4,8 @@ EL student not 1st year,ELL,EL Student First Year,A,Special Education,Special Ed
EL student 1st year,ELL,ELL- SIS,1,Special Education,SPED- SIS,LowIncome,Economically Disadvantaged Y,SES- SIS EL student 1st year,ELL,ELL- SIS,1,Special Education,SPED- SIS,LowIncome,Economically Disadvantaged Y,SES- SIS
"EL student, 1st year",ELL,DirectCert,Special Education,Special Education,SPED,Low Income,Economically Disadvantaged Y,EconDisadvantaged "EL student, 1st year",ELL,DirectCert,Special Education,Special Education,SPED,Low Income,Economically Disadvantaged Y,EconDisadvantaged
EL - Early Child. or PK,ELL,ELL,Referred,Not Special Education,,Reduced price lunch,Economically Disadvantaged Y,Income SIS EL - Early Child. or PK,ELL,ELL,Referred,Not Special Education,,Reduced price lunch,Economically Disadvantaged Y,Income SIS
1,ELL,,Ineligible,Not Special Education,,TRUE,Economically Disadvantaged Y,SES 1,ELL,English Learner,Ineligible,Not Special Education,,TRUE,Economically Disadvantaged Y,SES
lep student 1st year,ELL,,I,Not Special Education,,1,Economically Disadvantaged Y, lep student 1st year,ELL,,I,Not Special Education,,1,Economically Disadvantaged Y,DirectCert
lep student not 1st year,ELL,,exited,Not Special Education,,Not Eligible,Economically Disadvantaged N, lep student not 1st year,ELL,,exited,Not Special Education,,Not Eligible,Economically Disadvantaged N,
LEP Not1stYr,ELL,,0,Not Special Education,,FALSE,Economically Disadvantaged N, LEP Not1stYr,ELL,,0,Not Special Education,,FALSE,Economically Disadvantaged N,
LEP1stYr US Sch,ELL,,Not Special Education,Not Special Education,,0,Economically Disadvantaged N, LEP1stYr US Sch,ELL,,Not Special Education,Not Special Education,,0,Economically Disadvantaged N,
@ -15,7 +15,7 @@ Does not apply,Not ELL,,Does not apply,Not Special Education,,[blanks],Economica
3,Not ELL,,NA,Unknown,,N/A,Unknown, 3,Not ELL,,NA,Unknown,,N/A,Unknown,
[blanks],Not ELL,,N/A,Unknown,,#N/A,Unknown, [blanks],Not ELL,,N/A,Unknown,,#N/A,Unknown,
#NA,Unknown,,#N/A,Unknown,,Income,Unknown, #NA,Unknown,,#N/A,Unknown,,Income,Unknown,
NA,Unknown,,SPED,Unknown,,,, NA,Unknown,,SPED,Unknown,,Yes,Economically Disadvantaged Y,
N/A,Unknown,,,,,,, N/A,Unknown,,No special needs,Not Special Education,,No,Economically Disadvantaged N,
#N/A,Unknown,,,,,,, #N/A,Unknown,,,,,,,
ELL,ELL,,,,,,, ELL,ELL,,,,,,,

1 ELL Value ELL Type ELL Headers Sped Value Sped Type Sped Headers Income Value Income Type Income Headers
4 EL student 1st year ELL ELL- SIS 1 Special Education SPED- SIS LowIncome Economically Disadvantaged – Y SES- SIS
5 EL student, 1st year ELL DirectCert Special Education Special Education SPED Low Income Economically Disadvantaged – Y EconDisadvantaged
6 EL - Early Child. or PK ELL ELL Referred Not Special Education Reduced price lunch Economically Disadvantaged – Y Income SIS
7 1 ELL English Learner Ineligible Not Special Education TRUE Economically Disadvantaged – Y SES
8 lep student 1st year ELL I Not Special Education 1 Economically Disadvantaged – Y DirectCert
9 lep student not 1st year ELL exited Not Special Education Not Eligible Economically Disadvantaged – N
10 LEP Not1stYr ELL 0 Not Special Education FALSE Economically Disadvantaged – N
11 LEP1stYr US Sch ELL Not Special Education Not Special Education 0 Economically Disadvantaged – N
15 3 Not ELL NA Unknown N/A Unknown
16 [blanks] Not ELL N/A Unknown #N/A Unknown
17 #NA Unknown #N/A Unknown Income Unknown
18 NA Unknown SPED Unknown Yes Economically Disadvantaged – Y
19 N/A Unknown No special needs Not Special Education No Economically Disadvantaged – N
20 #N/A Unknown
21 ELL ELL
Loading…
Cancel
Save