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

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

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

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

String pelvicNodes = line.numberOfPositivePelvicNodes
String paraAorticNodes = line.numberOfPositiveParaAorticNodes
if ((pelvicNodes == null || pelvicNodes == 'X8') && (paraAorticNodes == null || paraAorticNodes == 'X8'))
    return true

if (line.regionalNodesPositive == '00')
    if ((pelvicNodes != '00' && pelvicNodes != 'X9') || (paraAorticNodes != '00' && paraAorticNodes != 'X9'))
        return false

if (line.regionalNodesPositive == '95')
    if ((pelvicNodes != '00' && pelvicNodes != 'X6' && pelvicNodes != 'X9') || (paraAorticNodes != '00' && paraAorticNodes != 'X6' && paraAorticNodes != 'X9'))
        return false

if ((Functions.matches(pelvicNodes, /^0[1-9]|[1-9]\d|X[126]$/) || Functions.matches(paraAorticNodes, /^0[1-9]|[1-9]\d|X[126]$/)) && line.regionalNodesPositive == '00')
    return false

return true]]></expression>
            <message>Regional Nodes Positive conflicts with Number of Positive Para-Aortic Nodes and Number of Positive Pelvic Nodes</message>
            <description><![CDATA[This edit verifies that Number of Positive Para-Aortic Nodes and Number of
Positive Pelvic Nodes SSDIs are coded consistently with Regional Nodes Positive
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, 00528
   c. Number of Positive Para-Aortic Nodes and Number of Positive Pelvic
      Nodes are both blank or not applicable.
   d. Regional Nodes Positive is blank

2. If Regional Nodes Positive = 00,
   then Number of Positive Para-Aortic Nodes must = 00 or X9 and Number of
   Positive Pelvic Nodes must = 00 or X9 (no nodes positive or unknown if
   nodes positive)

3. If Regional Nodes Positive = 95,
   then Number of Positive Para-Aortic Nodes must = 00, X6 (positive aspiration
   or core biopsy), or X9 and Number of Positive Pelvic Nodes must = 00, X6, or
   X9

4. If Number of Positive Para-aortic Nodes = 01-99, X1, X2, X6 or Number of
   Positive Pelvic Nodes = 01-99, X1, X2, X6 (positive nodes),
   then Regional Nodes Positive must not = 00 (no nodes positive)]]></description>
            <history>
                <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy