edits.seer.internal.rules.IFN5051.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="IFN5051" name="Ipsilateral Adrenal Gland Involvement, Kidney, Summary Stage 2018 (NAACCR)" tag="N5051" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.summaryStage2018 == null || line.typeOfReportingSource == '7') return true if (line.schemaId != '00600' || line.ipsilateralAdrenalGlandInvolve == null || line.ipsilateralAdrenalGlandInvolve == '8') return true if (line.ipsilateralAdrenalGlandInvolve == '1') return !Functions.matches(line.summaryStage2018, /^[013]$/) else if (line.ipsilateralAdrenalGlandInvolve == '2' || line.ipsilateralAdrenalGlandInvolve == '3') return line.summaryStage2018 == '7' return true]]></expression> <message>Ipsilateral Adrenal Gland Involvement conflicts with Summary Stage 2018.</message> <description><![CDATA[This edit verifies that the Ipsilateral Adrenal Gland Involvement SSDI is coded consistently with Summary Stage 2018. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2019, blank (unknown), or invalid. b. Schema ID is not 00600. c. Ipsilateral Adrenal Gland Involvement is blank or 8 (not applicable). d. Summary Stage 2018 is blank e. Type of Reporting Source = 7 1. If Ipsilateral Adrenal Gland Involvement = 1 (contiguous involvement), then Summary Stage 2018 must not = 0, 1, or 3 (in situ, local, or regional by nodal involvement only) 3. If Ipsilateral Adrenal Gland Involvement = 2 or 3 (discontiguous involvement), then Summary Stage 2018 must = 7.]]></description> <history> <event version="SE18-019-01" user="kirbyk" date="2019-04-03" ref="68149">Edit created.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE22-022-04" user="secristc" date="2022-05-03" ref="68965">Added skip condition for Type of Reporting Source = 7.</event> </history> </rule>