edits.seer.internal.rules.IF573.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="IF573" name="TNM M, SSF 4 Uveal Melanoma (COC)" tag="N2243" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_4,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_M,TNM_Path_M,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 condition 5, 6 if ((line.tnmClinM == null && line.tnmPathM == null) || (line.tnmClinM == '88' && line.tnmPathM == '88') || line.csSiteSpecificFactor4 == null || line.csSiteSpecificFactor4 == '988') return true //Skip condition 7 if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') return true if (!(Functions.matches(line.primarySite, /^C69[34]$/)) || line.histologicTypeIcdO3 < '8720' || line.histologicTypeIcdO3 > '8790') return true String ssf4 = line.csSiteSpecificFactor4 if (ssf4 == '000') return !(Functions.matches(line.tnmClinM, /^[cp]1[ABC]?$/) || Functions.matches(line.tnmPathM, /^[cp]1[ABC]?$/)) else if ((ssf4 >= '001' && ssf4 <= '030') || ssf4 == '991') return (Functions.matches(line.tnmClinM, /^[cp]1A$/) || Functions.matches(line.tnmPathM, /^[cp]1A$/)) else if ((ssf4 >= '031' && ssf4 <= '080') || ssf4 == '992') return (Functions.matches(line.tnmClinM, /^[cp]1B$/) || Functions.matches(line.tnmPathM, /^[cp]1B$/)) else if ((ssf4 >= '081' && ssf4 <= '980') || ssf4 == '993') return (Functions.matches(line.tnmClinM, /^[cp]1C$/) || Functions.matches(line.tnmPathM, /^[cp]1C$/)) return true]]></expression> <message>TNM M and SSF 4 conflict for Uveal Melanoma</message> <description><![CDATA[Purpose: This edit verifies that TNM Clin M and TNM Path M are coded consistently with SSF 4 for Uveal Melanoma (Size of Largest Metastasis). 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 uveal melanoma 5. TNM Clin M and TNM Path M are blank or 88 6. SSF 4 is blank or 988 7. TNM Edition Number is not = 07, U7 For uveal melanoma: A. If CS Site-Specific Factor 4 = 000 (no metastatic disease) then TNM Clin M and TNM Path M must not = c1, c1A, c1B, c1C, p1, p1A, p1B, or p1C B. If CS Site-Specific Factor 4 = 001-030 (size of metastasis in mm), or 991 (described as less than 3cm) then TNM Clin M or TNM Path M must = c1A or p1A C. If CS Site-Specific Factor 4 = 031-080 (size of metastasis in mm), or 992 (described as less than 8 cm), then TNM Clin M or TNM Path M must = c1B or p1B D. If CS Site-Specific Factor 4 = 081 - 980 (size of metastasis in mm), or 993 (described as greater than 8cm), then TNM Clin M or TNM Path M must = c1C or p1C]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-16" ref="67395">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-17" ref="67595">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-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> <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> </history> </rule>