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

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

There is a newer version: 024-13
Show newest version
        <rule id="MorphICDO3_P1" 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,Year_of_Diagnosis">
            <expression><![CDATA[if (line.histologicTypeIcdO3 == null && line.behaviorCodeIcdO3 == null)
    return true

if (line.dateOfDiagnosisYear < '2010' && [9751,9831,9975].contains(Functions.asInt(line.histologicTypeIcdO3)) && (line.behaviorCodeIcdO3 == '3' || line.behaviorCodeIcdO3 == '2'))
    return line.overRideHistology == '1' || line.overRideHistology == '3'
if (line.dateOfDiagnosisYear > '2009' && [9751,9831,9975].contains(Functions.asInt(line.histologicTypeIcdO3)) && (line.behaviorCodeIcdO3 == '3' || line.behaviorCodeIcdO3 == '2'))
     return line.overRideHistology == null
if (line.dateOfDiagnosisYear < '2010' && ((List)Context.Morph_ICDO3_2010).contains(Functions.asInt(line.histologicTypeIcdO3)))
    return false

if (line.dateOfDiagnosisYear < '2018' && [8213,8311,8825,8842,8983,9302,9341].contains(Functions.asInt(line.histologicTypeIcdO3)) && line.behaviorCodeIcdO3 == '3')
    return line.overRideHistology == '1' || line.overRideHistology == '3'
if (line.dateOfDiagnosisYear > '2017' && [8213,8311,8825,8842,8983,9302,9341].contains(Functions.asInt(line.histologicTypeIcdO3)) && line.behaviorCodeIcdO3 == '3')
     return line.overRideHistology == null
if (line.dateOfDiagnosisYear < '2018' && ((List)Context.Morph_ICDO3_2018).contains(Functions.asInt(line.histologicTypeIcdO3)))
    return false

if (line.dateOfDiagnosisYear < '2021' && [8158,8681,8682,8690,9766].contains(Functions.asInt(line.histologicTypeIcdO3)) && line.behaviorCodeIcdO3 == '3')
    return line.overRideHistology == '1' || line.overRideHistology == '3'
if (line.dateOfDiagnosisYear > '2020' && [8158,8681,8682,8690,9766].contains(Functions.asInt(line.histologicTypeIcdO3)) && line.behaviorCodeIcdO3 == '3')
     return line.overRideHistology == null
if (line.dateOfDiagnosisYear < '2021' && ((List)Context.Morph_ICDO3_2021).contains(Functions.asInt(line.histologicTypeIcdO3)))
    return false

if (line.dateOfDiagnosisYear < '2022' && line.histologicTypeIcdO3 == '9222' && line.behaviorCodeIcdO3 == '3')
    return line.overRideHistology == '1' || line.overRideHistology == '3'
if (line.dateOfDiagnosisYear > '2021' && line.histologicTypeIcdO3 == '9222' && line.behaviorCodeIcdO3 == '3')
     return line.overRideHistology == null
if (line.dateOfDiagnosisYear < '2022' && ((List)Context.Morph_ICDO3_2022).contains(Functions.asInt(line.histologicTypeIcdO3)))
    return false

if (line.dateOfDiagnosisYear < '2023' && [9174,9509].contains(Functions.asInt(line.histologicTypeIcdO3)) && line.behaviorCodeIcdO3 == '3')
    return line.overRideHistology == '1' || line.overRideHistology == '3' || line.overRideSiteType == '1'
if (line.dateOfDiagnosisYear > '2022' && [9174,9509].contains(Functions.asInt(line.histologicTypeIcdO3)) && line.behaviorCodeIcdO3 == '3')
    return line.overRideHistology == null
if (line.dateOfDiagnosisYear < '2023' && ((line.histologicTypeIcdO3 == '9509' && line.behaviorCodeIcdO3 == '0') || (line.histologicTypeIcdO3 == '9749' && line.behaviorCodeIcdO3 == '1')))
    return false

if (line.dateOfDiagnosisYear < '2024' && line.histologicTypeIcdO3 == '9104' && line.behaviorCodeIcdO3 == '3')
    return line.overRideHistology == '1' || line.overRideHistology == '3' || line.overRideSiteType == '1'
if (line.dateOfDiagnosisYear > '2023' && line.histologicTypeIcdO3 == '9104' && line.behaviorCodeIcdO3 == '3')
    return line.overRideHistology == null

return true]]></expression>
            <message>Histologic Type ICD-O-3 and Date of Diagnosis conflict</message>
            <description><![CDATA[This edit is skipped if any of the following fields are blank
1.  Histologic Type ICD-O-3
2.  Behavior ICD-O-3

The valid values of Histologic Type ICD-O-3 are checked in a different edit.

To accommodate the new Hematopoietic and Lymphoid Neoplasm Rules effective for cases diagnosed 1/1/2010 and later:
The following Histologic Type ICD-O-3 codes are allowed only for cases with a year of Date of Diagnosis of 2010 and later:
9597, 9688, 9712, 9724, 9725, 9726, 9735, 9737, 9738, **9751, 9759, 9806, 9807, 9808, 9809, 9811, 9812, 9813, 9814, 9815, 9816, 9817, 9818, **9831, 9865, 9869, 9898, 9911, 9965, 9966, 9967, 9971, **9975, 9991, 9992
** Considered benign and/or borderline prior to 2010 and, if coded with Behavior ICD-O-3 code of 3, required an over-ride.  For cases diagnosed 2010 or later, these histologies are now reportable (with Behavior ICD-O-3 code of 3) and an over-ride should not be used.

To accommodate the ICD-O-3 codes effective for cases diagnosed 1/1/2018 and later:
The following Histologic Type ICD-O-3 codes are allowed only for cases with a year of Date of Diagnosis of 2018 and later:
8023, 8054, 8085, 8086, 8158, 8163, **8213, 8257, 8256, 8265, **8311, 8339, 8474, 8509, 8519, 8552, 8594, 8714, **8825,**8842, 8975, **8983, 9045, 9086, 9137, **9302, **9341, 9385, 9395, 9396, 9425, 9431, 9432, 9445, 9475, 9476, 9477, 9478, 9509, 9542
** Considered benign and/or borderline prior to 2018 and, if coded with Behavior ICD-O-3 code of 3, required an over-ride. For cases diagnosed 2018 or later, these histologies are now reportable (with Behavior ICD-O-3 code of 3) and an over-ride should not be used.

To accommodate the ICD-O-3.2 codes effective for cases diagnosed 1/1/2021 and later:
The following Histologic Type ICD-O-3 codes are allowed only for cases with a year of Date of Diagnosis of 2021 and later:
8104, **8158, 8273, 8348, 8349, 8483, 8484, 8563, 8643,**8681,**8682, **8690, &amp;&amp;8691, &amp;&amp;8692, 8816, 8817,8818, 8828, 8992, 9126, 9138, 9211, 9212, 9213, 9222, 9563, 9715, 9749, **9766, 9819, 9877, 9878, 9879, 9912, 9968, 9993
**considered benign and/or borderline prior to 2021 and, if coded with Behavior ICD-O-3 code of 3, required an over-ride. For cases diagnosed 2021 or later, these histologies are now reportable (with Behavior ICD-O-3 code of 3) and an over-ride should not be used.
&amp;&amp;considered borderline prior to 2021 but no over-ride was required if coded with /3

To accommodate the ICD-O-3.2 codes effective for cases diagnosed 1/1/2022 and later:
The following Histologic Type ICD-O-3 codes are allowed only for cases with a year of Date of Diagnosis of 2022 and later:
8455, 8859, 8976, 9111, **9222, 9366, 9367, 9368
**considered borderline prior to 2022 and, if coded with Behavior ICD-O-3 code of 3, required an over-ride. For cases diagnosed 2022 or later, this histology is now reportable (with Behavior ICD-O-3 code of 3) and an over-ride should not be used.

To accommodate the ICD-O-3.2 codes effective for cases diagnosed 1/1/2023 and later:
The following Histologic Type ICD-O-3 codes and behaviors are allowed only for cases with a year of Date of Diagnosis 2023 and later. Over-ride Site/Type may be required with some primary sites.
**9174/3, 9509/0, **9509/3, 9749/1
** considered borderline prior to 2023 and, if coded with Behavior ICD-O-3 code of 3, required an over-ride (Over-ride Histology or Over-ride Site/Type). For cases diagnosed 2023 or later, this histology is now reportable (with Behavior ICD-O-3 code of 3). Over-ride Site/Type may be required with some primary sites.

To accommodate the ICD-O-3.2 codes effective for cases diagnosed 1/1/2024 and later:
The following Histologic Type ICD-O-3 codes and behaviors are allowed only for cases with a year of Date of Diagnosis 2024 and later. Over-ride Site/Type may be required with some primary sites.
**9104/3
** considered borderline prior to 2024 and, if coded with Behavior ICD-O-3 code of 3, required an over-ride (Over-ride Histology or Over-ride Site/Type). For cases diagnosed 2024 or later, this histology is now reportable (with Behavior ICD-O-3 code of 3). Over-ride Site/Type may be required with some primary sites.]]></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="SE12-008-05" user="murphyr" date="2012-11-30" ref="66769">Added &quot;Cases that have a behavior of &apos;3&apos; with histologies 9751,9831 or 9975 prior to 2010 must have the over-ride set.&quot; to the code.  It was in the documentation but not the code.</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">Removed logic duplicated in MorphICDO3_P2-4 edits.</event>
                <event version="SE18-018-01" user="kirbyk" date="2018-05-01" ref="67778">Added logic to accomodate ICD-O-3 codes for 2018+ cases.</event>
                <event version="SE18-018-02" user="kirbyk" date="2018-06-13" ref="67800">Changes to valid 2018+ histologies and &lt;2010 histologies.</event>
                <event version="SE18-018-06" user="kirbyk" date="2018-09-19" ref="68035">Fixed list of histologies for 2018+ in description.</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-01" user="beverung" date="2022-03-07" ref="68817">Update logic with new Histologies for 2021+ and 2022+ cases.</event>
                <event version="SE22-022-03" user="kirbyk" date="2022-04-05" ref="68920">Fixed list of 2021+ histologies with the &amp;&amp; exception.</event>
                <event version="SE22-022-09" user="beverung" date="2022-07-22" ref="69017">Fixed failures for benign and/or borderline histologies.</event>
                <event version="SE23-023-03" user="shearerw" date="2023-05-23" ref="69270">Add logic for 2023+ cases. Change valid years for 8213, 8483, 8484</event>
                <event version="SE24-024-01" user="beverung" date="2024-03-08" ref="69410">Added logic for 2024+ cases. </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