edits.seer.internal.rules.IF554.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="IF554" name="Tumor Size Pathologic, Date of Diagnosis (SEER)" tag="N2407" java-path="lines.line" category="inter-field" depends="Tumor_Size_Pathologic,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear <= '2017' && line.dateOfDiagnosisYear >= '2016' && line.registryId == '0000001561') return true if (line.dateOfDiagnosisYear <= '2018' && line.dateOfDiagnosisYear >= '2016' && ['0000001562', '0000001563'].contains(line.registryId)) return true if (line.dateOfDiagnosisYear <= '2021' && line.dateOfDiagnosisYear >= '2016' && line.registryId == '0000001566') return true if (line.dateOfDiagnosisYear <= '2022' && line.dateOfDiagnosisYear >= '2016' && line.registryId == '0000001565') return true if (line.dateOfDiagnosisYear < '2016') return line.tumorSizePathologic == null if (line.dateOfDiagnosisYear > '2015' && line.dateOfDiagnosisYear < '2024') return line.tumorSizePathologic != null return true]]></expression> <message>Tumor Size Pathologic, Date DX conflict</message> <description><![CDATA[If year of Date of Diagnosis is blank, this edit is skipped. If year of Date of Diagnosis is 2016-2017 and Registry ID is 0000001561 (Idaho), this edit is skipped. If year of Date of Diagnosis is 2016-2018 and Registry ID is 0000001563 (Massachusetts) or 0000001562 (New York), this edit is skipped. If year of Date of Diagnosis is 2016-2021 and Registry ID is 0000001566 (Texas), this edit is skipped If year of Date of Diagnosis is 2016-2022 and Registry ID is 0000001565 (Illinois), this edit is skipped If year of Date of Diagnosis is greater than 2015 and less than 2024, then Tumor Size Pathologic cannot be blank. If year of Date of Diagnosis is less than 2016, then Tumor Size Pathologic must be blank.]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-04-12" ref="67320">Edit created.</event> <event version="SE18-018-01" user="schadega" date="2018-04-11" ref="67741">Edit name change.</event> <event version="SE18-018-12" user="kirbyk" date="2019-01-29" ref="68087">Edit is skipped for DX years 2016-2017 for ID, NY, and MA.</event> <event version="SE18-020-01" user="beverung" date="2020-01-28" ref="68274">Edit is skipped for DX years 2016-2018 for MA.</event> <event version="SE18-020-01" user="beverung" date="2020-02-24" ref="68285">Edit is skipped for DX years 2016-2018 for NY.</event> <event version="SE21-021-07" user="kirbyk" date="2021-07-20" ref="68690">Edit is skipped for DX years 2016-2020 for IL and TX.</event> <event version="SE22-022-03" user="secristc" date="2022-04-20" ref="68958">Edit is skipped for DX years 2016-2022 for IL, 2016-2021 for TX.</event> <event version="SE24-024-03" user="cooki" date="2024-03-21" ref="69426">Added 2024 limit to logic.</event> <event version="SE24-024-04" user="beverung" date="2024-04-24" ref="69453">Allow blank and non-blank values for DX Year 2024 and later.</event> </history> </rule>