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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF188" name="CS Lymph Nodes, Nodes Pos, SSF 3, Breast Schema (CS)" tag="N0899" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Lymph_Nodes,CS_Site-Specific_Factor_25,CS_Site-Specific_Factor_3,Histologic_Type_ICD-O-3,Primary_Site,Regional_Nodes_Positive">
            <expression><![CDATA[if (line.csLymphNodes == null || line.csSiteSpecificFactor3 == null ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line._csSchemaId != 'breast' ||
    line.regionalNodesPositive == null)
    return true

if (line.csLymphNodes == '050')
    return line.regionalNodesPositive == '00' && line.csSiteSpecificFactor3 == '000'

Integer ssf3Int = Functions.asInt(line.csSiteSpecificFactor3)
if (ssf3Int >= 1 && ssf3Int <= 97 && Functions.matches(line.csLymphNodes, /^000|7[1347]0|735|745|764$/))
    return false

if (Functions.matches(line.csSiteSpecificFactor3, /^0[0-8][0-9]$/) && Functions.matches(line.regionalNodesPositive, /^[0-8][0-9]$/))
    return Functions.asInt(line.csSiteSpecificFactor3) <= Functions.asInt(line.regionalNodesPositive)

return true]]></expression>
            <message>Breast Schema and CS Lymph Nodes, Nodes Pos and SSF3 conflict</message>
            <description><![CDATA[This edit is skipped if any of the following conditions are true:
1. CS Lymph Nodes, CS Site-Specific Factor 3, or Regional Nodes Positive is empty
2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)
3. CS schema is invalid

This edit first determines the correct CS schema by doing a function call to the CS Dynamic Link Library (dll). The function call passes Primary Site, Histologic Type ICD-O-3, and CS Site-Specific Factor25 (schema discriminator) to the dll and the CS schema name is returned.

If CS schema is Breast:

If CS Lymph Nodes = 050 (none, no regional lymph nodes but with ITCs detected on routine H and E stains), then Regional Nodes Positive must = 00 (all nodes examined negative) and CS Site-Specific Factor 3 must = 000 (all ipsilateral nodes examined negative).

If CS Lymph Nodes = 710, 730, 735, 740, 745, 764, or 770 (internal mammary without axillary nodes), then CS Site-Specific Factor 3 must not be 001-097 (axillary nodes positive).

If CS Site-Specific Factor 3 = 001-097 (positive nodes),
    then
    CS Lymph Nodes must not = 000, 710, 730, 735, 740, 745, 764, or 770.


If CS Site-Specific Factor 3 = 000-089 and Regional Nodes Positive = 00-89
    then
    CS Site-Specific Factor 3 must be less than or = Regional Nodes Positive.]]></description>
            <history>
                <event version="SE11-001-22" user="greend" date="2007-12-15">This edit is skipped if Behavior Code ICD-O-3 [523] = 0 (benign) or 1 (borderline).</event>
                <event version="SE12-002-01" user="murphyr" date="2010-01-07">Lymph nodes numbers changed to 3 digits by added zero, Hematopoietic range changed.</event>
                <event version="SE12-002-01" user="murphyr" date="2010-02-02">Extension codes changed to 3 digits.  Using schema name now instead of primary site.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-01-21">Added codes 735,745,764 and removed code 780.  Added SSF3 and reg nodes condition; Edit now skipped if reg nodes pos is blank.</event>
                <event version="SE14-011-01" user="murphyr" date="2013-11-26" ref="67055">Added &apos;if CS SSF3 = 001-097 then  CS Lymph Nodes must not = 000, 710, 730, 735, 740, 745, 764, or 770&apos; 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-018-02" user="schadega" date="2018-05-17" ref="67760">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-01" user="beverung" date="2020-03-03" ref="68282">Removed redundant logic.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy