edits.seer.internal.rules.IF530.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="IF530" name="TNM Clin Staged By, Date of Diagnosis (SEER)" tag="N2018" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[boolean skipCondition1 = line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2015' || line.dateOfDiagnosisYear > '2017' boolean skipCondition2 = line.tnmClinStagedBy == null && line.dateOfDiagnosisYear == '2015' boolean skipCondition3 = ['0000001563', '0000001566'].contains(line.registryId) if (skipCondition1 || skipCondition2 || skipCondition3) return true return Functions.matches(line.tnmClinStagedBy, /^[0-6]0|1[1-5]|88|99$/)]]></expression> <message>TNM Clin Staged By is invalid.</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1. Year of Date of Diagnosis is less than 2015, greater than 2017, blank (unknown), or invalid 2. TNM Clin Staged By [990] is blank and year of Date of Diagnosis = 2015 3. Registry ID is 0000001563 (Massachusetts) or 0000001566 (Texas) Must be a valid TNM Clin Staged By[990] code (00, 10, 11, 12, 13, 14, 15, 20, 30, 40, 50, 60, 88, 99). Codes 00 Not staged 10 Physician NOS or physician type not specified in codes 11-15 11 Surgeon 12 Radiation Oncologist 13 Medical Oncologist 14 Pathologist 15 Multiple Physicians; tumor board, etc. 20 Cancer registrar 30 Cancer registrar and physician 40 Nurse, physician assistant, or other non-physician medical staff 50 Staging assigned at another facility 60 Staging by Central Registry 88 Case is not eligible for staging 99 Staged but unknown who assigned stage]]></description> <history> <event version="SE15-013-01" user="kirbyk" date="2015-01-12" ref="67184">Edit created.</event> <event version="SE16-015-01" user="kirbyk" date="2016-04-07" ref="67285">Updated logic for NAACCR 16.</event> <event version="SE16-016-08" user="depryf" date="2017-11-22" ref="67674">Edit syntax updated to allow pre-compilation optimization; no change in behavior.</event> <event version="SE18-018-01" user="kirbyk" date="2018-04-16" ref="67749">Added DX year 2018+ to first skip condition.</event> <event version="SE18-020-01" user="beverung" date="2020-01-28" ref="68274">Skip edit for MA.</event> <event version="SE21-021-09" user="beverung" date="2021-09-03" ref="68738">Added skip condition for TX.</event> </history> </rule>