edits.seer.internal.rules.IF37.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="IF37" name="ICD Revision Number, Cause of Death (SEER IF37)" tag="N0093" java-path="lines.line" category="inter-field"> <expression><![CDATA[String cod = line.causeOfDeath if (cod == '0000') return line.icdRevisionNumber == '0' if (line.icdRevisionNumber == '0') return false if (cod == '7777' || cod == '7797' || line.icdRevisionNumber == null) return true if (line.icdRevisionNumber == '1') { if (cod != null && cod.length() == 4) return ((List)((Map)Context.ICD10_Table_3).getOrDefault(cod.substring(0,1), [])).contains(Functions.asInt(cod.substring(1))) else if (cod != null && cod.length() == 3) return ((List)((Map)Context.ICD10_Table_2).getOrDefault(cod.substring(0,1), [])).contains(Functions.asInt(cod.substring(1))) else return false } // if ICD Revision Number is not ICD-10, the length must be 4 if (cod != null && cod.length() != 4) return false if (line.icdRevisionNumber == '7') return cod != null && ((List)Context.ICD7_Table).contains(Functions.asInt(cod)) if (line.icdRevisionNumber == '8') return cod != null && ((List)Context.ICD8_Table).contains(Functions.asInt(cod)) if (line.icdRevisionNumber == '9') return cod != null && ((List)Context.ICD9_Table).contains(Functions.asInt(cod)) return true]]></expression> <message>ICD Revision Number and Cause of Death conflict</message> <description><![CDATA[If Cause of Death[1910] = 0000 (alive), then ICD Revision Number[1920] must = 0 (alive) If ICD Revision Number[1920] = 0 (alive), then Cause of Death[1910] must = 0000 (alive). If ICD Revision Number[1920] is blank or if the Cause of Death[1910] is 7777 or 7797, then this edit is skipped. If the ICD Revision Number is 7, 8, 9, or 1, the cause of death must be a valid code of the 7th, 8th, 9th or 10th revision of ICD. The valid codes for each revision may be found in the appropriate volume published by the World Health Organization. See the SEER Program Code Manual for special rules for coding Cause of Death[1910].]]></description> <history> <event version="SE11-001-01" user="greend" date="1985-12-29">'7969' is flagged as invalid for 8th and 9th revisions of ICD coding. '7797' is now flagged as valid in all revisions.</event> <event version="SE11-001-02" user="greend" date="1986-03-01">The CODTABLE has been corrected for some codes and so the program must be recreated. Also the code '7969' is no longer flagged as invalid; this is a valid code for cause of death.</event> <event version="SE11-001-02" user="greend" date="1986-10-01">CODTABLE has been updated to include new HTLV-3/LAV infection codes.</event> <event version="SE11-001-18" user="greend" date="2004-09-15">The following ICD-10 codes were added: E164, I272, K317, K635, K754, M726, Q315, U010-U019, U029, U030, U039.</event> <event version="SE11-001-21" user="greend" date="2007-10-05">The following ICD-10 codes were added: B334,E164,G904,I150,I159,J099,K227,K850,K851,K852,K853, K858,K859,M317,M797,P916,R296,R502,R508,U049,W469,X590, X599</event> <event version="SE12-005-04" user="murphyr" date="2011-10-05" ref="66533">The following ICD-10 codes were added: A090,B179,D685,D686,D893,E883,G149,G214,H549,I725,J123,J211,K123,K352,K353,K358,K523,L890,L891,L892,L893,N181,N182,N183,N184,N185,N423, O142,O432,O960,O961,O970,O971,O987,R263,R636,X340,X341,X348</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-12" user="kirbyk" date="2019-01-28" ref="68086">Edit now allows 3-character Cause of Death values for ICD-10.</event> <event version="SE18-019-05" user="kirbyk" date="2019-09-24" ref="68252">Edit does not allow 3-character Cause of Death values for ICD-7, ICD-8, or ICD-9.</event> <event version="SE18-020-04" user="beverung" date="2020-05-27" ref="68344">The following ICD-10 code was added: U070, U071, U072.</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