edits.seer.internal.rules.IF33.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="IF33" name="Date of Diagnosis, EOD Coding Sys, EOD (SEER IF33)" tag="N2041" java-path="lines.line" category="inter-field" depends="IF2613DG_P2,IF262DIG_P2,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || (line.dateOfDiagnosisYear < '1992' && line.registryId == '0000001535') || (line.registryId == '0000001544' && (line.dateOfDiagnosisYear == '1998' || line.dateOfDiagnosisYear == '1999') && line.codingSystemForEod == null)) return true if (line.registryId == '0000001541' && line.dateOfDiagnosisYear < '1994') return true if (['0000001563', '0000001565', '0000001566'].contains(line.registryId)) return true if ((line.registryId == '0000001544' && line.dateOfDiagnosisYear < '1998') || line.registryId == '0000001561' || line.registryId == '0000001562') return line.codingSystemForEod == null if (line.dateOfDiagnosisYear < '1983') { if (line.codingSystemForEod == '0') { return (Functions.matches(line.eodOld2Digit, /^[-&04-9][-]$/) && line.eodOld4Digit == null && line.eodOld13Digit == null && line.eodTumorSize == null && line.eodExtension == null && line.eodLymphNodeInvolv == null && line.regionalNodesPositive == null && line.regionalNodesExamined == null && line.eodExtensionProstPath == null) } if (line.codingSystemForEod == '1') { return (line.eodOld4Digit == null && line.eodOld13Digit == null && line.eodTumorSize == null && line.eodExtension == null && line.eodLymphNodeInvolv == null && line.regionalNodesPositive == null && line.regionalNodesExamined == null && line.eodExtensionProstPath == null && Functions.matches(line.eodOld2Digit, /^[-&0-9][-&0-9]$/)) } if (line.codingSystemForEod == '2' && line.eodOld4Digit == null && line.eodOld2Digit == null && line.eodTumorSize == null && line.eodExtension == null && line.eodLymphNodeInvolv == null && line.regionalNodesPositive == null && line.regionalNodesExamined == null && line.eodExtensionProstPath == null) { return Functions.matches(line.eodOld13Digit, /^[-&0-9]{13}$/) } return false } String eodOld4DigitNodes = null, eodOld4DigitSize = null, eodOld4DigitExtent = null if (line.eodOld4Digit != null && line.eodOld4Digit.length() > 3) eodOld4DigitNodes = line.eodOld4Digit.substring(3, 4) if (line.eodOld4Digit != null && line.eodOld4Digit.length() > 1) eodOld4DigitSize = line.eodOld4Digit.substring(0, 2) if (line.eodOld4Digit != null && line.eodOld4Digit.length() > 2) eodOld4DigitExtent = line.eodOld4Digit.substring(2, 3) if (line.dateOfDiagnosisYear > '1982' && line.dateOfDiagnosisYear < '1988' && line.registryId != '0000001529') { if (line.codingSystemForEod == '3') { return (eodOld4DigitSize != null && eodOld4DigitExtent != null && eodOld4DigitNodes != null && eodOld4DigitSize >= '00' && eodOld4DigitSize <= '99' && eodOld4DigitExtent >= '0' && eodOld4DigitExtent <= '9' && eodOld4DigitNodes >= '0' && eodOld4DigitNodes <= '9' && line.eodOld2Digit == null && line.eodOld13Digit == null && line.eodTumorSize == null && line.eodExtension == null && line.eodLymphNodeInvolv == null && line.regionalNodesPositive == null && line.regionalNodesExamined == null && line.eodExtensionProstPath == null) } return false } if ((line.dateOfDiagnosisYear >= '1988' && line.dateOfDiagnosisYear <= '2003') || (line.registryId == '0000001529' && line.dateOfDiagnosisYear <= '2003')) { if (line.codingSystemForEod == '4') return (line.eodOld4Digit == null && line.eodOld2Digit == null && line.eodOld13Digit == null && line.eodTumorSize != null && line.eodExtension != null && line.eodLymphNodeInvolv != null && line.regionalNodesPositive != null && line.regionalNodesExamined != null && line.eodTumorSize >= '000' && line.eodTumorSize <= '999' && line.eodExtension >= '00' && line.eodExtension <= '99' && line.eodLymphNodeInvolv >= '0' && line.eodLymphNodeInvolv <= '9' && line.regionalNodesPositive >= '00' && line.regionalNodesPositive <= '99' && line.regionalNodesExamined >= '00' && line.regionalNodesExamined <= '99') return false } if (line.dateOfDiagnosisYear > '2003') { return (line.codingSystemForEod == null && line.eodTumorSize == null && line.eodExtension == null && line.eodLymphNodeInvolv == null && line.eodExtensionProstPath == null && line.eodOld4Digit == null && line.eodOld2Digit == null && line.eodOld13Digit == null) } return true]]></expression> <message>Year of Diagnosis, Coding System for EOD, EOD fields conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1) Year of diagnosis is blank. 2) Registry ID = 0000001544 (New Jersey), Year of Diagnosis is 1998 or 1999 and Coding System for EOD is blank 3) Registry ID = 0000001535 (Los Angeles) and Year of Diagnosis < 1992. 4) Registry ID = 0000001563 (Massachusetts), 0000001565 (Illinois), or 0000001566 (Texas) 5) Registry ID = 0000001541 (Greater CA) and Year of Diagnosis < 1994. Registry ID = 0000001544 (New Jersey) and Year of Diagnosis is < 1998 then Coding System for EOD must be blank. If Registry ID = 0000001561 (Idaho) or 0000001562 (New York), then Coding System for EOD must be blank. For Date of Diagnosis less than 1983: If either the SEER Nonspecific or Two-digit Site-specific Extent of Disease coding schemes (Coding System for Extent of Disease is '0' or '1') are used,the Expanded 13-digit Site-specific, SEER 4-digit, and SEER 10-digit Extent of Disease fields must be blank. If the SEER Expanded 13-digit Site-specific Extent of Disease (Coding System for Extent of Disease is '2') is used and the Nonspecific/Two-digit Site-specific, SEER 4-digit, and SEER 10-digit Extent of Disease fields must be blank. For Date of Diagnosis from 1983 to 1987 and Registry ID is not = 0000001529 (Alaska Native Registry),the Coding System for EOD must be `3', the EOD-- Old 4 digit must be numeric and the EOD--Old 2 digit, EOD--Old 13 digit, SEER 12-digit Extent of Disease fields must be blank. For Date of Diagnosis from 1988 to 2003, the SEER 10-digit Extent of Disease (Coding System for Extent of Disease is '4') must be numeric and the Nonspecific/Two-digit Site-specific, Expanded 13-digit Site-specific, and SEER 4-digit Extent of Disease fields must be blank. For Date of Diagnosis greater than 2003, the following fields must be blank: Coding System for EOD EOD--Old 2 Digit EOD-Old 13 Digit EOD--Old 4 Digit EOD--Tumor Size EOD--Extension EOD--Lymph Node Involv EOD--Extension Prost Path]]></description> <history> <event version="SE11-001-04" user="greend" date="1988-07-07">Code modified to include EOD10 coding scheme.</event> <event version="SE11-001-12" user="greend" date="1996-02-09">Program modified to not edit Los Angeles cases before 1992.</event> <event version="SE11-001-17" user="greend" date="2003-01-30">Updated to correctly flag 1988+ cases with an EOD scheme other than '4'.</event> <event version="SE11-001-17" user="greend" date="2003-09-22">Modified edit to verify that only New Jersey and Kentucky cases diagnosed before 2000 contain a blank value for Coding System for EOD[870].</event> <event version="SE11-001-18" user="greend" date="2004-06-02">Edit now forces EOD fields to be blank for cases diagnosed after 2003 with the exception of Regional nodes positive[820] and Regional nodes examined[830].</event> <event version="SE11-001-18" user="greend" date="2004-12-28">Edit modified to check for blanks in the CS fields prior to 2004 and to require non-blanks in the CS fields for 2004+ cases.</event> <event version="SE11-001-19" user="greend" date="2005-07-08">All references to the CS items was removed from the edit. Those checks will be performed in a different edit.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-17">Edit no longer skipped for 9-filled dates.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-28">Changed code to better refelct documentation. The 13-digit EOD cannot be blank if the EOD Coding system is coded to 2.</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-26" ref="67744">Remove Kentucky specific logic.</event> <event version="SE18-018-07" user="kirbyk" date="2018-10-09" ref="68041">Added back Kentucky specific logic.</event> <event version="SE18-018-10" user="kirbyk" date="2018-12-06" ref="68070">Removed Kentucky-specific logic, added logic for Idaho and New York.</event> <event version="SE18-018-12" user="kirbyk" date="2019-01-28" ref="68092">Edit now skipped for Massachusetts.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</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="SE18-020-05" user="kirbyk" date="2020-07-27" ref="68443">Replaced EOD--Old 4 Digit sub-fields with the parent field.</event> <event version="SE21-021-07" user="kirbyk" date="2021-07-20" ref="68693">Edit now skipped for IL and TX.</event> <event version="SE23-023-09" user="beverung" date="2023-11-13" ref="69320">Added skip condition for Greater CA for DX Year < 1994</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy