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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF323" name="CS SSF 18, MerkelCell Schemas (CS)" tag="N1370" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Lymph_Nodes,CS_Site-Specific_Factor_18,CS_Site-Specific_Factor_25,Histologic_Type_ICD-O-3,Primary_Site,RX_Summ--Scope_Reg_LN_Sur,Regional_Nodes_Positive">
            <expression><![CDATA[if (line.csSiteSpecificFactor18 == null || line.csSiteSpecificFactor18 == '988' || line.csLymphNodes == null || line.rxSummScopeRegLnSur == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1')
    return true

if (line._csSchemaId == 'merkel_cell_penis' || line._csSchemaId == 'merkel_cell_scrotum' ||
    line._csSchemaId == 'merkel_cell_skin'  || line._csSchemaId == 'merkel_cell_vulva') {
    if (line.csTumorSizeExtEval != '2' && line.csTumorSizeExtEval != '8' && line.rxSummScopeRegLnSur == '0') {
        if (line.csSiteSpecificFactor18 != '000' && line.csSiteSpecificFactor18 != '988' && line.csSiteSpecificFactor18 != '999')
            return false
    }
    if (line.csSiteSpecificFactor18 == '000' || line.csSiteSpecificFactor18 == '010') {
        if (line.regionalNodesPositive != '00' && line.regionalNodesPositive != '98')
            return false
        if (line._csSchemaId == 'merkel_cell_penis' && !['000', '420', '999'].contains(line.csLymphNodes))
            return false
        if (line._csSchemaId == 'merkel_cell_scrotum' && !['000', '400', '999'].contains(line.csLymphNodes))
            return false
        if (line._csSchemaId == 'merkel_cell_vulva' && !['000', '520', '999'].contains(line.csLymphNodes))
            return false
        if (line._csSchemaId == 'merkel_cell_skin' && !['000', '400', '480', '999'].contains(line.csLymphNodes))
            return false
    }
    if (line.csSiteSpecificFactor18 == '020' || line.csSiteSpecificFactor18 == '090' ||
        line.csSiteSpecificFactor18 == '100' || line.csSiteSpecificFactor18 == '200' ||
        line.csSiteSpecificFactor18 == '300')
        return line.csLymphNodes != '000' && line.csLymphNodes != '999'
}

return true]]></expression>
            <message>CS Lymph Nodes,RX Summ--Scope Reg LN Sur,CS SSF 18 conflict for MerkelCell Schemas.</message>
            <description><![CDATA[This edit verifies that for cases coded using the MerkelCellPenis, MerkelCellScrotum, MerkelCellSkin, and MerkelCellVulva schemas, CS Site-Specific Factor 18 [Isolated Tumor Cells (ITCs) in Regional Lymph Node(s)],  RX Summ--Scope Reg LN Sur, and CS Lymph Nodes are coded consistently.

    This edit is skipped if any of the following conditions are true:
    1. CS Site-Specific Factor 18 is blank or 988
    2. CS Lymph Nodes is blank
    3. RX Summ--Scope Reg LN Sur is blank
    4. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)

    This edit first determines the 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 MerkelCellPenis, MerkelCellScrotum, MerkelCellSkin, or MerkelCellVulva:

    1. If CS Tumor Size/Ext Eval does not = 2 and does not = 8 (codes indicating autopsy):
        If RX Summ--Scope Reg LN Sur = 0 (none), then CS Site-Specific Factor18 must = 000 (nodes not examined pathologically), 988 (not applicable), or 999 (unknown).

    2. If CS Site-Specific Factor18 = 000 or 010 (nodes negative on routine exam and IHC or unknown if IHC)
        then
        A. Regional Nodes Positive must = 00 (all nodes examined negative) or 98 (no nodes examined).

        B. If CS schema is MerkelCellPenis:
        CS Lymph Nodes must be one of the following:
        000 (no regional lymph node involvement)
        420 (in-transit metastasis WITHOUT regional lymph node involvement)
        999 (unknown)

        If CS schema is MerkelCellScrotum:
        CS Lymph Nodes must be one of the following:
        000 (no regional lymph node involvement)
        400 (in-transit metastasis WITHOUT regional lymph node involvement)
        999 (unknown)

        If CS schema is MerkelCellVulva:
        CS Lymph Nodes must be one of the following:
        000 (no regional lymph node involvement)
        520 (in-transit metastasis WITHOUT regional lymph node involvement)
        999 (unknown)

        If CS schema is MerkelCellSkin:
        CS Lymph Nodes must be one of the following:
        000 (no regional lymph node involvement)
        400 (in-transit metastasis WITHOUT regional lymph node involvement)
        480 (stated as N2 [NOS] with no other information on regional lymph nodes
        999 (unknown)

    3. If CS Site-Specific Factor18 = 020, 090, 100, 200, or 300, indicating positive nodes including ITC, then CS Lymph Nodes must not = 000 (no regional nodes examined) or 999 (unknown).]]></description>
            <history>
                <event version="SE12-004-01" user="murphyr" date="2010-12-15">Edit created.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-01-24">Added 999 to statements 1 and 2.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-02-07">Changed error message.</event>
                <event version="SE12-005-04" user="murphyr" date="2011-10-05" ref="66530">Now skips if SSF18 is 988.  Broke down SSF18 equals 000 or 010 branch by schema.  Deleted &apos;If CS Lymph Nodes = 999, then SSF18 must = 988 or 999&apos;.</event>
                <event version="SE13-009-01" user="murphyr" date="2012-12-26" ref="66795">Added &apos;If CS Tumor Size/Ext Eval = 2 or 8 (codes indicating autopsy), the following logic is skipped: If RX Summ-Scope Reg LN Sur = 0, then CS Site-Specific Factor18 must = 000 or 999.&apos;</event>
                <event version="SE13-009-01" user="murphyr" date="2013-01-25" ref="66826">Edit name changed.</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="SE18-020-05" user="kirbyk" date="2020-08-12" ref="68498">Changed edit logic to check conditions #2 and #3 when condition #1 is true.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy