All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edits.seer.internal.rules.IFN3013.xml Maven / Gradle / Ivy

There is a newer version: 024-13
Show newest version
        <rule id="IFN3013" name="AJCC ID, Site, Histo, Schema Discriminator 2 (NAACCR)" tag="N3013" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.primarySite == null || line.histologicTypeIcdO3 == null)
    return true

Map contextMap = (Map)Context.AjccIdDiscriminator2Table
int histInt = Functions.asInt(line.histologicTypeIcdO3)
Map siteHistMap = (Map)((Map)contextMap.get(line.primarySite))?.get(histInt)
Map discrimMap = (Map)siteHistMap?.get(line.behaviorCodeIcdO3)
if (discrimMap == null)
    return true
List ajccId = (List)discrimMap.get(line.schemaDiscriminator2)
if (ajccId == null) {
    if (line.ajccId == 'XX' || (line.ajccId == '9' && line.primarySite == 'C111') || (line.ajccId == '17' && line.primarySite == 'C160' && line.histologicTypeIcdO3 == '8020'))
        return true
    return false
}

return ajccId.contains(line.ajccId)]]></expression>
            <message>Primary Site, Histologic Type ICD-O-3, and Schema Discriminator 2 are incompatible with AJCC ID.</message>
            <description><![CDATA[This edit verifies that Schema Discriminator 2, where required, is used where the Primary Site and Histologic Type ICD-O-3 codes are not sufficient to identify the appropriate AJCC staging scheme.

Schema Discriminator 2 code is used to distinguish between p16 positive and p16 negative histologies for oropharyngeal carcinomas. Schema Discriminator 2 is used to distinguish between undifferentiated carcinomas with squamous or glandular components for esophageal primaries. See the list of codes and definitions below the chart.

The edit checks that AJCC ID, Primary Site code or Histologic Type ICD-O-3 code, and Schema Discriminator 2 code occur together within the edited record, as shown in the following chart. The edit does not check that Schema Discriminator 2 is blank where not required for AJCC ID; Schema ID requires Schema Discriminator 2 on additional site/histology combinations.

1. The edit is skipped for the following condition:
   a. Date of diagnosis before 2018, blank, or invalid.
   b. Primary Site is blank
   c. Histologic Type ICD-O-3 is blank

2. The edit checks that Schema Discriminator 2 is coded and not blank for combinations of Primary Site and Histologic Type ICD-O-3. The combinations of site and histology are determined by AJCC ID but are checked independently of AJCC ID assignment.

3. The edit then verifies that Schema Discriminator 2 is valid for Primary Site, Histologic Type ICD-O-3, and AJCC ID.  Where SITE or HISTO is listed as "All", Schema Discriminator 1 is required for all the sites or histologies assigned to the AJCC ID. Where a specific site or histology is listed, Schema Discriminator 2 is required for only those sites or histologies for the AJCC ID.

4. Where Schema Discriminator 1 is also required to assign the correct AJCC ID between two possible AJCC IDs, the edit will pass either AJCC ID as correct.  The AJCC IDs include 10 and 11.1, with histologies 8070 and 8083 for C111, and 16.1 and 16.2 for C160.

5. Where Schema Discriminator 2 is required for a site/histology combination for one AJCC ID, but not for the same combination of site/histology in another AJCCID, the edit will pass the AJCC ID where it is not required: e.g., 9, C111, all histos, and 17, C160, 8020.


   AJCC ID                     SITE                    HISTO   DISC 2

   10 Oropharynx (p16+)
                               C019                    All        2
                               C024                    All        2
                               C051                    All        2
                               C052                    All        2
                               C090                    All        2
                               C091                    All        2
                               C098                    All        2
                               C099                    All        2
                               C100                    All        2
                               C102                    All        2
                               C103                    All        2
                               C104                    All        2
                               C108                    All        2
                               C109                    All        2
                               C111                    All        2

   11.1 Oropharynx (p16-)
                               C019                    All        1, 9
                               C024                    All        1, 9
                               C051                    All        1, 9
                               C052                    All        1, 9
                               C090                    All        1, 9
                               C091                    All        1, 9
                               C098                    All        1, 9
                               C099                    All        1, 9
                               C100                    All        1, 9
                               C102                    All        1, 9
                               C103                    All        1, 9
                               C104                    All        1, 9
                               C108                    All        1, 9
                               C109                    All        1, 9
                               C111                    All        1, 9

   16.1 Esophagus and EGJ: Squamous Cell Carcinoma
                           C150-C155          8020        1, 9
                           C158-C159
                           C160

   16.2 Esophagus and EGJ: Adenocarcinoma
                           C150-C155         8020         2
                           C158-C159
                           C160

   41   Soft Tissue Sarcoma, Trunk, Extremities
                               C473                    All        1
                               C475                    All        1
                               C493                    All        1
                               C494                    All        1
                               C495                    All        1
   42   Soft Tissue Sarcoma, Abdomen, Thoracic Visceral Organs
                               C473                    All        2, 8
                               C475                    All        2, 8
                               C493                    All        2, 8
                               C494                    All        2, 8
                               C495                    All        2, 8


AJCC ID     SCHEMA DISCRIMINATOR 2 CODES AND DEFINITIONS

10          2: p16 Positive; HPV Positive; Diffuse, strong reactivity

11.1        1: p16 Negative; Nonreactive
            9: Not tested for p16; Unknown

16.1        1: Undifferentiated carcinoma with squamous component
            9: Undifferentiated carcinoma, NOS

16.2        2: Undifferentiated carcinoma with glandular component

41          1: External structure
            Blank:  Primary Site is not C473, C475, C493-C495, Discriminator is not necessary

42          2: Internal viscera
            8: Not applicable, abstracted prior to 2021 updates
            Blank:  Primary Site is not C473, C475, C493-C495, Discriminator is not necessary]]></description>
            <history>
                <event version="SE18-018-10" user="kirbyk" date="2018-12-04" ref="68066">Edit created.</event>
                <event version="SE18-018-11" user="kirbyk" date="2019-01-15" ref="68089">Changed the edit so it always returns true. There are issues with the table; the edit will be ignored until those issues are resolved.</event>
                <event version="SE18-019-01" user="kirbyk" date="2019-03-11" ref="68089">Fixed edit logic; edit will not check Schema Discriminator 2 for cases not in the table; changed edit name.</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="SE22-022-01" user="beverung" date="2022-02-18" ref="68808">Update for 2022.</event>
                <event version="SE24-024-01" user="cooki" date="2024-03-08" ref="69386">Updated description for 41, 42: blank conditions.</event>
                <event version="SE24-024-03" user="kirbyk" date="2024-03-20" ref="69329">Updated edit for 2024.</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-03" ref="69460">Added condition for AJCC ID = 17 with Primary Site = C160.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy