edits.seer.internal.rules.IF66.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="IF66" name="Tumor Marker 2, Date of Diagnosis (SEER IF66)" tag="N0030" 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 (Functions.matches(line.registryId, /^000000156[12356]$/) && line.dateOfDiagnosisYear < '2004') return true if (line.dateOfDiagnosisYear < '1990') return line.tumorMarker2 == '9' || line.tumorMarker2 == null if (line.dateOfDiagnosisYear <= '1997') return (!Functions.matches(line.primarySite, /^C50\d$/) || Functions.matches(line.tumorMarker2, /^[012389]$/)) if (line.dateOfDiagnosisYear <= '2003') return ((!Functions.matches(line.primarySite, /^C(50\d|619)$/) || Functions.matches(line.tumorMarker2, /^[012389]$/)) && (!Functions.matches(line.primarySite, /^C62\d$/) || Functions.matches(line.tumorMarker2, /^[0245689]$/))) /* Year Dx 2004+ */ return line.tumorMarker2 == null]]></expression> <message>Tumor Marker 2, Primary Site and Year of Diagnosis conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1) Year of Diagnosis is blank 2) Registry ID = 0000001544 (New Jersey) and Year of Diagnosis < 2000 3) Registry ID = 0000001561 (Idaho), 0000001562 (New York), 0000001563 (Massachusetts), 0000001565 (Illinois), or 0000001566 (Texas) and Year of Diagnosis < 2004 1. For Diagnosis Years 1973-1989, Tumor Marker 2 must be 9 or blank for all cases. 2. For Diagnosis Years 1990-1997, if Primary Site is breast (C500-C509), Tumor Marker 2 may be 0-3,8-9. 3. For Diagnosis Years 1998-2003: A. if Primary Site is breast (C500-C509) or protate (C619), Tumor Marker 2 may be 0-3,8-9; B. if Primary Site is testis (C620-C629), Tumor Marker 2 may be 0,2,4-6,8-9; 4. For Diagnosis Years 2004+: Tumor Marker 2 must be blank.]]></description> <history> <event version="SE11-001-07" user="greend" date="1991-09-15">Conversion of topography codes from ICD-O-1 to ICD-O-2.</event> <event version="SE11-001-14" user="greend" date="1998-07-01">Program modified to incorporate new tumor marker sites for prostate and testis.</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-07-29">Tumor Marker 2 must be blank for cases diagnosed 2004+.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-16">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-12" user="kirbyk" date="2019-01-29" ref="68094">Edit modified to skip cases from MA diagnosed < 2004.</event> <event version="SE18-018-12" user="kirbyk" date="2019-01-31" ref="68106">Edit modified to skip cases from Idaho diagnosed 1996-1997.</event> <event version="SE18-018-14" user="kirbyk" date="2019-02-28" ref="68119">Edit modified to skip cases from Idaho and New York diagnosed < 2004.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</event> <event version="SE18-020-05" user="beverung" date="2020-08-28" ref="68499">Updated accepted values for Tumor Marker 2.</event> <event version="SE18-020-06" user="kirbyk" date="2020-09-10" ref="68525">Fixed invalid Groovy syntax.</event> <event version="SE21-021-08" user="beverung" date="2021-08-06" ref="68706">Edit modified to skip cases from IL and TX diagnosed < 2004.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>