edits.seer.internal.rules.IFN6746.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="IFN6746" name="Autopsy Only, RX 2023, Primary Site (NPCR)" tag="N6746" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || 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.rxSummSurgPrimSite2023 != 'A000' && line.rxSummSurgPrimSite2023 != 'B000' && line.rxSummSurgPrimSite2023 != 'A980') return false if (primarySitesFor2A) { if (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 treatment 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 2023, blank(unknown), or invalid. b. Schema ID is blank If Type of Reporting Source is 6 (autopsy only): 1. RX Summ--Surg Prim Site 2023 must = A000, B000, or A980 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 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="SE23-023-05" user="cooki" date="2023-06-20" ref="69231">Edit created.</event> <event version="SE24-024-01" user="beverung" date="2024-02-08" ref="69330">Requirement for code 9 for C760, Schema ID 99999 removed.</event> <event version="SE24-024-06" user="cooki" date="2024-06-24" ref="69479">Changed "surgery" to "treatment" in description.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy