edits.seer.internal.rules.IFN2827.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="IFN2827" name="Derived Summary Stage 2018, Date of DX (SEER)" tag="N2827" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.registryId == '0000001563' && line.dateOfDiagnosisYear == '2018') return true if ('0000001565' == line.registryId && line.dateOfDiagnosisYear > '2017' && line.dateOfDiagnosisYear < '2023') return true if ('0000001566' == line.registryId && line.dateOfDiagnosisYear > '2017' && line.dateOfDiagnosisYear < '2022') return true if (line.dateOfDiagnosisYear < '2018') return line.derivedSummaryStage2018 == null return line.derivedSummaryStage2018 != null]]></expression> <message>Conflict between Date of Diagnosis and Derived items</message> <description><![CDATA[The purpose of this edit is to verify that Derived Summary Stage 2018 required by SEER is calculated (not blank) for cases diagnosed 2018 and later. This edit is skipped if year of Date of Diagnosis is blank or invalid. This edit is skipped if Date of Diagnosis is 2018 and Registry ID = 0000001563 (Massachusetts) This edit is skipped if Date of Diagnosis is 2018-2022 and Registry ID = 0000001565 (Illinois) This edit is skipped if Date of Diagnosis is 2018-2021 and Registry ID = 0000001566 (Texas) 1. If year of Date of Diagnosis is pre-2018, then Derived Summary Stage 2018 must be blank. 2. If year of Date of Diagnosis is 2018+, then Derived Summary Stage 2018 must not be blank.]]></description> <history> <event version="SE18-018-02" user="kirbyk" date="2018-05-29" ref="67785">Edit created.</event> <event version="SE18-018-03" user="kirbyk" date="2018-07-20" ref="67961">Removed unnecessary dependency.</event> <event version="SE21-021-03" user="smithm" date="2021-03-03" ref="68597">Added skip condition for MA cases diagnosed in 2018.</event> <event version="SE21-021-07" user="kirbyk" date="2021-07-20" ref="68692">Added skip condition for IL and TX cases diagnosed 2018-2020.</event> <event version="SE22-022-04" user="secristc" date="2022-05-03" ref="68987">Updated skip condition for IL cases diagnosed 2018-2022, for TX cases diagnosed 2018-2021.</event> </history> </rule>