edits.seer.internal.rules.Day_of_Diagnosis.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="Day_of_Diagnosis" name="Date of Diagnosis (NAACCR DATEEDIT)" tag="N0021" java-path="lines.line" category="field"> <expression><![CDATA[return line.dateOfDiagnosisDay == null || Functions.matches(line.dateOfDiagnosisDay, /^(0[1-9]|[12][0-9]|3[01])$/)]]></expression> <message>Day of diagnosis is not valid.</message> <description><![CDATA[Valid values for Day of Diagnosis[390] are 01-31 and blank.]]></description> <history> <event version="SE12-002-01" user="greend" date="2009-12-29">99 removed.</event> <event version="SE13-009-01" user="murphyr" date="2012-12-20" ref="66804">Removed blank check in regex.</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>