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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF108" name="RX Summ--Surg Prim Site 03-2022, Site, ICDO3 (SEER IF108)" tag="N0600" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,RX_Summ--Surg_Prim_Site,Year_of_Diagnosis">
            <expression><![CDATA[if (line.rxSummSurgPrimSite == null || line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear > '2017' || line.histologicTypeIcdO3 == null )
    return true

Integer site = Functions.asInt(line.primarySite.substring(1))
Integer hist = Functions.asInt(line.histologicTypeIcdO3)

if (line.dateOfDiagnosisYear < '2010' && ((List)Context.IF108_Hist_List_Pre2010).contains(hist))
    return line.rxSummSurgPrimSite == '98' || line.rxSummSurgPrimSite == '99'

if (line.dateOfDiagnosisYear >= '2010' && line.dateOfDiagnosisYear < '2018' && ((List)Context.IF108_Hist_List_2010).contains(hist))
    return line.rxSummSurgPrimSite == '98' || line.rxSummSurgPrimSite == '99'

if (((List)Context.If108_AllOtherSites).contains(site) && line.rxSummSurgPrimSite == '41')
      return site >= 690 && site <= 699

return ((List)((Map)Context.IF108SiteReferenceTable).getOrDefault(site, [])).contains(Functions.asInt(line.rxSummSurgPrimSite))]]></expression>
            <message>RX summ--surg prim site 03-2022, primary site conflict</message>
            <description><![CDATA[This edit is skipped for the following conditions:
    a. If Histologic Type ICD-O-3 is blank,
    b. RX Summ--Surg Prim Site 03-2022 is blank
    c. Date of Diagnosis is blank, invalid (unknown), or > 2017.

The valid RX Summ--Surg Prim Site 03-2022 codes for each Primary Site are specified in
SEER Program Coding and Staging Manual 2018.

Exceptions are as follows:

For all sites:
1.  If year of Date of Diagnosis is < 2010 and Histologic Type ICD-O-3 = [9750,
    9760-9764, 9800-9820, 9826, 9831-9920, 9931-9964, 9980-9989], then
    RX Summ--Surg Prim Site 03-2022 must = 98 or 99.

2.  If year of Date of Diagnosis is 2010-2017 and Histologic Type ICD-O-3 =
    [9727, 9733, 9741-9742, 9764-9809, 9832, 9840-9931, 9945-9946, 9950-9967,
    9975-9992], then RX Summ--Surg Prim Site 03-2022 must = 98 or 99.

If Primary Site group is All Other Sites (group 30 in the table used for this
edit) and RX Summ--Surg Prim Site 03-2022 = 41 (enucleation for eye surgery only), then
Primary Site must = C690-C699 (eye and adnexa).]]></description>
            <history>
                <event version="SE12-002-01" user="murphyr" date="2010-01-27">Hematopoietic range expanded from 9989 to 9992. If primary site group is All Other Sites and RX Summ-- Surg Prim Site[1290] = 41 then Primary Site[400] must = C690-C699.</event>
                <event version="SE12-002-01" user="murphyr" date="2010-03-30">Fixed error in edit.</event>
                <event version="SE12-002-04" user="murphyr" date="2010-07-23">Added codes 21,22, and 30 to Brain table.</event>
                <event version="SE12-004-01" user="murphyr" date="2010-12-13">Added year of diagnosis to edit.</event>
                <event version="SE12-003-03" user="murphyr" date="2011-02-10">Modified code to be more clear.  No change to logic.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-02-17">Added code 76 as a valid code for Breast.</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-05" user="schadega" date="2018-08-15" ref="68001">Added DX year skip condition for some histologic types.</event>
                <event version="SE18-019-01" user="kirbyk" date="2019-03-28" ref="68162">Added skip condition for DX Year &gt; 2018.</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-03" user="beverung" date="2020-04-14" ref="68337">Updated skip conditions.</event>
                <event version="SE22-022-06" user="secristc" date="2022-05-24" ref="68999">Removed skip condition for DX year = 2018.</event>
                <event version="SE23-023-01" user="secristc" date="2023-01-27" ref="69110">Updated name and description to use RX Summ--Surg Prim Site 03-2022.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy