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

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

The newest version!
        <rule id="IF448" name="CS SSF 2, Extension, KidneyParenchyma Schema (CS)" tag="N1767" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Extension,CS_Site-Specific_Factor_2">
            <expression><![CDATA[if (line.csSiteSpecificFactor2 == null || line.csSiteSpecificFactor2 == '988' ||
    line.csExtension == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' ||
    line._csSchemaId != 'kidney_parenchyma')
    return true

Integer extensionInt = Functions.asInt(line.csExtension)
if (line.csSiteSpecificFactor2 == '010')
    return extensionInt >= 600
if (line.csSiteSpecificFactor2 == '020' || line.csSiteSpecificFactor2 == '040' ||
    line.csSiteSpecificFactor2 == '050' || line.csSiteSpecificFactor2 == '070')
    return extensionInt == 600 || extensionInt >= 610
if (line.csSiteSpecificFactor2 == '030' || line.csSiteSpecificFactor2 == '060' ||
    line.csSiteSpecificFactor2 == '080' || line.csSiteSpecificFactor2 == '090')
    return extensionInt >= 620

return true]]></expression>
            <message>CS SSF 2 and Extension conflict for KidneyParenchyma schema</message>
            <description><![CDATA[For cases coded using the KidneyParenchyma schema, if CS SSF 2 indicates involvement of renal vein only, then CS Extension must indicate involvement of blood vessels.  If CS SSF 2 indicates involvement of IVC below diaphragm, then CS Extension must also indicate involvement of IVC below diaphragm. If CS SSF 2 indicates involvement of IVC above diaphragm, then CS Extension must also indicate involvement of IVC above diaphragm.

This edit is skipped if any of the following conditions are true:
1. CS Site-Specific Factor 2 is blank or 988
2. CS Extension is blank
3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)
4. CS schema is invalid

If schema is KidneyParenchyma:
1.  If CS Site-Specific Factor 2 = 010 (involvement of renal vein only)
    THEN
        CS Extension must be greater than or equal to 600 (involvement of blood vessels)

2.  If CS Site-Specific Factor 2 = 020, 040, 050, 070 (codes indicating involvement of IVC below diaphragm)
    THEN
        CS Extension must be equal to 600 or greater than or equal to 610 (codes indicating involvement of IVC below diaphragm)

3.  If CS Site-Specific Factor 2 = 030, 060, 080, 090 (codes indicating involvement of IVC above diaphragm)
    THEN
        CS Extension must be greater than or equal to 620 (codes indicating involvement of IVC above diaphragm)

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="SE13-010-01" user="murphyr" date="2013-05-08" ref="66863">Edit created.</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