edits.seer.internal.rules.IF604.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="IF604" name="TNM T, Deep Sites Soft Tissue (COC)" tag="N2276" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[//Skip conditions 1, 2 if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7') return true //Skip conditions 3, 4, 5 boolean behaviorSkipCondition = line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' boolean tnmSkipCondition = (line.tnmClinT == null && line.tnmPathT == null) || (line.tnmClinT == '88' && line.tnmPathT == '88') if (behaviorSkipCondition || tnmSkipCondition || (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7')) return true String hist = line.histologicTypeIcdO3 boolean isFemale = Functions.matches(line.sex, /^[26]$/) boolean firstSiteGroup = Functions.matches(line.primarySite, /^C38[0-38]$/) && ((hist >= '8800' && hist <= '8820') || (hist >= '8823' && hist <= '8935') || (hist >= '8940' && hist <= '9136') || (hist >= '9142' && hist <= '9582')) boolean secondSiteGroup = Functions.matches(line.primarySite, /^C48[128]$/) && ((hist >= '8800' && hist <= '8820') || (hist >= '8823' && hist <= '8934') || (hist >= '8940' && hist <= '9136') || (hist >= '9142' && hist <= '9582')) && !isFemale boolean thirdSiteGroup = Functions.matches(line.primarySite, /^C48[128]$/) && ((hist >= '8800' && hist <= '8820') || (hist >= '8823' && hist <= '8921') || (hist >= '9120' && hist <= '9136') || (hist >= '9142' && hist <= '9582')) && isFemale boolean fourthSiteGroup = line.primarySite == 'C480' && ((hist >= '8800' && hist <= '8820') || (hist >= '8823' && hist <= '8934') || (hist >= '8940' && hist <= '9136') || (hist >= '9142' && hist <= '9582')) if (!firstSiteGroup && !secondSiteGroup && !thirdSiteGroup && !fourthSiteGroup) return true boolean skipPathRequirement = line.tnmPathDescriptor == '4' || line.tnmPathDescriptor == '6' return (line.tnmClinT == null || Functions.matches(line.tnmClinT, /^cX|c[12]B$/)) && (skipPathRequirement || line.tnmPathT == null || Functions.matches(line.tnmPathT, /^pX|p[12]B$/))]]></expression> <message>TNM Clin T and TNM Path T conflict for Deep Sites Soft Tissue</message> <description><![CDATA[Purpose: This edit verifies that TNM T is coded as deep tumor for certain Soft Tissue Sarcoma sites: heart/mediastinum, peritoneum, and retroperitoneum. 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. TNM Clin T and TNM Path T are blank or 88 5. TNM Edition Number not = 07, U7 For soft tissue sarcoma: If site = C380-C383, C388 (8800-8820, 8823-8935, 8940-9136, 9142-9582), C481-C482, C488 (8800-8820, 8823-8934. 8940-9136, 9142-9582 (not female), C481-C482, C488 (8800-8820, 8823-8921, 9120-9136, 9142-9582 (female only), or C480 (8800-8820, 8823-8934, 8940-9136, 9140-9582) then TNM Clin T must = c1B, c2B, cX or blank, and if TNM Path Descriptor not = 4 or 6 (indicating neoadjuvant treatment given), then TNM Path T must = p1B, p2B,pX, or blank.]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-06" ref="67437">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2016-12-02" ref="67554">Fixed error in logic to check sex value.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67618">Added skip condition for TNM Edition Number.</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-017-01" user="schadega" date="2018-03-15" ref="67701">Skip Path T requirement if Path Descriptor is 4 or 6.</event> <event version="SE18-018-02" user="schadega" date="2018-05-17" ref="67760">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> <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>