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

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

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

boolean summaryStageLiverCase = false;
if(line.schemaId == '00220' && ['150','200'].contains(line.eodPrimaryTumor))
    summaryStageLiverCase = (line.summaryStage2018 == '1' && line.derivedSummaryStage2018 == '2') || (line.summaryStage2018 == '3' && line.derivedSummaryStage2018 == '4')

return line.summaryStage2018 == line.derivedSummaryStage2018 || summaryStageLiverCase]]></expression>
            <message>Summary Stage 2018 and Derived Summary Stage 2018 must be the same. Please review EOD components and Summary Stage 2018</message>
            <description><![CDATA[This edit checks consistency between Summary Stage 2018 and Derived Summary Stage
2018.  If both data items are present, they must be the same.

1. The edit is skipped for any of the following conditions:
    a. Date of diagnosis is pre-2021, blank (unknown), or invalid.
    b. Derived Summary Stage 2018 is blank
    c. Summary Stage 2018 is blank.

2. If Schema ID = 00220 (Liver) and EOD Primary Tumor = 150 or 200, the edit passes when one of the following conditions is met:
    a. Summary Stage 2018 = 1 and Derived Summary Stage 2018 = 2
    b. Summary Stage 2018 = 3 and Derived Summary Stage 2018 = 4

Otherwise, Summary Stage 2018 must equal Derived Summary Stage 2018.]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-04-26" ref="68614">Edit created.</event>
                <event version="SE22-022-10" user="secristc" date="2022-08-19" ref="69024">Added condition for Schema ID = 00220 and EOD Primary Tumor = 150 or 200.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy