edits.seer.internal.rules.IF203.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="IF203" name="CS SSF 1-9, Head and Neck Schemas (CS)" tag="N0951" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site"> <expression><![CDATA[if (line.csLymphNodes == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (((List)Context.Head_Neck_Schemas).contains(line._csSchemaId)){ if (line.csLymphNodes == '000') return line.csSiteSpecificFactor2 == null || line.csSiteSpecificFactor2 == '987' || line.csSiteSpecificFactor2 == '988' if (line.csLymphNodes != '000' && line.csLymphNodes != '999' && line.csSiteSpecificFactor2 == '987') return false if (line.csSiteSpecificFactor1 == null || line.csSiteSpecificFactor3 == null || line.csSiteSpecificFactor4 == null || line.csSiteSpecificFactor5 == null || line.csSiteSpecificFactor6 == null || line.csSiteSpecificFactor1 == '988' || line.csSiteSpecificFactor3 == '988' || line.csSiteSpecificFactor4 == '988' || line.csSiteSpecificFactor5 == '988' || line.csSiteSpecificFactor6 == '988') return true if (line.csLymphNodes == '999' && ( line.csSiteSpecificFactor1 != '999' || line.csSiteSpecificFactor3 != '999' || line.csSiteSpecificFactor4 != '999' || line.csSiteSpecificFactor5 != '999' || line.csSiteSpecificFactor6 != '999' || (line.csSiteSpecificFactor2 != '987' && line.csSiteSpecificFactor2 != '999' && line.csSiteSpecificFactor2 != '988' && line.csSiteSpecificFactor2 != null) || (line.csSiteSpecificFactor7 != '999' && line.csSiteSpecificFactor7 != '988' && line.csSiteSpecificFactor7 != null) || (line.csSiteSpecificFactor8 != '999' && line.csSiteSpecificFactor8 != '988' && line.csSiteSpecificFactor8 != null) || (line.csSiteSpecificFactor9 != '999' && line.csSiteSpecificFactor9 != '998' && line.csSiteSpecificFactor9 != '988' && line.csSiteSpecificFactor9 != null) )) return false } return true]]></expression> <message>CS SSF codes and CS Lymph Nodes conflict for Head and Neck schemas</message> <description><![CDATA[This edit validates CS Site-Specific Factors 1-9 for Head and Neck sites by CS Lymph Nodes coding. This entire edit is skipped if any of the following conditions are true: 1. CS Lymph Nodes is blank 2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 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. This edit is skipped if CS schema is NOT one of the following Head and Neck schemas: BuccalMucosa EpiglottisAnterior FloorMouth GumLower GumOther GumUpper Hypopharynx LarynxGlottic LarynxOther LarynxSupraglottic LarynxSubglottic LipLower LipOther LipUpper MelanomaLipUpper MelanomaLipLower MelanomaLipOther MelanomaTongueAnterior MelanomaGumUpper MelanomaGumLower MelanomaGumOther MelanomaFloorMouth MelanomaPalateHard MelanomaMouthOther MelanomaBuccalMucosa MelanomaTongueBase MelanomaPalateSoft MelanomaOropharynx MelanomaNasopharynx MelanomaHypopharynx MelanomaPharynxOther MelanomaEpiglottisAnterior MelanomaLarynxGlottic MelanomaLarynxSupraglottic MelanomaLarynxSubglottic MelanomaLarynxOther MelanomaNasalCavity MelanomaSinusMaxillary MelanomaSinusEthmoid MelanomaSinusOther MiddleEar MouthOther NasalCavity Nasopharynx Oropharynx PalateHard PalateSoft ParotidGland PharyngealTonsil PharynxOther SalivaryGlandOther SinusEthmoid SinusMaxillary SinusOther SubmandibularGland TongueAnterior TongueBase Note: CS Site-Specific Factor 2, extracapsular extension, lymph nodes for head and neck for CSv1, is obsolete beginning with CS Version 2. For cases coded using CS Version 1, old codes are retained unless the case is recoded using CS Version 2. The CS Version 1 code 888 has been converted to 987. If CS Lymph Nodes = 000 (none; no regional lymph node involvement), then CS Site-Specific Factor 2 must be blank or 987(obsolete data converted and retained v0200; data converted from code 888; not applicable; no lymph node involvement) or 988 (not applicable; information not collected for this case). If CS Lymph Nodes is not equal 000 or 999, then CS Site-Specific Factor 2 must not = 987. This remaining logic is skipped if any of the following conditions are true: 1. CS Site-Specific Factor 1 is blank or 988 2. CS Site-Specific Factor 3 is blank or 988 3. CS Site-Specific Factor 4 is blank or 988 4. CS Site-Specific Factor 5 is blank or 988 5. CS Site-Specific Factor 6 is blank or 988 If CS Lymph Nodes equal 999 (unknown; not stated regional lymph node(s) cannot be assessed; not documented in patient record): 1. The following fields must all = 999 (regional lymph node(s) involved, size not stated; unknown if regional lymph node(s) involved; not documented in patient record): CS Site-Specific Factor 1 CS Site-Specific Factor 3 CS Site-Specific Factor 4 CS Site-Specific Factor 5 CS Site-Specific Factor 6 2. The following fields, if not blank, must all = 987 (obsolete data converted and retained v0200), 988 (Not applicable: Information not collected for this case) or 999: CS Site-Specific Factor 2 3. The following fields, if not blank, must all = 988 (Not applicable: Information not collected for this case) or 999: CS Site-Specific Factor 7 CS Site-Specific Factor 8 4. The following field, if not blank, must = 988 (Not applicable: Information not collected for this case), 998 (No histopathologic examination of regional lymph nodes), or 999: CS Site-Specific Factor 9]]></description> <history> <event version="SE11-001-22" user="greend" date="2008-07-30">Histologic Type ICD-O-3 bypass changed to 9140, 9590-9699, 9702-9729,9731-9989. Logic of CS SSF blank bypass changed.</event> <event version="SE12-002-01" user="murphyr" date="2010-03-18">Edit now using CS Schema name. Lymph Nodes and Extension constants changed and SSF7-9 are now used.</event> <event version="SE12-002-01" user="murphyr" date="2010-03-24">If LymphNodes = 000 then SSF2 can no longer equal 988.</event> <event version="SE12-007-01" user="murphyr" date="2012-03-12" ref="66689">Modified to allow SSF 9 to be 998 when nodes are 999.</event> <event version="SE12-008-01" user="murphyr" date="2012-08-10" ref="66712">Now allowing SSF 2 to be 987 when lymph nodes are 999.</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> <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