edits.seer.internal.rules.IF516.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.
The newest version!
<rule id="IF516" name="RX Date Chemo, Date of Diagnosis (COC)" tag="N1531" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,RXDateChemoEdit"> <expression><![CDATA[if (line.rxDateChemoYear == null || line.dateOfDiagnosisYear == null) return true if (line.rxDateChemoYear < line.dateOfDiagnosisYear) return false if (line.rxDateChemoYear > line.dateOfDiagnosisYear || line.rxDateChemoMonth == null || line.dateOfDiagnosisMonth == null) return true if (line.rxDateChemoMonth < line.dateOfDiagnosisMonth) return false if (line.rxDateChemoMonth > line.dateOfDiagnosisMonth || line.rxDateChemoDay == null || line.dateOfDiagnosisDay == null) return true return line.rxDateChemoDay >= line.dateOfDiagnosisDay]]></expression> <message>RX Date Chemo, Date of Diagnosis conflict.</message> <description><![CDATA[This edit is skipped if any of the fields are blank or invalid. RX Date Chemo 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="67166">Edit created.</event> </history> </rule>