edits.seer.internal.rules.IF600.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="IF600" name="TNM Clin N, Digestive, Assess Nodes SSF (COC)" tag="N2229" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_1,CS_Site-Specific_Factor_2,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_N,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.tnmClinN == null || line.tnmClinN == '88') return true if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') return true String siteGroup = (String)((Closure)Context.AJCC7CodeLookup16).call(line) if (!(siteGroup ==~ /^1[03][AB]|01[124]|17[AC]$/)) return true //Check for blank or 988 SSF based on site group if (siteGroup ==~ /^10[AB]|011|17A$/ && (line.csSiteSpecificFactor1 == null || line.csSiteSpecificFactor1 == '988')) return true if (siteGroup ==~ /^01[24]|13[AB]|17C$/ && (line.csSiteSpecificFactor2 == null || line.csSiteSpecificFactor2 == '988')) return true if (siteGroup == '10A' || siteGroup == '10B' || siteGroup == '011') { if (line.csSiteSpecificFactor1 == '000' && line.tnmClinN != 'c0') return false else if (line.csSiteSpecificFactor1 == '100' && line.tnmClinN != 'c1') return false else if (line.csSiteSpecificFactor1 == '200' && line.tnmClinN != 'c2') return false else if (line.csSiteSpecificFactor1 == '300' && line.tnmClinN != 'c3') return false else if (line.csSiteSpecificFactor1 == '400' && line.tnmClinN == 'c0') return false else if (line.csSiteSpecificFactor1 == '999' && line.tnmClinN != 'cX') return false } if (siteGroup == '011') { if (line.csSiteSpecificFactor1 == '310' && line.tnmClinN != 'c3A') return false else if (line.csSiteSpecificFactor1 == '320' && line.tnmClinN != 'c3B') return false } if (siteGroup == '012' || siteGroup == '13A' || siteGroup == '014') { if (line.csSiteSpecificFactor2 == '000' && line.tnmClinN != 'c0') return false else if (line.csSiteSpecificFactor2 == '100' && line.tnmClinN != 'c1') return false else if (line.csSiteSpecificFactor2 == '200' && line.tnmClinN != 'c2') return false else if (line.csSiteSpecificFactor2 == '400' && line.tnmClinN == 'c0') return false else if (line.csSiteSpecificFactor2 == '999' && line.tnmClinN != 'cX') return false } if (siteGroup == '014') { if (line.csSiteSpecificFactor2 == '010' && line.tnmClinN != 'c1A') return false else if (line.csSiteSpecificFactor2 == '020' && line.tnmClinN != 'c1B') return false else if (line.csSiteSpecificFactor2 == '110' && line.tnmClinN != 'c2A') return false else if (line.csSiteSpecificFactor2 == '120' && line.tnmClinN != 'c2B') return false } if (siteGroup == '17A') { if (line.csSiteSpecificFactor1 == '000' && line.tnmClinN != 'c0') return false else if (Functions.matches(line.csSiteSpecificFactor1, /^[1-4]00$/) && line.tnmClinN != 'c1') return false else if (line.csSiteSpecificFactor1 == '999' && line.tnmClinN != 'cX') return false } if (siteGroup == '13B' || siteGroup == '17C') { if (line.csSiteSpecificFactor2 == '000' && line.tnmClinN != 'c0') return false else if (Functions.matches(line.csSiteSpecificFactor2, /^[124]00$/) && line.tnmClinN != 'c1') return false else if (line.csSiteSpecificFactor2 == '999' && line.tnmClinN != 'cX') return false } return true]]></expression> <message>TNM Clin N, Assess Nodes SSFs conflict for Digestive</message> <description><![CDATA[The edit verifies consistency between the CS Site-Specific Factor coding Clinical Assessment of Lymph Nodes, and the assigned TNM Clin N category. 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 included in list below (not 10A,10B,011,012,13A,13B,014,17A,17C). 5. TNM Clin N is blank or 88 6. SSF coding nodes assessment is blank or 988 7. TNM Edition number is not 07 or U7 (Site/histology group is determined before skips 4 and 6 are applied.) TNM Clin N may be blank. If entered, it will be edited site-specifically. Code 400, clinically positive regional node(s), NOS, will be accepted with any TNM Clin N value except cN0 for groups 10A, 10B, 11, 12, 13A and 14. The site-specific TNM Clinical N 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 digestive site/histology groups where assessment of clinical N is coded separately in a site-specific factor. The site/histology groups are identified by site and histology in the edit Primary Site, Stage Group 2016 - Ed 7. 10. Esophagus and Esophagus Gastric Junction 10A. Esophagus 10B. Esophagus Gastric Junction TNM N Clin: X 0 1 2 3 SSF 1: 999, 400 000 100, 400 200, 400 300, 400 11. Stomach TNM N Clin: X 0 1 2 3 3A 3B SSF 1: 999, 400 000 100, 400 200, 400 300, 400 310, 400 320, 400 12. Small Intestine TNM N Clin: X 0 1 2 SSF 2: 999, 400 000 100, 400 200, 400 13. Appendix 13A. Appendix: Carcinoma TNM N Clin: X 0 1 2 SSF 2: 999, 400 000 100, 400 200, 400 13B. Appendix: Carcinoid TNM N Clin: X 0 1 SSF 2: 999 000 100, 200,400 14. Colon and Rectum TNM N Clin: X 0 1 1A 1B 2 2A 2B SSF 2: 999, 400 000 100, 400 010, 400 020, 400 200, 400 110, 400 120, 400 17. Neuroendocrine Tumors (NET) 17A. NET: Stomach TNM N Clin: X 0 1 SSF 1: 999 000 100, 200, 300, 400 17C. NET: Colon and Rectum TNM N Clin: X 0 1 SSF 2: 999 000 100, 200, 400]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-02" ref="67433">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2016-11-30" ref="67549">Added cX as valid for code 400 for some groups.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-13" ref="67584">Added skip condition for TNM Edition Number, changed valid codes for 13B.</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