edits.seer.internal.rules.IFN6217.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="IFN6217" name="Estrogen Receptor Summary, Percent Positive, Breast (NAACCR)" tag="N6217" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if(line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || line.schemaId != '00480') return true if (line.estrogenReceptorSummary == null || line.typeOfReportingSource == '7') return true if (line.estrogenReceptorPercntPosOrRange == null || Functions.matches(line.estrogenReceptorPercntPosOrRange, /^XX[789]$/)) return true if (line.estrogenReceptorSummary == '0') return line.estrogenReceptorPercntPosOrRange == '000' else if (line.estrogenReceptorSummary == '1') return Functions.matches(line.estrogenReceptorPercntPosOrRange, /^00[1-9]|0[1-9]\d|100|R[1-9]\d$/) else if (line.estrogenReceptorSummary == '7' || line.estrogenReceptorSummary == '9') return line.estrogenReceptorPercntPosOrRange == 'XX7' || line.estrogenReceptorPercntPosOrRange == 'XX9' return true]]></expression> <message>Estrogen Receptor Summary and Estrogen Receptor Percent Positive or Range conflict for 2021+</message> <description><![CDATA[This edit checks on consistency of coding between the Estrogen Receptor Summary SSDI codes 0,1,7, and 9, and Estrogen Receptor Percent Positive or Range SSDI for Schema ID 00480, Breast. 1. The edit is skipped for the following conditions: a. Date of Diagnosis is blank (unknown), invalid, or before 2021. b. Schema ID is blank or not 00480. c. Estrogen Receptor Summary is blank d. Estrogen Receptor Percent Positive or Range is blank or XX7 (test done, results not in chart, XX8 (not applicable), or XX9 (not documented in medical record) e. Type of Reporting Source = 7 (Death Certificate Only) Estrogen Receptor Percent Positive or Range is required by SEER only if collected by a CoC-accredited facility on an analytic case (CoC Accredited Flag = 1). 2. If Estrogen Receptor Summary = 0 (negative), Estrogen Receptor Percent Positive or Range must = 000 (negative) 3. If Estrogen Receptor Summary = 1 (positive) Estrogen Receptor Percent Positive or Range must = 001-100, R10-R99 (positive) 4. If Estrogen Receptor Summary = 7 (test done, results not in chart) or 9 (not documented in medical record) Estrogen Receptor Percent Positive or Range must = XX7 (test done, results not in chart), or XX9 (not documented in medical record)]]></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>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy