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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF194" name="CS Eval Items, Vital Status (CS)" tag="N0906" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site">
            <expression><![CDATA[if (line.vitalStatus == null || line._csSchemaId == null ||
    ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && !['brain','cns_other','intracranial_gland'].contains(line._csSchemaId)))
    return true

if (line.csTumorSizeExtEval == '8' || line.csLymphNodesEval == '8' || line.csMetsEval == '8')
    return (line.vitalStatus == '0' || line.vitalStatus == '4')

if (line._csSchemaId == 'prostate') {
   if (line.csTumorSizeExtEval == '3')
      return (line.vitalStatus == '0' || line.vitalStatus == '4')
}
else if (line.csTumorSizeExtEval == '2')
   return (line.vitalStatus == '0' || line.vitalStatus == '4')

return true]]></expression>
            <message>Conflict between CS Eval Items and Vital Status</message>
            <description><![CDATA[This edit is skipped if any of the following conditions are true:
1. Vital Status is empty.
2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and
   schema is not Brain, CNSOther, or IntracranialGland.

Vital Status must = 0 or 4 (dead) for the following conditions:

1.  For all schemas: if CS Tumor Size/Ext Eval, CS Reg Nodes Eval,
    or CS Mets Eval = 8 (evidence from autopsy only (tumor was
    unsuspected or undiagnosed prior to autopsy))

2. For cases using the Prostate schema
      If CS Tumor Size/Ext Eval = 3 [No surgical resection done, but
      evidence derived from autopsy (tumor was suspected or diagnosed
      prior to autopsy)]
   For all other schemas:
      If CS Tumor Size/Ext Eval = 2 [No surgical resection done, but
      evidence derived from autopsy (tumor was suspected or diagnosed
      prior to autopsy)]]]></description>
            <history>
                <event version="SE11-001-22" user="greend" date="2008-07-10">Added logic for Prostate and All Other Schemas.</event>
                <event version="SE12-002-01" user="murphyr" date="2010-03-05">Edit now using schema name.</event>
                <event version="SE12-002-04" user="murphyr" date="2010-07-29">Edit now passes if CS schema is not found.</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-017-01" user="schadega" date="2018-03-15" ref="67720">Removed 4 as a valid death code.</event>
                <event version="SE18-018-02" user="kirbyk" date="2018-06-21" ref="67924">Re-added 4 as a valid code for &apos;dead&apos;.</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="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