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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF585" name="TNM Path T, SSF 1 Retinoblastoma (COC)" tag="N2268" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_1,Histologic_Type_ICD-O-3,Primary_Site,TNM_Path_T,Type_of_Reporting_Source,Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.tnmPathT == null || line.tnmPathT == '88' || line.csSiteSpecificFactor1 == null)
    return true

//Skip condition 7
if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7')
    return true

//Skip condition 4
if (line.primarySite != 'C692' || line.histologicTypeIcdO3 < '9510' || line.histologicTypeIcdO3 > '9514')
    return true

String ssf1 = line.csSiteSpecificFactor1
if (ssf1 == '300' || ssf1 == '410' || ssf1 == '430' || ssf1 == '435')
    return line.tnmPathT == 'p1'
else if (ssf1 == '440' || ssf1 == '460' || ssf1 == '465')
    return line.tnmPathT == 'p2A'
else if (ssf1 == '470')
    return line.tnmPathT == 'p2B'
else if (ssf1 == '490')
    return line.tnmPathT == 'p2'
else if (ssf1 == '540' || ssf1 == '550' || ssf1 == '560')
    return line.tnmPathT == 'p3A'
else if (ssf1 == '570')
    return line.tnmPathT == 'p3B'
else if (ssf1 == '590')
    return line.tnmPathT == 'p3'
else if (ssf1 == '725')
    return line.tnmPathT == 'p4A'
else if (ssf1 == '745' || ssf1 == '755' || ssf1 == '810')
    return line.tnmPathT == 'p4'
else if (ssf1 == '765' || ssf1 == '775' || ssf1 == '790')
    return line.tnmPathT == 'p4B'
else if (ssf1 == '950')
    return line.tnmPathT == 'p0'
else if (ssf1 == '999')
    return line.tnmPathT == 'pX'
else if (ssf1 == '960' || ssf1 == '970')
    return line.tnmPathT == 'pX'

return true]]></expression>
            <message>TNM Path T and SSF 1 conflict for Retinoblastoma</message>
            <description><![CDATA[Purpose: This edit verifies that TNM Path T is coded consistently with CS SSF 1, Extension Evaluated at Enucleation, for Retinoblastoma.

This edit is skipped if any of the following conditions are true:

1. Year of Date of Diagnosis is less than 2016, blank (unknown), or invalid
2. Type of Reporting Source = 7 (Death Certificate Only)
3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)
4. Primary site/histology is not Retinoblastoma
5. TNM Path T is blank or 88
6. CS SSF 1 is blank
7. TNM Edition Number is not = 07, U7

For Retinoblastoma(Site:C692, Histology:9510-9514), SSF 1:

A. If SSF 1 = 300 (tumor confined to retina), 410 (tumor cells in vitreous body without optic nerve invasion and without choroidal invasion), 430 (tumor confined to subretinal space without optic nerve invasion and without choroidal invasion), 435 (tumor confined to eye NOS without optic nerve invasion and without choroidal invasion)
    then TNM Path T must = p1 (tumor confined to eye with no optic nerve or choroidal invasion)
B.  If SSF 1 = 440 (tumor invades optic nerve up to but not through level of lamina cribrosa without invasion of choroid), 460 (tumor invades choroid focally without invasion of optic nerve), 465 (stated as pT2a with no other information on extension)
    then TNM Path T must = p2A (Tumor superficially invades optic nerve head but does not extend past lamina cribrosa or tumor exhibits focal choroidal invasion)
C.  If SSF 1 = 470 (tumor invades optic nerve up to butnot through level oflamina cribrosa with focal invasion of choroid)
    then TNM Path T must = p2B (tumor superficially invades optic nerve head but does not extend past lamina cribrosa and exhibits focal choroidal invasion)
D.  If SSF 1 = 490 (tumor with minimal optic nerve and/or choroidal invasion NOS)
    then TNM Path T must = p2 (tumor with minimal optic nerve and/or choroidal invasion)
E.  If SSF 1 = 540 (tumor invades optic nerve through the level of lamina cribrosa but not to line of resection without massive invasion of choroid), 550 (tumormassively invades choroid without invasion of optic nerve through level of lamina cribrosa), 560 (tumor with significant optic nerve and/or choroidal invasion)
    then TNM Path T must = p3A (tumor invades optic nerve past lamina cribrosa but not to surgical resection line or tumor exhibits massive choroidal invasion)
F.  If SSF 1 =  570 (tumor invades optic nerve through level of lamina cribrosa but not to line of resection with massive invasion of choroid)
    then TNM Path T must = p3B (tumor invades optic nerve past lamina cribrosa but not to surgical resection line and exhibits massive choroidal invasion)
G.  If SSF 1  = 590 (tumor with significant optic nerve and/or choroidal invasion NOS)
    then TNM Path T must = p3 (tumor with significant optic nerve and/or choroidal invasion)
H.  If SSF 1 = 725 (invasion of optic nerve to resection line without extraocular extension)
    then TNM Path T must = p4A (tumor invades optic nerve to resection line but no extra-ocular extension identified)
I.  If SSF 1 = 745 (extraocular extension without invasion of optic nerve to resection line), 755 (extraocular extension without invasion of optic nerve to resection line including extension to brain), 810 (stated as pT4 NOS with no other information on extension)
    then TNM Path T must = p4 (Tumor invades optic nerve to resection line or exhibits extra-ocular extension elsewhere)
J.  If SSF 1 = 765 (invasion of optic nerve to resection line with extraocular extension), 775 (invasion of optic nerve to resection line with extraocular extension to brain),790 (stated as [T4b with no other information on extension)
    then TNM Path T must = p4B (tumor invades optic nerve to resection line and extra-ocular extension identified)
K.  If SSF 1 = 950 (no evidence of primary tumor)
    then TNM Path T must = p0
L.  If SSF 1 = 999 (enucleation performed, extension unknown)
    then TNM Path T must = pX
M.  If SSF 1 = 960 (unknown if enucleation performed), 970 (no enucleation performed
    then TNM Path T must = pX or blank]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-19" ref="67408">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-17" ref="67612">Added skip condition for TNM Edition Number.</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-02" user="schadega" date="2018-05-18" ref="67743">Name change.</event>
                <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy