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

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

The newest version!
        <rule id="IF571" name="TNM M, Mets at DX, Melanoma of Skin (COC)" tag="N2240" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Histologic_Type_ICD-O-3,Mets_at_DX_Lung,Primary_Site,TNM_Clin_M,TNM_Path_M,Type_of_Reporting_Source,Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.metsAtDxLung == null)
    return true

//Skip condition 5
if ((line.tnmClinM == null && line.tnmPathM == null) || (line.tnmClinM == '88' && line.tnmPathM == '88'))
    return true

//Skip condition 7
if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7')
    return true

if (line._tnmSchemaId != 'melanoma_skin')
   return true

if (line.metsAtDxLung == '1' && !(Functions.matches(line.tnmClinM, /^[cp]1[BC]$/)) && !(Functions.matches(line.tnmPathM, /^[cp]1[BC]$/)))
    return false
else if ((line.metsAtDxLung == '0' || line.metsAtDxLung == '9') && (Functions.matches(line.tnmClinM, /^[cp]1B$/) || Functions.matches(line.tnmPathM, /^[cp]1B$/)))
    return false

if (Functions.matches(line.tnmClinM, /^[cp]1B$/) || Functions.matches(line.tnmPathM, /^[cp]1B$/))
    return line.metsAtDxLung == '1'

return true]]></expression>
            <message>TNM M, Mets AT DX-Lung conflict for Melanoma Skin</message>
            <description><![CDATA[Purpose: This edit verifies that TNM Clin M and TNM Path M are coded consistently with Mets at DX-Lung for Melanoma of Skin.

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. Primary site/histology is not melanoma of skin.
5. TNM Clin M and TNM Path M are blank or 88
6. Mets at DX-Lung is blank
7. TNM Edition Number is not = 07, U7

For melanoma of skin:

A.  If Mets at DX-Lung = 1 (lung metastasis),
    then TNM Clin M must = c1B or p1B (Metastasis to lung) or higher, or
    TNM Path M must = c1B or p1B or higher.

B.  If Mets at Dx-Lung = 0 (no lung metastasis) or 9 (unknown if lung metastasis)
    then TNM Clin M must not = c1B or p1B, and TNM Path M must not = c1B or p1B

C.  If TNM Clin M = c1B or p1B or TNM Path M = c1B or p1B
    then Mets at DX-Lung must = 1]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-16" ref="67393">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-17" ref="67592">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-018-01" user="schadega" date="2018-04-11" ref="67741">Edit name change.</event>
                <event version="SE18-018-02" user="schadega" date="2018-05-18" ref="67743">Name change.</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