edits.seer.internal.rules.IFN6367.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.
The newest version!
<rule id="IFN6367" name="RX Summ--Surg Oth Reg/Dis, Schema ID, Primary Site, 2018 (NAACCR)" tag="N6367" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId == null) return true if (line.rxSummSurgOthRegDis == null || line.primarySite == null || line.typeOfReportingSource == '7') return true boolean primarySiteCondition = Functions.matches(line.primarySite, /^C(42[0134]|7(6[0-8]|7\d)|809)$/) && line.schemaId != '00060' if (primarySiteCondition && !['0','1','9'].contains(line.rxSummSurgOthRegDis)) return false return true]]></expression> <message>RX Summ--Surg Oth Reg/Dis must = 0, 1, or 9 for this primary site</message> <description><![CDATA[9731,This edit verifies that RX Summ--Surg Oth Reg/Dis is coded appropriately by Schema ID and/or Primary Site code. 1. The edit is skipped for any of the following conditions: a. Date of Diagnosis before 2018, blank (unknown), or invalid. b. Schema ID is blank c. RX Summ--Surg Oth Reg/Dis is blank. d. Primary Site is blank e. Type of Reporting Source = 7 (Death Certificate Only) 2. RX Summ--Surg Oth Reg/Dis must = 0, 1, or 9 for Any case with Primary Site code = C420, C421, C423, C424, C760-C768 (excluding Schema ID 00060, C760), C770-C779, C809]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-31" ref="68636">Edit created.</event> <event version="SE21-021-04" user="kirbyk" date="2021-05-14" ref="68664">Updated Schema ID exclusion for condition #2.</event> <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68897">Update edit name to match new NAACCR translated edit.</event> <event version="SE22-022-01" user="beverung" date="2022-02-25" ref="68820">Update to run for DX Years 2018 and later. Add DCO skip condition and remove DCO logic.</event> </history> </rule>