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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF122" name="CS Extension, CS Tumor Size, Site, Hist ICDO3 (CS)" tag="N0698" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Extension,CS_Site-Specific_Factor_3,CS_Tumor_Size,Histologic_Type_ICD-O-3,Primary_Site">
            <expression><![CDATA[if (line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line._csSchemaId == null || line.csExtension == null || line.csTumorSize == null)
    return true

if (line._csSchemaId == 'prostate' && line.csExtension == '950' && line.csSiteSpecificFactor3 == '950')
    return line.csTumorSize == '000'

if (line.csExtension == '950' && !['prostate','kaposi_sarcoma','melanoma_skin','conjunctiva','melanoma_conjunctiva','melanoma_choroid','melanoma_iris','melanoma_ciliary_body','lymphoma_ocular_adnexa'].contains(line._csSchemaId))
    return line.csTumorSize == '000'

if (line.csTumorSize == '000' && line._csSchemaId != 'mycosis_fungoides' && line._csSchemaId != 'ill_defined_other' && !((List)Context.Mucosal_Melanoma_Head_Neck_Schemas).contains(line._csSchemaId))
    return line.csExtension == '950'

if (((List)((Map)Context.IF122_Stated_As_Codes).getOrDefault(line._csSchemaId, [])).contains(Functions.asInt(line.csExtension)))
    return line.csTumorSize != '999'

return true]]></expression>
            <message>Conflict among Site, Hist ICD-O-3, CS Extension and CS Tumor Size</message>
            <description><![CDATA[This edit is skipped if any of the following conditions are true:
1. CS Extension or CS Tumor Size is empty.
2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)

This edit first determines the correct CS schema by doing a function call to the CS Dynamic Link Library (dll).  The function call passes Primary Site, Histologic Type ICD-O-3, and CS Site-Specific Factor25 (schema discriminator) to the dll and the CS schema name is returned.

If CS schema is Prostate:
    If CS Extension = 950 and CS Site-Specific Factor 3 (pathologic extension) = 950, then CS Tumor Size must = 000.

If CS schema is not KaposiSarcoma, MelanomaSkin, Conjunctiva, MelanomaConjunctiva, MelanomaChoroid, MelanomaIris, MelanomaCiliaryBody, LymphomaOcularAdnexa, or Prostate:
    If CS Extension = 950, then CS Tumor Size must = 000.

If CS schema is not IllDefinedOther or one of the Mucosal Melanoma of Head and Neck schemas:
    If CS Tumor Size = 000, then CS Extension must = 950.

The following schemas contain some CS Extension codes that are "stated as" values.  These particular "stated as" codes reflect T values that match tumor size codes in the CS Tumor Size table. If the CS Extension is coded to one of the "stated as" values below, the CS Tumor Size must not be coded 999 (unknown; size not stated).

Schema               Extension "stated as" codes
--------------------------------------------------------------
AdrenalGland 200, 250
Anus 310, 320, 330

Bone 310, 350
Breast 110, 130, 140, 170, 180
BuccalMucosa 405, 410, 415

CarcinoidAppendix 320, 330, 335

FloorMouth 405, 410, 415

GISTAppendix 170, 210, 250, 270
GISTColon 170, 210, 250, 270
GISTEsophagus 170, 210, 250, 270
GISTPeritoneum 350, 360, 370, 380
GISTRectum 170, 210, 250, 270
GISTSmallIntestine 170, 210, 250, 270
GISTStomach 340, 390, 395, 398
GumLower 405, 410, 415
GumOther 405, 410, 415
GumUpper 405, 410, 415

HeartMediastinum 350, 375
Hypopharynx 305

KidneyParenchyma 310, 320, 330, 340, 350, 360

LacrimalGland 610, 620, 630
LipLower 405, 410, 415
LipOther 405, 410, 415
LipUpper 405, 410, 415
Lung 115, 120, 125

MerkelCellPenis 330, 560, 570
MerkelCellScrotum 310, 320, 330
MerkelCellSkin 600, 610, 620
MerkelCellVulva 450, 460, 470
MouthOther 405, 410, 415

NETAmpulla 310, 430
NETColon 170, 180, 190
NETRectum 170, 180, 190
NETSmallIntestine 170
NETStomach 170

Orbit 200, 300
Oropharynx 305, 310

PalateHard 405, 410, 415
PalateSoft 405, 410
PancreasBodyTail 150, 200
PancreasHead 150, 200
PancreasOther 150, 200
ParotidGland 305, 310
Peritoneum 350, 375
PharyngealTonsil 330, 350

Retroperitoneum 350, 375

SalivaryGlandOther 305, 310
Scrotum 310
Skin 510
SoftTissue 302, 312, 322
SubmandibularGland 305, 310

Thyroid 405, 410, 415, 420
TongueAnterior 405, 410, 415
TongueBase 405, 410]]></description>
            <history>
                <event version="SE11-001-22" user="greend" date="2007-12-15">Edit is skipped if Behavior Code ICD-O-3 [523] = 0 (benign) or 1 (borderline) and Primary Site [400] is not C700-729 (Brain and Other CNS) or C751-C753 (Intracranial Endocrine).</event>
                <event version="SE12-002-01" user="murphyr" date="2010-03-08">Edit now uses schema name.  Extension and Tumor Size codes now 3 digits.  Added stated as value table.</event>
                <event version="SE12-002-04" user="murphyr" date="2010-07-29">Edit now passes if CS schema is not found.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-02-11">Updated stated as codes for CSv2 version 02.03.02.</event>
                <event version="SE12-008-01" user="murphyr" date="2012-08-15" ref="66722">Added check for extension and SSF3 for prostate</event>
                <event version="SE14-011-01" user="murphyr" date="2013-10-24" ref="66994">Added MycosisFungoides skip condition.  Removed code 120 from the list of &apos;as stated&apos; codes for Breast schema.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-04" ref="67370">Changed edit to use schema IDs instead of schema names</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-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