edits.seer.internal.rules.IF564.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="IF564" name="Mets at DX-Distant LN, TNM Clin M, Path M (SEER)" tag="N2188" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Mets_at_DX_Distant_LN,TNM_Clin_M,TNM_Path_M,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[boolean dxYearSkipCondition = line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.dateOfDiagnosisYear > '2017' if (dxYearSkipCondition || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || (line.tnmPathM == null && line.tnmClinM == null) || (line.tnmPathM == '88' && line.tnmClinM == '88') || line.metsAtDxDistantLn == null) return true if (line.metsAtDxDistantLn != '1') return true if (line.tnmClinM == null) return line.tnmPathM != 'c0' && line.tnmPathM != 'c0I+' if (line.tnmPathM == null) return line.tnmClinM != 'c0' && line.tnmClinM != 'c0I+' return (line.tnmClinM != 'c0' && line.tnmClinM != 'c0I+') || (line.tnmPathM != 'c0' && line.tnmPathM != 'c0I+')]]></expression> <message>Mets at DX-Distant LN, TNM Clin M, and TNM Path M conflict</message> <description><![CDATA[This edit verifies that Mets at DX-Distant LN and TNM Clin M and TNM Path M are coded consistently. This edit is skipped if any of the following conditions are true: 1. Year of Date of Diagnosis is < 2016, > 2017, blank (unknown), or invalid 2. Type of Reporting Source = 7 (Death Certificate Only) 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. TNM Clin M and TNM Path M are both blank 5. TNM Clin M and TNM Path M are both coded 88. (There is no AJCC 7th Edition staging for the site/histology, or the case is a lymphoid neoplasm excluding ocular adnexal lymphoma and primary cutaneous lymphoma.) 6. Mets at DX-Distant LN is blank 1. If Mets at DX-Distant LN = 1 (yes) and TNM Path M is blank, then TNM Clin M must not = c0 or c0I+ (no clinical metastasis). 2. If Mets at DX-Distant LN = 1 (yes) and TNM Clin M is blank, then TNM Path M must not = c0 or c0I+ (no clinical metastasis). 3. if Mets at DX-Distant LN = 1 (yes) and TNM Path M and TNM Clin M are both coded, both cannot = c0 or c0I+ (no clinical metastasis).]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-03" ref="67373">Edit created.</event> <event version="SE18-018-01" user="kirbyk" date="2018-04-26" ref="67767">Restricted edit to cases with DX year 2016-2017.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> </history> </rule>