edits.seer.internal.rules.IFN5020.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="IFN5020" name="Autopsy Only, RX 03-2022, Primary Site, 2018 (NPCR)" tag="N5020" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.dateOfDiagnosisYear > '2022' || line.schemaId == null || line.typeOfReportingSource != '6') return true boolean primarySitesFor2A = Functions.matches(line.primarySite, /^C(42[0134]|589|7([0127]\d|5[123]|6[1-8])|809)$/) if (line.rxSummSurgPrimSite != '00' && line.rxSummSurgPrimSite != '98') return false if (primarySitesFor2A) { if (line.rxSummScopeRegLnSur != '9') return false } else if (line.primarySite == 'C760') { if (line.rxSummScopeRegLnSur != '0' && line.rxSummScopeRegLnSur != '9') return false } else { if (line.rxSummScopeRegLnSur != '0') return false } if (line.rxSummSurgOthRegDis != '0') return false if (line.reasonForNoSurgery != '1' && line.reasonForNoSurgery != '9') return false if (line.rxSummBrm != '00') return false if (line.rxSummChemo != '00') return false if (line.rxSummHormone != '00') return false if (line.rxSummOther != '0') return false if (line.rxSummTransplntEndocr != '00') return false if (line.phase1RadiationTreatmentModality != '00') return false if (line.rxSummSurgRadSeq != '0') return false if (line.rxSummSystemicSurSeq != '0') return false return true]]></expression> <message>Conflict between Autopsy Only & RX data items</message> <description><![CDATA[This edit verifies that surgery fields are coded appropriately by Schema ID and/or Primary Site code for autopsy only cases. This edit is skipped for any of the following: a. Year of Date of Diagnosis is less than 2018 or greater than 2022, blank(unknown), or invalid. b. Schema ID is blank If Type of Reporting Source is 6 (autopsy only): 1. RX Summ--Surg Prim Site 03-2022 must = 00 or 98 2. RX Summ--Scope Reg LN Sur A. For the following primary sites, RX Summ--Scope Reg LN Sur must = 9: C420, C421, C423, C424, C589, C700-C709, C710-C729, C751-C753, C761-C768, C770-C779, C809 B. For the following primary site, RX Summ--Scope Reg LN Sur must = 0 or 9: C760 C. For all other sites/histologies - RX Summ--Scope Reg LN Sur must = 0 3. RX Summ--Surg Oth Reg/Dis must = 0 4. Reason for No Surgery must = 1 or 9 5. RX Summ--BRM must = 00 6. RX Summ--Chemo must = 00 7. RX Summ--Hormone must = 00 8. RX Summ--Other must = 0 9. RX Summ--Transplnt/Endocr = 00 10. Phase I Radiation Treatment Modality must = 00 11. RX Summ--Surg/Rad Seq must = 0 12. RX Summ--Systemic/Sur Seq must = 0]]></description> <history> <event version="SE18-020-02" user="beverung" date="2020-03-25" ref="68295">Edit created.</event> <event version="SE21-021-04" user="smithm" date="2021-04-16" ref="68641">Add 2021 logic</event> <event version="SE21-021-04" user="kirbyk" date="2021-05-12" ref="68667">Re-writing condition 2 to make sure that later conditions are not skipped.</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="secristc" date="2022-02-22" ref="68864">Removed some logic for RX Summ--Scope Reg LN Sur.</event> <event version="SE22-022-03" user="beverung" date="2022-04-27" ref="68948">Change edit name and update edit logic for 2022.</event> <event version="SE23-023-01" user="secristc" date="2023-02-15" ref="69095">Changed name, skip conditions, and added valid site/schema ID.</event> <event version="SE24-024-04" user="beverung" date="2024-05-02" ref="69461">Updated RX Summ--Scope Reg LN Sur logic for Primary Site C760.</event> </history> </rule>