edits.seer.internal.rules.IFN6642.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="IFN6642" name="p16, Schema ID, Required, CoC Flag (SEER)" tag="N6642" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.dateOfDiagnosisYear > '2022' || line.schemaId == null || line.typeOfReportingSource == '7' || line.cocAccreditedFlag != '1') return true if (('0000001565' == line.registryId || '0000001566' == line.registryId) && line.dateOfDiagnosisYear == '2021') return true if (line.schemaId == '09520') return line.p16 != null && line.p16 != '8' return true]]></expression> <message>p16 must not be blank or not applicable for Schema ID case diagnosed 2021 and later</message> <description><![CDATA[1. The edit is skipped for any of the following conditions: a. Date of Diagnosis pre-2021 or after 2022, blank (unknown), or invalid. b. Schema ID is blank. c. Type of Reporting Source = 7 (Death Certificate Only) d. CoC Accredited Flag is not 1 e. Registry ID = 0000001565 (Illinois) or 0000001566 (Texas) and Year of Diagnosis = 2021 p16 is required by SEER only for analytic case from CoC accredited facility 2. This edit verifies that p16 is not "8" (not applicable) and not blank for the Schema IDs for which it is required by a standard setter. Required for Schema ID: 09520: Cervix, 9th Edition]]></description> <history> <event version="SE22-022-01" user="secristc" date="2022-02-25" ref="68895">Edit created.</event> <event version="SE22-022-09" user="secristc" date="2022-08-09" ref="69018">Added skip condition for IL and TX when DX year = 2021.</event> <event version="SE23-023-01" user="cooki" date="2023-02-06" ref="69143">Added skip condition for DX year 2023+.</event> </history> </rule>