edits.seer.internal.rules.IFN5053.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="IFN5053" name="LN Head and Neck Levels, Melanoma Head/Neck, Summary Stage 2018 (NAACCR)" tag="N5053" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.summaryStage2018 == null || line.schemaId != '00140' || line.typeOfReportingSource == '7') return true String ln13 = line.lnHeadAndNeckLevels1To3 String ln45 = line.lnHeadAndNeckLevels4To5 String ln67 = line.lnHeadAndNeckLevels6To7 String lnOther = line.lnHeadAndNeckOther if ((ln13 == null || ln13 == '8') && (ln45 == null || ln45 == '8') && (ln67 == null || ln67 == '8') && (lnOther == null || lnOther == '8')) return true if (Functions.matches(ln13, /^[1-7]$/) || Functions.matches(ln45, /^[1-3]$/) || Functions.matches(ln67, /^[1-3]$/) || Functions.matches(lnOther, /^[1-7]$/)) if (Functions.matches(line.summaryStage2018, /^[012]$/)) return false return true]]></expression> <message>LN Head and Neck codes conflict with Summary Stage 2018.</message> <description><![CDATA[This edit verifies that the LN Head and Neck SSDIs are coded consistently with Summary Stage 2018 for Schema ID 00140, Melanoma Head and Neck 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2019, blank (unknown), or invalid. b. Schema ID is not 00140 c. LN Head and Neck Levels I-III, LN Head and Neck levels IV-V, LN Head and Neck Levels VI-VII, and LN Head and Neck Other are all blank or not applicable. d. Summary Stage 2018 is blank e. Type of Reporting Source = 7 2. If LN Head and Neck Levels I-III = 1-7 (lymph nodes involved) or LN Head and Neck Levels IV-V = 1-3 (lymph nodes involved)or LN Head and Neck Levels VI-VII = 1-3 (lymph nodes involved) or LN Head and Neck Other = 1-7 (lymph nodes involved) Summary Stage 2018 must not = 0, 1, or 2 (in situ, local, regional by extension only)]]></description> <history> <event version="SE18-019-01" user="kirbyk" date="2019-04-03" ref="68149">Edit created.</event> <event version="SE18-020-01" user="beverung" date="2020-02-24" ref="68287">Fixed logic for step 3 in description.</event> <event version="SE18-020-02" user="kirbyk" date="2020-03-27" ref="68323">Changed edit name; removed Schema ID 00060 from skip condition; removed unknown from step 3.</event> <event version="SE18-020-05" user="beverung" date="2020-07-27" ref="68426">Remove step 3 from description and logic.</event> <event version="SE22-022-04" user="secristc" date="2022-05-03" ref="68965">Added skip condition for Type of Reporting Source = 7.</event> </history> </rule>