edits.seer.internal.rules.SEER_IR13C.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="SEER_IR13C" name="Duplicate Kaposi Sarcoma Primaries for Patient (SEER IR13C)" tag="S039" java-path="lines" category="inter-record"> <expression><![CDATA[if (lines.size() < 2) return true for (line in lines) { if ( line.dateOfDiagnosisYear != null && !(Functions.matches(line.dateOfDiagnosisYear, /^[12]\d\d\d$/)) && !Functions.between(line.dateOfDiagnosisYear, 1930, Functions.getCurrentYear()) ) return true } int outerIndex = 0 while ( outerIndex < lines.size() ) { int innerIndex = outerIndex + 1 Map outerLine = lines.get(outerIndex) if (outerLine.histologicTypeIcdO3 == '9140' && outerLine.behaviorCodeIcdO3 == '3') { while (innerIndex < lines.size() ) { Map innerLine = lines.get(innerIndex) if (innerLine.histologicTypeIcdO3 == '9140' && innerLine.behaviorCodeIcdO3 == '3' && innerLine.dateOfDiagnosisYear > '1987') { Functions.forceFailureOnEntity(binding, innerLine) Functions.forceFailureOnEntity(binding, outerLine) return false } innerIndex += 1 } } outerIndex += 1 } return true]]></expression> <message>Duplicate Kaposi Sarcoma Primaries Inter-Record Error</message> <description><![CDATA[This edit is skipped if any record for the person has the "Date of Diagnosis is invalid" inter-field edit flag triggered. IR13C compares each of the histology entries for a given patient to determine whether or not there are multiple Kaposi Sarcoma(histology=9140) primaries. If this condition is true and more than one has a behavior code of 3 and the second malignancy has a Year of Diagnosis [390] greater than 1987, the patient fails the edit.]]></description> <history> <event version="SE11-001-22" user="greend" date="2007-12-31">Edit now skips second malignancy comparison if year of diagnosis = 9999.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-22">Edit no longer checks for 9-filled year of diagnosis.</event> <event version="SE14-011-04" user="depryf" date="2014-04-21" ref="67077">Now reporting all the tumors when this edit fails.</event> <event version="SE15-013-01" user="kirbyk" date="2015-01-26" ref="67112">Reports only the two tumors that fail the edit.</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> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy