edits.seer.internal.rules.IFN3987.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="IFN3987" name="TNM Edition Number, AJCC ID (COC)" tag="N3987" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.tnmEditionNumber == null || line.ajccId == null || line.typeOfReportingSource == '7') return true if (line.ajccId == 'XX') return line.tnmEditionNumber == '88' else return line.dateOfDiagnosisYear < '2022' || line.tnmEditionNumber != '88']]></expression> <message>TNM Edition Number must = 88 for this AJCC ID.</message> <description><![CDATA[This edit verifies the coding of TNM Edition Number by AJCC ID. 1. This edit is skipped if any of the following conditions is true: a. Year of Date of Diagnosis is less than 2018, blank (unknown), or invalid b. TNM Edition Number is blank c. AJCC ID is blank d. Type of Reporting Source = 7 (death certificate only) 2. The edit checks that TNM Edition Number is coded 88 for AJCC ID XX. 3. The edit checks that TNM Edition Number is not coded 88 if AJCC ID not blank and not XX, for cases diagnosed 2022+.]]></description> <history> <event version="SE18-018-03" user="kirbyk" date="2018-07-11" ref="67932">Edit created.</event> <event version="SE22-022-01" user="beverung" date="2022-01-28" ref="68885">Edit checks that TNM Edition Number is not 88 if AJCC ID is not blank and DX Year is 2022+.</event> <event version="SE23-023-01" user="secristc" date="2023-02-17" ref="69168">Added skip condition for type of reporting source = 7.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>