edits.seer.internal.rules.IF569.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="IF569" name="TNM Clin T, Histology, Grade, Thyroid (COC)" tag="N2234" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Grade,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_T,TNM_Path_T,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.primarySite != 'C739' || line.grade == null || line.tnmClinT == null || line.tnmClinT == '88') return true if (line.tnmPathT != null) return true Integer histNum = Functions.asInt(line.histologicTypeIcdO3) if ((Functions.expandList((List)[8000..8019,8022..8029,8033..8576,8940..8950,8980..8981]).contains(histNum) && line.grade == '4') || [8020,8021,8030,8031,8032].contains(histNum)) return Functions.matches(line.tnmClinT, /^c4[AB]?$/) return true]]></expression> <message>TNM Clin T, Grade conflict for Anaplastic CA of Thyroid</message> <description><![CDATA[This edit verifies that TNM Clin T is coded consistently for anaplastic carcinomas of the thyroid when TNM Path T is blank. Anaplastic carcinomas are identified by stated grade of 4 or histologic type with implied grade of 4. This edit is skipped if any of the following conditions are true: 1. Year of Date of Diagnosis is less than 2016, blank (unknown), or invalid 2. Type of Reporting Source = 7 (Death Certificate Only) 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. Site is not C739 5. TNM Clin T is blank or 88 6. Grade is blank A. If Primary Site is Thyroid (C73.9), histology is 8000-8019, 8022-8029, 8033-8576, 8940-8950, 8980-8981, Grade = 4, and TNM Path T is blank then TNM Clin T must = c4, c4A, or c4B B. If Primary Site is Thyroid (C73.9), histology is 8020, 8021, 8030, 8031, or 8032 (implied grade of 4) and TNM Path T is blank then TNM Clin T must = c4, c4A, or c4B]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-13" ref="67391">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-02" user="schadega" date="2018-05-18" ref="67743">Name change.</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>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy