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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF40_3" name="Primary Site, EOD, ICDO3 (SEER IF40)" tag="N0464" java-path="lines.line" category="inter-field" depends="Coding_System_for_EOD,EOD--Extension,EOD--Old_2_Digit,EOD--Old_4_Digit_Extent,Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis">
            <expression><![CDATA[if (line.overRideSiteEodDxDt == '1' || line.histologicTypeIcdO3 == null ||
    (line.histologicTypeIcdO3 == '9140' && line.codingSystemForEod == '4') ||
    line.histologicTypeIcdO3 >= '9590' || line.behaviorCodeIcdO3 == '2' ||
    line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear == '9999' ||
    line.dateOfDiagnosisYear > '2003')
    return true

String eodOld4DigitExtent = null
if (line.eodOld4Digit != null && line.eodOld4Digit.length() > 2)
    eodOld4DigitExtent = line.eodOld4Digit.substring(2, 3)

if (line.primarySite == 'C189' &&  ! ['8210','8220','8261','8263'].contains(line.histologicTypeIcdO3)) {
   if (Functions.matches(line.codingSystemForEod, /^[01]$/) && line.eodOld2Digit == '4-')
      return false
   if (line.codingSystemForEod == '3' && Functions.matches(eodOld4DigitExtent, /^[123]$/))
      return false
   if (line.codingSystemForEod == '4' && Functions.matches(line.eodExtension, /^([12]\d|30)$/))
      return false
}
else if (Functions.matches(line.codingSystemForEod, /^[01]$/))
   return (!((Functions.matches(line.primarySite, /^C(069|26\d|39\d|4[0179]9|5[57]9|639|76[0-8]|809)$/) && line.eodOld2Digit == '4-') ||
         (Functions.matches(line.primarySite, /^C(76[0-8]|809)$/) && line.eodOld2Digit == '5-')))
else if (line.codingSystemForEod == '3' && Functions.matches(line.primarySite, /^C(069|26\d|39\d|4[0179]9|5[57]9|639|76[0-8]|809)$/) &&
         Functions.matches(eodOld4DigitExtent, /^[123]$/))
   return false
else if (line.codingSystemForEod == '4' && Functions.matches(line.primarySite, /^C(069|26\d|39\d|4[0179]9|5[57]9|639|76[0-8]|809)$/) &&
         Functions.matches(line.eodExtension, /^([12]\d|30)$/))
   return false

return true]]></expression>
            <message>Primary Site and Localized EOD conflict (ICD-O-3)</message>
            <description><![CDATA[The edit is skipped if any of the following conditions are true:

  1) Over-ride Site/EOD/Dx Dt[2072] contains a '1' (review complete)
  2) Histologic Type ICD-O-3[522] is empty
  3) Histologic Type ICD-O-3[522] = 9140 (Kaposi sarcoma) and
     SEER 10-digit Extent of Disease (Coding System for EOD[870] = 4)
     is used
  4) Histologic Type ICD-O-3[522] >=9590 (Lymphoma, leukemia, or other
     lymphoreticular neoplasm)
  5) Behavior Code ICD-O-3[523] = 2
  6) Year of Diagnosis[390] is blank or > 2003

Regardless of which extent of disease code system is used, the following may not be reported with localized disease unless the case has been reviewed and the Over-ride Site/EOD/Dx Dt[2072] contains a '1':

C069 Mouth, NOS
C189 Colon, NOS not histology 8210, 8220, 8261, 8263
C260-C269 Other and ill-defined digestive organs
C390-C399 Other and ill-defined respiratory or intrathoracic sites
C409,C419 Bone, NOS
C479 Peripheral nerves, NOS
C499 Connective tissue, NOS
C559 Uterus, NOS
C579 Female genital system, NOS
C639 Male genital organs, NOS
C760-C768 Other and ill-defined sites
C809 Unknown primary site

The definition of localized disease for each of the extent of disease coding system is:

Nonspecific Extent of Disease (Coding System for EOD = 0) uses the entire field.
  C760-C768,C809 localized disease is coded 4- or 5-.
  All other ill-defined sites localized disease is coded 4-.

Two-Digit Extent of Disease (Coding System for EOD = 1) uses the entire field.
  C760-C768,C809 localized disease is coded 4- or 5-.
  All other ill-defined sites localized disease is coded 4-.

EOD--Old 4 digit[860] (Coding System for EOD[870] = 3) uses the extension field.
  Localized disease is coded 1-3.

SEER 10-Digit Extent of Disease, 1988 (Coding System for EOD[870] = 4) uses the EOD--extension[790] field.
  Localized disease is coded 10-30.]]></description>
            <history>
                <event version="SE11-001-18" user="greend" date="2004-12-30">Edit modified to look at the CS Extension field for cases diagnosed 2004+.</event>
                <event version="SE11-001-19" user="greend" date="2005-07-12">CS Extension edit check was removed from edit.</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="SE18-020-05" user="kirbyk" date="2020-07-27" ref="68443">Replaced EOD--Old 4 Digit Extent sub-field with EOD--Old 4 Digit parent field.</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-03" ref="69326">Removed some edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy