edits.seer.internal.rules.IFN2742.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="IFN2742" name="Anemia, Date DX (NAACCR)" tag="N2742" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '2018') return line.anemia == null if (line.primarySite != 'C421') return line.anemia == null || line.anemia == '5' else return line.anemia == null || Functions.matches(line.anemia, /^[01679]$/)]]></expression> <message>Anemia is not valid for Date DX</message> <description><![CDATA[The edit is skipped if Date of Diagnosis is blank (unknown), or invalid. 1. This data item must be blank for pre-2018 diagnoses. 2. Must be a valid Anemia code or blank: 0: Anemia not identified/not present Hgb >= 11.0 grams/deciliter (g/dL) Physician states Rai Stage 0-II 1: Anemia present Hgb <11.0 g/dL 5: Not applicable: Primary site is not C421 6: Lab value unknown, physician states patient is anemic Physician states Rai Stage III 7: Test done, results not in chart 9: Not documented in medical record Anemia not assessed or unknown if assessed No Rai Stage is doumented in the record and there is no documentation of anemia Physician states Rai Stage IV and there is no documentation of anemia 3. Code 5 must be used if primary site not C421 4. Codes 0, 1, 6, 7, and 9 must be used if primary site = C421 Another edit, Anemia, Schema ID, Required (NAACCR), checks that the item is coded by Schema ID if required by a standard setter. This data item is required for AJCC staging and EOD Derived Stage Group.]]></description> <history> <event version="SE18-018-03" user="kirbyk" date="2018-07-11" ref="67901">Edit created.</event> <event version="SE18-018-06" user="kirbyk" date="2018-08-24" ref="68026">Changed error message.</event> <event version="SE22-022-01" user="secristc" date="2022-01-20" ref="68850">Added logic related to primary site and code 5</event> </history> </rule>