edits.seer.internal.rules.IF622.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="IF622" name="TNM Path T, Depth, Melanoma - Ed 7 (COC)" tag="N2265" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_1,Histologic_Type_ICD-O-3,Primary_Site,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.tnmPathT == null || line.tnmPathT == '88') return true //Skip condition 6 if (line.csSiteSpecificFactor1 == null || line.csSiteSpecificFactor1 == '999' || line.csSiteSpecificFactor1 == '988') return true //Skip conditions 7, 8 if ((line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') || line.tnmPathDescriptor == '4' || line.tnmPathDescriptor == '6') return true //Skip condition 4 String siteGroup = (String)((Closure)Context.AJCC7CodeLookup16).call(line) if (siteGroup != '031' && siteGroup != '050') return true Integer ssfInt = Functions.asInt(line.csSiteSpecificFactor1) if (siteGroup == '050') { if (ssfInt == 991) ssfInt = 5 else if (ssfInt >= 992 && ssfInt <= 995) ssfInt = 150 else if (ssfInt == 996) ssfInt = 980 else if (ssfInt == 998 && Functions.matches(line.tnmPathT, /^p[12][ABC]$/)) return false } List validSsf = (List)((Map)((Map)Context.IF622_Table).getOrDefault(siteGroup, [:])).getOrDefault(line.tnmPathT, null) if (validSsf == null) return true else if (!validSsf.contains(ssfInt)) return false return true]]></expression> <message>CS Site-Specific Factor 1 is not consistent with TNM Path T</message> <description><![CDATA[This edit verifies consistency between CS Site-Specific Factor 1 coding Depth and the assigned TNM Path T category for Melanoma of Skin and Melanoma of Conjunctiva. 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 where Tumor Depth is not recorded as a staging factor (not 31, 50). (Site/histology group is determined before the skip is applied.) 5. TNM Path T is blank or 88 6. Tumor Depth (in CS SSF 1) is blank, "999", unknown, or "988", not applicable. 7. TNM Edition Number not = 07, U7 8. TNM Path Descriptor = 4,6 TNM Path T may be blank. If entered, it will be edited site-specifically. A pT category entered in TNM Path T will be compared to the tumor depth coded in a site-specific factor. An edit failure will be returned if the tumor depth is outside the range for the listed pT category. "980", "980 millimeters or larger", is the largest possible size. Nonspecific size values are converted to numeric values for purposes of the edit. The site-specific TNM Pathologic T values with the corresponding codes in the Site-Specific Factor used to collect the information are listed below. The number next to each site title indicates the respective chapter in the AJCC Cancer Staging Manual, Edition 7. The list includes only those melanomas where pathologic T is based on tumor depth coded in a site-specific factor. For both Melanoma of Skin and Melanoma of Conjuctiva, the measurement is coded in hundredths of millimeters. The site/histology groups are identified by site and histology in the edit Primary Site, Stage Group 2016 - Ed 7. 31. Melanoma of the Skin SSF 1 TNM T Path: 1,1A,1B 2,2A,2B 3,3A,3B 4,4A,4B Tumor Depth 001-100 101-200 201-400 401-980 50. Melanoma of Conjunctiva SSF 1 TNM T Path: 1A,2A 1B,2B 1C,2C Tumor Depth 001-050 051-150 151-980]]></description> <history> <event version="SE16-015-05" user="kirbyk" date="2016-07-20" ref="67497">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67609">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-018-02" user="schadega" date="2018-05-18" ref="67807">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