edits.seer.internal.rules.IFN2529.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="IFN2529" name="Date of Last Cancer (tumor) Status, Date of Diagnosis (COC)" tag="N2529" java-path="lines.line" category="inter-field" depends="DateFollowUpEdit"> <expression><![CDATA[if (line.dateOfLastCancerStatusYear == null || line.dateOfDiagnosisYear == null) return true if (line.dateOfLastCancerStatusYear < line.dateOfDiagnosisYear) return false if (line.dateOfLastCancerStatusYear > line.dateOfDiagnosisYear || line.dateOfLastCancerStatusMonth == null || line.dateOfDiagnosisMonth == null) return true if (line.dateOfLastCancerStatusMonth < line.dateOfDiagnosisMonth) return false if (line.dateOfLastCancerStatusMonth > line.dateOfDiagnosisMonth || line.dateOfLastCancerStatusDay == null || line.dateOfDiagnosisDay == null) return true return line.dateOfLastCancerStatusDay >= line.dateOfDiagnosisDay]]></expression> <message>Date of Last Cancer (tumor) Status must be greater than or equal to Date of Diagnosis.</message> <description><![CDATA[This edit is skipped if either Date of Last Cancer (tumor) Status or Date of Diagnosis is blank or invalid. Date of Last Cancer (tumor) Status 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-04" user="cooki" date="2023-06-13" ref="69275">Edit created.</event> </history> </rule>