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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF502" name="CS SSF 4, 5, 6, MelanomaSkin (CS)" tag="N1911" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_4,CS_Site-Specific_Factor_5,CS_Site-Specific_Factor_6,CS_Version_Input_Original">
            <expression><![CDATA[if (line._csSchemaId == null || (line.csVersionInputOriginal != null && Functions.asInt(line.csVersionInputOriginal) < 20500) ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' ||
    line.csSiteSpecificFactor4 == null || line.csSiteSpecificFactor4 == '988' ||
    line.csSiteSpecificFactor5 == null || line.csSiteSpecificFactor5 == '988' ||
    line.csSiteSpecificFactor6 == null || line.csSiteSpecificFactor6 == '988')
    return true

if (line._csSchemaId == 'melanoma_skin') {
    if (line.csSiteSpecificFactor4 == '998' && (line.csSiteSpecificFactor5 != '998' || line.csSiteSpecificFactor6 != '998'))
        return false
    if (line.csSiteSpecificFactor5 == '998' && (line.csSiteSpecificFactor4 != '998' || line.csSiteSpecificFactor6 != '998'))
        return false
    if (line.csSiteSpecificFactor6 == '998' && (line.csSiteSpecificFactor4 != '998' || line.csSiteSpecificFactor5 != '998'))
        return false
}

return true]]></expression>
            <message>Conflict between CS SSF 4, 5, 6, and MelanomaSkin Schema</message>
            <description><![CDATA[This edit verifies that for cases using the MelanomaSkin schema, CS Site-Specific Factor 4 (LDH), CS Site-Specific Factor 5 (LDH lab value), and CS Site-Specific Factor 6 (LDH upper limits of normal) are coded consistently. If one specifies "test not done", the others must also specify "test not done".

This edit is skipped if any of the following conditions are true:
1. CS Version Input Original is less than 020500 and CS Version Input Original is not blank
2. CS Site-Specific Factor 4 is blank or 988
3. CS Site-Specific Factor 5 is blank or 988
4. CS Site-Specific Factor 6 is blank or 988
5. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)
6. CS schema is invalid

If CS schema is MelanomaSkin:
1. If CS Site-Specific Factor 4 = 998, then CS Site-Specific Factor 5 and CS Site-Specific Factor 6 must = 998.

2. If CS Site-Specific Factor 5 = 998, then CS Site-Specific Factor 4 and CS Site-Specific Factor 6 must = 998.

3. If CS Site-Specific Factor 6 = 998, then CS Site-Specific Factor 4 and CS Site-Specific Factor 5 must = 998.

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.]]></description>
            <history>
                <event version="SE14-011-01" user="murphyr" date="2013-11-18" ref="67045">Edit created.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-04-20" ref="67335">Updated skip condition for CS Version Input Original.</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="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