edits.seer.internal.rules.IF59.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="IF59" name="RX Summ--Rad to CNS, Prim Site, RptSrc (SEER IF59)" tag="N0235" java-path="lines.line" category="inter-field" depends="Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || (line.registryId == '0000001544' && line.dateOfDiagnosisYear < '2000')) return true if (line.dateOfDiagnosisYear < '1988' && line.rxSummRadToCns == null) return true else if (line.dateOfDiagnosisYear < '1988' && line.registryId != '0000001529') return line.rxSummRadToCns == '9' if (Functions.between(line.dateOfDiagnosisYear,'1988','1997') || (Functions.between(line.dateOfDiagnosisYear, '1984', '1997') && line.registryId == '0000001529')) { if (Functions.matches(line.primarySite, /^C34\d$/) || ['9733','9742'].contains(line.histologicTypeIcdO3) || Functions.between(line.histologicTypeIcdO3, '9800', '9945')) { if (line.typeOfReportingSource == '6') return line.rxSummRadToCns == '0' if (line.typeOfReportingSource == '7') return line.rxSummRadToCns == '9' return Functions.matches(line.rxSummRadToCns, /^[01789]$/) } return line.rxSummRadToCns == '9' } if (line.dateOfDiagnosisYear >= '1998') return line.rxSummRadToCns == null || line.rxSummRadToCns == '9' return true]]></expression> <message>RX Summ--Rad to CNS and Primary Site conflict</message> <description><![CDATA[This edit is skipped under the following conditions: 1. Year of Date of Diagnosis is less than 2000 and Registry ID is equal to 0000001544 (New Jersey) 2. Year of Date of Diagnosis is blank 1. If year of Date of Diagnosis is less than 1988, RX Summ--Rad to CNS must be blank or (if not Alaska (Registry ID=0000001529)) unknown (9) for all cases. 2. If year of Date of Diagnosis is equal to 1988-1997 or (Registry ID is equal to 0000001529 (SEER Alaska Native Tumor) and year of Date of Diagnosis is less than 1998): A. If Primary Site is lung (C340-C349) or the Histology indicates a leukemia (9733, 9742, 9800-9945) 1. If Type of Reporting Source is 6 (autopsy only), then RX Summ--Rad to CNS must be 0 2. If Type of Reporting Source is 7 (death certificate only), then RX Summ--Rad to CNS must be 9 3. For all other values of Type of Reporting Source, RX Summ--Rad to CNS must be 0, 1, 7-9 B. Otherwise, RX Summ--Rad to CNS must be unknown (9) 3. If year of Date of Diagnosis is greater than 1997, RX Summ--Rad to CNS must be blank or unknown (9) for all cases.]]></description> <history> <event version="SE11-001-05" user="greend" date="1989-07-12">Leukemia code range is now 9800 thru 9940.</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-17" user="greend" date="2003-09-22">Edit modified to skip cases from New Jersey diagnosed before 2000.</event> <event version="SE11-001-18" user="greend" date="2004-01-13">Edit modified to check for '9' in the RX Summ-Rad to cns field for cases diagnosed 1998+.</event> <event version="SE11-001-19" user="greend" date="2005-05-26">Edit checks for Type of Reporting Source values versus RX Summ--rad to cns were added.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-04">Edit changed not recognize 9 filled year of diagnosis.</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-04" user="kirbyk" date="2018-08-03" ref="67960">Added blank as a valid value for DX year > 1997.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-01" ref="68180">Added blank as a valid value for DX year < 1988.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</event> <event version="SE18-019-03" user="beverung" date="2019-07-10" ref="68226">Updated description; no change in behavior.</event> <event version="SE18-019-03" user="kirbyk" date="2019-07-11" ref="68230">Fixed logic for Alaska cases with DX year < 1988.</event> <event version="SE24-024-06" user="cooki" date="2024-07-18" ref="69509">Deleted deprecated dependency.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</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-07" user="cooki" date="2024-08-07" ref="69521">Added histologies 9733, 9742, and 9942-9945 to condition 2A.</event> </history> </rule>