edits.seer.internal.rules.IF154.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="IF154" name="RX Summ--Systemic/Sur Seq, DateDX, RPTSRC (SEER IF154)" tag="N0794" java-path="lines.line" category="inter-field" depends="RX_Summ--Systemic_Sur_Seq,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear == '2006') return true if (line.dateOfDiagnosisYear > '2006' && line.dateOfDiagnosisYear < '2012') { if (line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7') return line.rxSummSystemicSurSeq == '0' return Functions.matches(line.rxSummSystemicSurSeq, /^[0234569]$/) } if (line.dateOfDiagnosisYear > '2011') { if (line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7') return line.rxSummSystemicSurSeq == '0' return Functions.matches(line.rxSummSystemicSurSeq, /^[02345679]$/) } if (line.dateOfDiagnosisYear < '2006') return line.rxSummSystemicSurSeq == null return true]]></expression> <message>Year of Diagnosis and RX Summ--Systemic Sur Seq Conflict</message> <description><![CDATA[Skip this edit if year of diagnosis[390] is blank. If year of diagnosis[390] < 2006, then RX Summ--Systemic Sur Seq[1639] must be blank. If year of Date of Diagnosis is greater than 2006 and less than 2012, A. If Type of Reporting Source is 6 (autopsy only) or 7 (death certificate only), then RX Summ--Systemic/Sur Seq must be 0 (no systemic therapy and/or no surgery) B. For all other values of Type of Reporting Source, RX Summ--Systemic/Sur Seq [1639] must be 0,2,3,4,5,6,9. If year of Date of Diagnosis is greater than 2011 A. If Type of Reporting Source is 6 (autopsy only) or 7 (death certificate only), then RX Summ--Systemic/Sur Seq must be 0 (no systemic therapy and/or no surgery) B. For all other values of Type of Reporting Source, RX Summ--Systemic/Sur Seq [1639] must be 0,2,3,4,5,6,7,9.]]></description> <history> <event version="SE11-001-20" user="greend" date="2006-04-12">Edit modified to require field for 2007+ cases rather than 2006+ cases due to a change from NAACCR for when the field will be required.</event> <event version="SE11-001-21" user="greend" date="2007-02-01">RX Summ--Systemic Sur Seq does not have to be blank for the year 2006.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-03">Changed edit to not recognize 9999 as a year of diagnosis.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-21">Updated documentation to reflect code.</event> <event version="SE12-006-01" user="murphyr" date="2011-12-16" ref="66637">Now allowing code 7 for 2012+.</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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68897">Update edit name to match new NAACCR translated edit.</event> <event version="SE22-022-01" user="smithm" date="2022-02-28" ref="68807">Update logic documentation with Type of Reporting Source condition</event> <event version="SE22-022-05" user="kirbyk" date="2022-05-17" ref="68995">Replaced non-ASCII characters in description.</event> </history> </rule>