edits.seer.internal.rules.CS_Version_Input_Original.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="CS_Version_Input_Original" name="CS Version Input Original (CS)" tag="N0696" java-path="lines.line" category="field"> <expression><![CDATA[if (line.csVersionInputOriginal == null) return true if (['020440','020302','020200','020100','020001','010401','010400','010300','010200','010100','010005','010004','010003','010002','010000','000937'].contains(line.csVersionInputOriginal)) return true Integer version = Functions.asInt(line.csVersionInputOriginal) if (version > Functions.asInt(Functions.getCsVersion())) return false if (line.csVersionInputOriginal.startsWith('0205')) return version >= 20550 return false]]></expression> <message>CS Version Input Original is not valid.</message> <description><![CDATA[Must be a six-digit number or blank. If not blank, the full six-digit number must be one of the following numbers: 020550 or higher (see next paragraph) 020440 020302 020200 020100 020001 010401 010400 010300 010200 010100 010005 010004 010003 010002 010000 000937 If the first 4 digits are 0205, then the full six-digit number must be greater than or equal to 020550. Codes less than 020550 are either reserved for converted cases or invalid and are never used in CS Version Input Original. CS Version Input Original must also be less than or equal to the CS version that is returned from a function call to the CS DLL. (The most current CS DLL always contains the most current CS version number.)]]></description> <history> <event version="SE11-001-22" user="greend" date="2007-12-15">Added new CS version "0104" to the allowable codes.</event> <event version="SE12-002-01" user="murphyr" date="2010-01-11">Changed name, id, and error message.</event> <event version="SE12-002-01" user="murphyr" date="2010-02-03">Changed logic.</event> <event version="SE12-002-01" user="murphyr" date="2010-04-29">Added newest dll version (0202).</event> <event version="SE12-002-01" user="murphyr" date="2010-05-26">Edit now only checks first two digits.</event> <event version="SE12-004-01" user="murphyr" date="2011-01-24">Added codes 020300 and 020301 as invalid codes and added that CS Version Input Original must also be less than or equal to the CS version that is returned from a function call to the CS DLL.</event> <event version="SE12-008-05" user="murphyr" date="2012-11-28" ref="66770">Added 'If the first 4 digits are 0204, then the full six-digit number must be greater than or equal to 020440. Codes less than 020440 are either reserved for converted cases or invalid and are never used in CS Version Input Original.'</event> <event version="SE14-011-01" user="murphyr" date="2013-10-25" ref="67027">Updated for 0205.</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>