edits.seer.internal.rules.IFN4911.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="IFN4911" name="Histologic Type ICDO3, Primary Site, Date of Diagnosis (NAACCR)" tag="N4911" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.histologicTypeIcdO3 == null) return true String histology = line.histologicTypeIcdO3 String site = line.primarySite if (line.behaviorCodeIcdO3 == '2' && (histology == '8230' || histology == '8032')) return true if (histology == '8510' && site == 'C739') return false if (histology == '8550' && Functions.matches(site, /^C34\d$/)) return false Integer siteInt = -1 if (site != null && Functions.matches(site, /^C\d\d\d$/)) siteInt = Functions.asInt(site.substring(1,4)) if (line.dateOfDiagnosisYear >= '2019') { if (Functions.matches(histology, /^825[3467]$/) && !Functions.matches(site, /^C34\d$/)) return false if (line.dateOfDiagnosisYear <= '2020' && histology == '9150' && (line.gradeClinical == '4' || line.gradePathological == '4')) return true List invalidHistologies = (List)((Map)Context.IFN4911_Table).get(siteInt) if (invalidHistologies != null && invalidHistologies.contains(histology)) return false } if (line.dateOfDiagnosisYear >= '2024') { List invalidHistologies = (List)((Map)Context.IFN4911_2024_Table).get(siteInt) if (invalidHistologies != null && invalidHistologies.contains(histology)) return false } return true]]></expression> <message>Histologic Type ICD-O-3 code is not valid for this Primary Site and Diagnosis Year</message> <description><![CDATA[This edit enforces histology coding restrictions by primary site for 2018+ cases. 1. This edit is skipped if any of the following conditions are true: a. Date of diagnosis less than 2018, blank (unknown), or invalid b. Histologic Type ICD-O-3 is blank c. Histologic Type ICD-O-3 = 8230, Behavior code = 2 d. Histologic Type ICD-O-3 = 8032, Behavior code = 2 2. For diagnosis date = 2018+: a. If Primary Site = C739, 8510 is invalid b. If Primary Site = C340-C349, 8550 is invalid. 3. For diagnosis date 2019+: a. 8253, 8254, 8256, and 8257 are valid for C340-C349 only. b. 9150 is valid for Hemangiopericytoma Grade 4 (2019-2020 only) 4. For diagnosis date 2019+, for the Primary Sites listed, the Histologic Type ICD-O-3 codes in the USE column (title in the Histology column) should be used in preference to the codes in the DO NOT USE column, based on Solid Tumor Rules. Site USE DO NOT Histology USE C079-C089 8562 8983 Epithelial-myoepithelial carcinoma C090-C109 8525 8201 Polymorphous carcinoma C111 8525 8201 Polymorphous carcinoma C180-C209 8140 8144 Adenocarcinoma C180-C209 8140 8210 Adenocarcinoma C180-C209 8140 8261 Adenocarcinoma C180-C209 8140 8501 Adenocarcinoma C180-C209 8244 8245 Mixed adenoneuroendocrine carcinoma C180-C209 8265 8507 Micropapillary adenocarcinoma C300,C310-C319 8072 8120 Non-keratinizing SCC C300,C310-C319 8140 8263 Tubulopapillary adenoca low grade C300,C310-C319 8144 8480 Colloid Type Adenocarcinoma C300,C310-C319 8802 8830 Pleomorphic cell sarcoma C300,C310-C319 9081 9080 Teratocarcinosarcoma C300,C310-C319 9364 9260 Primitive neuroectodermal tumor C300,C310-C319 9364 9500 Primitive neuroectodermal tumor C300,C310-C319 9364 9503 Primitive neuroectodermal tumor C340-C349 8083 8123 Basaloid carcinoma C340-C349 8265 8507 Micropapillary adenocarcinoma C340-C349 8551 8550 Acinar adenocarcinoma C340-C349 8562 8983 Epithelial-myoepithelial carcinoma C470-C479 8802 8830 Undifferentiated pleomorphic sarc C470-C479 8815 9150 Solitary fibrous tumor C500-C509 8503 8260 Papillary carcinoma C500-C509 8510 8345 Medullary Carcinoma C619 8140 8550 Adenocarcinoma C649 8312 8318 Renal cell C649 8510 8318 Renal medullary C649 9364 9260 PNET/Ewing C700-C729 8802 8830 Undifferentiated pleomorphic sarc C700-C729 8815 9150 Solitary fibrous tumor C751-C753 8802 8830 Undifferentiated pleomorphic sarc C751-C753 8815 9150 Solitary fibrous tumor C739 8260 8050 Papillary carcinoma C739 8345 8510 Medullary Carcinoma C739 8346 8510 Medullary Carcinoma 5. For diagnosis date 2024 forward, for the Primary Sites listed, the Histologic Type ICD-O-3 codes in the USE column (title in the Histology column) should be used in preference to the codes in the DO NOT USE column, based on Solid Tumor Rules. Site USE DO NOT Histology C340-C349 8260 8050 Papillary adenocarcinoma C340-C349 8255 8323 Adenocarcinoma with mixed subtypes C500-C509 8041 8240 Small cell carcinoma C500-C509 8255 8323 Adenocarcinoma with mixed subtypes C500-C509 8500 8230 Carcinoma NST C500-C509 8575 8032 Metaplastic carcinoma NOS C510-C589 8323 8255 Mixed cell Adenocarcinoma C529 8980 8950 Carcinosarcoma C540-C541 8980 8950 Carcinosarcoma C543-C549 8980 8950 Carcinosarcoma C569 8980 8950 Carcinosarcoma C570 8980 8950 Carcinosarcoma C619 8147 8200 Basal cell adenocarcinoma C659-C689 8140 8255 Adenocarcinoma C659-C689 8140 8323 Adenocarcinoma C700-C729 9364 9260 Peripheral primitive neuroectodermal C751-C753 9364 9260 Peripheral primitive neuroectodermal]]></description> <history> <event version="SE18-018-03" user="smithm" date="2018-07-19" ref="67955">Edit created.</event> <event version="SE18-018-04" user="kirbyk" date="2018-08-06" ref="67981">Fixed condition for Primary Site = C340-C349.</event> <event version="SE18-018-13" user="kirbyk" date="2019-02-25" ref="68116">Removed '8480' as an invalid histology for C340-349.</event> <event version="SE18-019-01" user="kirbyk" date="2019-03-27" ref="68124">Changed edit name; updated logic for 2019 cases.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-01" ref="68184">Changed message; updated histologies for 2019+ cases with Primary Site C340-C349.</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="SE18-020-01" user="beverung" date="2020-03-11" ref="68288">Updated IFN4911_Table; removed rule for 2019+ cases with Histology 8263.</event> <event version="SE18-020-03" user="beverung" date="2020-04-21" ref="68340">Updated IFN4911_Table.</event> <event version="SE18-020-05" user="beverung" date="2020-08-06" ref="68496">Removed Medullary Carcinoma from list of Histologies.</event> <event version="SE21-021-03" user="beverung" date="2021-02-26" ref="68576">Update edit name.</event> <event version="SE22-022-01" user="smithm" date="2022-02-28" ref="68813">Updated histologies for Primary Sites C500-C509.</event> <event version="SE22-022-04" user="beverung" date="2022-05-03" ref="68977">Remove logic for Squamous Cell Carcinoma.</event> <event version="SE23-023-02" user="cooki" date="2023-04-11" ref="69219">Changed table value for C619 to match description.</event> <event version="SE24-024-09" user="kirbyk" date="2024-08-21" ref="69478">Updated histologies for 2024.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy