edits.seer.internal.rules.IF348.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="IF348" name="Primary Site, Heme Morph, DateDX, NoOverride (SEER)" tag="N2021" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.behaviorCodeIcdO3 == null || line.behaviorCodeIcdO3 != '3' || line.histologicTypeIcdO3 == null || line.histologicTypeIcdO3 < '9590' || line.histologicTypeIcdO3 > '9993' || line.primarySite == null) return true Integer hist = Functions.asInt(line.histologicTypeIcdO3) String site = line.primarySite if (line.dateOfDiagnosisYear < '2010' && hist == 9823) if (!(site ==~ /^C42[014]$/)) return false if (line.dateOfDiagnosisYear > '2017') { if (site == 'C420') return false else if (hist == 9761) return site == 'C421' } if (line.dateOfDiagnosisYear >= '2010') { if (hist == 9761) { if (site != 'C420') return false } else if (((List)Context.IF348_Hist_List_1).contains(hist)) { if (site != 'C421') return false } else if (((List)Context.IF348_Hist_List_2).contains(hist)) { if (site ==~ /^C42[034]$/) return false } else if (((List)Context.IF348_Hist_List_3).contains(hist)) { if (site ==~ /^C42[034]$/) return false } else if (hist == 9679) { if (!(site ==~ /^C38[123]|C379$/)) return false } else if (hist == 9689 || hist == 9716) { if (site != 'C422') return false } else if (hist == 9699) { if (site ==~ /^C42[0234]$/) return false } else if (hist == 9731) { if (!(site ==~ /^C4[01][0-9]$/)) return false } else if (hist == 9734) { if (site ==~ /^C42[034]$/ || site ==~ /^C4[01][0-9]$/) return false } else if (hist == 9930) { if (site ==~ /^C42[0134]$/) return false } if (site == 'C420' && hist != 9761) return false } return true]]></expression> <message>Site, Hist/Beh and Year of diagnosis conflict</message> <description><![CDATA[This edit validates the coding of primary site by histology based on the Hematopoietic and Lymphoid Neoplasm Coding Manual and Database. For cases diagnosed 2010 and later, specific histology codes are allowed only for specified sites. One combination (9823/C420, C421, C424) is allowed only for cases diagnosed prior to 2010. The histology/primary site combinations in this edit are not overridable. This edit is skipped if any of the following conditions are true: 1. Primary Site is blank 2. Histologic Type ICD-O-3 is blank or not in range 9590-9993 3. Behavior Code ICD-O-3 is blank or not = 3 4. Date of Diagnosis is blank or invalid If year of diagnosis is less than 2010, the following Histologic Type ICD-O-3 codes (with Behavior ICD-O-3 code 3) are allowed only for the listed Primary Site codes: 9823: C420, C421, C424 If year of diagnosis is 2010 or later, the following Histologic Type ICD-O-3 codes (with Behavior ICD-O-3 code 3) are allowed only for the listed Primary Site codes: 9732, 9741, 9742, 9800, 9801, 9806-9809, 9820, 9826, 9831-9834, 9840, 9860, 9861, 9863, 9865-9867, 9869-9879, 9891, 9895-9898, 9910-9912, 9920, 9931, 9940, 9945, 9946, 9948, 9950, 9961-9968, 9975, 9980, 9982, 9983, 9985, 9986, 9989, 9991-9993 C421 9590, 9591, 9596, 9597, 9650-9653, 9655, 9659, 9663, 9671, 9673, 9678, 9680, 9687, 9688, 9690, 9691, 9695, 9698, 9700-9702, 9705, 9708, 9709, 9712, 9714, 9717-9719, 9724-9727, 9735, 9737, 9738, 9740, 9751, 9755-9759, 9762, 9811-9818, 9823, 9827, 9837, 9971 Not C420, C423, C424 9679: C381-C383 or C379 9689: C422 9699: Not C420, C422, C423, C424 9716: C422 9731: C400-C419 9734: Not C400-C419, C420, C423, C424 9930: Not C420, C421, C423, C424 If year of diagnosis is 2010-2017, the following Histologic Type ICD-O-3 codes (with Behavior ICD-O-3 code 3) are allowed only for the listed Primary Site codes: 9761: C420 - vice versa is also true: if Primary Site is C420, then Histologic Type ICD-O-3 must = 9761. If year of diagnosis is 2018 or later, the following Histologic Type ICD-O-3 codes (with Behavior ICD-O-3 code 3) are allowed only for the listed Primary Site codes: 9761: C421. C420 is not allowed for any Histologic Type ICD-O-3 code 9590-9993.]]></description> <history> <event version="SE12-004-01" user="murphyr" date="2011-02-14">Edit created.</event> <event version="SE13-009-01" user="murphyr" date="2012-12-20" ref="66776">Updated edit name.</event> <event version="SE13-009-03" user="murphyr" date="2013-04-10" ref="66850">Modified edit logic for NAACCR 13.</event> <event version="SE13-010-01" user="murphyr" date="2013-06-28" ref="66850">Edit changed to limit Histologic Type ICD-O-3 code 9823 to C420, C421, and C424 for cases diagnosed prior to 2010; previous version of this edit incorrectly checked diagnosis year 2012.</event> <event version="SE13-010-07" user="murphyr" date="2013-10-11" ref="66952">Added the following skip: 5. Over-ride Site/Type = 1, indicating the case has already been reviewed and accepted as coded.</event> <event version="SE15-013-01" user="kirbyk" date="2015-01-08" ref="67139">Edit name changed. Codes updated for NAACCR 15 and over-ride logic moved to IF510.</event> <event version="SE15-013-02" user="kirbyk" date="2015-03-02" ref="67197">Added sites C381, C382 for histology 9679. Updated description.</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-01" user="kirbyk" date="2018-04-16" ref="67755">Updated logic for 2018 cases.</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="SE18-020-04" user="beverung" date="2020-06-18" ref="68355">Add 9993 to skip condition, update C421 histologies and help text, and add histology lists to context.</event> <event version="SE18-020-05" user="beverung" date="2020-08-06" ref="68444">Updated description to show correct histology range for 2018 and later.</event> <event version="SE23-023-01" user="secristc" date="2023-02-23" ref="69202">Added 9819 as a valid histology for primary site C421.</event> <event version="SE23-023-07" user="shearerw" date="2023-09-08" ref="69309">Removed 9819 as a valid histology for primary site C421.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy