edits.seer.internal.rules.IF437.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="IF437" name="CS SSF 7, 8, 12, 13, Prostate Schema (CS)" tag="N1722" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_12,CS_Site-Specific_Factor_13,CS_Site-Specific_Factor_25,CS_Site-Specific_Factor_7,CS_Site-Specific_Factor_8,Histologic_Type_ICD-O-3,Primary_Site,RX_Summ--Surg_Prim_Site"> <expression><![CDATA[if (line.csSiteSpecificFactor7 == null || line.csSiteSpecificFactor8 == null || line.csSiteSpecificFactor12 == null || line.csSiteSpecificFactor13 == null) return true if (line.csSiteSpecificFactor7 == '988' || line.csSiteSpecificFactor8 == '988' || line.csSiteSpecificFactor12 == '988' || line.csSiteSpecificFactor13 == '988') return true if (line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId != 'prostate') return true if (line.csSiteSpecificFactor7 == '998' && line.csSiteSpecificFactor8 == '998') { if (line.csSiteSpecificFactor12 == '998' && line.csSiteSpecificFactor13 == '998') return true return false } Integer rxSummSurgPrimSiteInt = Functions.asInt(line.rxSummSurgPrimSite) if (line.csSiteSpecificFactor12 == '998' && line.csSiteSpecificFactor13 == '998' && rxSummSurgPrimSiteInt >= 0 && rxSummSurgPrimSiteInt <= 17) { if (line.csSiteSpecificFactor7 == '998' && line.csSiteSpecificFactor8 == '998') return true return false } return true]]></expression> <message>CS Site-Specific Factors 7, 8, 12 and 13 are not coded consistently for Prostate</message> <description><![CDATA[Purpose: This edit verifies that, for cases coded using the Prostate Schema, CS Site-Specific Factors 7, 8, 12 and 13 are coded consistently. If CS schema is Prostate: If CS Site Specific Factors 7 and 8 = 998 (no needle core biopsy/TURP performed), then CS Site Specific Factors 12 and 13 must also = 998 (no needle core biopsy performed). If CS Site Specific Factors 12 and 13 = 998 and RX Summ--Surg Prim Site = 00-17, then CS Site Specific Factors 7 and 8 must also = 998. This edit is skipped if any of the following conditions are true: 1. CS Site-Specific Factor 7 is blank or 988 2. CS Site-Specific Factor 8 is blank or 988 3. CS Site-Specific Factor12 is blank or 988 4. CS Site-Specific Factor13 is blank or 988 3. Schema is invalid This edit first determines the 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.]]></description> <history> <event version="SE13-009-01" user="murphyr" date="2012-12-05" ref="66774">Edit created.</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>