edits.seer.internal.rules.IF625.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="IF625" name="RX Date Mst Defn Srg, Date Last Contact (COC)" tag="N0525" java-path="lines.line" category="inter-field" depends="DateFollowUpEdit,RXDateMostDefinSurgEdit"> <expression><![CDATA[if (line.rxDateMostDefinSurgYear == null || line.dateOfLastContactYear == null) return true if (line.rxDateMostDefinSurgYear > line.dateOfLastContactYear) return false if (line.rxDateMostDefinSurgYear < line.dateOfLastContactYear || line.rxDateMostDefinSurgMonth == null || line.dateOfLastContactMonth == null) return true if (line.rxDateMostDefinSurgMonth > line.dateOfLastContactMonth) return false if (line.rxDateMostDefinSurgMonth < line.dateOfLastContactMonth || line.rxDateMostDefinSurgDay == null || line.dateOfLastContactDay == null) return true return line.rxDateMostDefinSurgDay <= line.dateOfLastContactDay]]></expression> <message>RX Date Mst Defn Srg must be less than or equal to Date of Last Contact</message> <description><![CDATA[This edit is skipped if any of the fields are blank. RX Date Mst Defn Srg 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="SE16-016-01" user="kirbyk" date="2017-01-13" ref="67579">Edit created.</event> </history> </rule>