edits.seer.internal.rules.IF193.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="IF193" name="CS Eval Items, Type of Reporting Source (CS)" tag="N0908" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Mets_Eval,CS_Reg_Node_Eval,CS_Tumor_Size_Ext_Eval,Primary_Site,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[if (line.typeOfReportingSource == null || line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear > '2017') return true if (line._csSchemaId == null || ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && !['brain','cns_other','intracranial_gland'].contains(line._csSchemaId))) return true if (line.csTumorSizeExtEval == '8' || line.csLymphNodesEval == '8' || line.csMetsEval == '8') return line.typeOfReportingSource == '6' return true]]></expression> <message>Conflict between CS Eval Items and Type of Reporting Source</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1. Type of Reporting Source is blank. 2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and schema is not Brain, CNSOther, or IntracranialGland. 3. Year of diagnosis > 2017, blank (unknown), or invalid If CS Tumor Size/Ext Eval, CS Reg Nodes Eval, or CS Mets Eval = 8 (evidence from autopsy only (tumor was unsuspected or undiagnosed prior to autopsy)), then Type of Reporting Source must = 6 (autopsy only).]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2010-03-05">Edit now using schema name.</event> <event version="SE12-002-04" user="murphyr" date="2010-07-29">Edit now passes if CS schema is not found.</event> <event version="SE16-015-01" user="kirbyk" date="2016-05-04" ref="67370">Changed edit to use schema IDs instead of schema names</event> <event version="SE18-018-05" user="schadega" date="2018-08-14" ref="67996">Limit to cases diagnosed before 2018</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>