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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF307" name="CS Items - SEER Required - SSF 20 (CS)" tag="N2167" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2004' || line.dateOfDiagnosisYear > '2017')
    return true
if (Functions.matches(line.registryId, /^000000156[2356]$/))
    return true
// Pass if schema isn't found for this edit
if (line._csSchemaId == null)
    return true

if ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && !['brain','intracranial_gland','cns_other'].contains(line._csSchemaId))
    return true

if (line.csSiteSpecificFactor20 == null)
    return false

return true]]></expression>
            <message>CS Site-Specific Factor 20 requirements conflict for this schema</message>
            <description><![CDATA[This edit verifies that CS Site-Specific Factor20 is populated based on the SEER  requirements.

This edit is skipped if:
1. Date of Diagnosis is blank or invalid.
2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and
   schema is not Brain, CNSOther, or IntracranialGland
3. Registry ID = 0000001562 (New York), 0000001563 (Massachusetts), 0000001565 (Illinois), or 0000001566 (Texas)

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.

For all schemas, if year of Diagnosis is 2004-2017, CS Site-Specific Factor20 cannot be blank.]]></description>
            <history>
                <event version="SE12-004-01" user="murphyr" date="2011-02-15">Edit created.</event>
                <event version="SE12-004-02" user="murphyr" date="2011-03-18" ref="66447">Refined behavior skip condition (made it not skip for certain schemas) and refactored code.</event>
                <event version="SE13-010-01" user="murphyr" date="2013-07-12" ref="66904">Edit now fails if schema is blank.</event>
                <event version="SE14-011-01" user="murphyr" date="2013-11-06" ref="67007">Updated for CSv0205.</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-015-01" user="kirbyk" date="2016-06-16" ref="67474">Edit is skipped if schema cannot be found.</event>
                <event version="SE18-017-01" user="kirbyk" date="2018-04-02" ref="67723">Updated logic to allow blank SSF 20 for 2018+ cases.</event>
                <event version="SE18-019-03" user="beverung" date="2019-07-18" ref="68203">Added skip condition for New York.</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-02" user="beverung" date="2020-03-25" ref="68292">Added skip condition for Massachusetts</event>
                <event version="SE21-021-08" user="beverung" date="2021-08-18" ref="68715">Added skip condition for Illinois and Texas.</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy