edits.seer.internal.rules.MorphICDO3_P3.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="MorphICDO3_P3" name="Histologic Type ICD-O-3, Behavior, Grade (SEER)" tag="N1784" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Grade,Histologic_Type_ICD-O-3,MorphICDO3_P1,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[if (line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null || line.grade == null || (line.dateOfDiagnosisYear != null && line.dateOfDiagnosisYear > '2017')) return true if (Functions.between(line.grade, '5', '8') && !Functions.between(line.histologicTypeIcdO3, '9590', '9992')) return false // Grade of 9 is allowed for some histologies with unknown primary site if (['8020', '8021', '9082', '9083'].contains(line.histologicTypeIcdO3) && '3' == line.behaviorCodeIcdO3 && 'C809' == line.primarySite && '9' == line.grade) return true if (line.behaviorCodeIcdO3 == '3' && ((Map)Context.Morph_ICD03_Grade_Hists).containsKey(line.histologicTypeIcdO3)) if (line.grade != (String)((Map)Context.Morph_ICD03_Grade_Hists).getOrDefault(line.histologicTypeIcdO3, '')) return false return true]]></expression> <message>Grade and ICD-O-3 Histology conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1. Histologic Type ICD-O-3 is blank 2. Behavior Code ICD-O-3 is blank 3. Grade is blank 4. Diagnosis year > 2017 1. The following histology/grade combinations are impossible: Grades 5-8 with histologies not in the range 9590-9992 2. Some terms in ICD-O-3 carry an implied statement of grade. These histologies must be reported with the correct grade as stated below in format of histology/behavior & grade: *8020/34 Carcinoma, undifferentiated *8021/34 Carcinoma, anaplastic 8331/31 Follicular adenocarcinoma, well differentiated *9082/34 Malignant teratoma, undifferentiated *9083/32 Malignant teratoma, intermediate type 9511/31 Retinoblastoma, differentiated 9512/34 Retinoblastoma, undifferentiated * Edit allows grade of 9 where primary site is coded as unknown, C809 for these histologies]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2010-02-02">Added 2 conditions for cases 2010+.</event> <event version="SE12-003-03" user="murphyr" date="2011-02-11">Changed range of histologies allowed for grades 5-8 from "9590-9948" to "9590-9992".</event> <event version="SE12-004-01" user="murphyr" date="2011-02-17">Removed some unnecessary code. Removed unnecessary grade dependency for parts 1, 2, and 4.</event> <event version="SE13-010-01" user="murphyr" date="2013-05-10" ref="66871">Updated doc and edit name to reflect the new edit in the meta file that this edit is now referencing. Logic changed only slightly.</event> <event version="SE16-016-04" user="kirbyk" date="2017-06-20" ref="67654">Updated logic to allow grade 9 for specific site/histology combinations.</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="schadega" date="2018-04-26" ref="67727">Restrict to cases before 2018.</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="SE23-023-06" user="cooki" date="2023-08-30" ref="69304">Removed histologies 9401 and 9451.</event> </history> </rule>