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

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

The newest version!
        <rule id="IF264DIG_P1" name="EOD--Old 4 digit (SEER IF264DIG_P1)" tag="N3106" java-path="lines.line" category="inter-field" depends="Coding_System_for_EOD,Primary_Site,Type_of_Reporting_Source,Histologic_Type_ICD-O-3">
            <expression><![CDATA[Integer site = Functions.asInt(line.primarySite.substring(1))
Integer histIcdO3 = Functions.asInt(line.histologicTypeIcdO3)

if (line.codingSystemForEod == '3' && line.typeOfReportingSource != '7') {
   if (line.histologicTypeIcdO3 == null || histIcdO3 < 8000 || histIcdO3 > 9999)
      return false
   if (line.behaviorCodeIcdO3 != '2' && line.behaviorCodeIcdO3 != '3')
      return false
   if (line.primarySite == null || site > 809 || site < 0)
      return false
   if ((!((Map)Context.If26_4DIG_SITE_SIZE).containsKey(site)) &&
        !((Map)Context.If26_4DIG_SITE_HIST_SIZE).containsKey(site))
      return false
   if (((Map)Context.If26_4DIG_LEUK_LYMPH_SIZE).containsKey(histIcdO3) && line.behaviorCodeIcdO3 == '2')
      return false
}
return true]]></expression>
            <message>Four digit EOD edit failure</message>
            <description><![CDATA[For cases coded using the SEER 4-digit Site-specific Extent of Disease (Coding System for Extent of Disease = 3), this edit validates the Extent of Disease according to the codes allowable for each site as defined in Extent of Disease New 4-Digit Schemes - Codes and Coding Instructions (1983).

For death certificate only cases (Type of Reporting Source = 7), the four digit extent of disease must be '9999'.

For an in situ case (Behavior = 2), then the extent of disease must also indicate in situ.

1.  For primary sites where in situs are possible a zero in the Extension
    subfield indicates in situ.  In addition for bladder (sites C670-C679)
    a '1' in Extension indicates in situ and a '2' may indicate either in
    situ or invasive.  For sites where in situs are not considered
    possible, no code is valid with a behavior of '2'.

2.  Any case reported as in situ must have the Lymph Nodes subfield equal
    to '0'.

For invasive cases (Behavior = 3) the Extension codes associated with in situ may not be used.  Thus an Extension code of '0' is invalid for all sites and for bladder (sites C670-C679) an Extension code of '1' is also invalid.]]></description>
            <history>
                <event version="SE11-001-07" user="greend" date="1991-09-15">Conversion of topology and morphology code from ICD-O-1 to ICD-O-2.  Modified program logic so that when extesion or node is non-numeric the proper malignant or in situ flag is set for each respectively.  Edit now verifies that if reporting source is death certificate only, all four digit extent of disease codes must be all &apos;9&apos;s.</event>
                <event version="SE11-001-08" user="greend" date="1992-01-15">Deleted parts of code that dealt with mycosis fungoides.  The flag was removed.  This error is checked in other edits.</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-02" user="schadega" date="2018-05-25" ref="67758">Edit name change.</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="cooki" date="2024-07-18" ref="69509">Deleted deprecated dependency.</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-08" user="beverung" date="2024-08-14" ref="69527">Updated histologies in If26_4DIG_LEUK_LYMPH_SIZE.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy