edits.seer.internal.rules.Month_of_Birth.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="Month_of_Birth" name="Date of Birth (NAACCR)" tag="N1034" java-path="lines.line" category="field"> <expression><![CDATA[return line.dateOfBirthMonth == null || Functions.matches(line.dateOfBirthMonth, /^(0[1-9]|1[0-2])$/)]]></expression> <message>Month of birth is not valid.</message> <description><![CDATA[Valid codes for Month of Birth[240] are 01-12 and blanks. Blanks allowed prior to submission.]]></description> <history> <event version="SE11-001-19" user="greend" date="2005-06-30">Blanks are allowed prior to submission.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-29">99 months removed.</event> <event version="SE12-002-01" user="murphyr" date="2010-01-06">Blanks added.</event> <event version="SE13-009-01" user="murphyr" date="2012-12-20" ref="66804">Fixed edit to not allow a one digit month.</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>