edits.seer.internal.rules.IFN6078.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.
The newest version!
<rule id="IFN6078" name="Gleason Patterns Pathological, EOD Prostate Pathologic Extension (SEER)" tag="N6078" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.schemaId != '00580' || line.gleasonPatternsPathological == null || line.prostatePathologicalExtension == null) return true if (line.gleasonPatternsPathological == 'X7') { if (line.dateOfDiagnosisYear < '2022') return ['900', '950'].contains(line.prostatePathologicalExtension) else return line.prostatePathologicalExtension == '900' } if (line.prostatePathologicalExtension == '900') return line.gleasonPatternsPathological == 'X7' else if (line.prostatePathologicalExtension == '950') { if (line.dateOfDiagnosisYear < '2022') return line.gleasonPatternsPathological == 'X7' || line.gleasonPatternsPathological == 'X9' else return line.gleasonPatternsPathological == 'X9' } return true]]></expression> <message>Gleason Patterns Pathological conflicts with EOD Prostate Pathologic Extension.</message> <description><![CDATA[This edit verifies that Gleason Patterns Pathological is coded consistently with EOD Prostate Pathologic Extension. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2019, blank (unknown), or invalid. b. Schema ID is not 00580 c. EOD Prostate Pathologic Extension is blank. d. Gleason Patterns Pathological is blank 2. If Gleason Patterns Pathological = X7 (no prostatectomy/autopsy performed) then EOD Prostate Pathologic Extension must = 900 (no prostatectomy or autopsy performed) or 950 (Prostatectomy performed, but not first course of treatment for example performed after disease progression) For 2022+, if Gleason Patterns Pathological = X7, EOD Prostate Pathologic Extension must = 900 3. If EOD Prostate Pathologic Extension = 900 (no prostatectomy or autopsy performed) then Gleason Patterns Pathological must = X7 (no prostatectomy/autopsy performed) 4. If EOD Prostate Pathologic Extension = 950 (Prostatectomy performed, but not first course of treatment for example performed after disease progression) then Gleason Patterns Pathological must = X7 (no prostatectomy/autopsy performed) or X9 (Not documented in medical record, Gleason Score Pathological not assessed or unknown if assessed For 2022+, if EOD Prostate Pathologic Extension = 950, Gleason Patterns Pathological must = X9.)]]></description> <history> <event version="SE18-019-01" user="kirbyk" date="2019-04-05" ref="68155">Edit created.</event> <event version="SE18-020-05" user="beverung" date="2020-07-30" ref="68397">Update name and change Prostate Pathologic Extension to EOD Prostate Pathologic Extension.</event> <event version="SE21-021-03" user="beverung" date="2021-02-17" ref="68566">Add 950 as valid code for X7, and X9 as valid code for 950</event> <event version="SE22-022-01" user="secristc" date="2022-01-28" ref="68812">Added logic for 2022+ for Gleason Patterns Pathological code X7 and EOD Prostate Pahtologic Extension code 950</event> </history> </rule>