edits.seer.internal.rules.IF521.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="IF521" name="RX Date Other, Date Last Contact (COC)" tag="N0868" java-path="lines.line" category="inter-field" depends="DateFollowUpEdit,RXDateOtherEdit"> <expression><![CDATA[if (line.rxDateOtherYear == null || line.dateOfLastContactYear == null) return true if (line.rxDateOtherYear > line.dateOfLastContactYear) return false if (line.rxDateOtherYear < line.dateOfLastContactYear || line.rxDateOtherMonth == null || line.dateOfLastContactMonth == null) return true if (line.rxDateOtherMonth > line.dateOfLastContactMonth) return false if (line.rxDateOtherMonth < line.dateOfLastContactMonth || line.rxDateOtherDay == null || line.dateOfLastContactDay == null) return true return line.rxDateOtherDay <= line.dateOfLastContactDay]]></expression> <message>RX Date Other, Date of Last Contact conflict.</message> <description><![CDATA[This edit is skipped if RX Date Other or Date of Last Contact is blank. RX Date Other 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="67173">Edit created.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy