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

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

The newest version!
        <rule id="IF566" name="Mets at DX-Lung, TNM Clin M, Path M (SEER)" tag="N2190" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Mets_at_DX_Lung,TNM_Clin_M,TNM_Path_M,Type_of_Reporting_Source,Year_of_Diagnosis">
            <expression><![CDATA[boolean dxYearSkipCondition = line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.dateOfDiagnosisYear > '2017'
if (dxYearSkipCondition || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' ||
    (line.tnmPathM == null && line.tnmClinM == null) || (line.tnmPathM == '88' && line.tnmClinM == '88') || line.metsAtDxLung == null)
    return true

if (line.metsAtDxLung != '1')
    return true

if (line.tnmClinM == null)
   return line.tnmPathM != 'c0' && line.tnmPathM != 'c0I+'

if (line.tnmPathM == null)
   return line.tnmClinM != 'c0' && line.tnmClinM != 'c0I+'

return (line.tnmClinM != 'c0' && line.tnmClinM != 'c0I+') || (line.tnmPathM != 'c0' && line.tnmPathM != 'c0I+')]]></expression>
            <message>Mets at DX-Lung, TNM Clin M, and TNM Path M conflict</message>
            <description><![CDATA[This edit verifies that Mets at DX-Lung and TNM Clin M and TNM Path M are coded consistently.

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

1. Year of Date of Diagnosis is < 2016, > 2017, 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 M and TNM Path M are both blank
5. TNM Clin M and TNM Path M are both coded 88.  (There is no AJCC 7th Edition staging for the site/histology, or the case is a lymphoid neoplasm excluding ocular adnexal lymphoma and primary cutaneous lymphoma.)
6. Mets at DX-Lung is blank


1. If Mets at DX-Lung = 1 (yes) and TNM Path M is blank, then TNM Clin M must not = c0 or c0I+ (no clinical metastasis).
2. If Mets at DX-Lung = 1 (yes) and TNM Clin M is blank, then TNM Path M must not = c0 or c0I+ (no clinical metastasis).
3. if Mets at DX-Lung = 1 (yes) and TNM Path M and TNM Clin M are both coded, both cannot = c0 or c0I+ (no clinical metastasis).]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-03" ref="67375">Edit created.</event>
                <event version="SE18-018-01" user="kirbyk" date="2018-04-26" ref="67769">Restricted edit to cases with DX year 2016-2017.</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="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy