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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6569" name="Regional Nodes Positive, Regional Nodes Examined (NAACCR)" tag="N6569" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.regionalNodesExamined == null || line.regionalNodesPositive == null)
    return true

if (line.regionalNodesExamined == '00')
    return line.regionalNodesPositive == '98'
else if (Functions.matches(line.regionalNodesExamined, /^0[1-9]|[1-8]\d|90$/)) {
    Integer regionalNodesExaminedInt = Functions.asInt(line.regionalNodesExamined)
    Integer regionalNodesPositiveInt = Functions.asInt(line.regionalNodesPositive)
    return ['95','97','99'].contains(line.regionalNodesPositive) || regionalNodesPositiveInt <= regionalNodesExaminedInt
}
else if (line.regionalNodesExamined == '95')
    return ['00','95','99'].contains(line.regionalNodesPositive)
else if (['96','97','98'].contains(line.regionalNodesExamined))
    return Functions.matches(line.regionalNodesPositive, /^[0-8]\d|9[0579]$/)
else if (line.regionalNodesExamined == '99')
    return line.regionalNodesPositive == '99'
return true
]]></expression>
            <message>Conflict between Regional Nodes Examined and Regional Nodes Positive</message>
            <description><![CDATA[This edit is skipped if:
1. Regional Nodes Examined is blank
2. Regional Nodes Positive is blank
3. Year of Date of Diagnosis is blank or less than 2018


1.  If Regional Nodes Examined = 00 , Regional Nodes Positive must = 98.
2.  If Regional Nodes Examined = 01 - 90, Regional Nodes Positive must
    = 95, 97 or 99, or be less than or equal to Regional Nodes Examined.
3.  If Regional Nodes Examined = 95, Regional Nodes Positive must
    = 00, 95, or 99.
4.  If Regional Nodes Examined = 96, 97, or 98, Regional Nodes Positive
    must = 00 - 90, 95, 97, or 99.
5.  If Regional Nodes Examined = 99, then Regional Nodes Positive must = 99.
]]></description>
            <history>
                <event version="SE22-022-06" user="beverung" date="2022-05-26" ref="68998">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy