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

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

The newest version!
        <rule id="IFN2834" name="Sentinel Lymph Nodes Positive, Regional Nodes Positive (COC)" tag="N2834" java-path="lines.line" category="inter-field">
            <expression><![CDATA[if (line.sentinelLymphNodesPositive == null || line.regionalNodesPositive == null)
    return true

if (line.regionalNodesPositive == '00')
    return line.sentinelLymphNodesPositive == '00' || line.sentinelLymphNodesPositive == '98'
else if (line.regionalNodesPositive == '95')
    return line.sentinelLymphNodesPositive == '95' || line.sentinelLymphNodesPositive == '00' || line.sentinelLymphNodesPositive == '98'
else if (line.sentinelLymphNodesPositive >= '01' && line.sentinelLymphNodesPositive <= '90')
    return (line.regionalNodesPositive >= '01' && line.regionalNodesPositive <= '90' && line.sentinelLymphNodesPositive <= line.regionalNodesPositive) || line.regionalNodesPositive == '97'
else if (line.sentinelLymphNodesPositive == '95')
    return Functions.matches(line.regionalNodesPositive, /^0[1-9]|[1-8]\d|9[057]$/)
else if (line.sentinelLymphNodesPositive == '97')
    return Functions.matches(line.regionalNodesPositive, /^0[1-9]|[1-8]\d|9[07]$/)

return true]]></expression>
            <message>Sentinel Lymph Nodes Positive conflicts with Regional Nodes Positive.</message>
            <description><![CDATA[This edit checks that Sentinel Lymph Nodes Positive and Regional Nodes Positive
are coded consistently with each other.

This edit is skipped if:
1. Sentinel Lymph Nodes Positive is blank
2. Regional Nodes Positive is blank


1.  If Regional Lymph Nodes Positive = 00 (no regional nodes positive),
    Sentinel Lymph Nodes Positive must = 00 (no sentinel nodes positive) or 98 (No sentinel nodes were biopsied).

2.  If Regional Lymph Nodes Positive = 95 (positive aspiration or core biopsy),
    Sentinel Lymph Nodes Positive must = 00 (no sentinel nodes positive) or 95
    (positive aspiration of sentinel nodes) or 98 (No sentinel nodes were biopsied).

3.  If Sentinel Lymph Nodes Positive = 01-90 (number of positive sentinel nodes),
    Regional Nodes Positive must = 01-90 (number of positive regional nodes) and
    be greater than or equal to Sentinel Lymph Nodes Positive), or = 97
    (positive regional nodes).

4.  If Sentinel Lymph Nodes Positive = 95 (positive aspiration of sentinel nodes),
    Regional Nodes Positive must = 01-90 (number of positive regional nodes), 95
    positive aspiration of regional nodes), or 97 (positive regional nodes).

5.  If Sentinel Lymph Nodes Positive = 97 (97 (positive sentinel nodes, unknown
    number; or for breast only, sentinel lymph node biopsy and regional node
    dissection occurred in same procedure)),
    Regional Nodes Positive must = 01-90 (number of positive nodes), or 97
    (positive regional nodes).]]></description>
            <history>
                <event version="SE18-018-02" user="kirbyk" date="2018-05-31" ref="67786">Edit created.</event>
                <event version="SE18-018-03" user="schadega" date="2018-07-25" ref="67973">Allow Sentinel Nodes to be 98 if Regional Nodes is 00 or 95.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-03-03" ref="69210">Stop allowing Regional Nodes to be 98 if Sentinel Nodes is 01-90, 95, or 97</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy