edits.seer.internal.rules.IFN5032.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="IFN5032" name="ER Summary, Breast, ER Percent (NAACCR)" tag="N5032" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.estrogenReceptorSummary == null) return true if (line.estrogenReceptorPercntPosOrRange == null || line.estrogenReceptorPercntPosOrRange == 'XX8') return true if (Functions.matches(line.estrogenReceptorPercntPosOrRange, /^0(0[1-9]|[1-9]\d)|100|R([1-9]\d)$/)) return line.estrogenReceptorSummary != '0' return true]]></expression> <message>Estrogen Receptor Summary and Estrogen Receptor Percent Positive or Range conflict for 2019+</message> <description><![CDATA[This edit verifies consistency of coding of Estrogen Receptor Summary with Estrogen Receptor Percent Positive or Range. 1. The edit is skipped for any of the following conditions: a. Date of Diagnosis is pre 2019, blank (unknown), or invalid. b. Estrogen Receptor Summary is blank. c. Estrogen Receptor Percent Positive or Range is blank or not applicable 2. If Estrogen Receptor Percent Positive or Range = 001-100, R10-R99, then Estrogen Receptor Summary must not = 0 (negative).]]></description> <history> <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> </history> </rule>