edits.seer.internal.rules.IFN3969.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="IFN3969" name="Reason for No Radiation, PhI Radiation Treatment Modality (NAACCR)" tag="N3969" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.phase1RadiationTreatmentModality == null || line.reasonForNoRadiation == null || line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018') return true if (line.reasonForNoRadiation == '0') return Functions.matches(line.phase1RadiationTreatmentModality, /^0[1-9]|1[0-6]|98$/) if (Functions.matches(line.reasonForNoRadiation, /^[125-7]$/)) return line.phase1RadiationTreatmentModality == '00' if (line.reasonForNoRadiation == '8') return line.phase1RadiationTreatmentModality == '00' || line.phase1RadiationTreatmentModality == '99' if (line.reasonForNoRadiation == '9') return line.phase1RadiationTreatmentModality == '99' return true]]></expression> <message>Phase I Radiation Treatment Modality conflicts with Reason for No Radiation</message> <description><![CDATA[1. This edit is skipped for the following conditions: a. Reason for No Radiation is blank b. Phase I Radiation Treatment Modality is blank c. Diagnosis date is pre-2018, blank (unknown), or invalid. 2. If Reason for No Radiation = 0 (radiation performed), Phase I Radiation Treatment Modality must = 01-16,98 (radiation performed) 3. If Reason for No Radiation = 1,2,5,6, or 7 (no radiation performed) Phase I Radiation Treatment Modality must = 00 (no radiation performed) 4. If Reason for No Radiation = 8(radiation recommended, unknown if performed) Phase I Radiation Treatment Modality must = 00 (no radiation performed) or 99 (unknown if radiation performed) 5. If Reason for No Radiation = 9 (unknown if radiation performed) Phase I Radiation Treatment Modality must = 99 (unknown if radiation performed) NOTE: Phase I Radiation Modality code 99 means either unknown radiation treatment modality or unknown if radiation performed]]></description> <history> <event version="SE18-018-02" user="schadega" date="2018-05-29" ref="67793">Edit created.</event> <event version="SE18-018-03" user="schadega" date="2018-07-20" ref="67971">Update logic and description.</event> <event version="SE18-018-05" user="kirbyk" date="2018-08-14" ref="67999">Updated valid codes for Reason for No Radiation = 0.</event> <event version="SE18-019-01" user="kirbyk" date="2019-03-27" ref="68139">Phase I Radiation Treatment Modality = 00 is now valid for Reason No Radiation = 8.</event> <event version="SE21-021-01" user="kirbyk" date="2021-01-08" ref="68447">Updated valid codes for Reason for No Radiation = 0.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-03" ref="69326">Removed edit dependencies.</event> </history> </rule>