edits.seer.internal.rules.IF595.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="IF595" name="TNM T, SSF 10 Bile Ducts Intrahepatic (COC)" tag="N2283" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_10,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') return true //Skip condition 5 if ((line.tnmClinT == null && line.tnmPathT == null) || (line.tnmClinT == '88' && line.tnmPathT == '88')) return true //Skip conditions 6, 7 if (line.csSiteSpecificFactor10 == null || line.csSiteSpecificFactor10 == '988' || (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7')) return true //Edit is skipped if Site/Histology group is not Bile Ducts Intrahepatic (skip condition 4) if (line.primarySite != 'C221' || (line.histologicTypeIcdO3 != '8160' && line.histologicTypeIcdO3 != '8161' && line.histologicTypeIcdO3 != '8180')) return true if ((line.tnmClinT == 'c4' || line.tnmPathT == 'p4') && line.csSiteSpecificFactor10 != '010') return false if (line.csSiteSpecificFactor10 == '010' && line.tnmClinT != 'c4' && line.tnmPathT != 'p4') return false return true]]></expression> <message>TNM T and SSF 10 conflict for Bile Ducts Intrahepatic</message> <description><![CDATA[Purpose: This edit verifies that TNM Clin T and TNM Path T are coded consistently with CS SSF 10, Tumor Growth Pattern, for Bile Ducts Intrahepatic. 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/Histology group is not Bile Ducts Intrahepatic 5. TNM Clin T and TNM Path T are blank or 88 6. Site-Specific Factor 10 is blank or 988 7. TNM Edition Number not = 07, U7 For Bile Ducts Intrahepatic (Site:C221 Histology: 8160-8161,8180): A. If TNM Clin T = c4 or TNM Path T = p4 (tumor with periductal invasion) then CS SSF 10 must = 010 (presence of periductal component) B. If CS SSF 10 = 010 (presence of periductal component) then TNM Clin T must = c4 or TNM Path T must = p4 (tumor with periductal invasion).]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-24" ref="67419">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67622">Added skip condition for TNM Edition Number.</event> <event version="SE18-018-01" user="schadega" date="2018-04-11" ref="67741">Edit name change.</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>