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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF257" name="CS Site-Specific Factor25, Schema (CS)" tag="N1387" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_25,Histologic_Type_ICD-O-3,Primary_Site">
            <expression><![CDATA[if (line.histologicTypeIcdO3 == null || line.primarySite == null || line.csSiteSpecificFactor25 == null || line._csSchemaId == null)
    return true
if ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && line._csSchemaId != 'brain' && line._csSchemaId != 'cns_other' && line._csSchemaId != 'intracranial_gland')
    return true

if (line._csSchemaId == null)
    return true

if ((line._csSchemaId == 'nasopharynx' || line._csSchemaId == 'pharyngeal_tonsil') && Functions.matches(line.primarySite, /^C11[02389]$/))
    return line.csSiteSpecificFactor25 == '981'
if ((line._csSchemaId == 'esophagus_gejunction' || line._csSchemaId == 'stomach') && Functions.matches(line.primarySite, /^C16[3-9]$/))
    return line.csSiteSpecificFactor25 == '981'
if ((line._csSchemaId == 'esophagus_gejunction' || line._csSchemaId == 'stomach') && line.primarySite == 'C160')
    return line.csSiteSpecificFactor25 == '982'
if ((line._csSchemaId == 'peritoneum' || line._csSchemaId == 'peritoneum_female_gen') && Functions.matches(line.primarySite, /^C48[128]$/)
    && Functions.matches(line.histologicTypeIcdO3, /^858[0-9]|86[89]\d|8[78]\d\d|89[01]\d|892[01]|912\d|913[0-6]|914[1-9]|91[5-9]\d|9[2-4]\d\d|95[0-7]\d|958[012]|970[01]$/))
    return line.csSiteSpecificFactor25 == '981'

return Functions.isAcceptableCsCode(line, 'csSiteSpecificFactor25',line.csSiteSpecificFactor25)]]></expression>
            <message>CS site-specific factor 25 is invalid for this schema.</message>
            <description><![CDATA[This edit is skipped if any of the following conditions are true:
1. CS Site-Specific Factor25, Primary Site, or Histologic Type ICD-O-3 is blank.
2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and schema is not Brain, CNSOther, or IntracranialGland.
3. CS schema is invalid

This edit verifies that CS Site-Specific Factor25 is valid for a particular schema by doing function calls to the CS Dynamic Link Library (dll).

The following sites within Nasopharynx and Stomach schemas should have CS Site-Specific Factor25 of 981:
    Nasopharynx/PharyngealTonsil
    Primary Site: C110, C112, C113, C118, C119
    EsophagusGEJunction/Stomach
    Primary Site: C163-C169

    The following sites within EsophagusGEJunction should have CS Site-Specific Factor25 of 982:
    EsophagusGEJunction/Stomach
    Primary Site: C160

    The following sites/histologies within Peritoneum schema should have CS Site-Specific Factor25 of 981:
    Peritoneum/PeritoneumFemaleGen
    Primary Site: C481, C482, C488
    Histologic Type ICD-O-3:8580-8589,8680-8921,9120-9136,9141-9582,9700-9701]]></description>
            <history>
                <event version="SE12-002-01" user="murphyr" date="2010-01-28">Edit created.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-01-24">Completely rewrote edit for CSv2 version 02.03.02.</event>
                <event version="SE12-008-02" user="murphyr" date="2012-08-28" ref="66736">Re-added missing parts of documentation.</event>
                <event version="SE12-008-03" user="depryf" date="2012-09-21" ref="66736">The previous fix was supposed to also fix the code, not just the documentation; this edit was not actually calling the DLL for validating the code; it does now.</event>
                <event version="SE13-010-01" user="murphyr" date="2013-07-12" ref="66904">Added blank schema skip condition.</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="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>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy