edits.seer.internal.rules.Year_Surgery.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.
The newest version!
<rule id="Year_Surgery" name="RX Date Surgery (COC)" tag="N0356" java-path="lines.line" category="field"> <expression><![CDATA[return (line.rxDateSurgeryYear == null || (Functions.matches(line.rxDateSurgeryYear, /^[12]\d\d\d$/) && Functions.between(line.rxDateSurgeryYear, 1930, Functions.getCurrentYear()) ) )]]></expression> <message>Year of Surgery is not valid.</message> <description><![CDATA[Valid codes for Year of Surgery[1200] are 1930 - current year or blanks.]]></description> <history> <event version="SE15-013-01" user="kirbyk" date="2015-01-12" ref="67146">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> <event version="SE18-020-05" user="beverung" date="2020-07-31" ref="68451">Changed edit name.</event> <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> </history> </rule>