edits.seer.internal.rules.IFN5000.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="IFN5000" name="Behavior Code ICDO3, Summary Stage 2018, Schema ID (NAACCR)" tag="N5000" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId == null || line.schemaId == '99999' || line.behaviorCodeIcdO3 == null || line.summaryStage2018 == null) return true if (line.typeOfReportingSource == '7') return true String behavior = line.behaviorCodeIcdO3 if (Functions.matches(line.schemaId, /^0072[123]|0972[1234]$/)) { if ((behavior == '0' || behavior == '1') && line.summaryStage2018 != '8') return false if (line.summaryStage2018 == '8' && behavior != '0' && behavior != '1') return false } if (behavior == '2' && line.summaryStage2018 != '0') return false return behavior != '3' || (line.summaryStage2018 != '0' && line.summaryStage2018 != '8')]]></expression> <message>Summary Stage 2018 conflicts with Behavior Code ICD-O-3.</message> <description><![CDATA[This edit checks that Summary Stage 2018 is coded consistently with Behavior Code ICD-O-3, codes 2 and 3, for all cases. 1. This edit is skipped for any of the following conditions: a. Diagnosis date is pre-2018, blank (unknown), or invalid b. Schema ID is blank or 99999 c. Summary Stage 2018 is blank d. Behavior Code ICD-O-3 is blank e. Type of Reporting Source = 7 (death certificate only) 2. If Schema ID = 00721, 09721, 00722, 09722, 00723, 09723, or 09724 and Behavior Code ICD-O-3 = 0 or 1, then Summary Stage 2018 must = 8. 3. If Schema ID = 00721, 09721, 00722, 09722, 00723, 09723, or 09724, if Summary Stage 2018 = 8, then Behavior Code ICD-O-3 must = 0 or 1. 4. If Behavior Code ICD-O-3 = 2, then Summary Stage 2018 must = 0. 5. If Behavior Code ICD-O-3 = 3, then Summary Stage 2018 must not = 0 or 8.]]></description> <history> <event version="SE18-019-01" user="kirbyk" date="2019-04-02" ref="68149">Edit created.</event> <event version="SE18-019-03" user="beverung" date="2019-07-10" ref="68220">Added condition for Behavior = 3</event> <event version="SE18-019-05" user="kirbyk" date="2019-10-10" ref="68258">Edit is now skipped for Type of Reporting Source = 7 and for DX year < 2018.</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="SE18-020-02" user="beverung" date="2020-03-27" ref="68315">Changed edit name.</event> <event version="SE18-020-05" user="beverung" date="2020-07-22" ref="68375">Removed logic for Schema ID not = 00721, 00722, 00723.</event> <event version="SE21-021-09" user="beverung" date="2021-08-26" ref="68727">Updated to not allow Summary Stage 2018 = 8 when Behavior = 3.</event> <event version="SE23-023-01" user="cooki" date="2023-02-06" ref="69124">Updated logic for Schema IDs 09721, 09722, 09723, and 09724.</event> <event version="SE24-024-04" user="beverung" date="2024-05-02" ref="69462">Add skip condition for Schema ID = 99999.</event> </history> </rule>