edits.seer.internal.rules.IFN6752.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="IFN6752" name="EOD Primary Tumor, Testis, RX Summ--Surg Prim Site 2023 (SEER)" tag="N6752" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.eodPrimaryTumor == null || line.rxSummSurgPrimSite2023 == null) return true if (line.typeOfReportingSource == '7' || line.schemaId == null || line.schemaId != '00590') return true return !Functions.matches(line.eodPrimaryTumor, /^[1-5]00|150$/) || Functions.matches(line.rxSummSurgPrimSite2023, /^A[348]00$/)]]></expression> <message>Conflict between EOD Primary Tumor and RX Summ--Surg Prim Site 2023</message> <description><![CDATA[This edit verifies that EOD Primary Tumor is coded consistently with RX Summ-- Surg Prim Site 2023 for Schema ID 00590, Testis. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2023, blank (unknown), or invalid. b. Schema ID is blank or not 00590 c. EOD Primary Tumor is blank d. RX Summ--Surg Prim Site 2023 is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Primary Tumor = 100, 150, 200, 300, 400, or 500 (codes requiring orchiectomy) then RX Summ--Surg Prim Site 2023 must = A300, A400, or A800 (orchiectomy)]]></description> <history> <event version="SE23-023-05" user="cooki" date="2023-06-20" ref="69231">Edit created.</event> </history> </rule>