edits.seer.internal.rules.IF528.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="IF528" name="RX Date Surgery, Date of Diagnosis (COC)" tag="N1535" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,RXDateSurgeryEdit"> <expression><![CDATA[if (line.rxDateSurgeryYear == null || line.dateOfDiagnosisYear == null) return true if (line.rxDateSurgeryYear < line.dateOfDiagnosisYear) return false if (line.rxDateSurgeryYear > line.dateOfDiagnosisYear || line.rxDateSurgeryMonth == null || line.dateOfDiagnosisMonth == null) return true if (line.rxDateSurgeryMonth < line.dateOfDiagnosisMonth) return false if (line.rxDateSurgeryMonth > line.dateOfDiagnosisMonth || line.rxDateSurgeryDay == null || line.dateOfDiagnosisDay == null) return true return line.rxDateSurgeryDay >= line.dateOfDiagnosisDay]]></expression> <message>RX Date Surgery, Date of Diagnosis conflict.</message> <description><![CDATA[This edit is skipped if any of the fields are blank or invalid. RX Date Surgery must be greater than or equal to Date of Diagnosis. 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="67182">Edit created.</event> </history> </rule>