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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF621" name="TNM Clin Stage Group, SSF 2 Lymphoma (COC)" tag="N2231" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.tnmClinStageGroup == null || line.csSiteSpecificFactor2 == null || line.csSiteSpecificFactor2 == '988')
    return true

if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7')
    return true

String siteGroup = (String)((Closure)Context.AJCC7CodeLookup16).call(line)
if (siteGroup != '57A' && siteGroup != '57C')
    return true

if (Functions.matches(line.tnmClinStageGroup, /^[1-4]A$/))
    return line.csSiteSpecificFactor2 == '000' || line.csSiteSpecificFactor2 == '020'
else if (Functions.matches(line.tnmClinStageGroup, /^[1-4]B$/))
    return line.csSiteSpecificFactor2 == '010' || line.csSiteSpecificFactor2 == '030'
else if (Functions.matches(line.tnmClinStageGroup, /^[1-4]$/))
    return line.csSiteSpecificFactor2 == '999'

return true]]></expression>
            <message>TNM Clin Stage Group and CS Site-Specific Factor 2 conflict for Lymphoma</message>
            <description><![CDATA[Purpose:  This edit verifies that TNM Clin Stage and CS SSF 2, Systemic Symptoms at Diagnosis, are coded consistently for lymphoma.

This edit is skipped if any of the following conditions are true:

1. Year of Date of Diagnosis is less than 2016, blank (unknown), or invalid
2. Type of Reporting Source = 7 (Death Certificate Only)
3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)
4. TNM Clin Stage Group is blank
5. CS Site-Specific Factor 2 is blank or 988
6. Tnm Edition Number is not = 07, U7

The edit is evaluated for the following site/histology groups:
    57A. Hodgkin and Non-Hodgkin Lymphoma
    57C. Lymphoid/Hematopoietic

1.  If TNM Clin Stage Group = 1A, 2A, 3A, or 4A,
        then CS SSF 2 must = 000 (No B symptoms) or 020 (Pruritis)

2.  If TNM Clin Stage Group = 1B, 2B, 3B, or 4B,
        then CS SSF 2 must = 010 (any B symptoms) or 030 (any B symptoms + pruritis)

3.  If TNM Clin Stage Group = 1, 2, 3, or 4
        then CS SSF 2 must = 999 (unknown or no information)]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-06-09" ref="67457">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2016-12-01" ref="67548">Changed edit to use AJCC7CodeLookup16 context to check site/histology.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-13" ref="67586">Added skip condition for TNM Edition Number.</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>
                <event version="SE24-024-04" user="kirbyk" date="2024-04-12" ref="69326">Removed several dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy