edits.seer.internal.rules.IF527.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-edits-seer Show documentation
Show all versions of validation-edits-seer Show documentation
Java implemenation of the SEER edits.
<rule id="IF527" name="RX Date Surgery, Date Last Contact (COC)" tag="N0869" java-path="lines.line" category="inter-field" depends="DateFollowUpEdit,RXDateSurgeryEdit"> <expression><![CDATA[if (line.rxDateSurgeryYear == null || line.dateOfLastContactYear == null) return true if (line.rxDateSurgeryYear > line.dateOfLastContactYear) return false if (line.rxDateSurgeryYear < line.dateOfLastContactYear || line.rxDateSurgeryMonth == null || line.dateOfLastContactMonth == null) return true if (line.rxDateSurgeryMonth > line.dateOfLastContactMonth) return false if (line.rxDateSurgeryMonth < line.dateOfLastContactMonth || line.rxDateSurgeryDay == null || line.dateOfLastContactDay == null) return true return line.rxDateSurgeryDay <= line.dateOfLastContactDay]]></expression> <message>RX Date Surgery, Date of Last Contact conflict.</message> <description><![CDATA[This edit is skipped if any of the fields are blank. RX Date Surgery must be less than or equal to Date of Last Contact. If both years are known, but either month is blank, then only the years are compared. If either day is blank, then only the years and months are compared.]]></description> <history> <event version="SE15-013-01" user="kirbyk" date="2015-01-20" ref="67181">Edit created.</event> </history> </rule>