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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF219" name="Derived SS2000, Behavior ICDO3 (CS)" tag="N1029" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site">
            <expression><![CDATA[if (line.derivedSs2000 == null || line.typeOfReportingSource == '7' || line._csSchemaId == null ||
    ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && !['brain','cns_other','intracranial_gland'].contains(line._csSchemaId)))
   return true

if ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1'))
   return line.derivedSs2000 == '8'

if (line.behaviorCodeIcdO3 == '2') {
   if (line._csSchemaId == 'bladder' && line.csExtension == '100')
      return (line.derivedSs2000 != '0' && line.derivedSs2000 != '8')

   return line.derivedSs2000 == '0'
}

if (line.behaviorCodeIcdO3 == '3') {
   if (line._csSchemaId == 'prostate' && line.csExtension == '999' && line.csSiteSpecificFactor3 == '000')
      return line.derivedSs2000 != '8'

   return line.derivedSs2000 != '0' && line.derivedSs2000 != '8'
}

return true]]></expression>
            <message>Behavior Code ICD-O-3 and Derived SS2000 conflict</message>
            <description><![CDATA[The purpose of this edit is to catch Behavior/Derived SS2000 errors. It is not meant to duplicate the calculation of stage performed by the CS algorithm routine. Its intention is to catch errors that might be due to stage not being re-derived after a change is made to one of the fields used to calculate Derived SS2000.

This edit is skipped if any of the following conditions are true:
1. Derived SS2000 is blank
2. Case is death certificate only (Type of Reporting Source = 7)
3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and schema is not Brain, CNSOther, or IntracranialGland.

If Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline), then Derived SS2000 must be 8 (not applicable).

*** See Note 1 below ***
If Behavior Code ICD-O-3 = 2 (in situ)
    If schema = Bladder and CS Extension = 100 (Confined to mucosa, NOS) then Derived SS2000 must not be 0 (in situ) or 8 (not applicable)
    Otherwise
    If Behavior Code ICD-O-3 = 2 (in situ) then Derived SS2000 must be 0 (in situ).

*** See Note 2 below ***
If Behavior Code ICD-O-3 = 3 (malignant):
    and Primary Site = Prostate
    and CS Extension = 999
    and CS Site-Specific Factor 3 = 000  then
        Derived SS2000 must not be 8 (not applicable)
    otherwise
    If Behavior Code ICD-O-3 = 3 (malignant):
        Derived SS2000 must not be 0 (in situ) or 8 (not applicable).

Note 1: In situ behavior (Behavior Code ICD-O-3 of 2) generally maps only to a Derived Summary Stage of 0 (in situ). The two exceptions are:
1. A Bladder case coded with a CS Extension of 100 (Confined to mucosa, NOS) will map to Derived Summary Stage of 1 (local).

Note 2: Malignant behavior (Behavior Code ICD-O-3 of 3) generally cannot map to a Derived Summary Stage of 0 (in situ). The one exception is: A prostate case coded with a CS Extension (clinical extension) of 999 (unknown) and CS Site-Specific Factor 3 (pathologic extension) of 000 (in situ) will map to Derived Summary Stage of 0 (in situ).]]></description>
            <history>
                <event version="SE11-001-23" user="greend" date="2009-01-27">This edit was created.</event>
                <event version="SE12-002-01" user="murphyr" date="2010-03-22">Edit now using CS Schema name.  Extension constants changed to 3 digits.</event>
                <event version="SE12-002-04" user="murphyr" date="2010-07-29">Edit now passes if CS schema is not found.</event>
                <event version="SE12-003-03" user="murphyr" date="2011-02-10">Updated documentation.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-02-16">Removed check for MelanomaConjuctiva.</event>
                <event version="SE13-009-01" user="murphyr" date="2013-01-25" ref="66825">Cleaned up doc.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-04" ref="67370">Changed edit to use schema IDs instead of schema names</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-03" ref="69326">Removed some edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy