edits.seer.internal.rules.IF620.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="IF620" name="TNM T, SSF 12, Tumor Size, Carcinoma of Skin (COC)" tag="N2417" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.csSiteSpecificFactor12 == null || line.csSiteSpecificFactor12 == '988') return true //Skip condition 5 if ((line.tnmClinT == null && line.tnmPathT == null) || (line.tnmClinT == '88' && line.tnmPathT == '88')) return true //Skip condition 7, 8 if ((line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') || line.tnmPathDescriptor == '4' || line.tnmPathDescriptor == '6') return true //If case is not Cutaneous CA of skin, edit is skipped (skip condition 4) String hist = line.histologicTypeIcdO3 if (!(Functions.matches(line.primarySite, /^C44[02-9]|C632$/)) || !((hist >= '8000' && hist <= '8246') || (hist >= '8248' && hist <= '8576') || (hist >= '8940' && hist <= '8950') || hist == '8980' || hist == '8981')) return true if (line.tnmPathT == null) { if (line.tnmClinT == 'c1') return Functions.matches(line.csSiteSpecificFactor12, /^00[01]|99[139]$/) else if (line.tnmClinT == 'c2' && ((line.tumorSizeClinical >= '001' && line.tumorSizeClinical <= '020') || (line.tumorSizeSummary >= '001' && line.tumorSizeSummary <= '020'))) return Functions.matches(line.csSiteSpecificFactor12, /^00[2345]|992$/) } else { if (line.tnmPathT == 'p1') return Functions.matches(line.csSiteSpecificFactor12, /^00[01]|99[139]$/) else if (line.tnmPathT == 'p2' && ((line.tumorSizePathologic >= '001' && line.tumorSizePathologic <= '020') || (line.tumorSizeSummary >= '001' && line.tumorSizeSummary <= '020'))) return Functions.matches(line.csSiteSpecificFactor12, /^00[2345]|992$/) } return true]]></expression> <message>TNM T, SSF 12, and tumor size conflict</message> <description><![CDATA[Purpose: This edit verifies that TNM Clin T, TNM Path T, and tumor size are coded consistently with CS SSF 12, High Risk Features, for Cutaneous CA of Skin. 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 029, Cutaneous Ca of Skin 5. TNM Clin T and TNM Path T are blank or 88 6. CS Site-Specific Factor 12 is blank or 988 7. TNM Edition Number not = 07, U7 8. TNM Path Descriptor = 4, 6 The site/histology groups are identified by site and histology in the edit Primary Site, Stage Group 2016 - Ed 7. For Cutaneous CA of skin: A. If TNM T = 1(Tumor 2cm or less in greatest dimension with less than 2 high risk features) then CS SSF 12 must = 000 (No high risk features), 001 (1 high risk feature), 991 (stated as less than 2 high risk features), 993 (stated as high risk features NOS), or 999 (Unknown or no information). B. If TNM T = 2 (Tumor greater than 2cm in greatest dimension or tumor any size with 2 or more high risk features) and Tumor Size = 001-020 Then CS SSF 12 must = 002 (2 high risk features), 003 (3 high risk features), 004 (4 high risk features), 005 (5 high risk features), or 992 (stated as 2 or more high risk features). The edit will check TNM Path T. If TNM Path T is empty, the edit will check TNM Clin T. For TNM Path T, the edit will check for size values in Tumor Size Pathologic and Tumor Size Summary. For TNM Clin T, the edit will check for size values in Tumor Size Clinical and Tumor Size Summary.]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-08" ref="67456">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67623">Added skip conditions for TNM Edition Number and TNM Path Descriptor.</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-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>