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

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

The newest version!
        <rule id="IFN6612" name="LN Status, Vagina, EOD Regional Nodes/EOD Mets (SEER)" tag="N6612" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.typeOfReportingSource == '7' || line.schemaId != '00510')
    return true
if ((line.lnStatusPelvic == null || line.lnStatusPelvic == '8') && (line.lnStatusParaAortic == null || line.lnStatusParaAortic == '8') && (line.lnStatusFemoralInguinal == null || line.lnStatusFemoralInguinal == '8'))
    return true
if (line.eodRegionalNodes == null && line.eodMets == null)
    return true

if (line.lnStatusFemoralInguinal == '1' && (Functions.matches(line.lnStatusParaAortic, /^[089]$/) || line.lnStatusParaAortic == null) && line.eodRegionalNodes != '300')
    return false

if (line.lnStatusPelvic == '1' && (Functions.matches(line.lnStatusParaAortic, /^[089$]/) || line.lnStatusParaAortic == null) && line.eodRegionalNodes != '300' && !['10','70'].contains(line.eodMets))
    return false

if (line.lnStatusParaAortic == '1' && line.eodRegionalNodes != '400' && !['10','70'].contains(line.eodMets))
    return false

if (line.dateOfDiagnosisYear >= '2022') {
    if (line.lnStatusFemoralInguinal == '0' && line.lnStatusPelvic == '0' && line.lnStatusParaAortic == '0' && !['000','050'].contains(line.eodRegionalNodes))
        return false
    if (['000','050'].contains(line.eodRegionalNodes) && !['0','9'].contains(line.lnStatusFemoralInguinal))
        return false
    if (line.eodRegionalNodes == '300' && line.lnStatusFemoralInguinal != '1' && line.lnStatusPelvic != '1')
        return false
    if (line.eodRegionalNodes == '400' && line.lnStatusParaAortic != '1')
        return false
}
return true]]></expression>
            <message>LN Status Femoral-Inguinal and LN Status Pelvic conflict with EOD Regional Nodes</message>
            <description><![CDATA[This edit verifies that LN Status Femoral-Inguinal, Para-Aortic, and Pelvic
SSDIs are
coded consistently with EOD Regional Nodes or EOD Mets for Vagina.

1. The edit is skipped for the following conditions:
   a. Date of Diagnosis before 2019, blank (unknown), or invalid.
   b. Schema ID is not 00510
   c. LN Status Femoral-Inguinal, LN Status Pelvic, and LN Status Para-Aortic are all blank or 8
(not applicable)
   d. EOD Regional Nodes and EOD Mets are both blank
    e. Type of Reporting Source is 7 (Death Certificate Only)

2. If LN Status Femoral-Inguinal = 1 (lymph nodes positive for lower one-third of vagina)
   and LN Status Para-Aortic = 0, 8, 9, or blank
    EOD Regional Nodes must = 300 (positive femoral-inguinal nodes)

3. If LN Status Pelvic = 1 (lymph nodes positive)
   and LN Status Para-Aortic = 0, 8, 9, or blank
   EOD Regional Nodes must = 300 (positive pelvic nodes for upper
    two-thirds of vagina), or EOD Mets must = 10 (positive pelvic nodes for lower
    one-third of vagina) or 70 (distant mets other)


4. If LN Status Para-Aortic = 1 (lymph nodes positive)
   EOD Regional Nodes must = 400 (positive para-aortic nodes for upper
    two-thirds of vagina), or EOD Mets must = 10 (positive para-aortic nodes for lower
    one-third of vagina) or 70 (distant mets other)

for 2022+

5. If LN Status Femoral-Inguinal = 0 and LN Status Pelvic = 0 and LN Status Para-Aortic = 0
    EOD Regional Nodes must = 000 or 050


5.    if EOD Regional Nodes = 000 or 050,
    LN Status Femoral-Inguinal must = 0 or 9

6. if EOD Regional Nodes = 300,
    LN Status Femoral-Inguinal must= 1 or LN Status Pelvic must = 1


7. If EOD Regional Nodes = 400.
    LN Status Para-Aortic must = 1]]></description>
            <history>
                <event version="SE22-022-01" user="beverung" date="2022-02-02" ref="68887">Edit created.</event>
                <event version="SE22-022-03" user="beverung" date="2022-04-11" ref="68929">Removed CoC Accredited Flag logic; changed edit name.</event>
                <event version="SE23-023-02" user="cooki" date="2023-05-09" ref="69266">Fixed typo in description.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy