edits.seer.internal.rules.IF62.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="IF62" name="RX Summ--Hormone, DateDX, RptSrc (SEER IF62)" tag="N0293" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.registryId == '0000001544' && (line.dateOfDiagnosisYear < '2000' || line.dateOfDiagnosisYear == null)) return true if ((line.registryId == '0000001562' && line.dateOfDiagnosisYear < '2003') || (line.registryId == '0000001565' && line.dateOfDiagnosisYear == '2003')) return true if (line.typeOfReportingSource == '6') return line.rxSummHormone == '00' if (line.typeOfReportingSource == '7') return line.rxSummHormone == '99' if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '1988') return Functions.matches(line.rxSummHormone, /^(0[01]|88|99)$/) if (Functions.between(line.dateOfDiagnosisYear, '1988', '2002')) return Functions.matches(line.rxSummHormone, /^(0[01]|8[78]|99)$/) /* Dx year must be 2003+ */ return Functions.matches(line.rxSummHormone, /^(0[01]|8[25678]|99)$/)]]></expression> <message>RX Summ--Hormone and Year of Diagnosis conflict</message> <description><![CDATA[This edit is skipped under the following conditions: 1. Year of Date of Diagnosis is less than 2000 or null and Registry ID is equal to 0000001544 (New Jersey) OR Year of Date of Diagnosis is less than 2003 and Registry ID is 0000001562 (New York) OR Year of Date of Diagnosis is 2003 and Registry ID is equal to 0000001565 (Illinois). 2. Year of Date of Diagnosis is blank and Type of Reporting Source not equal 6 or 7 1. If Type of Reporting Source is 6 (autopsy only), then RX Summ--Hormone must be 00 (none). 2. If Type of Reporting Source is 7 (death certificate only), then RX Summ--Hormone must be 99 (unknown). 3. For all other values of Type of Reporting Source: A. If year of Date of Diagnosis is less than 1988, RX Summ--Hormone must be 00, 01, 88, 99. B. If year of Date of Diagnosis is equal to 1988-2002, RX Summ--Hormone must be 00, 01, 87, 88, 99. C. If year of Date of Diagnosis is greater than 2002, RX Summ--Hormone must be 00, 01, 82, 85-88, 99.]]></description> <history> <event version="SE11-001-17" user="greend" date="2003-03-14">Edit modified to allow for two character field for RX Summ--Hormone.</event> <event version="SE11-001-17" user="greend" date="2003-09-22">Edit modified to skip cases from New Jersey diagnosed before 2000.</event> <event version="SE11-001-19" user="greend" date="2005-05-26">Edit checks for Type of Reporting Source values versus RX Summ--Hormone were added.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-03">Changed condition 3 to not allow 9 filled year of diganosis.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-21">Added check for blank year of diagnosis is year of diagnosis > 2000.</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-019-02" user="kirbyk" date="2019-05-07" ref="68179">Edit now skipped for New York cases when DX Year < 2003; removed conditions for Alaska.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</event> <event version="SE21-021-09" user="beverung" date="2021-09-09" ref="68745">Edit now skipped for Illinois cases when DX Year is 2003.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy