edits.seer.internal.rules.IF631.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="IF631" name="Recurrence Date--1st, Date of Diagnosis (SEER)" tag="S057" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,RecurrenceDate1stEdit"> <expression><![CDATA[if ((line.dateOfDiagnosisYear == null && line.dateOfDiagnosisMonth == null && line.dateOfDiagnosisDay == null) || (line.recurrenceDate1stYear == null && line.recurrenceDate1stMonth == null && line.recurrenceDate1stDay == null)) return true Integer recurrenceYear = Functions.asInt(line.recurrenceDate1stYear) Integer recurrenceMonth = Functions.asInt(line.recurrenceDate1stMonth) Integer recurrenceDay = Functions.asInt(line.recurrenceDate1stDay) Integer dxYear = Functions.asInt(line.dateOfDiagnosisYear) Integer dxMonth = Functions.asInt(line.dateOfDiagnosisMonth) Integer dxDay = Functions.asInt(line.dateOfDiagnosisDay) return ((Integer)((Closure)Context.compareDate).call(recurrenceYear, recurrenceMonth, recurrenceDay, dxYear, dxMonth, dxDay)) >= 0]]></expression> <message>Recurrence Date--1st cannot be before Date of Diagnosis</message> <description><![CDATA[This edit is skipped if either field is blank. Recurrence Date--1st 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="SE23-023-07" user="shearerw" date="2023-09-18" ref="69310">Edit Created.</event> <event version="SE24-024-06" user="shearerw" date="2024-07-09" ref="69506">Update name and error message.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy