edits.seer.internal.rules.IF264DIG_P4.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="IF264DIG_P4" name="EOD--Old 4 digit_4, Extension-Malig (SEER IF264DIG_P4)" tag="N3103" java-path="lines.line" category="inter-field" depends="Coding_System_for_EOD,EOD--Old_4_Digit_Extent,IF264DIG_P1,Primary_Site,Type_of_Reporting_Source,Histologic_Type_ICD-O-3"> <expression><![CDATA[Integer site = Functions.asInt(line.primarySite.substring(1)) Integer histIcdO3 = Functions.asInt(line.histologicTypeIcdO3) String eodOld4DigitExtent = null if (line.eodOld4Digit != null && line.eodOld4Digit.length() > 2) eodOld4DigitExtent = line.eodOld4Digit.substring(2, 3) Integer eod4DigitExtInt = Functions.asInt(eodOld4DigitExtent) if (line.codingSystemForEod != '3' || line.behaviorCodeIcdO3 != '3') return true if (line.typeOfReportingSource == '7') return (eodOld4DigitExtent == '9') if (!Functions.matches(eodOld4DigitExtent, /^[0-9]$/)) return false if (((List)((Map)Context.If26_4DIG_LEUK_LYMPH_EXT).getOrDefault(histIcdO3, [])).contains(eod4DigitExtInt)) return true if (((List)((Map)((Map)Context.If26_4DIG_SITE_HIST_MALIG_EXT).getOrDefault(site, [:])).getOrDefault(histIcdO3, [])).contains(eod4DigitExtInt)) return true if (((List)((Map)Context.If26_4DIG_SITE_MALIG_EXT).getOrDefault(site, [])).contains(eod4DigitExtInt)) return true return false]]></expression> <message>Primary Site and Malig EOD--Old 4 digit, extent conflict</message> <description><![CDATA[For cases coded using the SEER 4-digit Site-specific Extent of Disease (Coding System for Extent of Disease = 3), this edit validates the Extent of Disease according to the codes allowable for each site as defined in Extent of Disease New 4-Digit Schemes - Codes and Coding Instructions (1983). For death certificate only cases (Type of Reporting Source = 7), the four digit extent of disease must be '9999'. For an in situ case (Behavior = 2), then the extent of disease must also indicate in situ. 1. For primary sites where in situs are possible a zero in the Extension subfield indicates in situ. In addition for bladder (sites C670-C679) a '1' in Extension indicates in situ and a '2' may indicate either in situ or invasive. For sites where in situs are not considered possible, no code is valid with a behavior of '2'. 2. Any case reported as in situ must have the Lymph Nodes subfield equal to '0'. For invasive cases (Behavior = 3) the Extension codes associated with in situ may not be used. Thus an Extension code of '0' is invalid for all sites and for bladder (sites C670-C679) an Extension code of '1' is also invalid.]]></description> <history> <event version="SE11-001-07" user="greend" date="1991-09-15">Conversion of topology and morphology code from ICD-O-1 to ICD-O-2. Modified program logic so that when extesion or node is non-numeric the proper malignant or in situ flag is set for each respectively. Edit now verifies that if reporting source is death certificate only, all four digit extent of disease codes must be all '9's.</event> <event version="SE11-001-08" user="greend" date="1992-01-15">Deleted parts of code that dealt with mycosis fungoides. The flag was removed. This error is checked in other edits.</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-25" ref="67758">Edit 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-05" user="kirbyk" date="2020-07-27" ref="68443">Replaced EOD--Old 4 Digit Extent sub-field with EOD--Old 4 Digit parent field.</event> <event version="SE24-024-06" user="cooki" date="2024-07-18" ref="69509">Deleted deprecated dependency.</event> <event version="SE24-024-06" user="shearerw" date="2024-07-25" ref="69510">Switch from ICD-O-2 to ICD-O-3.</event> <event version="SE24-024-08" user="beverung" date="2024-08-14" ref="69527">Updated histologies in If26_4DIG_LEUK_LYMPH_EXT and If26_4DIG_SITE_HIST_MALIG_EXT.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy