edits.seer.internal.rules.Year_of_Last_Contact.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="Year_of_Last_Contact" name="Date of Last Contact (NAACCR DATEEDIT)" tag="N0022" java-path="lines.line" category="field"> <expression><![CDATA[return line.dateOfLastContactYear == null || ((Functions.matches(line.dateOfLastContactYear, /^[12]\d\d\d$/)) && Functions.between(line.dateOfLastContactYear, 1930, Functions.getCurrentYear()) )]]></expression> <message>Year of last contact is not valid.</message> <description><![CDATA[Valid codes for Year of last contact[1750] are 1930 - current year or blanks.]]></description> <history> <event version="SE11-001-19" user="greend" date="2005-01-25">Edited expanded to allow blanks, 9999 and range 1930-2020.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-18">Edit no longer accepts 9 filled dates. Now accepts blanks.</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>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy