edits.seer.internal.rules.IFN6780.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="IFN6780" name="Surgery 2023, Phase I Rad, Surg/Rad Seq (SEER)" tag="N6780" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.rxSummSurgPrimSite2023 == null || line.rxSummScopeRegLnSur == null || line.rxSummSurgOthRegDis == null) return true boolean surgeryPerformed = Functions.matches(line.rxSummSurgPrimSite2023, /^[AB]([1-8]\d\d|900)$/) || Functions.matches(line.rxSummScopeRegLnSur, /^[2-7]$/) || Functions.matches(line.rxSummSurgOthRegDis, /^[1-5]$/) if (surgeryPerformed && Functions.matches(line.phase1RadiationTreatmentModality, /^0[1-9]|1[0-6]|98$/)) return Functions.matches(line.rxSummSurgRadSeq, /^[2-79]$/) boolean scopeNotPerformed = Functions.matches(line.rxSummScopeRegLnSur, /^[01]$/) || (line.rxSummScopeRegLnSur == '9' && (Functions.matches(line.primarySite, /^C(42[0134]|589|7[0127]\d|75[123]|76[1-8]|809)$/))) boolean surgeryNotPerformed = (Functions.matches(line.rxSummSurgPrimSite2023, /^[AB](000|990)|A980$/)) && scopeNotPerformed && line.rxSummSurgOthRegDis == '0' if (surgeryNotPerformed || line.phase1RadiationTreatmentModality == '00' || line.phase1RadiationTreatmentModality == '99') return line.rxSummSurgRadSeq == '0' return true]]></expression> <message>Conflict among surgery, radiation, and surgery radiation sequence items</message> <description><![CDATA[1. This edit is skipped for the following conditions: a. Any of the three surgery code fields (RX Summ--Surg Prim Site, RX Summ--Scope Reg LN Sur, RX Summ--Surg Oth Reg/Dis) is blank. b. Diagnosis date < 2023 or blank (unknown) or invalid If surgery was performed and if radiation was given (Phase I Radiation Treatment Modality = 01-16,98), then RX Summ--Surg/Rad Seq must specify sequence (codes 2-7, 9). Surgery is considered "performed" if ANY of the following three conditions are true: 1. RX Summ--Surg Prim Site 2023 = A100-A900, B100-B900 2. RX Summ--Scope Reg LN Sur = 2-7 3. RX Summ--Surg Oth Reg/Dis = 1-5 If surgery was not performed or no radiation was given (Phase I Radiation Treatment Modality = 00 or 99), then RX Summ--Surg/Rad Seq must specify no (0). Surgery is considered "not performed" if ALL of the following three conditions are true: 1. RX Summ--Surg Prim Site 2023 = A000, A980, A990, B000, B990 2. RX Summ--Scope Reg LN Sur = 0, 1 RX Summ--Scope Reg LN Sur = 9 and the following is true: Primary Site = C420, C421, C423, C424, C589, C700-C709,C710-C729, C751-C753, C761-C768, C770-C779, C809 3. RX Summ--Surg Oth Reg = 0]]></description> <history> <event version="SE23-023-05" user="shearerw" date="2023-06-26" ref="69234">Edit created.</event> <event version="SE24-024-01" user="kirbyk" date="2024-02-14" ref="69350">Removed check for Primary Site C760 with Schema ID 99999.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy