edits.seer.internal.rules.IF312.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="IF312" name="CS Items - SEER Required - Non-SSF (CS)" tag="N2353" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Version_Input_Original,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line._csSchemaId == null || ['0000001562','0000001566'].contains(line.registryId) || ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && line._csSchemaId != 'brain' && line._csSchemaId != 'cns_other' && line._csSchemaId != 'intracranial_gland')) return true Integer yeardx = Functions.asInt(line.dateOfDiagnosisYear) Integer csInputOrig = Functions.asInt(line.csVersionInputOriginal) if (yeardx > 2015 && (line.csMetsAtDxBone != null || line.csMetsAtDxBrain != null || line.csMetsAtDxLiver != null || line.csMetsAtDxLung != null)) return false if (yeardx > 2015 && line.csExtension == null && (line.csTumorSize != null || line.csTumorSizeExtEval != null || line.csLymphNodes != null || line.csLymphNodesEval != null || line.csMetsAtDx != null || line.csMetsEval != null)) return false if (yeardx > 2015 && line.csExtension != null && (line.csTumorSize == null || line.csTumorSizeExtEval == null || line.csLymphNodes == null || line.csLymphNodesEval == null || line.csMetsAtDx == null || line.csMetsEval == null)) return false if (yeardx > 2009 && yeardx < 2016 && line.registryId != '0000001563' && (line.csMetsAtDxBone == null || line.csMetsAtDxBrain == null || line.csMetsAtDxLiver == null || line.csMetsAtDxLung == null)) return false if (((yeardx > 2007 && yeardx < 2016) || (yeardx > 2003 && yeardx < 2016 && csInputOrig >= 20100)) && ( line.csTumorSizeExtEval == null || line.csLymphNodesEval == null || line.csMetsEval == null)) return false if (yeardx > 2003 && yeardx < 2016 && (line.csTumorSize == null || line.csExtension == null || line.csLymphNodes == null || line.csMetsAtDx == null || line.csVersionInputOriginal == null || line.csVersionInputCurrent == null)) return false return true]]></expression> <message>CS Items Non-SSF and Year of Diagnosis conflict</message> <description><![CDATA[The purpose of this edit is to verify that all CS data items required by SEER, other than the site-specific factors, are entered (not blank) per the SEER requirements. The site-specific factors are edited schema-specifically in other edits. This edit is skipped if: 1. Year of Date of Diagnosis is blank. 2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and schema is not Brain, CNSOther, or IntracranialGland 3. CS schema is invalid 4. Registry ID = 0000001562 (New York) or 0000001566 (Texas) If year of Date of Diagnosis is greater than 2003 and less than 2016, then the following CS data items cannot be blank: CS Tumor Size CS Extension CS Lymph Nodes CS Mets at DX CS Version Input Original CS Version Input Current If year of Date of Diagnosis is greater than 2007 and less than 2016 OR (year of Date of Diagnosis is 2004-2015 and CS Version Input Original is greater than or = 020100 (indicating the case was originally coded using CSv2)), then the following additional CS data items cannot be blank: CS Tumor Size/Ext Eval CS Lymph Nodes Eval CS Mets Eval If year of Date of Diagnosis is greater than 2009 and less than 2016 and registry is not MA (0000001563), then the following additional CS data items cannot be blank: CS Mets at DX-Bone CS Mets at DX-Brain CS Mets at DX-Liver CS Mets at DX-Lung If CS extension is non-blank and year of Date of Diagnosis is greater than 2015, then the following CS data items must not be blank: CS Tumor Size CS Extension CS Tumor Size/Ext Eval CS Lymph Nodes CS Lymph Nodes Eval CS Mets at DX CS Mets Eval If CS extension is blank and year of Date of Diagnosis is greater than 2015, then the following CS data items must be blank: CS Tumor Size CS Extension CS Tumor Size/Ext Eval CS Lymph Nodes CS Lymph Nodes Eval CS Mets at DX CS Mets Eval If year of Date of Diagnosis is greater than 2015, then the following CS data items must be blank: CS Mets at DX-Bone CS Mets at DX-Brain CS Mets at DX-Liver CS Mets at DX-Lung]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2010-03-08">Edit created.</event> <event version="SE13-009-02" user="murphyr" date="2013-02-28" ref="66837">Fixed issue where some fields were not checked for blank for years of dx 2007+</event> <event version="SE16-015-01" user="kirbyk" date="2016-04-25" ref="67235">Updated logic for 2016+ cases.</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="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-12" user="kirbyk" date="2019-01-29" ref="68095">CS Mets at DX site fields can be blank for cases from MA diagnosed 2010-2015.</event> <event version="SE18-019-03" user="beverung" date="2019-07-18" ref="68203">Added skip condition for New York.</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-09" user="beverung" date="2021-09-03" ref="68737">Added skip condition for TX.</event> <event version="SE24-024-03" user="kirbyk" date="2024-04-04" ref="69447">Removed dependency on edit Registry_ID/</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy