edits.seer.internal.rules.IF575.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="IF575" name="TNM N, SSF 3 Merkel Cell (COC)" tag="N2246" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_3,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_N,TNM_Path_N,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true //Skip conditions 5, 6, 7 if (line.tnmClinN == null || (line.tnmClinN == '88' && line.tnmPathN == '88') || line.csSiteSpecificFactor3 == null || line.csSiteSpecificFactor3 == '988') return true //Skip conditions 8, 9 if ((line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') || line.tnmPathDescriptor == '4' || line.tnmPathDescriptor == '6') return true if (!['merkel_cell_penis','merkel_cell_scrotum','merkel_cell_skin','merkel_cell_vulva'].contains(line._tnmSchemaId)) return true String ssf3 = line.csSiteSpecificFactor3 if (ssf3 == '005') return line.tnmClinN == 'c0' && (line.tnmPathN == null || Functions.matches(line.tnmPathN, /^[cp]0|pX$/)) else if (ssf3 == '010') return line.tnmClinN == 'c0' && (line.tnmPathN == null || line.tnmPathN == 'p1A') else if (ssf3 == '020') return line.tnmClinN == 'c1' else if (ssf3 == '100' || ssf3 == '150') return line.tnmClinN == 'c2' else if (ssf3 == '999') return line.tnmClinN == 'cX' return true]]></expression> <message>TNM N and SSF 3 conflict for Merkel Cell</message> <description><![CDATA[Purpose: This edit verifies that TNM Clin N and TNM Path N are coded consistently with CS SSF 3 for Merkel Cell (Clinical Status of Lymph Nodes). This edit is skipped if any of the following conditions are true: 1. Year of Date of Diagnosis is less than 2016, 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. Primary site/histology is not Merkel cell. 5. TNM Clin N is blank 6. TNM Clin N and TNM Path N are 88 7. CS SSF 3 is blank or 988 8. TNM Edition Number not = 07, U7 9. TNM Path Descriptor = 4,6 For TNM Merkel cell schemas(Merkel Cell Penis, Merkel Cell Scrotum, Merkel Cell Skin and Merkel Cell Vulva): A. If CS SSF 3 = 005 (Clinically negative nodes and no pathologic exam or pathologic exam negative or unknown if pathologic exam) then TNM Clin N must = c0 and if not blank TNM Path N must = c0, p0, pX, or blank (no pathologic exam or unknown if performed, no pathologic node metastasis) B. If CS SSF 3 = 010 (Clinically occult (microscopic) lymph node metastasis only) then TNM Clin N must = c0 (no regional lymph node metastasis) and TNM Path N must = p1A or blank. C. If CS SSF 3 = 020 (Clinically apparent nodal metastasis) then TNM Clin N must = c1 D. If CS SSF 3 = 100 (Clinically apparent in transit metastasis with or without occult lymph node metastasis) or 150 (Clinically apparent in transit metastasis and clinically apparent nodal metastasis) then TNM Clin N must = c2 E. If CS SSF 3 = 999 (Unknown clinically if nodes involved) then TNM Clin N must = cX]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-17" ref="67399">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-17" ref="67598">Added skip conditions for TNM Edition Number, TNM Path Descriptor.</event> <event version="SE16-016-02" user="kirbyk" date="2017-02-21" ref="67640">Stopped skipping edit when TNM Path N is blank.</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-01" user="schadega" date="2018-04-11" ref="67741">Edit name change.</event> <event version="SE18-018-02" user="schadega" date="2018-05-18" ref="67743">Name change.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>