edits.seer.internal.rules.IF579.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="IF579" name="TNM Path N, Reg Nodes Ex - Ed 7 (COC)" tag="N2256" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Regional_Nodes_Examined,TNM_Path_N,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[boolean skipCondition1 = line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' boolean skipCondition2 = line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7' boolean skipCondition3 = line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' boolean skipCondition4 = line.tnmPathN == null || line.tnmPathN == '88' if (skipCondition1 || skipCondition2 || skipCondition3 || skipCondition4 || line.regionalNodesExamined == null) return true if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') return true // these cases will not generate errors String chapter = ((Closure)Context.AJCC7CodeLookup16).call(line) String tnmPathN = line.tnmPathN if (chapter == '014' && tnmPathN == 'p1C') return true else if ((chapter == '030' || chapter == '052') && tnmPathN == 'p2') return true else if (chapter == '031' && tnmPathN == 'p2C') return true else if (chapter == '032' && tnmPathN == 'p2B') return true else if (chapter == '36A' && (tnmPathN == 'c1' || tnmPathN == 'c2')) return true else if (chapter == '055' && (tnmPathN == 'p3' || tnmPathN == 'p4')) return true if (line.regionalNodesExamined == '00' || line.regionalNodesExamined == '99') return line.tnmPathN == 'pX' || line.tnmPathN == 'c0' return true]]></expression> <message>TNM Path N and Regional Nodes Examined conflict</message> <description><![CDATA[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 = 6 (Autopsy Only) or 7 (Death Certificate Only) 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. TNM Path N is blank or 88 5. Regional Nodes Examined = blank 6. TNM Edition Number is not 07, U7 IF Regional Nodes Examined = 00 or 99 Then TNM Path N must = pX, c0, or blank The following TNM site/histology groups/Path N codes are exceptions to the above and will not generate errors: Chapter 14: Colon and Rectum TNM Path N = p1C (tumor deposits) Chapter 30: Merkel Cell Carcinoma TNM Path N = p2 (in transit metastases) Chapter 31: Melanoma of the Skin TNM Path N = p2C (satellite nodules) Chapter 32: Breast TNM Path N = p2B (clinically detected internal mammary lymph nodes in the absence of axillary lymph node metastases) Chapter 36A: Corpus Uteri Carcinoma TNM Path N = c1 or c2 (clinical N allowed in path N field) Chapter 52: Retinoblastoma TNM Path N = p2 (distant nodes) Chapter 55: Ocular Adnexal Lymphoma TNM Path N = p3 or p4 (codes indicating distant nodes)]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-18" ref="67403">Edit created.</event> <event version="SE18-018-01" user="kirbyk" date="2018-04-16" ref="67733">Added several exception conditions based on AJCC chapter.</event> <event version="SE18-018-02" user="schadega" date="2018-05-18" ref="67743">Name change.</event> <event version="SE18-018-04" user="kirbyk" date="2018-08-01" ref="67979">Removed exceptions for chapters 16A, 16B, 27, and 28.</event> <event version="SE18-018-10" user="kirbyk" date="2018-11-30" ref="68060">Added TNM Edition Number skip condition.</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>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy