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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF2610DG_P2" name="Extent of Disease 10-Digit(SEER IF2610DG)" tag="S014" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis">
            <expression><![CDATA[Integer site = Functions.asInt(line.primarySite.substring(1))
Integer histIcdO3 = Functions.asInt(line.histologicTypeIcdO3)

if (line.codingSystemForEod != '4' || line.dateOfDiagnosisYear < '1930' || line.dateOfDiagnosisYear > '1997' || (line.registryId == '0000001541' && line.dateOfDiagnosisYear < '1994')
         || (line.registryId == '0000001535' && line.dateOfDiagnosisYear < '1992') || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 != '3')
    return true
if (!(Functions.matches(line.eodExtension, /^[0-9][0-9]$/)))
    return false
if (site == 589 && Functions.matches(line.eodExtension, /^([467][1-4])$/))
    return true
if (histIcdO3 == 9731 && line.eodExtension == '10')
    return true
if (site == 778 && Functions.matches(line.eodExtension, /^1[01]$/))
    return false
if (((Map)Context.If2610DG_HIST_MALIG_EXT).containsKey(histIcdO3))
    return ((List)((Map)Context.If2610DG_HIST_MALIG_EXT).getOrDefault(histIcdO3, [])).contains(Functions.asInt(line.eodExtension))
if (((Map)Context.If2610DG_HIST_SITE_MALIG_EXT).containsKey(histIcdO3) && ((Map)((Map)Context.If2610DG_HIST_SITE_MALIG_EXT).getOrDefault(histIcdO3, [:])).containsKey(site))
    return ((List)((Map)((Map)Context.If2610DG_HIST_SITE_MALIG_EXT).getOrDefault(histIcdO3, [:])).getOrDefault(site, [])).contains(Functions.asInt(line.eodExtension))
if (line.dateOfDiagnosisYear > '1990' && site > 249 && site < 255)
    return Functions.matches(line.eodExtension, /^([13]0|4[048]|5[0246]|6[24]|7[2468]|8[05]|99)$/)
if (line.dateOfDiagnosisYear > '1990' && site > 256 && site < 260)
    return Functions.matches(line.eodExtension, /^([135]0|4[05]|8[05]|99)$/)
if (line.dateOfDiagnosisYear == '1994' && site == 619)
    return Functions.matches(line.eodExtension, /^(1[0-5]|2[0-9]|3[01]|4[0189]|5[0-356]|6[0-25]|70|8[05]|99)$/)
if (line.dateOfDiagnosisYear > '1994' && site == 619)
    return (Functions.matches(line.eodExtension, /^(1[0-5]|[23][0-4]|4[1-59]|5[0-3]|6[015]|70|85|90)$/))
return ((List)((Map)Context.If2610DG_SITE_MALIG_EXT).getOrDefault(site, [])).contains(Functions.asInt(line.eodExtension))]]></expression>
            <message>Primary Site and Malig EOD--extension pre-1998 conflict</message>
            <description><![CDATA[This edit is skipped if any of the following conditions are true:
  1) Registry ID = 0000001541 (Greater California) and Year of
     Diagnosis = 1988-1993
  2) Year of diagnosis is blank or after 1997
  3) Registry ID = 0000001535 (Los Angeles) and Year of
     Diagnosis = 1988-1991.


For cases coded using the SEER Ten-digit Extent of Disease coding scheme (Coding System for EOD = 4) this edit validates the extent of disease according to the Ten-digit Extent of Disease codes allowable for each site as defined in the Extent of Disease - Codes and Coding Instructions Manual (1988).


The behavior code is checked against the extent of disease fields to verify validity.

If Death Certificate only case (Type of Reporting Source = '7') the SEER 10-digit Extent of Disease must be '999999999'.

If Regional Nodes Positive is 01-97, then EOD--lymph node involv must be = 1-8.  (Check not performed for Kaposi's sarcoma; hematopoietic etc.; lymphomas; mycosis fungoides; brain and meninges; other CNS; and other and ill-defined sites.

For brain, other CNS, other and ill-defined sites, hematopoietic and lymphomas, Regional nodes examined and Regional nodes positive must both be coded '99'.

For 1991+ Pancreas cases the valid codes for EOD--Extension have been changed.  Therefore, Date of diagnosis had to be added to the edit.

For 1994 Prostate cases the valid codes for EOD--Extension have been changed.

For 1995 Prostate cases the valid codes for EOD--Extension have been modified and EOD--Extension prost path has been added.

For site C77.8 the EOD--Extension field cannot be 10 or 11.]]></description>
            <history>
                <event version="SE11-001-04" user="greend" date="1988-11-01">&apos;9800&apos; is valid for in situ positive/examined nodes.</event>
                <event version="SE11-001-05" user="greend" date="1989-02-01">New versions of coding manual (12/88 and 02/89) caused some changes.</event>
                <event version="SE11-001-05" user="greend" date="1989-08-01">Modified to check for non-numeric values in numeric fields.</event>
                <event version="SE11-001-06" user="greend" date="1990-12-01">New version of coding manual caused some changes.  Most changes were in site = EYE.</event>
                <event version="SE11-001-07" user="greend" date="1991-09-15">Conversion of topography and morphology code from ICD-O-1 to ICD-O-2.</event>
                <event version="SE11-001-08" user="greend" date="1992-02-03">For site C31.0 (Maxillary sinus) the extension code 65 is now valid for diagnosis years 1988+.</event>
                <event version="SE11-001-08" user="greend" date="1992-07-15">For site C24.1 (Ampulla of Vater) the extension codes 55 and 65 are now valid.  For site C34.0-C34.3, C34.8-C34.9 (Lung) the extension code 25 is valid and the extension code 55 is not.  For site C22.0-C22.1 (interhepatic bile ducts) 5 is no longer valid for lymph node.</event>
                <event version="SE11-001-08" user="greend" date="1992-12-15">Site C70.9 was grouped with Other parts of CNS instead of Brain.  Diagnosis date was added to the edit.  For 1991+ new extension codes apply for sites C25.0-C25.4 (Pancreas: head, body, &amp; tail) and sites C25.7-C25.9 (Pancreas: other &amp; unspecified).  An error message was added to the edit.  There is now a check that if positive lymph nodes = 01 - 97 then the lymph node field must = 1 - 8.  The new message is EOD10-NUM REG NODES POS/LYMPH NODES.</event>
                <event version="SE11-001-09" user="greend" date="1993-02-01">The edit was modified so that when checking 1991+ pancreas extension the histology is considered instead of just the site i.e., pancreas with histology 9680 (lymphoma) would be treated as a lymphoma and therefore would not be checked for a 1991+ pancreas extension.</event>
                <event version="SE11-001-09" user="greend" date="1993-04-28">The edit was modified so that the definition of lymph node values is character instead of numeric.  This allows blanks in the lymph node but they will still be flagged as an error.</event>
                <event version="SE11-001-10" user="greend" date="1994-01-10">The following check was added:  for brain, other CNS, other and ill-defined sites, hematopoletic, and lymphomas, number of nodes examined and number of positive nodes must both be coded to &apos;99&apos;.</event>
                <event version="SE11-001-10" user="greend" date="1994-07-01">Program modified to include histology 9740, 9741 with the coding scheme used for hematopoietic, reticuloendothelial, immunoproliferative and myeloproliferative neoplasms.  New extension codes for prostate cases diagnosed in 1994 are:  00, 10-15, 20-29, 30-31, 40-41, 48, 49, 50-53, 55-56, 60-62, 65, 70, 80, 85, 99.</event>
                <event version="SE11-001-11" user="greend" date="1995-10-01">Valid codes for the 1995 prostate clinical extension field are:  00, 10-15, 20-24, 30-32, 41-45, 49-53, 60-61, 70, 85, 90.  Valid codes for the new 1995 prostate pathological extension field are:  00, 20-23, 30-32, 41-45, 49-53, 60-61, 70, 85, 90, 98, 99.  Error message was added for new path extension field.  Error message was added for death certificate cases that are coded improperly.</event>
                <event version="SE11-001-12" user="greend" date="1996-07-17">Program modified to correctly edit Death Certificate Only cases.</event>
                <event version="SE11-001-13" user="greend" date="1997-01-27">Program modified to include new lymphoma codes.</event>
                <event version="SE11-001-16" user="greend" date="2002-10-07">Edit skipped for cases diagnosed before 1994 from the California registry.</event>
                <event version="SE11-001-17" user="greend" date="2003-01-30">Updated to correctly edit behavior and extension for prostate cases.</event>
                <event version="SE11-001-18" user="greend" date="2004-07-29">For site C77.8 the EOD--extension field cannot be 10 or 11.</event>
                <event version="SE12-002-01" user="murphyr" date="2009-12-18">Edit no longer checks for 9-filled dates.</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-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; 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="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="shearerw" date="2024-08-06" ref="69522">Add more valid histology values to account for ICD-O-2 to ICD-O-3 switch.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy