edits.seer.internal.rules.IF606.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.
The newest version!
<rule id="IF606" name="TNM Clin T, SSF 2 Melanoma Conjunctiva (COC)" tag="N2235" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_2,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_T,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' || line._tnmSchemaId != 'melanoma_conjunctiva' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true //Skip condition 5, 6 if (line.tnmClinT == null || line.tnmClinT == '88' || line.csSiteSpecificFactor2 == null || line.csSiteSpecificFactor2 == '988') return true //Skip condition 7 if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') return true if (line.csSiteSpecificFactor2 == '010' || line.csSiteSpecificFactor2 == '015') return line.tnmClinT == 'c1A' || line.tnmClinT == 'c2A' || line.tnmClinT == 'c2C' else if (line.csSiteSpecificFactor2 == '020' || line.csSiteSpecificFactor2 == '025') return line.tnmClinT == 'c1B' || line.tnmClinT == 'c2B' || line.tnmClinT == 'c2D' else if (line.csSiteSpecificFactor2 == '030') return line.tnmClinT == 'c1C' || line.tnmClinT == 'c2B' || line.tnmClinT == 'c2D' else if (line.csSiteSpecificFactor2 == '035') return line.tnmClinT == 'c1C' else if (line.csSiteSpecificFactor2 == '040') return line.tnmClinT == 'c1D' || line.tnmClinT == 'c2B' || line.tnmClinT == 'c2D' else if (line.csSiteSpecificFactor2 == '045') return line.tnmClinT == 'c1D' return true]]></expression> <message>TNM Clin T, SSF 2 conflict for Melanoma Conjunctiva</message> <description><![CDATA[Purpose: This edit verifies that TNM Clin T is coded consistently with CS SSF 2 for Melanoma of Conjunctiva (Quadrants). This edit is skipped if any of the following conditions are true: 1. Diagnosis date prior to 2016, blank (unknown), or invalid 2. Type of Reporting Source = 7 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. Site/histology is not Melanoma of Conjunctiva 5. TNM Clin T is blank or 88 6. CS Site-Specific Factor 2 is blank or 988 7. TNM Edition Number is not 07, U7 For TNM schema Melanoma Conjunctiva: 1. If CS SSF 2 = 010 (Less than or equal to 1 quadrant involved), or 015 (Stated as clinical T1a, Stated as clinical T2a, Stated as clinical T2c) TNM Clin T must = c1A, c2A, or c2C. 2. If CS SSF 2 = 020 (More than 1 but less than or equal to 2 quadrants involved), 025 (Stated as clinical T1b, Stated as clinical T2b, Stated as clinical T2d) TNM Clin T must = c1B, c2B, c2D. 3. If CS SSF 2 = 030 (More than 2 but less than or equal to 3 quadrants involved) TNM Clin T must = c1C, c2B, or c2D. 4. If CS SSF 2 = 035 (Stated as clinical T1c) TNM Clin T must = c1C 5. If CS SSF 2 = 040 (Greater than 3 quadrants involved) TNM Clin T must = c1D, c2B, or c2D. 6. If CS SSF 2 = 045 (Stated as clinical T1d) TNM Clin T must = c1D]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-06" ref="67439">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-13" ref="67590">Added skip condition for TNM Edition Number.</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>