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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN3032" name="Brain Molecular Markers, Morphology ICD-O-3 (NAACCR)" tag="N3032" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Histologic_Type_ICD-O-3,Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || !['00721', '00722', '09721', '09722', '09724'].contains(line.schemaId) || line.typeOfReportingSource == '7')
    return true

String brainMolecularMarkers = line.brainMolecularMarkers
String histology = line.histologicTypeIcdO3
String behavior = line.behaviorCodeIcdO3
String morph = histology + behavior

String[] morphsPre2024 = ['94003', '94013', '94403', '94503', '94513', '94713', '94783']
String[] morphs2024AndLater = ['93853', '93963', '94211', '94303', '95003']

if (histology == null || behavior == null || brainMolecularMarkers == null || brainMolecularMarkers == '88')
    return true

if (brainMolecularMarkers == '01' || brainMolecularMarkers == '02')
    if (morph != '94003')
        return false

if (brainMolecularMarkers == '03' || brainMolecularMarkers == '04')
    if (morph != '94013')
        return false

if (brainMolecularMarkers == '05')
    if (morph != '94403')
        return false
    
if (brainMolecularMarkers == '06')
    if (morph != '94503')
        return false
    
if (brainMolecularMarkers == '07')
    if (morph != '94513')
        return false
    
if (brainMolecularMarkers == '08')
    if (morph != '94713')
        return false

if (brainMolecularMarkers == '09')
    if (morph != '94783')
        return false

if (brainMolecularMarkers == '85')
    if (morphsPre2024.contains(morph))
        return false

if (brainMolecularMarkers == '86')
    if (behavior != '0' && behavior != '1')
        return false

if (line.dateOfDiagnosisYear < '2024') {
    if (behavior == '0' || behavior == '1')
        if (brainMolecularMarkers != '86')
            return false
}
if (line.dateOfDiagnosisYear >= '2024') {
    if (['10','11','12','13'].contains(brainMolecularMarkers))
        if (morph != '93853')
            return false

    if (['14','15','16','17','18'].contains(brainMolecularMarkers))
        if (morph != '93963')
            return false

    if (brainMolecularMarkers == '19' || brainMolecularMarkers == '20')
        if (morph != '94211')
            return false

    if (brainMolecularMarkers == '21')
        if (morph != '94303')
            return false

    if (brainMolecularMarkers == '22' || brainMolecularMarkers == '23')
        if (morph != '95003')
            return false

    if (brainMolecularMarkers == '85')
        if (morphs2024AndLater.contains(morph))
            return false

    if (brainMolecularMarkers == '86')
        if ((behavior == '0' || behavior == '1') && morph != '94211')
            return true
        else
            return false

    if ((behavior == '0' || behavior == '1') && morph != '94211')
        if (brainMolecularMarkers != '86')
            return false
}

return true]]></expression>
            <message>Brain Molecular Markers and Morphology ICD-O-3 conflict.</message>
            <description><![CDATA[This edit verifies that the brain molecular marker SSDI is coded consistently with Histologic Type ICD-O-3 and Behavior Code ICD-O-3.

1. The edit is skipped for the following conditions:
    a. Diagnosis date is before 2018, blank (unknown), or invalid.
    b. Histologic Type ICD-O-3 or Behavior Code ICD-O-3 is blank.
    c. Schema ID not = 00721, 00722, 09721, 09722, or 09724
    d. Brain Molecular Markers is blank or 88 (not applicable).
    e. Type of Reporting Source = 7 (Death Certificate Only)

2. The edit verifies that if Brain Molecular Markers is coded as shown,
    Histologic Type ICD-O-3 and Behavior Code ICD-O-3 are also coded as shown in the following list.

    01: 9400/3  Astrocytoma, IDH-mutant, grade 2
    02: 9400/3  Diffuse astrocytoma, IDH-wildtype
    03: 9401/3  Astrocytoma, IDH-mutant, grade 3
    04: 9401/3  Anaplastic astrocytoma, IDH-wildtype
    05: 9440/3  Glioblastoma, IDH-wildtype
    06: 9450/3  Oligodendroglioma, IDH-mutant and 1p/19q co-deleted
    07: 9451/3  Oligodendroglioma, IDH-mutant and 1p/19q co-deleted, grade 3
    08: 9471/3  Medulloblastoma, SHH-activated and TP53-wildtype
    09: 9478/3  Embryonal tumor with multilayered rosettes, C19MC-altered)
    85: Not applicable: Histology not 9400/3, 9401/3, 9440/3, 9450/3, 9451/3, 9471/3, 9478/3
    86: Benign or borderline tumor

3. In addition the edit verifies the coding of Brain Molecular Markers with the combination of Histologic Type ICD-O-3/Behavior
Code ICD-O-3 starting with 2024 diagnoses.

    10: 9385/3  Diffuse hemispheric glioma, H3-34 mutant
    11: 9385/3  Diffuse midline glioma, H3 K27-altered
    12: 9385/3  Diffuse pediatric-type high grade glioma, H3-wildtype and IDH-wildtype
    13: 9385/3  Infant-type hemispheric glioma
    14: 9396/3  Posterior fossa group A (PFA) ependymoma
    15: 9396/3  Posterior fossa group B (PFB) ependymoma
    16: 9396/3  Spinal ependymoma, MYCN-amplified
    17: 9396/3  Supratentorial ependymoma, YAP1 fusion-positive
    18: 9396/3  Supratentorial ependymoma, ZFTA fusion-positive
    19: 9421/1  Diffuse astrocytoma, MYB- or MYBL1-altered
    20: 9421/1  Diffuse low-grade glioma, MAPK pathway-altered
    21: 9430/3  Astroblastoma, MN1-altered
    22: 9500/3  CNS neuroblastoma, FOXR2-activated
    23: 9500/3  CNS tumor BCOR internal tandem duplication
    85: Not applicable: Histology not 9385/3, 9396/3, 9421/1, 9430/3, 9500/3
    86: Benign or borderline tumor (excludes 9421/1, codes 19-20)

4. If Brain Molecular Markers is coded 86 (Benign or borderline tumor),
    Behavior Code ICD-O-3 must = 0 (benign) or 1 (borderline).

   If Behavior Code ICD-O-3 = 0 or 1,
        Brain Molecular Markers must = 86 (excluding 9421/1 for 2024+ diagnoses).]]></description>
            <history>
                <event version="SE18-018-03" user="schadega" date="2018-07-25" ref="67915">Edit created.</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-04" user="secristc" date="2022-05-03" ref="68965">Added skip condition for Type of Reporting Source = 7.</event>
                <event version="SE23-023-01" user="cooki" date="2023-01-19" ref="69084">Added additional Schema IDs to the skip conditions.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-02-08" ref="69145">Update edit name and message. Change skip condition for when behavior or histology are blank.</event>
                <event version="SE24-024-01" user="beverung" date="2024-02-29" ref="69389">Added logic for 2024+ Brain Molecular Markers codes.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy