edits.seer.internal.rules.IF619.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="IF619" name="Mets at DX-BBDLLO, HemeRetic (SEER)" tag="N2427" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[boolean allMetsEmpty = (line.metsAtDxBone == null && line.metsAtDxBrain == null && line.metsAtDxDistantLn == null && line.metsAtDxLiver == null && line.metsAtDxLung == null && line.metsAtDxOther == null) if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.dateOfDiagnosisYear > '2017') return true if (line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || allMetsEmpty) return true // Heme4 accepts any valid Mets at DX code String hist = line.histologicTypeIcdO3 if (Functions.matches(line.primarySite, /^C42[014]$/) && ((hist >= '9811' && hist <= '9818') || hist == '9837')) return true Integer siteInt = Functions.asInt(line.primarySite?.substring(1)) boolean included = false if ((hist >= '9740' && hist <= '9809') || (hist >= '9840' && hist <= '9992')) included = true else if (((siteInt >= 0 && siteInt <= 440) || (siteInt >= 442 && siteInt <= 689) || (siteInt >= 691 && siteInt <= 694) || (siteInt >= 698 && siteInt <= 809)) && (hist == '9820' || hist == '9826' || (hist >= '9831' && hist <= '9834'))) included = true else if (Functions.matches(line.primarySite, /^C42[014]$/) && (hist == '9823' || hist == '9827')) included = true else if (((siteInt >= 0 && siteInt <= 440) || (siteInt >= 442 && siteInt <= 689) || (siteInt >= 691 && siteInt <= 694) || (siteInt >= 698 && siteInt <= 809)) && (hist == '9731' || hist == '9732' || hist == '9734')) included = true if (included) return line.metsAtDxBone == '8' && line.metsAtDxBrain == '8' && line.metsAtDxDistantLn == '8' && line.metsAtDxLiver == '8' && line.metsAtDxLung == '8' && line.metsAtDxOther == '8' else return line.metsAtDxBone != '8' && line.metsAtDxBrain != '8' && line.metsAtDxDistantLn != '8' && line.metsAtDxLiver != '8' && line.metsAtDxLung != '8' && line.metsAtDxOther != '8']]></expression> <message>Mets at DX fields invalid for site/hist combination</message> <description><![CDATA[The purpose of this edit is to verify that the Mets at DX-Bone, Brain, Distant LN, Liver, Lung, and Other fields are coded to 8 (not applicable) for the appropriate site/histology combinations. This edit is skipped under the following conditions: 1. Year of Date of Diagnosis is less than 2016 or greater than 2017, blank (unknown), or invalid 2. Type of Reporting Source = 7 (Death Certificate Only) 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. Mets at DX fields are all empty If site and histology are included in the Hematopoietic, Reticuloendothelial, Immunoproliferative, and Myeloproliferative Neoplasms, an error will be generated under any of the following conditions: 1. If Mets at DX-Bone not = 8 2. If Mets at DX-Brain not = 8 3. If Mets at DX-Distant LN not = 8 4. If Mets at DX-Liver not = 8 5. If Mets at DX-Lung not = 8 6. If Mets at DX-Other not = 8 If site and histology are NOT included in the Hematopoietic, Reticuloendothelial, Immunoproliferative, and Myeloproliferative Neoplasms, an error will be generated under any of the following conditions: 1. If Mets at DX-Bone = 8 2. If Mets at DX-Brain = 8 3. If Mets at DX-Distant LN = 8 4. If Mets at DX-Liver = 8 5. If Mets at DX-Lung = 8 6. If Mets at DX-Other = 8 The Hematopoietic, Reticuloendothelial, Immunoproliferative, and Myeloproliferative Neoplasms are identified as follows within the edit logic as follows: Heme1 - HemeRetic neoplasms for all sites: Histologic Type ICD-O-3 9740-9809,9840-9992 Heme2 - HemeRetic neoplasms except when occurring in Ocular Adnexal sites: Histologic Type ICD-O-3 9820, 9826, 9831-9834 with Primary Site C000-C440, C442-C689, C691-C694, C698-C809 Heme3 - Neoplasms manifesting as leukemia or lymphoma: Histologic Type ICD-O-3 9823, 9827, with Primary Site C420, C421, C424 Heme4 - Neoplasms accepted as either leukemia or lymphoma: Histologic Type ICD-O-3 9811-9818, 9837 with Primary Site C420, C421, C424. NOTE: Any valid code for a Mets at DX field will be accepted for this group of sites/histologies. Plasma - Plasma Cell Disorders: Histologic Type ICD-O-3 9731, 9732, 9734 with Primary Site C000-C440, C442-C689, C691-C694, C698-C809]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-08" ref="67453">Edit created.</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-01" user="kirbyk" date="2018-04-16" ref="67761">Updated Heme3 category and added Heme4 category.</event> <event version="SE18-018-05" user="schadega" date="2018-08-15" ref="68016">Limit to cases diagnosed 2016-2017.</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