edits.seer.internal.rules.Census_Tract_1970-80-90.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-edits-seer Show documentation
Show all versions of validation-edits-seer Show documentation
Java implemenation of the SEER edits.
The newest version!
<rule id="Census_Tract_1970-80-90" name="Census Tract 1970/80/90 (SEER TRACT)" tag="N0040" java-path="lines.line" category="field"> <expression><![CDATA[if (line.censusTract19708090 != null && line.censusTract19708090 != '000000' && line.censusTract19708090 != '999999' && (!(Functions.matches(line.censusTract19708090, /^[0-9]{6}$/)) || !Functions.between(line.censusTract19708090, '000100', '9999998'))) return false return true]]></expression> <message>Census tract 1970/80/90 is not valid.</message> <description><![CDATA[Valid codes for Census tract 1970/80/90[110] are 000000, 000100-999998, 999999 or blank.]]></description> <history> <event version="SE11-001-17" user="greend" date="2003-01-30">Blank is now valid.</event> <event version="SE11-001-17" user="greend" date="2003-03-14">Changed name of item to match the NAACCR version 10 record layout.</event> <event version="SE11-001-21" user="greend" date="2007-08-02">Valid values for census tract were changed from 000000-999999 to 000000,000100-949999,950100-998999,999999.</event> <event version="SE16-016-04" user="kirbyk" date="2017-06-15" ref="67657">Valid values were changed to 000000, 000100-999998, or 999999.</event> <event version="SE16-016-08" user="depryf" date="2017-11-22" ref="67674">Edit syntax updated to allow pre-compilation optimization; no change in behavior.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>