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

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

The newest version!
        <rule id="IFN2965" name="Schema ID, Site, Histo, Schema Discriminator 1 (NAACCR)" tag="N2965" java-path="lines.line" category="inter-field" depends="Primary_Site,Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018')
    return true

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

Integer siteInt = Functions.asInt(line.primarySite.substring(1,4))
Map contextMap = (Map)Context.IFN2965_Table
if (!contextMap.containsKey(siteInt))
    return line.schemaDiscriminator1 == null
else {
    Map histologyMap = (Map)contextMap.get(siteInt)
    Integer histInt = Functions.asInt(line.histologicTypeIcdO3)
    if (!histologyMap.containsKey(histInt))
        return line.schemaDiscriminator1 == null
    
    List schemaIds = (List)(histologyMap.get(histInt))
    if (schemaIds != null && schemaIds.contains(line.schemaId)) {
        Map discrimMap = (Map)Context.IFN2965_Schema_ID_Table
        List validDiscrims = (List)discrimMap.get(line.schemaId)

        return validDiscrims.contains(line.schemaDiscriminator1)
    }
    else
        return false
}

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

For example, for topography code C240, Schema Discriminator 1 code 3 is
assigned if the primary site is cystic duct, Schema ID 00240; code 1, 5, 6
or 9 is assigned if the primary site is perihilar bile ducts, Schema ID
00250; code 4 or 7 is assigned if the primary site is distal bile ducts,
Schema ID 00260. Schema Discriminator 1 is only required for the primary
site codes or histologies listed for each Schema ID; there may be other
primary site codes or histologies within the Schema ID that do not require
Schema Discriminator 1, and Schema Discriminator 1 must be left blank if
not required.

Schema Discriminator 1 is used for staging information rather than Schema ID
assignment for SchemaIDs 00430, 00730, 00740, and 00821.  
    
The edit checks that Schema 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.  If there is an edit failure, the
problem may be due to a software error. If coding is reviewed and correct,
the software vendor should be consulted for assistance in resolving the
issue.

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

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

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

    SCHEMA ID                                      SITE    HISTO    DISC 1

    00060    Cervical Lymph Nodes,                 C760    All         2,3,4,5
             Unknown Primary of Head and Neck
    00090    Nasopharynx                           C111    All         1
    00100    Oropharynx (p16+)                     C111    All         2
    00111    Oropharynx (p16-)                     C111    All         2
    00161    Esophagus Squamous                    C160    All         2
    00169    Esophagus excluding Squamous          C160    All         2
    00170    Stomach                               C160    All         0,3,9
    00242    Cystic Duct                           C240    All         3
    00250    Bile Ducts Perihilar                  C240    All         1,5,6,9
    00260    Bile Ducts Distal                     C240    All         4,7
    00430    GIST                                  C481    All         1,2,9
    00459    Soft Tissue Other                     C760    8941        0,1
    00631    Urethra                               C680    All         1
    00633    Urethra-Prostatic                     C680    All         2
    00671    Melanoma Iris                         C694    All         2
    00672    Melanoma Choroid and Ciliary Body     C694    All         1
    00690    Lacrimal Gland                        C695    All         1
    00698    Lacrimal Sac                          C695    All         2,9
    00730    Thyroid                               C739    All         1,2
    00740    Thyroid - Medullary                   C739    All         1,2
    00790    Lymphoma                              All     9591        3,9
    00821    Plasma Cell Myeloma                   All     9732        0,1,9
    00830    HemeRetic                             All     9591        1,2
    99999    Ill-Defined Other                     C760    Some*         0,1

*Histologies requiring Schema Discriminator 1 for 99999:
    8010, 8046, 8051-8052, 8070-8074, 8082-8084, 8121, 8140, 8147, 8200, 8310, 8430,
    8450, 8480, 8525,8550, 8562

4. The edit verifies that Schema Discriminator 1 is blank for all other
   Primary Site or Histologic Type ICD-O-3 codes in the Schema ID.

5. The edit verifies that Schema Discriminator 1 is left blank for all other
   Schema IDs.

6. Where Schema Discriminator 2 is also required to assign the correct Schema ID,
    the edit will pass either Schema ID as correct.  The Schema IDs include 00100 and
   00111, and 00161 and 00169 with histology 8020.

SCHEMA ID-
SITE OR HISTO    SCHEMA DISCRIMINATOR 1 CODES AND DEFINITIONS

00060-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

00090-C111       1: Posterior wall of nasopharynx, NOS

00100-C111       2: Adenoid; pharyngeal tonsil
00111-C111

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

00170-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

00242-C240       3: Cystic bile duct; cystic duct

00250-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

00260-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

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

00459-C760       0: Not occult
                 1: Occult, Negative cervical nodes (regional head and neck nodes)

00631-C680       1: Male penile urethra; Female urethra: Urethral gland;
00633-C680          Cowper gland; Urethra, NOS
                 2: Males only: Prostatic urethra, Prostatic utricle

00671-C694       2: Iris

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

00690-C695       1: Lacrimal gland

00698-C695       2: Lacrimal sac; Lacrimal duct, NOS; Nasal lacrimal duct/sac;
                    Nasolacrimal duct
                 9: Lacrimal, NOS

00730-C739       1: Thyroid gland; Thyroid, NOS
00740-C739       2: Thyroglossal duct cyst

00790-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

00821            0: Multiple myeloma
                    Myeloma, NOS
                    Non-secretory myeloma
                    Plasma cell myeloma (PCM)
                    Ultra-High-Risk Smoldering MM (SMM)
                 1: Smoldering plasma cell myeloma (SPCM)
                    Asymptomatic plasma cell myeloma
                    Early myeloma
                    Evolving myeloma
                 9: Other terminology describing myeloma
                    Unknown terminology used

00830-9591       1: Splenic B-cell lymphoma/leukemia, unclassifiable
                 2: Hairy cell leukemia variant
                    Prolymphocytic variant of hairy cell leukemia

99999-C760       0: Not occult
                 1: Occult, Negative cervical nodes (regional head and neck nodes)]]></description>
            <history>
                <event version="SE18-018-10" user="kirbyk" date="2018-12-05" ref="68065">Edit created.</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-15" ref="68168">Removed skip conditions for Schema 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-04-12" ref="68595">Updated edit logic and table for 2021.</event>
                <event version="SE22-022-01" user="beverung" date="2022-02-07" ref="68779">Update table for 2022.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy