edits.seer.internal.rules.IF338.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="IF338" name="Obsolete Codes - CS Site-Specific Factor21 (CS)" tag="N1417" java-path="lines.line" category="inter-field" depends="CS_Site-Specific_Factor_21,CS_Version_Input_Original,Year_of_Diagnosis"> <expression><![CDATA[if (line.csSiteSpecificFactor21 == null || line.dateOfDiagnosisYear == null || line.csVersionInputOriginal == null) return true if (line._csSchemaId == null) return false String code = Functions.getCsObsoleteReason(line, 'csSiteSpecificFactor21', line.csSiteSpecificFactor21) if (code != null) { if (code == '1' || code == '5' || code == '6' || code == '7' || code == '16' || code == '18') { if (line.dateOfDiagnosisYear >= '2010') return false if (line.csVersionInputOriginal >= '020100') return false } else if (code == '13' || code == '14' || code == '15') { if (line.dateOfDiagnosisYear >= '2011') return false if (line.csVersionInputOriginal >= '020300') return false } else if (code == '17') { if (line.dateOfDiagnosisYear >= '2011') return false if (line.csVersionInputOriginal >= '020200') return false } else if (code == '21' || code == '22') { if (line.dateOfDiagnosisYear >= '2012') return false if (line.csVersionInputOriginal >= '020440') return false } else return false } return true]]></expression> <message>Obsolete Codes - Invalid CS Site-Specific Factor 21</message> <description><![CDATA[This edit checks for all obsolete CS Site-Specific Factor 21 codes. Obsolete codes should be re-coded per Collaborative Stage guidelines. This edit is skipped if any of the following conditions are true: 1. CS Site-Specific Factor21 is blank 2. Date of Diagnosis is blank 3. CS Version Input Original is blank. This edit first determines the correct CS schema by doing a function call to the CS Dynamic Link Library (dll). The function call passes Primary Site, Histologic Type ICD-O-3, and CS Site-Specific Factor25 (schema discriminator) to the dll and the CS schema name is returned. Using the returned schema name, CS table number (CS Site-Specific Factor21 is table number 30), and CS Site-Specific Factor21 code, a table lookup is performed. If the code for a particular schema is determined to be obsolete based on the table lookup, the type of obsolete code must be evaluated. There are several types of obsolete codes: 1. OBSOLETE DATA CONVERTED AND RETAINED V0200 2. OBSOLETE DATA CONVERTED V0102 3. OBSOLETE DATA CONVERTED V0104 4. OBSOLETE DATA CONVERTED V0200 5. OBSOLETE DATA RETAINED V0100 6. OBSOLETE DATA RETAINED V0102 7. OBSOLETE DATA RETAINED V0200 8. OBSOLETE DATA REVIEWED AND CHANGED V0102 9. OBSOLETE DATA REVIEWED AND CHANGED V0103 10. OBSOLETE DATA REVIEWED AND CHANGED V0200 11. OBSOLETE DATA CONVERTED V0203 12. OBSOLETE DATA REVIEWED AND CHANGED V0203 13. OBSOLETE DATA REVIEWED V0203 14. OBSOLETE DATA RETAINED AND REVIEWED V0203 15. OBSOLETE DATA RETAINED V0203 16. OBSOLETE DATA RETAINED V0104 17. OBSOLETE DATA RETAINED V0202 18. OBSOLETE DATA RETAINED AND REVIEWED V0200 19. OBSOLETE DATA CONVERTED V0204 20. OBSOLETE DATA REVIEWED AND CHANGED V0204 21. OBSOLETE DATA RETAINED AND REVIEWED V0204 22. OBSOLETE DATA RETAINED V0204 1. If the type of obsolete code = OBSOLETE DATA CONVERTED AND RETAINED V0200: A. If year of Diagnosis is 2010 or higher, an error is generated. B. If CS version Input Original is 020100 (indicating the case was originally coded using CSv2), an error is generated. [Example: none for CS Site-Specific Factor21] 2. If the type of obsolete code = OBSOLETE DATA CONVERTED V0102: an error is generated. [Example: none for CS Site-Specific Factor21] 3. If the type of obsolete code = OBSOLETE DATA CONVERTED V0104: an error is generated. [Example: none for CS Site-Specific Factor21] 4. If the type of obsolete code = OBSOLETE DATA CONVERTED V0200: an error is generated. [Example: none for CS Site-Specific Factor21] 5. If the type of obsolete code = OBSOLETE DATA RETAINED V0100: A. If year of Diagnosis is 2010 or higher, an error is generated. B. If CS version Input Original is 020100 (indicating the case was originally coded using CSv2), an error is generated. [Example: none for CS Site-Specific Factor21] 6. If the type of obsolete code = OBSOLETE DATA RETAINED V0102: A. If year of Diagnosis is 2010 or higher, an error is generated. B. If CS version Input Original is 020100 (indicating the case was originally coded using CSv2), an error is generated. [Example: none for CS Site-Specific Factor21] 7. If the type of obsolete code = OBSOLETE DATA RETAINED V0200: A. If year of Diagnosis is 2010 or higher, an error is generated. B. If CS version Input Original is 020100 (indicating the case was originally coded using CSv2), an error is generated. [Example: none for CS Site-Specific Factor21] 8. If the type of obsolete code = OBSOLETE DATA REVIEWED AND CHANGED V0102: an error is generated. (Obsolete codes from CSV01 are expected to have been recoded prior to conversion to CSV02.) [Example: none for CS Site-Specific Factor21] 9. If the type of obsolete code = OBSOLETE DATA REVIEWED AND CHANGED V0103: an error is generated. (Obsolete codes from CSV01 are expected to have been recoded prior to conversion to CSV02.) [Example: none for CS Site-Specific Factor21] 10.If the type of obsolete code = OBSOLETE DATA REVIEWED AND CHANGED V0200: an error is generated. (These particular obsolete codes require review after conversion from CSV01 to CSV02.) [Example: none for CS Site-Specific Factor21] 11. If the type of obsolete code = OBSOLETE DATA CONVERTED V0203: an error is generated. [Example: Schema = Breast, CS Site-Specific Factor21 = 998] 12. If the type of obsolete code = OBSOLETE DATA REVIEWED AND CHANGED V0203: an error is generated. (These particular obsolete codes require review after conversion from CSV02xx to CSV0203.) [Example: none for CS Site-Specific Factor21] 13. If the type of obsolete code = OBSOLETE DATA REVIEWED V0203: A. If year of Diagnosis is 2011 or higher, an error is generated. B. If CS version Input Original is 020300 or higher (indicating the case was originally coded using CSv0203), an error is generated. [Example: none for CS Site-Specific Factor21] 14. If the type of obsolete code = OBSOLETE DATA RETAINED AND REVIEWED V0203: A. If year of Diagnosis is 2011 or higher, an error is generated. B. If CS version Input Original is 020300 or higher (indicating the case was originally coded using CSv0203), an error is generated. [Example: none for CS Site-Specific Factor21] 15. If the type of obsolete code = OBSOLETE DATA RETAINED V0203: A. If year of Diagnosis is 2011 or higher, an error is generated. B. If CS version Input Original is 020300 or higher (indicating the case was originally coded using CSv0203), an error is generated. [Example: none for CS Site-Specific Factor21] 16. If the type of obsolete code = OBSOLETE DATA RETAINED V0104: A. If year of Diagnosis is 2010 or higher, an error is generated. B. If CS version Input Original is 020100 or higher (indicating the case was originally coded using CSv02), an error is generated. 17. If the type of obsolete code = OBSOLETE DATA RETAINED V0202: A. If year of Diagnosis is 2011 or higher, an error is generated. B. If CS version Input Original is 020200 or higher (indicating the case was originally coded using CSv0202), an error is generated. 18. If the type of obsolete code = OBSOLETE DATA RETAINED AND REVIEWED V0200: A. If year of Diagnosis is 2010 or higher, an error is generated. B. If CS version Input Original is 020100 or higher (indicating the case was originally coded using CSv2), an error is generated. 19. If the type of obsolete code = OBSOLETE DATA CONVERTED V0204: an error is generated. 20. If the type of obsolete code = OBSOLETE DATA REVIEWED AND CHANGED V0204: an error is generated. (These particular obsolete codes require review after conversion from CSV0203xx to CSV0204.) 21. If the type of obsolete code = OBSOLETE DATA RETAINED AND REVIEWED V0204: A. If year of Diagnosis is 2012 or higher, an error is generated. B. If CS version Input Original is 020440 or higher (indicating the case was originally coded using CSv0204), an error is generated. 22. If the type of obsolete code = OBSOLETE DATA RETAINED V0204: A. If year of Diagnosis is 2012 or higher, an error is generated. B. If CS version Input Original is 020440 or higher (indicating the case was originally coded using CSv0204), an error is generated.]]></description> <history> <event version="SE12-004-01" user="murphyr" date="2011-01-25">Edit created.</event> <event version="SE12-006-01" user="murphyr" date="2011-12-19" ref="66627">Updated for CSv0204 obsolete codes.</event> <event version="SE13-009-01" user="murphyr" date="2013-01-25" ref="66826">Edit name changed.</event> <event version="SE13-010-01" user="murphyr" date="2013-07-12" ref="66904">Edit now fails if schema is blank.</event> <event version="SE16-015-01" user="kirbyk" date="2016-05-04" ref="67370">Changed edit to use schema IDs instead of schema names</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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>