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

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

There is a newer version: 024-13
Show newest version
        <rule id="MorphICDO3_P4" name="Morphology--Type/Behavior ICDO3 (SEER MORPH)" tag="N0472" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Histologic_Type_ICD-O-3,MorphICDO3_P1">
            <expression><![CDATA[if (line.histologicTypeIcdO3 == null && line.behaviorCodeIcdO3 == null)
   return true

if (line.histologicTypeIcdO3 == '9421') {
    if (line.behaviorCodeIcdO3 == '1')
        return line.dateOfDiagnosisYear >= '2023' || (line.primarySite == 'C723' && line.dateOfDiagnosisYear >= '2018')
    return line.behaviorCodeIcdO3 == '3'
}

if (line.histologicTypeIcdO3 == '8077')
    return line.behaviorCodeIcdO3 != '3'

if (line.histologicTypeIcdO3 == '8343' && line.behaviorCodeIcdO3 == '2' && line.dateOfDiagnosisYear < '2017')
    return line.overRideHistology == '1' || line.overRideHistology == '3'

if (line.histologicTypeIcdO3 == '8519')
    return line.behaviorCodeIcdO3 == '2'

if (line.histologicTypeIcdO3 == '9540' && line.dateOfDiagnosisYear > '2017')
    return line.behaviorCodeIcdO3 != '1'

if (line.behaviorCodeIcdO3 == '2') {
    if (line.dateOfDiagnosisYear >= '2023' && line.histologicTypeIcdO3 == '9050')
        return true
    else if (line.overRideHistology != '1' && line.overRideHistology != '3')
        return !((List)((Map)Context.SpecInSituEdit).getOrDefault('Invalid_ICD_O_3_Histology_for_In_Situ_(Morph_3)', [])).contains(Functions.asInt(line.histologicTypeIcdO3))
}

if (line.behaviorCodeIcdO3 == '3' && line.dateOfDiagnosisYear >= '2021' && line.overRideHistology != '1' && line.overRideHistology != '3')
   return ![8833, 9725, 9260, 9971].contains(Functions.asInt(line.histologicTypeIcdO3))

return true]]></expression>
            <message>Histologic Type ICD-O-3 and Behavior conflict</message>
            <description><![CDATA[This edit is skipped for the following conditions:
1.  Histologic Type ICD-O-3[522] is blank
2.  Behavior ICD-O-3 is blank

Histology code 9421 (juvenile astrocytoma), although moving from behavior code 3 in ICD-O-2 to 1 in ICD-O-3, will CONTINUE to be collected with a behavior of 3 and it cannot be over-ridden for diagnosis years prior to 2023.

Histology code 9421 is accepted with behavior code '1' for DX year 2023+.

Histology code 9421 is accepted with behavior code '1' for DX year 2018+ and primary site = C723.

Histology code 8077 is NOT accepted with a behavior code '3' (malignant) and it cannot be over-ridden.

Histology code 8343 with a behavior code of '2' is not valid prior to 2017. Upon review, this can be over-ridden using Over-ride Histology.

Histology code 8519 is accepted with behavior code '2' and it cannot be over-ridden.

Histology code 9540 is NOT accepted with behavior code '1' for DX year 2018+ and cannot be over-ridden.

The following histology codes are not accepted with behavior code '2' in situ:  8000-8005, 8020, 8021, 8331, 8332, 8800-9055, 9062, 9082, 9083, 9110-9493, 9501-9992.  Upon review, these cases can be over-ridden using Over-ride Histology. For 2023 and later cases, 9050/2 is accepted.

The following histology codes are not accepted with behavior code '3' (malignant) for 2021+ cases: 8833, 9725, 9971. Upon review, these cases can be over-ridden using Over-ride Histology.

The malignant histology 9260 has been removed from the following code and transferred to another existing code. This code requires an over-ride if used for cases diagnosed 2021+.

Note:  Over-ride Histology is also used for SEER edit IF31.  Code 3 in Over-ride Histology indicates that both SEER's MORPH edit and IF31 are being over-ridden.]]></description>
            <history>
                <event version="SE12-002-01" user="murphyr" date="2010-02-02">Added 2 conditions for cases 2010+.</event>
                <event version="SE12-003-03" user="murphyr" date="2011-02-11">Changed range of histologies allowed for grades 5-8 from &quot;9590-9948&quot; to &quot;9590-9992&quot;.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-02-17">Removed some unnecessary code.  Removed unnecessary grade dependency for parts 1, 2, and 4.</event>
                <event version="SE16-016-08" user="depryf" date="2017-11-22" ref="67674">Edit syntax updated to allow pre-compilation optimization; no change in behavior.</event>
                <event version="SE18-018-01" user="kirbyk" date="2018-04-30" ref="67698">Added checks for histology &apos;9421&apos; and &apos;8077&apos;.</event>
                <event version="SE18-018-08" user="kirbyk" date="2018-10-30" ref="68048">Added condition for histology &apos;8343&apos; with DX Year &lt; 2017.</event>
                <event version="SE18-018-11" user="kirbyk" date="2019-01-08" ref="68084">Edit now allows 9421/1 with site C723 for DX year 2018+.</event>
                <event version="SE18-019-02" user="kirbyk" date="2019-05-30" ref="68192">Updated description to match logic.</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-04" user="beverung" date="2020-07-01" ref="68364">Added condition for &apos;9540&apos; with DX Year 2018+</event>
                <event version="SE18-020-05" user="beverung" date="2020-08-12" ref="68501">Histology &apos;9540&apos; with Behavior &apos;0&apos; is now valid.</event>
                <event version="SE22-022-01" user="beverung" date="2022-01-13" ref="68818">Added Histology restrictions for 2021+ cases with Behavior &apos;3&apos;</event>
                <event version="SE22-022-01" user="beverung" date="2022-03-07" ref="68817">Add logic for Histology 9260 for 2021+ cases.</event>
                <event version="SE23-023-03" user="shearerw" date="2023-05-17" ref="69271">Add logic for 2023+ cases and Histology 8519.</event>
                <event version="SE24-024-04" user="kirbyk" date="2024-04-16" ref="69326">Removed several dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy