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

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

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

if (line.primarySite == null || line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null)
    return true

String ajccId = line.ajccId

Integer siteInt = Functions.asInt(line.primarySite.substring(1,4))
Map contextMap = (Map)Context.IFN3010_Table
if (!contextMap.containsKey(siteInt))
    return true
else {
    Map histologyMap = (Map)contextMap.get(siteInt)
    Integer histInt = Functions.asInt(line.histologicTypeIcdO3)
    if (!histologyMap.containsKey(histInt))
        return true
        
    Map behaviorMap = (Map)(histologyMap.get(histInt))
    if (!behaviorMap.containsKey(line.behaviorCodeIcdO3))
        return line.ajccId == 'XX'
    
    List ajccIds = (List)(behaviorMap.get(line.behaviorCodeIcdO3))
    if (ajccIds != null && ajccIds.contains(line.ajccId)) {
       if (line.ajccId == 'XX' && line.schemaDiscriminator1 == null)
           return true
    
        Map ajccIdMap = (Map)Context.IFN3010_AJCC_ID_Table
        List validDiscrims = (List)ajccIdMap.get(line.ajccId)
        
        return validDiscrims.contains(line.schemaDiscriminator1)
    }
    else
        return line.ajccId == 'XX'
}

return true]]></expression>
            <message>Primary Site, Histologic Type ICD-O-3, and Schema Discriminator 1 are incompatible with AJCC ID.</message>
            <description><![CDATA[This edit verifies that Schema Discriminator 1, 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 1 code is
used to distinguish between multiple meanings for these codes where required
for AJCC ID assignment.

For example, for topography code C240, Schema Discriminator 1 code 3 is
assigned if the primary site is cystic duct, AJCC ID 24; code 1, 5, 6 or 9
is assigned if the primary site is perihilar bile ducts, AJCC ID 25; code
4 or 7 is assigned if the primary site is distal bile ducts, AJCC ID 26. See
the list of codes and definitions below the chart.

Schema Discriminator 1 is also used in conjunction with an SSDI for AJCC ID
82.1 to identify a plasma cell myeloma that can be assigned staging information.

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

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

2. The edit checks that Schema Discriminator 1 is coded and not blank for
   combinations of Primary Site and Histologic Type ICD-O-3 as required. 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 1 is valid for Primary Site,
   Histologic Type ICD-O-3, Behavior Code ICD-O-3, and AJCC ID.  Where a specific
   site or histology is listed, Schema Discriminator 1 is required for only those
   sites or histologies for the AJCC ID.

4. Where Schema Discriminator 2 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, and 16.1 and 16.2 with histology 8020.

    AJCC ID                                      SITE    HISTO  BEH     DISC 1

    6     Cervical Lymph Nodes,
          Unknown Primary of Head and Neck       C760     All    3      2,3,4,5 
    9     Nasopharynx                            C111     All    2,3    1
    10    Oropharynx (p16+)                      C111     All    3      2
    11.1  Oropharynx (p16-)                      C111     All    2,3    2
    16.1  Esophagus and EGJ: Squamous Cell Ca    C160     All    2,3    2
    16.2  Esophagus and EGJ: Adenocarcinoma      C160     All    2,3    2
    16.3  Esophagus and EGJ: Other Histologies   C160     All    2,3    2
    17    Stomach                                C160     All    2,3    0,3,9
    24    Gallbladder                            C240     All    2,3    3
    25    Perihilar Bile Ducts                   C240     All    2,3    1,5,6,9
    26    Distal Bile Ducts                      C240     All    2,3    4,7
    43.1  GIST: Gastric and Omental              C481     All    3      2
    43.2  GIST: Small Intestinal, Esophageal,    C481     All    3      1,9
            Colorectal, Mesenteric, Perit
    63.1  Urethra, Male Penile, Female: Uroth    C680     All    2,3    1
    63.2  Urethra, Male Penile, Female:          C680     All    2,3    1
            Squamous Cell, Adenocarcinoma
    63.3  Prostatic Urethra: Urothelial          C680     All    2,3    2
    63.4  Prostatic Urethra:                     C680     All    2,3    2
            Squamous Cell, Adenocarcinoma
    67.1  Uveal Melanoma: Iris                   C694     All    3      2
    67.2  Uveal Melanoma: Ciliary Body, Chor     C694     All    3      1
    69    Lacrimal Gland                         C695     All    3      1
    73.1  Thyroid Gland - Differentiated         C739     All    3      1
    73.2  Thyroid Gland - Anaplastic             C739     All    3      1
    74    Thyroid - Medullary                    C739     All    3      1
    79.0  Non-Hodgkin Lymphoma NOS               All      9591   3      3,9
    82.1  Plasma Cell Myeloma                    All      9732   3      0
    83.0  Leukemia NOS                           All      9591   3      1,2

NOTE: Histology 8020 for 16.1,16.2 AJCC ID is only staged with Behavior code 3.

AJCC ID     SCHEMA DISCRIMINATOR 1 CODES AND DEFINITIONS

6-C760      2: Not tested for EBV or p16 in head and neck regional nodes (EBV
               and p16 both unknown)
            3: Unknown EBV, p16 negative in head and neck regional nodes
            4: Unknown p16, EBV negative in head and neck regional nodes
            5: Negative for both EBV and p16 in head and neck regional nodes

9-C111      1: Posterior wall of nasopharynx, NOS

10-C111     2: Adenoid; pharyngeal tonsil
11.1-C111

16.1-C160   2: INVOLVEMENT of esophagus or esophagogastric junction (EGJ)
16.2-C160      AND epicenter LESS THAN or EQUAL TO 2 cm into the proximal
16.3-C160      stomach

17-C160     0: NO involvement of esophagus or gastroesophageal junction
               AND epicenter at ANY DISTANCE into the proximal stomach
               (including distance unknown)
            3: INVOLVEMENT of esophagus or esophagogastric junction (EGJ)
               AND epicenter GREATER THAN 2 cm into the proximal stomach
            9: UNKNOWN involvement of esophagus or gastroesophageal junction
               AND epicenter at ANY DISTANCE into the proximal stomach
               (including distance unknown

24-C240     3: Cystic bile duct; cystic duct

25-C240     1: Perihilar bile duct(s)
               Proximal extrahepatic bile duct(s); Hepatic duct(s)
            5: Diffuse involvement
               More than one subsite involved, subsite of origin not stated
            6: Stated as middle extrahepatic bile duct
               AND treated with combined hepatic and hilar resection
            9: Extrahepatic bile ducts, NOS

26-C240     4: Distal bile duct; Common bile duct; Common duct, NOS
            7: Stated as middle extrahepatic bile duct
               AND treated with combined hepatic and hilar resection

43.1-C481   1: Mesentery; Mesoappendix; Mesocolon; Pelvic peritoneum;
               Rectouterine pouch: Cul de sac, Pouch of Douglas;
               Other specified peritoneal site
            9: Unknown or no information; Not documented in medical record

43.2-C481   2: Omentum

63.1-C680   1: Male penile urethra; Female urethra: Urethral gland;
63.2-C680      Cowper gland; Urethra, NOS

63.3-C680   2: Males only: Prostatic urethra, Prostatic utricle
63.4-C680

67.1-C694   2: Iris

67.2-C694   1: Ciliary Body; Crystalline lens; Sclera; Uveal tract;
               Intraocular; Eyeball

69-C695     1: Lacrimal gland

73.1-C739   1: Thyroid gland; Thyroid, NOS
73.2-C739
74-C739

79.0-9591   3: Splenic diffuse red pulp small B-cell lymphoma
               Splenic marginal zone lymphoma, diffuse variant
               Splenic red pulp lymphoma with numerous basophilic villous
               lymphocytes
               Splenic lymphoma with villous lymphocytes
            9: Non-Hodgkin lymphoma, NOS
               Any other terminology describing non-Hodgkin lymphoma, NOS

82.1-9732   0: Multiple myeloma
               Myeloma, NOS
               Non-secretory myeloma
               Plasma cell myeloma (PCM)
               Ultra-High-Risk Smoldering MM (SMM)

83.0-9591   1: Splenic B-cell lymphoma/leukemia, unclassifiable
            2: Hairy cell leukemia variant
               Prolymphocytic variant of hairy cell leukemia]]></description>
            <history>
                <event version="SE18-018-10" user="kirbyk" date="2018-12-05" ref="68065">Edit created.</event>
                <event version="SE18-018-11" user="kirbyk" date="2019-01-03" ref="68081">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="68090">Fixed table values and description and turned edit back on; changed edit name.</event>
                <event version="SE18-019-01" user="kirbyk" date="2019-04-16" ref="68163">Removed skip condtiion based on AJCC ID.</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="SE21-021-04" user="kirbyk" date="2021-05-20" ref="68595">Updated edit logic and table for 2021.</event>
                <event version="SE22-022-01" user="beverung" date="2022-02-24" ref="68778">Update table for 2022.</event>
                <event version="SE24-024-03" user="beverung" date="2024-02-02" ref="69328">Updated table for 2024. Removed behavior codes 0,1 for AJCC IDs 43.1 and 43.2.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy