edits.seer.internal.rules.IFN2741.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="IFN2741" name="Adenopathy, Date DX (NAACCR)" tag="N2741" 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.adenopathy == null if (line.primarySite == 'C421') return line.adenopathy == null || Functions.matches(line.adenopathy, /^[019]$/) else return line.adenopathy == null || line.adenopathy == '5' ]]></expression> <message>Adenopathy value 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 Adenopathy code or blank: 0: Adenopathy not identified/not present No lymph nodes > 1.5cm Physician states Rai stage 0 1: Adenopathy present Presence of lymph nodes > 1.5cm Physician states Rai stage I 5: Not applicable: Primary site is not C421 9: Not documented in medical record Adenopathy not assessed or unknown if assessed No Rai Stage is documented in the record and there is no documentation of adenopathy Physician states Rai Stage II-IV and there is no documentation of adenopathy 3. Code 5 must be used if primary site not C421 4. Codes 0, 1, and 9 must be used if primary site = C421 Another edit, Adenopathy, 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-12" ref="67900">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-14" ref="68849">Updated adenopathy description, added logic related to primary site.</event> </history> </rule>