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

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

The newest version!
        <rule id="IF264DIG_P5" name="EOD--Old 4 digit_5, LymphNodes-In Situ (SEER IF264DIG_P5)" tag="N3104" java-path="lines.line" category="inter-field" depends="Coding_System_for_EOD,EOD--Old_4_Digit_Nodes,IF264DIG_P1,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)
String eodOld4DigitNodes = null
if (line.eodOld4Digit != null && line.eodOld4Digit.length() > 3)
    eodOld4DigitNodes = line.eodOld4Digit.substring(3, 4)
Integer eod4DigitNodesInt = Functions.asInt(eodOld4DigitNodes)

if (line.codingSystemForEod != '3' || line.behaviorCodeIcdO3 != '2')
   return true
if (line.typeOfReportingSource == '7')
   return eodOld4DigitNodes == '9'
if (! (Functions.matches(eodOld4DigitNodes, /^[0-9]$/)))
   return false

if (((List)((Map)((Map)Context.If26_4DIG_SITE_HIST_INSITU_NODES).getOrDefault(site, [:])).getOrDefault(histIcdO3, [])).contains(eod4DigitNodesInt))
    return true

if (((List)((Map)Context.If26_4DIG_SITE_INSITU_NODES).getOrDefault(site, [])).contains(eod4DigitNodesInt))
    return true

return false]]></expression>
            <message>Primary Site and InSitu EOD--Old 4 digit, nodes conflict</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="SE18-020-05" user="kirbyk" date="2020-07-27" ref="68443">Replaced EOD--Old 4 Digit Nodes sub-field with EOD--Old 4 Digit parent field.</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>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy