edits.seer.internal.rules.IF77.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="IF77" name="Surgery 03-2022, Reason for No Surg (SEER IF77)" tag="N0430" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[ if (line.dateOfDiagnosisYear < '2003' || line.dateOfDiagnosisYear > '2022' || ['6','7'].contains(line.typeOfReportingSource) || line.dateOfDiagnosisYear == null || line.rxSummSurgPrimSite == null) return true if (line.registryId == '0000001565' && line.dateOfDiagnosisYear == '2003') return true if (line.registryId == '0000001566' && line.dateOfDiagnosisYear > '2002' && line.dateOfDiagnosisYear < '2006') return true if (line.rxSummSurgPrimSite == '99') return line.reasonForNoSurgery != '0' if (line.rxSummSurgPrimSite == '00' || line.rxSummSurgPrimSite == '98') return Functions.matches(line.reasonForNoSurgery, /^[125-8]$/) if (Functions.matches(line.rxSummSurgPrimSite, /^([1-8]\d|90)$/)) return line.reasonForNoSurgery == '0' return true]]></expression> <message>Surgery 03-2022 and Reason No Surgery conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1) Year of Diagnosis[390] < 2003 or > 2022. 2) Year of Diagnosis[390] is blank. 3) Type of Reporting Source[500] = 6 (autopsy only) or 7 (death certificate only). 4) RX Summ--Surg Prim Site 03-2022 is blank. 5) Registry ID is 0000001565 (Illinois) and Year of Date of Diagnosis is 2003. 6) Registry ID is 0000001566 (Texas) and Year of Date of Diagnosis is 2003-2005. If RX Summ--Surg Prim Site 03-2022 = 00,98 (no surgery to primary site),then Reason for no surgery[1340] must be 1,2,5,6,7, or 8 (surgery was not performed). If RX Summ--Surg Prim Site 03-2022 = 10-90 (surgery performed), Reason for no surgery[1340] must be 0 (surgery performed). If RX Summ--Surg Prim Site 03-2022 = 99, Reason for no surgery[1340] cannot be 0 (surgery performed).]]></description> <history> <event version="SE11-001-17" user="greend" date="2003-06-04">Surgery is only defined using the field RX Summ--Surg Prim Site[1290].</event> <event version="SE11-001-18" user="greend" date="2004-08-06">Edit limited to diagnoses years 2003+. DCO cases with no surgery can have Reason for No Surgery code of 9.</event> <event version="SE11-001-18" user="greend" date="2004-09-15">Autopsy only cases with no surgery can have Reason for No Surgery code of 9 (instead of DCO cases). No surgery can be defined as 00 or 98 (instead of just 00).</event> <event version="SE11-001-19" user="greend" date="2005-05-25">Edit corrected for autopsy only cases to 98 valid for no surgery.</event> <event version="SE11-001-19" user="greend" date="2005-06-24">Edited modifed to skip autopsy only cases. They will be edited by If057.</event> <event version="SE11-001-20" user="greend" date="2006-03-30">The following check was added to the edit: If RX summ--surg prim site = 99, then reason for no surgery cannot be 0.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-16">If year of diagnosis is blank the edit is now skipped. Also documentation updated to correctly reflect new and old edit code (Previous documentation was incomplete).</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="SE21-021-08" user="beverung" date="2021-08-18" ref="68709">Added skip condition for IL for DX Year 2003 and for TX for DX Years 2003-2005.</event> <event version="SE22-022-03" user="beverung" date="2022-04-12" ref="68942">Added skip conditions for Type of Reporting Source = 7 (death certificate only).</event> <event version="SE23-023-01" user="secristc" date="2023-01-23" ref="69086">Added skip conditions for DX year > 2022.</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