edits.seer.internal.rules.IF561.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="IF561" name="TNM Fields, Type of Reporting Source (SEER)" tag="N2349" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.dateOfDiagnosisYear > '2017' || line.typeOfReportingSource != '7') return true return line.tnmClinT == '88' && line.tnmClinN == '88' && line.tnmClinM == '88' && line.tnmClinStageGroup == '88' && line.tnmPathT == '88' && line.tnmPathN == '88' && line.tnmPathM == '88' && line.tnmPathStageGroup == '88']]></expression> <message>TNM Fields conflict for DCO cases</message> <description><![CDATA[This edit checks that all T, N, M and Stage Group fields are coded 88 when Type of Reporting Source = 7 (Death Certificate Only). This edit is skipped if any of the following conditions are true: 1. Year of Date of Diagnosis is less than 2016 or greater than 2017, blank (unknown), or invalid 2. Type of Reporting Source is not 7. If Type of Reporting Source = 7 then TNM Clin T, TNM Clin N, TNM Clin M, TNM Clin Stage Group, TNM Path T, TNM Path N, TNM Path M, and TNM Path Stage Group must = 88.]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-03" ref="67369">Edit created.</event> <event version="SE18-018-02" user="schadega" date="2018-05-17" ref="67798">Restrict to 2016-2017 cases.</event> <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> <event version="SE24-024-04" user="kirbyk" date="2024-04-12" ref="69326">Removed several dependencies.</event> </history> </rule>