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

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

The newest version!
        <rule id="IF51" name="RX Summ--Surgery, Reason for No Surgery (SEER IF51)" tag="N0493" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear > '1997')
    return true
if (line.rxSummSurgeryType == '09' || line.rxSummSurgeryType == null)
    return true
if (Functions.matches(line.rxSummSurgeryType, /^0[1-7]$/))
    return Functions.matches(line.reasonForNoSurgery, /^[12678]$/)
if (Functions.matches(line.rxSummSurgeryType, /^[1-9]\d$/))
    return line.reasonForNoSurgery == '0'

return true]]></expression>
            <message>RX Summ--Surgery Type, Reason No Surgery conflict</message>
            <description><![CDATA[This edit is skipped if Year of Date of Diagnosis is 1998 or later.

If RX Summ--surgery type[1640] 01-07 (cancer directed surgery not performed), Reason for no surgery[1340] must be 1,2,6,7, or 8 (cancer-directed surgery was not performed).

If RX Summ--surgery type[1640] > 09 (cancer directed surgery performed), Reason for no surgery[1340] must be 0 (cancer-directed surgery performed).]]></description>
            <history>
                <event version="SE11-001-08" user="greend" date="1992-02-03">Reason No Surgery = 8 is acceptable in combination with non-definitive surgery.</event>
                <event version="SE11-001-08" user="greend" date="1992-07-15">Deleted test for valid reason if surgery = 09.</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>
                <event version="SE18-018-02" user="schadega" date="2018-05-17" ref="67760">Name change.</event>
                <event version="SE21-021-09" user="beverung" date="2021-09-01" ref="68733">Added skip condition for DX Year 1998 and later.</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy