edits.seer.internal.rules.IF49.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="IF49" name="Census Cod Sys 1970/80/90, Date of Diag (SEER IF49)" tag="N0310" java-path="lines.line" category="inter-field" depends="County_at_DX_Analysis,Year_of_Diagnosis"> <expression><![CDATA[Integer countyDxNumber = Functions.asInt(line.countyAtDxAnalysis) if ( line.censusCodSys19708090 != null && line.registryId >= '0000001500' && line.registryId <= '0000001599' && !(['0000001529','0000001533','0000001537','0000001542','0000001543','0000001544','0000001551','0000001561'].contains(line.registryId)) && line.dateOfDiagnosisYear != null) { if (line.registryId == '0000001522' && [17,49,181].contains(countyDxNumber)) { if (line.dateOfDiagnosisYear > '1972' && line.dateOfDiagnosisYear < '1978') return line.censusCodSys19708090 == '0' if (line.dateOfDiagnosisYear > '1977' && line.dateOfDiagnosisYear < '1988') return line.censusCodSys19708090 == '0' || line.censusCodSys19708090 == '2' if (line.dateOfDiagnosisYear > '1987') return line.censusCodSys19708090 == '3' } else if (line.registryId == '0000001523') { if (line.dateOfDiagnosisYear > '1972' && line.dateOfDiagnosisYear < '1978') { if ([1,43].contains(countyDxNumber)) return line.censusCodSys19708090 == '1' return line.censusCodSys19708090 == '0' } if (line.dateOfDiagnosisYear > '1977' && line.dateOfDiagnosisYear < '1988') return line.censusCodSys19708090 == '2' if (line.dateOfDiagnosisYear > '1987') return line.censusCodSys19708090 == '3' } else if (['0000001501','0000001502','0000001520','0000001521','0000001527','0000001531','0000001535'].contains(line.registryId) || (line.registryId == '0000001522' && [13,61,103,113,153,155,163,193].contains(countyDxNumber)) || (line.registryId == '0000001525' && [33,35,53,61,67,73].contains(countyDxNumber)) || (line.registryId == '0000001526' && [11,35,49,57].contains(countyDxNumber)) || (line.registryId == '0000001526' && countyDxNumber == 45 && line.dateOfDiagnosisYear > '1977')) { if (line.censusCodSys19708090 == '0') return false if (line.dateOfDiagnosisYear > '1972' && line.dateOfDiagnosisYear < '1978') { if (line.registryId == '0000001525' && [35,67,73].contains(countyDxNumber)) return line.censusCodSys19708090 == '2' return line.censusCodSys19708090 == '1' } if (line.dateOfDiagnosisYear > '1977' && line.dateOfDiagnosisYear < '1988') return line.censusCodSys19708090 == '2' if (line.dateOfDiagnosisYear > '1987') return line.censusCodSys19708090 == '3' } else if (line.dateOfDiagnosisYear > '1987') return line.censusCodSys19708090 == '3' else if (line.dateOfDiagnosisYear != null) return line.censusCodSys19708090 == '0' } return true]]></expression> <message>Census cod sys 1970/80/90 and Year of Diagnosis conflict</message> <description><![CDATA[The edit is skipped if any of the following conditions is true: 1. Year of Date of Diagnosis is blank 2. Census Cod Sys 1970/80/90 is blank 3. Registry ID = 0000001529 (Alaska), 0000001533 (Arizona Indians), 0000001537 (Rural Georgia), 0000001542 (Kentucky),0000001543 (Louisiana),0000001544 (New Jersey), or 0000001551 (Cherokee Nation) or 0000001561 (Idaho). 1. If Registry ID = 0000001522 (Iowa) and County at DX Analysis = 049, 017, or 181: A. If year of Date of Diagnosis = 1973-1977, then Census Cod Sys 1970/80/90 must = 0 (not tracted) B. If year of Date of Diagnosis = 1978-1987, then Census Cod Sys 1970/80/90 must = 0 (not tracted) or 2 (1980 definitions) C. If year of Date of Diagnosis = 1988+, then Census Cod Sys 1970/80/90 must = 3 (1990 definitions). 2. If Registry ID = 0000001523 (New Mexico): A. If Year of diagnosis is 1973-1977 and County at DX Analysis 001 or 043, Census Cod sys 1970/1980/1990 must specify 1970 definitions (1). All other counties must specify no census tract (0). B. If year of diagnosis 1978-1987 Census cod sys 1970/1980/1990 must specify 1980 definitions (2). C. If year of diagnosis 1988+, census cod sys 1970/1980/1990 must specify 1990 definitions (3). 3. For any one of the following areas: San Francisco-Oakland, SMSA, Connecticut, Metropolitan Detroit, Hawaii,Metropolitan Atlanta, San Jose-Monterey, Los Angeles (Registry ID = 0000001501, 0000001502, 0000001520, 0000001521, 0000001523, 0000001527, 0000001531, 0000001535, respectively) and any County at DX Analysis. Iowa (Registry ID = 0000001522) and County at DX Analysis = 013, 061, 103, 113, 153, 155, 163, or 193 Seattle Puget Sound (Registry = 0000001525) and County at DX Analysis = 033, 035, 053, 061, 067, or 073 Utah (Registry ID = 0000001526) and County at DX Analysis = 011, 035, 049, 057 Year of Date of Diagnosis year > 1977 and Utah (Registry ID = 0000001526) and County at DX Analysis = 045 Then A. Census Cod Sys 1970/80/90 must not = 0 B. If Diagnosis Year 1973-1977: 1. If Seattle Puget Sound (Registry = 0000001525) and County at DX Analysis = 035,067, or 073, then Census Cod Sys 1970/80/90 must = 2 (1980 definitions) 2. Otherwise, Census Cod Sys 1970/80/90 must = 1 (1970 definitions) C. If Diagnosis Year 1978-1987, Census Cod Sys 1970/80/90 must = 2 (1980 definitions) D. If Diagnosis Year > 1987, Census Cod Sys 1970/80/90 must = 2 (1980 definitions) or 3 (1990 definitions) 4. For all areas, if Diagnosis Year > 1987, Census Cod Sys 1970/80/90 must = 3 (1990 definitions) 5. Otherwise, Census Cod Sys 1970/80/90 must = 0 (not tracted)]]></description> <history> <event version="SE11-001-04" user="greend" date="1988-07-07">Corrected NM county code from 015 to 013.</event> <event version="SE11-001-04" user="greend" date="1988-08-01">PR may have 0 in residence system.</event> <event version="SE11-001-05" user="greend" date="1989-09-01">Residence system code 3 and date of diagnosis 1988 combination is now valid.</event> <event version="SE11-001-06" user="greend" date="1990-01-15">Residence system code 2 or 3 and date of diagnosis 1988+ combination is now valid. WA county codes 035, 067, and 073 with date of diagnosis 1974-1977 must have census tract 1980 ('2') code.</event> <event version="SE11-001-07" user="greend" date="1991-09-15">Reference to the Puerto Rico registry was removed from the edit.</event> <event version="SE11-001-08" user="greend" date="1992-01-15">NM county code 013 with date of diagnosis >= 1988 must have census tract 1990 ('3') code, otherwise no coding system ('0') code. IA county codes 017 and 049 with date of diagnosis 1978-1987 can be coded as untracted ('0') or coded as census tract 1980 ('2').</event> <event version="SE11-001-08" user="greend" date="1992-12-15">IA county codes 181 is now grouped with the special counties that are partially tracted beginning with 1980 census.</event> <event version="SE11-001-10" user="greend" date="1994-01-10">Program updated to include the two new SEER registries.</event> <event version="SE11-001-11" user="greend" date="1995-10-01">Program modified to account for block numbering.</event> <event version="SE11-001-17" user="greend" date="2003-01-30">Edit is skipped if Census Tract Coding Sys is blank.</event> <event version="SE11-001-21" user="greend" date="2007-09-28">Only allow blanks for diagnosis years 1996+; Louisiana and Kentucky are skipped</event> <event version="SE12-002-01" user="murphyr" date="2009-12-08">Removed instances of year of diagnosis is not 9999. Replaced last instance with year of diagnosis is not blank.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-21">Edit is now skipped if year of diagnosis is blank.</event> <event version="SE12-005-03" user="murphyr" date="2011-09-19" ref="66518">Fixed an issue with the blank year of diagnosis skip condition.</event> <event version="SE12-005-03" user="murphyr" date="2011-09-20" ref="66520">Added a skip condition for Arizona.</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-02" user="schadega" date="2018-05-18" ref="67754">Fixed name and updated description.</event> <event version="SE18-018-10" user="kirbyk" date="2018-12-05" ref="68072">Added skip condition for Idaho.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE23-023-06" user="cooki" date="2023-07-31" ref="69294">Updated countyAtDx to countyAtDxAnalysis.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-03" ref="69326">Removed some edit dependencies.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy