All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edits.seer.internal.rules.IF65.xml Maven / Gradle / Ivy

There is a newer version: 024-13
Show newest version
        <rule id="IF65" name="Tumor Marker 1, Date of Diagnosis (SEER IF65)" tag="N0028" 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.registryId == '0000001561' && line.dateOfDiagnosisYear >= '1996' && line.dateOfDiagnosisYear <= '2003')
    return true
if (Functions.matches(line.registryId, /^000000156[2356]$/) && line.dateOfDiagnosisYear < '2004')
    return true

if (line.dateOfDiagnosisYear < '1990')
    return line.tumorMarker1 == '9' || line.tumorMarker1 == null
if (line.dateOfDiagnosisYear <= '1997')
    return (!Functions.matches(line.primarySite, /^C50\d$/) || Functions.matches(line.tumorMarker1, /^[012389]$/))
if (line.dateOfDiagnosisYear <= '2003')
    return ((!Functions.matches(line.primarySite, /^C(50\d|619)$/) || Functions.matches(line.tumorMarker1, /^[012389]$/))
            && (!Functions.matches(line.primarySite, /^C62\d$/) || Functions.matches(line.tumorMarker1, /^[0245689]$/)))
/* year dx 2004+ */
return line.tumorMarker1 == null]]></expression>
            <message>Tumor Marker 1, 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) and Year of Diagnosis = 1996-2003
  4)  Registry ID = 0000001562 (New York), 0000001563 (Massachusetts), 0000001565 (Illinois), or 0000001566 (Texas) and Year of Diagnosis < 2004

1.  For Diagnosis Years 1973-1989, Tumor Marker 1 must be 9 or blank for all cases.

2.  For Diagnosis Years 1990-1997, if Primary Site is breast (C500-C509), Tumor
    Marker 1 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 1 may be 0-3,8-9;
    B. if Primary Site is testis (C620-C629), Tumor Marker 1 may be
       0,2,4-6,8-9;

4.  For Diagnosis Years 2004+:  Tumor Marker 1 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 1 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-28" ref="68086">Edit modified to skip cases from Idaho diagnosed 1996-2003.</event>
                <event version="SE18-018-12" user="kirbyk" date="2019-01-29" ref="68094">Edit modified to skip cases from MA diagnosed &lt; 2004.</event>
                <event version="SE18-019-01" user="kirbyk" date="2019-03-19" ref="68127">Edit modified to skip cases from NY diagnosed &lt; 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 1.</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 &lt; 2004.</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy