edits.seer.internal.rules.IF545.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="IF545" name="TNM Clin M, Date of Diagnosis (COC)" tag="N2225" java-path="lines.line" category="inter-field" depends="TNM_Clin_M,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.dateOfDiagnosisYear > '2017' || line.tnmClinM == null) return true if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') return true return line.tnmClinM == '88' || (Functions.matches(line.tnmClinM, /^[cp].+$/) && ((List)Context.TNM_Clin_M_Table).contains(line.tnmClinM))]]></expression> <message>TNM Clin M and Date DX conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1. Diagnosis date < 2016 or > 2017, blank (unknown), or invalid. 2. TNM Clin M is blank. 3. TNM Edition Number not = 07, U7 If year of Diagnosis greater than 2015 and less than 2018, then the TNM Clin M field must be a valid code and must be left-justified. Subcategory letters must be uppercase, "c" or "p" in code must be lowercase. May be blank. The following codes are valid for AJCC 7th TNM edition, 2016-2017 diagnosis year: c0 c0I+ c1 c1A c1B c1C c1D c1E p1 p1A p1B p1C p1D p1E 88 blank]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-04-12" ref="67293">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-11" ref="67582">Added skip condition for TNM Edition Number.</event> <event version="SE16-016-08" user="depryf" date="2017-11-22" ref="67674">Edit syntax updated to allow pre-compilation optimization; no change in behavior.</event> <event version="SE18-018-02" user="kirbyk" date="2018-06-22" ref="67747">Edit restricted to 2016-2017 cases.</event> <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> </history> </rule>