edits.seer.internal.rules.IF560.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="IF560" name="TNM Path Stage Group, 2016 (COC)" tag="N2423" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.dateOfDiagnosisYear > '2017' || line.tnmPathStageGroup == null) return true if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') return true return ((List)Context.TNM_Stage_Group_Table).contains(line.tnmPathStageGroup)]]></expression> <message>TNM Path Stage Group invalid for 2016-2017 Diagnosis years</message> <description><![CDATA[Must be a valid code for TNM Path Stage Group and must be left-justified. Letters must be uppercase. This edit is skipped if any of the following conditions are true: 1. Diagnosis date < 2016 or > 2017, blank (unknown), or invalid. 2. TNM Path Stage Group is blank 3. TNM Edition Number is not = 07, U7 The following codes are valid for 2016-2017: 0, 0A, 0S, 0IS, 1, 1A, 1A1, 1A2, 1B, 1B1, 1B2, 1C, 1S, 2, 2A, 2A1, 2A2, 2B, 2C, 3, 3A, 3B, 3C, 3C1, 3C2, 4, 4A, 4A1, 4A2, 4B, 4C, 88, 99, OC, blank]]></description> <history> <event version="SE16-016-01" user="kirbyk" date="2016-01-17" ref="67626">Added skip condition for TNM Edition Number; renamed edit.</event> <event version="SE16-015-01" user="kirbyk" date="2016-05-02" ref="67364">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-018-01" user="kirbyk" date="2018-04-26" ref="67772">Restricted edit to cases with DX year 2016-2017.</event> </history> </rule>