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

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

        <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

if (line.histologicTypeIcdO3 == '8510' && line.primarySite == 'C739')
    return false

if (line.histologicTypeIcdO3 == '8550' && Functions.matches(line.primarySite, /^C34\d$/))
    return false

if (line.dateOfDiagnosisYear >= '2019') {
    if (Functions.matches(line.histologicTypeIcdO3, /^825[3467]$/) && !Functions.matches(line.primarySite, /^C34\d$/))
        return false

    if (line.histologicTypeIcdO3 == '9150' && (line.gradeClinical == '4' || line.gradePathological == '4' || line.gradePostTherapy == '4'))
        return true

    if (line.primarySite != null && Functions.matches(line.primarySite, /^C\d\d\d$/)) {
        Integer siteInt = Functions.asInt(line.primarySite.substring(1,4))
        List invalidHistologies = (List)((Map)Context.IFN4911_Table).get(siteInt)
        if (invalidHistologies != null && invalidHistologies.contains(line.histologicTypeIcdO3))
            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

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

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        8210        Adenocarcinoma
    C180-C209           8140        8261        Adenocarcinoma
    C180-C209           8140        8144        Adenocarcinoma
    C180-C209           8140        8501        Adenocarcinoma
    C180-C209           8244        8245        Mixed adenoneuroendocrine carcinoma
    C180-C209           8265        8507        Micropapillary adenocarcinoma
    C300,C310-C319      8144        8480        Colloid Type Adenocarcinoma
    C300,C310-C319      9540        9560        Peripheral Nerve Sheath Tumor
    C300,C310-C319      8072        8121        Non-keratinizing SCC
    C300,C310-C319      8072        8120        Non-keratinizing SCC
    C300,C310-C319      9522        9521        Olfactory neuroblastoma
    C300,C310-C319      9522        9523        Olfactory neuroblastoma
    C300,C310-C319      9364        9500        Primitive neuroectodermal tumor
    C300,C310-C319      9364        9260        Primitive neuroectodermal tumor
    C300,C310-C319      9364        9503        Primitive neuroectodermal tumor
    C300,C310-C319      9081        9080        Teratocarcinosarcoma
    C300,C310-C319      8802        8830        Pleomorphic cell sarcoma
    C300,C310-C319      8140        8263        Tubulopapillary adenocarcinoma low grade
    C340-C349           8551        8550        Acinar adenocarcinoma
    C340-C349           8562        8983        Epithelial-myoepithelial carcinoma
    C340-C349           8083        8123        Basaloid carcinoma
    C340-C349           8265        8507        Micropapillary adenocarcinoma
    C470-C479           8815        9150        Solitary fibrous tumor
    C470-C479           8802        8830        Undifferentiated pleomorphic sarcoma
    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           8815        9150        Solitary fibrous tumor
    C751-C753           8815        9150        Solitary fibrous tumor
    C700-C729           8802        8830        Undifferentiated pleomorphic sarcoma
    C751-C753           8802        8830        Undifferentiated pleomorphic sarcoma
    C739                8260        8050        Papillary carcinoma
    C739                8345        8510        Medullary Carcinoma
    C739                8346        8510        Medullary Carcinoma]]></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 &apos;8480&apos; 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>
            </history>
        </rule>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy