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

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

The newest version!
        <rule id="IFN6145" name="Behavior Code ICDO3, Derived SS 2018, Schema ID (SEER)" tag="N6145" java-path="lines.line" category="inter-field">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || line.typeOfReportingSource == '7')
    return true
if (line.behaviorCodeIcdO3 == null || line.derivedSummaryStage2018 == null)
    return true

if (Functions.matches(line.schemaId, /^0072[123]|0972[1-4]$/)) {
    if (['0','1'].contains(line.behaviorCodeIcdO3) && line.derivedSummaryStage2018 != '8')
        return false
    if (line.derivedSummaryStage2018 == '8' && !['0','1'].contains(line.behaviorCodeIcdO3))
        return false
}

if (line.behaviorCodeIcdO3 == '2')
    return line.derivedSummaryStage2018 == '0'
else if (line.behaviorCodeIcdO3 == '3')
    return line.derivedSummaryStage2018 != '0' && line.derivedSummaryStage2018 != '8'
return true]]></expression>
            <message>Derived Summary Stage 2018 conflicts with Behavior Code ICD-O-3</message>
            <description><![CDATA[This edit checks that Derived Summary Stage 2018 is consistent with
Behavior Code ICD-O-3, codes 0, 1, 2, and 3, for all cases.

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
    c. Derived Summary Stage 2018 is blank
    d. Behavior Code ICD-O-3 is blank
    e. Type of Reporting Source = 7 (death certificate only)

2. If Schema ID = 00721, 09721, 00722, 09722, 00723, 09723, or 09724 and
   Behavior Code ICD-O-3 = 0 or 1, then Derived Summary Stage 2018 must = 8.

3. If Schema ID = 00721, 09721, 00722, 09722, 00723, 09723, or 09724
   if Derived Summary Stage 2018 = 8, then Behavior Code ICD-O-3 must = 0 or 1.

4. If Behavior Code ICD-O-3 = 2, then Derived Summary Stage 2018 must = 0.

5. If Behavior Code ICD-O-3 = 3, then Derived Summary Stage 2018 must not = 0 or 8.]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-03-23" ref="68600">Edit created.</event>
                <event version="SE21-021-09" user="beverung" date="2021-08-26" ref="68726">Updated to not allow Derived Summary Stage 2018 = 8 when Behavior = 3.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-01-30" ref="69121">Update Schema IDs for SS2018 code 8.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy