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

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

The newest version!
        <rule id="IFN3066" name="Number of Positive/Examined Pelvic Nodes, Corpus (NAACCR)" tag="N3066" 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.numberOfPositivePelvicNodes
String examinedNodes = line.numberOfExaminedPelvicNodes
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 != 'X9' && positiveNodes != 'X6' && 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 Pelvic Node conflicts with Number of Examined Pelvic Nodes</message>
            <description><![CDATA[This edit verifies that the Number of Positive Pelvic Nodes and Number of
Examined Pelvic Nodes SSDIs are coded consistently with each other.


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 Positive Pelvic Nodes is blank or not applicable.
   d. Number of Examined Pelvic Nodes is blank or not applicable.

2. If Number of Examined Pelvic Nodes = X6 (aspiration or core biopsy of
   nodes only),
   then Number of Positive Pelvic 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 Pelvic Nodes = 00 (no nodes examined),
   then Number of Positive Pelvic 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 bedetermined 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 Pelvic Nodes = X2 (nodes examined, number unknown)
   or X1 (100 or more nodes exmined)
   then Number of Positive Pelvic 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 Pelvic Nodes = X1 (100 or more nodes positive),
   Number of Examined Pelvic 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-25" ref="69482">Updated condition 4 to v24 logic.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy