edits.seer.internal.rules.IFN6904.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="IFN6904" name="Macroscopic Evaluation of Mesorectum, Rectum, Surgery 2023 (SEER)" tag="N6904" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.primarySite != 'C209' || line.macroscopicEvalOfTheMesorectum == null || line.rxSummSurgPrimSite2023 == null || line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7') return true if (Functions.matches(line.rxSummSurgPrimSite2023, /^A000|A1[0-4]\d|A150|A2[0-7]\d|A280$/)) return line.macroscopicEvalOfTheMesorectum == '00' if (line.rxSummSurgPrimSite2023 == 'A990') return line.macroscopicEvalOfTheMesorectum == '99' return true]]></expression> <message>Conflict between Macroscopic Evaluation of Mesorectum and RX Summ--Surg Prim Site 2023 for Rectum</message> <description><![CDATA[Purpose: This edit verifies that Macroscopic Evaluation of Mesorectum is coded consistently with RX Summ--Surg Prim Site 2023 for Rectum. 1. This edit is skipped if any of the following conditions is true: a. Year of Date of Diagnosis is less than 2023, blank (unknown), or invalid b. Primary Site is not C209 c. Macroscopic Evaluation of Mesorectum is blank d. RX Summ--Surg Prim Site 2023 is blank e. Type of Reporting Source = 6 (Autopsy Only) or 7 (Death Certificate Only) 2. If RX Summ--Surg Prim Site 2023 = A000 (no surgery), A100-A150 (tumor destruction without pathology specimen), or A200-A280 (local excision) Macroscopic Evaluation of Mesorectum must = 00 (Patient did not receive TME) 3. If RX Summ-Surg Prim Site 2023 = A990 (unknown if surgery performed), Macroscopic Evaluation of Mesorectum must = 99 (Unknown if TME performed)]]></description> <history> <event version="SE23-023-05" user="cooki" date="2023-06-21" ref="69232">Edit created.</event> <event version="SE24-024-01" user="shearerw" date="2024-02-06" ref="69362">Add logic for code A990 for RX Summ-Surg Prim Site 2023.</event> <event version="SE24-024-04" user="beverung" date="2024-04-12" ref="69450">Don't allow Macroscopic Evaluation of Mesorectum must = 99 for condition 2.</event> <event version="SE24-024-10" user="beverung" date="2024-09-05" ref="69533">Update error message.</event> </history> </rule>