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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN3065" name="Number of Positive/Examined Para-Aortic Nodes, Corpus (NAACCR)" tag="N3065" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019')
    return true

if (!['00530', '00541', '00542', '00528'].contains(line.schemaId))
    return true

String positiveNodes = line.numberOfPositiveParaAorticNodes
String examinedNodes = line.numberOfExaminedParaAorticNodes
if (positiveNodes == null || positiveNodes == 'X8' || examinedNodes == null || examinedNodes == 'X8')
    return true

if (examinedNodes == 'X6' && positiveNodes != 'X6' && positiveNodes != '00' && positiveNodes != 'X9')
    return false
    
if (examinedNodes == '00' && positiveNodes != 'X9')
    return false

if (Functions.matches(examinedNodes, /^0[1-9]|[1-9]\d$/) && positiveNodes != 'X2' && positiveNodes != 'X6' && positiveNodes != 'X9' && positiveNodes > examinedNodes)
    return false

if ((examinedNodes == 'X2' || examinedNodes == 'X1') && !Functions.matches(positiveNodes, /^\d\d|X[129]$/))
    return false
    
if (positiveNodes == 'X1' && examinedNodes != 'X1' && examinedNodes != 'X2')
    return false

return true]]></expression>
            <message>Number of Positive Para-Aortic Nodes conflicts with Number of Examined Para-Aortic Nodes.</message>
            <description><![CDATA[This edit verifies that the Number of Positive Para-Aortic Nodes and Number of
Examined Para-Aortic Nodes SSDIs are coded consistently with each other for
Corpus Uteri.

1. The edit is skipped for the following conditions:
   a. Date of Diagnosis before 2019, blank (unknown), or invalid.
   b. Schema ID is not 00530, 00541, 00542, or 00528
   c. Number of Examined Para-Aortic Nodes is blank or not applicable
   d. Number of Positive Para-Aortic Nodes is blank or not applicable.

2. If Number of Examined Para-Aortic Nodes = X6 (aspiration or core biopsy of
   nodes only),
   then Number of Positive Para-Aortic Nodes must = X6 (positive aspiration or
   core biopsy), 00 (all examined nodes negative), or X9 (cannot be determined
   if positive nodes).

3. If Number of Examined Para-Aortic Nodes = 00 (no nodes examined),
   then Number of Positive Para-Aortic Nodes must = X9 (nodes not assessed).

4. If Number of Examined Pelvic Nodes = 01 to 99,
    Number of Positive Pelvic Nodes must = X2 (positive nodes number unknown),
    X6 (positive aspiration or core biopsy), X9 (cannot be determined if positive nodes),
    or be less than or equal to number of examined nodes.
    (Number of Positive Pelvic Nodes must not = X1 [100 or more nodes positive] ).

5. If Number of Examined Para-Aortic Nodes = X2 (nodes examined, number unknown)
   or X1 (100 or more nodes exmined)
   then Number of Positive Para-Aortic Nodes must = 00, 01-99, X2 (positive nodes
   number unknown), X1 (100 or more nodes positive), or X9 (cannot be determined
   if positive nodes).

6. If Number of Positive Para-Aortic Nodes = X1 (100 or more nodes positive),
   Number of Examined Para-Aortic Nodes must = X1 (100 or more nodes examined) or
   X2 (nodes examined, number unknown).]]></description>
            <history>
                <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event>
                <event version="SE24-024-06" user="cooki" date="2024-06-28" ref="69481">Updated 4 to v24 logic.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy