edits.seer.internal.rules.IF557.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="IF557" name="Lymphovascular Invasion, Date of Dx (SEER)" tag="N2367" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2010') return true if (line.registryId == '0000001566') { if (line.dateOfDiagnosisYear == '2010') return true if ((line.dateOfDiagnosisYear > '2017' && line.dateOfDiagnosisYear < '2022') && !['00570','00590'].contains(line.schemaId)) return true } if (line.dateOfDiagnosisYear < '2018') { if ((line._csSchemaId == 'testis' || line._csSchemaId == 'penis') && !Functions.matches(line.lymphVascularInvasion, /^[019]$/)) return false else return line.lymphVascularInvasion == null || Functions.matches(line.lymphVascularInvasion, /^[0189]$/) } else { if ((line.schemaId == '00570' || line.schemaId == '00590') && !Functions.matches(line.lymphVascularInvasion, /^[0-49]$/)) return false else return Functions.matches(line.lymphVascularInvasion, /^[0-489]$/) }]]></expression> <message>Lymphovascular Invasion and Date DX conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: a. Year of Date of Diagnosis is < 2010, blank or invalid b. Registry is Texas (0000001566) and Date of Diagnosis is 2010 c. Registry is Texas (0000001566) and Date of Diagnosis is 2018-2021 and Schemaid is NOT Penis (00570) or Testis (00590) If year of Date of Diagnosis is 2010-2017: If CS Schema is Penis or Testis then LVI must be 0, 1, 9. For all other CS schemas, LVI must be 0, 1, 8, 9 or blank. If year of Date of Diagnosis is 2018+: If Schema ID is Penis (00570) or Testis (00590) then LVI must be 0, 1, 2, 3, 4, 9. For all other Schema IDs, LVI must be 0, 1, 2, 3, 4, 8, 9]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-04-21" ref="67341">Edit created.</event> <event version="SE18-018-01" user="schadega" date="2018-04-03" ref="67736">Changed logic to only allow certain values, and to ignore dates after 2017.</event> <event version="SE18-018-03" user="schadega" date="2018-07-23" ref="67953">Updated description and logic.</event> <event version="SE18-018-06" user="kirbyk" date="2018-08-24" ref="68025">Changed 'Lymph-vascular Invasion' to 'Lymphovascular Invasion' in name and documentation.</event> <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> <event version="SE21-021-08" user="beverung" date="2021-08-09" ref="68707">Add skip condition for TX for DX Year 2010.</event> <event version="SE21-021-11" user="beverung" date="2021-12-21" ref="68762">Added skip condition for TX for DX Year 2018-2019 for non Penis/Testis.</event> <event version="SE22-022-03" user="secristc" date="2022-04-21" ref="68962">Updated skip condition for TX to DX years 2018-2021.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>