edits.seer.internal.rules.IFN6280.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="IFN6280" name="Derived Summary Stage 2018, Regional Nodes Positive (SEER)" tag="N6280" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.derivedSummaryStage2018 == null || line.typeOfReportingSource == '7') return true if (line.schemaId == null || line.regionalNodesPositive == null) return true if (Functions.matches(line.regionalNodesPositive, /^0[1-9]|[1-8]\d|9[0-7]$/)) return !['0','1','2'].contains(line.derivedSummaryStage2018) return true]]></expression> <message>Regional Nodes Positive conflicts with Derived Summary Stage 2018</message> <description><![CDATA[This edit checks that Derived Summary Stage 2018 is coded consistently with Regional Nodes Positive, with positive nodes. 1. This edit is skipped for any of the following conditions: a. Diagnosis date is pre-2021, blank (unknown), or invalid b. Schema ID is blank c. Derived Summary Stage 2018 is blank d. Regional Nodes Positive is blank e. Type of Reporting Source = 7 2. If Regional Nodes Positive = 01-97, Derived Summary Stage 2018 must not = 0, 1, 2]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-22" ref="68603">Edit created.</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>