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

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

The newest version!
        <rule id="IF174" name="CS Items, DX Pre-2004 (SEER)" tag="N2438" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear >= '2004' || line.dateOfDiagnosisYear == null)
   return true

if (line.csTumorSize != null || line.csExtension != null || line.csTumorSizeExtEval != null ||
   line.csLymphNodes != null || line.csLymphNodesEval != null || line.csMetsAtDx != null || line.csMetsEval != null ||
   line.csSiteSpecificFactor1 != null || line.csSiteSpecificFactor2 != null || line.csSiteSpecificFactor3 != null ||
   line.csSiteSpecificFactor4 != null || line.csSiteSpecificFactor5 != null || line.csSiteSpecificFactor6 != null ||
   line.csSiteSpecificFactor7 != null || line.csSiteSpecificFactor8 != null || line.csSiteSpecificFactor10 != null ||
   line.csSiteSpecificFactor12 != null || line.csSiteSpecificFactor13 != null || line.csSiteSpecificFactor16 != null ||
   line.csSiteSpecificFactor17 != null || line.csSiteSpecificFactor18 != null || line.csSiteSpecificFactor19 != null ||
   line.csSiteSpecificFactor20 != null || line.csSiteSpecificFactor21 != null || line.csSiteSpecificFactor22 != null ||
   line.csSiteSpecificFactor23 != null || line.csSiteSpecificFactor24 != null || line.csSiteSpecificFactor25 != null ||
   line.csVersionInputOriginal != null || line.csVersionInputCurrent != null)
    return false

 if (Functions.matches(line.primarySite, /^C50\d$/)) {
    if((line.csSiteSpecificFactor9 != null && !['010','020','030','997','998','999'].contains(line.csSiteSpecificFactor9)) ||
      (line.csSiteSpecificFactor11 != null && !['010','020','030','997','998','999'].contains(line.csSiteSpecificFactor11)) ||
      (line.csSiteSpecificFactor14 != null && !['010','020','030','997','998','999'].contains(line.csSiteSpecificFactor14)) ||
      (line.csSiteSpecificFactor15 != null && !['010','020','030','997','998','999'].contains(line.csSiteSpecificFactor15)))
       return false
 }
 else {
    if(line.csSiteSpecificFactor9 != null || line.csSiteSpecificFactor11 != null||
      line.csSiteSpecificFactor14 != null || line.csSiteSpecificFactor15 != null)
       return false
 }

 return true]]></expression>
            <message>Conflict between Date of Diagnosis (pre-2004) and CS items</message>
            <description><![CDATA[If Year of Diagnosis[390] is blank this edit is skipped.

If Year of Diagnosis[390] < 2004 and not blank, the following fields must be blank:

CS Tumor Size[2800]
CS Extension[2810]
CS Tumor Size/Ext Eval[2820]
CS Lymph Nodes[2830]
CS Lymph Nodes Eval[2840]
CS Mets at DX[2850]
CS Mets Eval[2860]
CS Site-Specific Factor 1[2880]
CS Site-Specific Factor 2[2890]
CS Site-Specific Factor 3[2900]
CS Site-Specific Factor 4[2910]
CS Site-Specific Factor 5[2920]
CS Site-Specific Factor 6[2930]
CS Site-Specific Factor 7[2861]
CS Site-Specific Factor 8[2862]
CS Site-Specific Factor 10[2864]
CS Site-Specific Factor 12[2866]
CS Site-Specific Factor 13[2867]
CS Site-Specific Factor 16[2870]
CS Site-Specific Factor 17[2871]
CS Site-Specific Factor 18[2872]
CS Site-Specific Factor 19[2873]
CS Site-Specific Factor 20[2874]
CS Site-Specific Factor 21[2875]
CS Site-Specific Factor 22[2876]
CS Site-Specific Factor 23[2877]
CS Site-Specific Factor 24[2878]
CS Site-Specific Factor 25[2879]
CS Version Input Original[2937]
CS Version Input Current[2935]

If schema is Breast schema:
The following fields must be blank, 010, 020, 030, 997, 998, or 999:
CS Site-Specific Factor 9[2863]
CS Site-Specific Factor 11[2865]
CS Site-Specific Factor 14[2868]
CS Site-Specific Factor 15[2869]

If schema is not Breast:
The following fields must be blank:
CS Site-Specific Factor 9[2863]
CS Site-Specific Factor 11[2865]
CS Site-Specific Factor 14[2868]
CS Site-Specific Factor 15[2869]]]></description>
            <history>
                <event version="SE12-002-01" user="murphyr" date="2010-03-30">Added SSF7-25 and CS Version Input Original/Current.</event>
                <event version="SE12-002-01" user="murphyr" date="2010-05-26">Now allowing SSF 9,11,14,15 to have values prior to 2004 for Breast schema.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-03-29" ref="67128">Now edit is not skipped for missing schema, Breast schema is determined by primary site.</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-018-03" user="kirbyk" date="2018-07-20" ref="67961">Removed unnecessary dependencies.</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