edits.seer.internal.rules.Census_Tract_2010.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.
<rule id="Census_Tract_2010" name="Census Tract 2010 (SEER)" tag="N1375" java-path="lines.line" category="field"> <expression><![CDATA[return line.censusTract2010 == null || line.censusTract2010 == '000000' || (Functions.matches(line.censusTract2010, /^[0-9]{6}$/) && Functions.between(line.censusTract2010, '000100', '999999'))]]></expression> <message>Census Tract 2010 is not valid.</message> <description><![CDATA[Valid codes for Census tract 2010[135] are 000000, 000100-999999, or blank.]]></description> <history> <event version="SE12-004-01" user="murphyr" date="2010-12-15">Edit created.</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> </history> </rule>