edits.seer.internal.rules.IFN4214.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="IFN4214" name="Gleason Score Clinical, Grade Clinical (NAACCR)" tag="N4214" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId != '00580' || line.gradeClinical == null) return true String gleason = line.gleasonScoreClinical if (gleason == null || gleason == 'X8' || gleason == 'X9') return true if (Functions.matches(gleason, /^0[1-6]$/)) return line.gradeClinical == '1' else if (gleason == '07') return line.gradeClinical == '2' || line.gradeClinical == '3' || line.gradeClinical == 'E' else if (gleason == '08') return line.gradeClinical == '4' else if (gleason == '09' || gleason == '10') return line.gradeClinical == '5' return true]]></expression> <message>Gleason Score Clinical and Grade Clinical.</message> <description><![CDATA[This edit verifies that Grade Clinical is coded consistently with Gleason Score Clinical SSDI. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2018, blank (unknown), or invalid. b. Schema ID is not 00580 c. Gleason Score Clinical is blank, X8, or X9. d. Grade Clinical is blank. 2. If Gleason Score Clinical = 1, 2, 3, 4, 5, or 6, Then Grade Clinical must = 1 3. If Gleason Score Clinical = 7 Then Grade Clinical must = 2 or 3 or E 4. If Gleason Score Clinical = 8 Then Grade Clinical must = 4 5. If Gleason Score Clinical = 9 or 10 Then Grade Clinical must = 5]]></description> <history> <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy