edits.seer.internal.rules.IF2613DG_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.
<rule id="IF2613DG_P3" name="EOD--Old 13 digit, Primary Site (SEER IF2613DG)" tag="N0317" java-path="lines.line" category="inter-field" depends="Coding_System_for_EOD,EOD--Old_13_Digit,IF2613DG_P1,IF2613DG_P2,Primary_Site,Histologic_Type_ICD-O-3"> <expression><![CDATA[Integer site = Functions.asInt(line.primarySite.substring(1)) Integer histIcdO3 = Functions.asInt(line.histologicTypeIcdO3) if (line.codingSystemForEod != '2') return true if (((List)Context.BRONCHUS_LUNG_IF2613DG).contains(site)) { if (line.behaviorCodeIcdO3 == '2') { if (line.eodOld13Digit == null) return false return (line.eodOld13Digit.charAt(3) == '0' as char && line.eodOld13Digit.charAt(4) == '1' as char) || (line.eodOld13Digit.charAt(3) == '1' as char && line.eodOld13Digit.charAt(4) == '0' as char) } if (line.behaviorCodeIcdO3 == '3') { if (line.eodOld13Digit == null) return true if (line.eodOld13Digit.charAt(3) == '0' as char && line.eodOld13Digit.charAt(4) == '0' as char) return false } } else if (((List)Context.Skin_IF2613DG).contains(site) && ((List)Context.MaligMelanoma_IF2613DG).contains(histIcdO3)) { if (line.behaviorCodeIcdO3 == '2') { if (line.eodOld13Digit == null) return false return line.eodOld13Digit.charAt(4) == '1' as char } if (line.behaviorCodeIcdO3 == '3') { if (line.eodOld13Digit == null) return true return line.eodOld13Digit.charAt(4) != '1' as char } } else if (!((List)Context.LymphNodesLymphoidTIS_IF2613DG).contains(site)) { if (line.behaviorCodeIcdO3 == '2') { if (line.eodOld13Digit == null) return false return line.eodOld13Digit.charAt(4) == '0' as char } if (line.behaviorCodeIcdO3 == '3') { if (line.eodOld13Digit == null) return true return line.eodOld13Digit.charAt(4) != '0' as char } } return true]]></expression> <message>InSitu Behavior and EOD--Old 13 digit conflict</message> <description><![CDATA[For cases coded using the EOD--Old 13 digit[840] (Coding System for EOD[870]=2) this edit validates extent of disease according to the 13-digit Extent of Disease codes allowable for each site/morphology as defined in the Extent of Disease - Codes and Coding Instructions Manual (1977). If the case is in situ (Behavior = 2), the Extent of Disease code must also indicate an in situ behavior: A zero in the fifth position of the 13-digit extent disease indicates in situ for all sites except: 1. melanomas of the skin (Primary site = C440-C447, C510-C519, C600-C601, C608, C609 and histology = 8720-8790) where a '1' in the fifth position indicates in situ, 2. lung (Primary site C340 - C349) where a '00', '01' or '10' in the fourth and fifth positions indicate in situ, 3. lymph nodes and lymphoid tissues (Primary Sites CO24, CO98-CO99, C142, C379, C422, C770-C779) where as code is provided for in situ. Similarly an invasive case (Behavior = 3) may not have an in situ extent of disease. Thus the above codes valid for in situ cases are invalid for invasive cases.]]></description> <history> <event version="SE11-001-01" user="greend" date="1985-11-29">Added an edit that if the histology behavior code is in situ, and the site is C340-C349, then the fourth and fifth column positions of the thirteen digit Extent of Disease must be "01" or "10". The Extent of Disease fields are now three separate fields, one for each of the four distinct types of extent of disease coding. The thirteen digit extent of disease field is therefore a separate field and the call sequence and handling of this field have been modified.</event> <event version="SE11-001-07" user="greend" date="1991-09-15">Conversion of topography and morphology codes from ICD-O-1 to ICD-O-2.</event> <event version="SE11-001-08" user="greend" date="1992-07-15">Modified program to reflect changes made to 13 digit extent of disease in 1978.</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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</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> </history> </rule>