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

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

The newest version!
        <rule id="IFN6397" name="Derived Summary Stage 2018, Lymphoma, Primary Site (SEER)" tag="N6397" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.derivedSummaryStage2018 == null)
    return true

if (line.schemaId == null || !['00790', '00795'].contains(line.schemaId) || line.primarySite == null)
    return true

if (line.primarySite == 'C421') {
    if (line.typeOfReportingSource == '7')
        return ['7','9'].contains(line.derivedSummaryStage2018)
    else
        return line.derivedSummaryStage2018 == '7'
}
else if (line.primarySite == 'C778')
    return ['2','7','9'].contains(line.derivedSummaryStage2018)

return true]]></expression>
            <message>Derived Summary Stage 2018 not valid for Primary Site</message>
            <description><![CDATA[This edit verifies that Derived Summary Stage 2018 is coded correctly for Primary Sites
C421 and C778 for Schema IDs 00790, Lymphoma and 00795, Lymphoma CLL/SLL

1. This edit is skipped for any of the following conditions:
    a. Diagnosis date is pre-2021, blank (unknown), or invalid
    b. Schema ID is blank or not 00790 or 00795
    c. Primary Site is blank
    d. Derived Summary Stage 2018 is blank

2. If Primary Site = C421,
    If Type of Reporting Source = 7 (Death Certificate Only)
    Derived Summary Stage 2018 must = 7 or 9
    If Type of Reporting Source not = 7,
    Derived Summary Stage 2018 must = 7

3. If Primary Site = C778, Derived Summary Stage 2018 must = 2, 7, or 9]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-03-22" ref="68603">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy