edits.seer.internal.rules.IFN5050.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.
The newest version!
<rule id="IFN5050" name="Invasion Beyond Capsule, Kidney, Summary Stage 2018 (NAACCR)" tag="N5050" 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.invasionBeyondCapsule == null || line.invasionBeyondCapsule == '8') return true return !Functions.matches(line.invasionBeyondCapsule, /^[13-5]$/) || !Functions.matches(line.summaryStage2018, /^[013]$/)]]></expression> <message>Invasion Beyond Capsule conflicts with Summary Stage 2018.</message> <description><![CDATA[Purpose: This edit verifies that Invasion Beyond Capsule SSDI is coded consistently with Summary Stage 2018. 1. This edit is skipped if any of the following conditions is true: a. Year of Date of Diagnosis is less than 2019, blank (unknown), or invalid b. Schema ID is not 00600 c. Invasion Beyond Capsule is blank or 8 (not applicable) d. Summary Stage 2018 is blank e. Type of Reporting Source = 7 2. If Invasion Beyond Capsule = 1,3-5 (invasion beyond capsule), then Summary Stage 2018 must not = 0, 1, or 3 (in situ, local, or regional by nodal involvement only).]]></description> <history> <event version="SE18-019-01" user="kirbyk" date="2019-04-03" ref="68149">Edit created.</event> <event version="SE18-019-07" user="beverung" date="2019-11-18" ref="68270">Update error message to say Summary Stage 2018 instead of Schema ID.</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>