edits.seer.internal.rules.IF380.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="IF380" name="Histology ICDO3, Grade, Date of DX (SEER)" tag="N1965" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,Grade,Histologic_Type_ICD-O-3"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2010' || line.dateOfDiagnosisYear > '2017' || line.grade == null || line.histologicTypeIcdO3 == null) return true if (((List)Context.IF380_Hist_List_1).contains(line.histologicTypeIcdO3)) return line.grade == '5' if (((List)Context.IF380_Hist_List_2).contains(line.histologicTypeIcdO3)) return line.grade == '6' if (line.histologicTypeIcdO3 == '9714') return line.grade == '5' || line.grade == '6' if (((List)Context.IF380_Hist_List_3).contains(line.histologicTypeIcdO3)) return line.grade == '8' if (((List)Context.IF380_Hist_List_4).contains(line.histologicTypeIcdO3)) return line.grade == '9' if (line.histologicTypeIcdO3 == '9831') return line.grade == '5' || line.grade == '8' || line.grade == '9' if (((List)Context.IF380_Hist_List_5).contains(line.histologicTypeIcdO3)) return !(Functions.matches(line.grade, /^[1234]$/)) return true]]></expression> <message>Grade and Histology conflict for Date of DX</message> <description><![CDATA[This edit validates the coding of grade by histology based on the Hematopoietic and Lymphoid Neoplasm Coding Manual and applies to cases diagnosed 2010-2017. Sources: - Hematopoietic and Lymphoid Neoplasm Database & Coding Manual (Appendix E) - 2015 Implementation Guidelines and Recommendations (Appendix B) This edit is skipped if any of the following conditions are true: 1. Date of Diagnosis is blank or invalid 2. Year of Date of Diagnosis is less than 2010 or greater than 2017 3. Grade is blank 4. Histologic Type ICD-O-3 is blank Source: Hematopoietic and Lymphoid Neoplasm Coding Manual, Rule G2 Grade must be 5 for the following Histologic Type ICD-O-3 codes: 9700, 9701, 9702, 9705, 9708, 9709, 9716, 9717, 9718, 9724, 9725, 9726, 9827, 9834, 9837 Source: Hematopoietic and Lymphoid Neoplasm Coding Manual, Rule G3 Grade must be 6 for the following Histologic Type ICD-O-3 codes: 9591, 9596, 9597, 9659, 9671, 9673, 9678, 9679, 9680, 9687, 9688, 9689, 9690, 9691, 9695, 9698, 9699, 9712, 9731, 9732, 9734, 9737, 9738, 9761, 9762, 9811, 9812, 9813, 9814, 9815, 9816, 9817, 9818, 9823, 9826, 9833, 9940 Source: Hematopoietic and Lymphoid Neoplasm Coding Manual, Rule G2 Grade must be 5 or 6 for the following Histologic Type ICD-O-3 codes: 9714 Source: Hematopoietic and Lymphoid Neoplasm Coding Manual, Rule G4 Grade must be 8 for the following Histologic Type ICD-O-3 codes: 9719, 9948 Source: Hematopoietic and Lymphoid Neoplasm Coding Manual, Rule G1 Grade must be 9 for the following Histologic Type ICD-O-3 codes: 9740, 9741, 9742, 9751, 9755, 9756, 9757, 9758, 9759, 9801, 9806, 9807, 9808, 9809, 9875, 9876, 9945, 9946, 9950, 9961, 9962, 9963, 9964, 9975, 9980, 9982, 9983, 9985, 9986, 9989, 9991, 9992 Grade must be 5, 8, or 9 for the following Histologic Type ICD-O-3 code: 9831 Source: Hematopoietic and Lymphoid Neoplasm Database Grade must not = 1-4 for the following Histologic Type ICD-O-3 codes: 9590, 9650, 9651, 9652, 9653, 9655, 9663, 9727, 9735, 9800, 9820, 9832, 9840, 9860, 9861, 9863, 9865-9867, 9869, 9870-9874, 9891, 9895-9898, 9910, 9911, 9920, 9930, 9931, 9965, 9966, 9967, 9971]]></description> <history> <event version="SE12-005-01" user="murphyr" date="2011-08-03" ref="66494">Edit created.</event> <event version="SE12-006-01" user="murphyr" date="2011-12-15" ref="66606">Now allowing grade 5, 8 or 9 for 9831</event> <event version="SE13-009-01" user="murphyr" date="2012-12-26" ref="66800">Added some conditions for 2012+ cases.</event> <event version="SE13-009-01" user="murphyr" date="2013-01-25" ref="66826">Edit name changed.</event> <event version="SE15-013-01" user="kirbyk" date="2015-01-09" ref="67129">Histology lists updated. New list added for histologies that cannot have a grade of 1-4.</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="schadega" date="2018-04-25" ref="67728">Limit to cases diagnosed from 2010 to 2017.</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>