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

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

The newest version!
        <rule id="SEER_IR04" name="Race 1 thru 5 not Consistent for Patient (SEER IR04)" tag="S025" java-path="lines" category="inter-record">
            <expression><![CDATA[if (lines.isEmpty())
    return true

String race1 = lines[0].race1
String race2 = lines[0].race2
String race3 = lines[0].race3
String race4 = lines[0].race4
String race5 = lines[0].race5

for (line in lines) {
    if (line.race1 != race1 || line.race2 != race2 || line.race3 != race3 || line.race4 != race4 || line.race5 != race5) {
        Functions.forceFailureOnEntity(binding, lines[0])
        Functions.forceFailureOnEntity(binding, line)
        return false
    }
}

return true]]></expression>
            <message>Race Inter-Record Error</message>
            <description><![CDATA[Race 1[160] thru Race 5[164] must be equal on all records.]]></description>
            <history>
                <event version="SE11-001-18" user="greend" date="2004-05-25">The edit now checks that Race 2 thru Race 5 are also consistent on each record for a patient.</event>
                <event version="SE14-011-04" user="depryf" date="2014-04-21" ref="67077">Now reporting all the tumors when this edit fails.</event>
                <event version="SE16-016-07" user="kirbyk" date="2017-11-09" ref="67672">Now reporting only the two tumors that fail the edit.</event>
                <event version="SE16-016-08" user="depryf" date="2017-11-22" ref="67674">Edit syntax updated to allow pre-compilation optimization; no change in behavior.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy