edits.seer.internal.rules.IF513.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="IF513" name="RX Date BRM, Date of Diagnosis (COC)" tag="N1530" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,RXDateBRMEdit"> <expression><![CDATA[if (line.rxDateBrmYear == null || line.dateOfDiagnosisYear == null) return true if (line.rxDateBrmYear < line.dateOfDiagnosisYear) return false if (line.rxDateBrmYear > line.dateOfDiagnosisYear || line.rxDateBrmMonth == null || line.dateOfDiagnosisMonth == null) return true if (line.rxDateBrmMonth < line.dateOfDiagnosisMonth) return false if (line.rxDateBrmMonth > line.dateOfDiagnosisMonth || line.rxDateBrmDay == null || line.dateOfDiagnosisDay == null) return true return line.rxDateBrmDay >= line.dateOfDiagnosisDay]]></expression> <message>RX Date BRM, Date of Diagnosis conflict.</message> <description><![CDATA[This edit is skipped if any of the fields are blank or invalid. RX Date BRM 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="67162">Edit created.</event> </history> </rule>