edits.seer.internal.rules.IFN3095.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="IFN3095" name="PhI, II, III Radiation Treatment Modality, External Beam Planning Tech (COC)" tag="N3095" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018') return true if (line.phase1RadiationTreatmentModality == null && line.phase2RadiationTreatmentModality == null && line.phase3RadiationTreatmentModality == null) return true if (line.phase1RadiationExternalBeamTech == null && line.phase2RadiationExternalBeamTech == null && line.phase3RadiationExternalBeamTech == null) return true if (line.phase1RadiationTreatmentModality == '02' && !Functions.matches(line.phase1RadiationExternalBeamTech, /^0[1-9]|10$/)) return false else if (line.phase1RadiationTreatmentModality == '03' && !Functions.matches(line.phase1RadiationExternalBeamTech, /^0[14-6]$/)) return false else if (line.phase1RadiationTreatmentModality == '04' && !Functions.matches(line.phase1RadiationExternalBeamTech, /^0[1345]$/)) return false else if (Functions.matches(line.phase1RadiationTreatmentModality, /^0[156]$/) && !Functions.matches(line.phase1RadiationExternalBeamTech, /^0[1-9]|10|98$/)) return false else if (Functions.matches(line.phase1RadiationTreatmentModality, /^0[7-9]||1[013-6]$/) && line.phase1RadiationExternalBeamTech != '88') return false else if (line.phase1RadiationTreatmentModality == '12' && line.phase1RadiationExternalBeamTech == '88') return false if (line.phase2RadiationTreatmentModality == '02' && !Functions.matches(line.phase2RadiationExternalBeamTech, /^0[1-9]|10$/)) return false else if (line.phase2RadiationTreatmentModality == '03' && !Functions.matches(line.phase2RadiationExternalBeamTech, /^0[14-6]$/)) return false else if (line.phase2RadiationTreatmentModality == '04' && !Functions.matches(line.phase2RadiationExternalBeamTech, /^0[1345]$/)) return false else if (Functions.matches(line.phase2RadiationTreatmentModality, /^0[156]$/) && !Functions.matches(line.phase2RadiationExternalBeamTech, /^0[1-9]|10|98$/)) return false else if (Functions.matches(line.phase2RadiationTreatmentModality, /^0[7-9]||1[013-6]$/) && line.phase2RadiationExternalBeamTech != '88') return false else if (line.phase2RadiationTreatmentModality == '12' && line.phase2RadiationExternalBeamTech == '88') return false if (line.phase3RadiationTreatmentModality == '02' && !Functions.matches(line.phase3RadiationExternalBeamTech, /^0[1-9]|10$/)) return false else if (line.phase3RadiationTreatmentModality == '03' && !Functions.matches(line.phase3RadiationExternalBeamTech, /^0[14-6]$/)) return false else if (line.phase3RadiationTreatmentModality == '04' && !Functions.matches(line.phase3RadiationExternalBeamTech, /^0[1345]$/)) return false else if (Functions.matches(line.phase3RadiationTreatmentModality, /^0[156]$/) && !Functions.matches(line.phase3RadiationExternalBeamTech, /^0[1-9]|10|98$/)) return false else if (Functions.matches(line.phase3RadiationTreatmentModality, /^0[7-9]||1[013-6]$/) && line.phase3RadiationExternalBeamTech != '88') return false else if (line.phase3RadiationTreatmentModality == '12' && line.phase3RadiationExternalBeamTech == '88') return false return true]]></expression> <message>Radiation Modality and External Beam Planning Tech conflict</message> <description><![CDATA[This edit check consistency of coding for Radiation Treatment Modality and External Beam Planning Tech for all 3 phases of radiation. 1. The edit is skipped for the following conditions: a. Phase I, II, and III Radiation Treatment Modality data items are all blank. b. Phase I, II, and III Radiation External Beam Planning Tech data items are all blank. c. Diagnosis date pre-2018, blank (unknown), or invalid. 2. For each phase of radiation, if Radiation Treatment Modality = 01-06 (external beam, Radiation External Beam Planning Tech must = 01-10, 98 (specified external beam planning techniques or other, NOS) 3. For each phase of radiation, if Radiation Treatment Modality = 07-11 (brachytherapy) or 13-16 (radioisotopes), Radiation External Beam Planning Tech must = 88 (not applicable) 4. For each phase of radiation, if Radiation Treatment Modality = 02 (photons) Radiation External Beam Planning Tech must = 01-10 5. For each phase of radiation, if Radiation Treatment Modality = 03 (protons) Radiation External Beam Planning Tech must = 01, 04-06 6. For each phase of radiation, if Radiation Treatment Modality = 04 (electrons) Radiation External Beam Planning Tech must = 01, 03-05 Radiation External Beam Planning Tech codes: 01: External beam, NOS 02: Low energy x-ray/photon therapy 03: 2-D therapy 04: Conformal or 3-D conformal therapy 05: Intensity modulated therapy 06: Stereotactic radiotherapy or radiosurgery, NOS 7. For each phase of radiation, if Radiation Treatment Modality = 12 (electronic brachytherapy) Radiation External Beam Planning Tech must not = 88]]></description> <history> <event version="SE18-018-10" user="kirbyk" date="2018-11-30" ref="68063">Edit created.</event> <event version="SE18-019-01" user="kirbyk" date="2019-03-27" ref="68131">Edit no longer checks Radiation Treatment Modality = 07-12.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE21-021-03" user="smithm" date="2021-02-25" ref="68572">Add more restrictive logic.</event> <event version="SE22-022-03" user="secristc" date="2022-04-26" ref="68968">Added 05 as valid Radiation Beam Planning Tech code, added code definition to description</event> <event version="SE23-023-01" user="shearerw" date="2023-02-15" ref="69157">Changed name. Updated not applicable Radiation External Beam Tech to include brachytherapy.</event> <event version="SE23-023-02" user="kirbyk" date="2023-04-11" ref="69214">Re-wrote edit to correctly check Phase 2 and Phase 3; added logic for Radiation Treatment Modality = 12.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy