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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6385" name="Mets at DX-BBDLLO, Behavior Code ICDO3 (NAACCR)" tag="N6385" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == null)
    return true
if (line.metsAtDxBone == null && line.metsAtDxBrain == null && line.metsAtDxDistantLn == null  && line.metsAtDxLiver == null  && line.metsAtDxLung == null && line.metsAtDxOther == null)
    return true

boolean areAllMetsZero = line.metsAtDxBone == '0' && line.metsAtDxBrain == '0' && line.metsAtDxDistantLn == '0'  && line.metsAtDxLiver == '0'  && line.metsAtDxLung == '0' && line.metsAtDxOther == '0'
boolean areAllMetsEight = line.metsAtDxBone == '8' && line.metsAtDxBrain == '8' && line.metsAtDxDistantLn == '8'  && line.metsAtDxLiver == '8'  && line.metsAtDxLung == '8' && line.metsAtDxOther == '8'
if (line.dateOfDiagnosisYear < '2022' && ['00790', '00795', '00830', '99999'].contains(line.schemaId) && areAllMetsEight)
    return true
if (line.schemaId == '00822' || Functions.matches(line.primarySite, /^C42[0-4]$/))
    return true

if (Functions.matches(line.primarySite, /^C7([0-2][0-9]|5[123])$/)) {
    if (['0', '1'].contains(line.behaviorCodeIcdO3) && !(areAllMetsZero || areAllMetsEight))
        return false
}
else if (['0', '1', '2'].contains(line.behaviorCodeIcdO3) && !areAllMetsZero)
    return false

return true]]></expression>
            <message>Mets at DX fields are invalid for Behavior code</message>
            <description><![CDATA[The purpose of this edit is to verify that the Mets at DX-Bone, Brain, Distant LN, Liver, Lung, and Other fields
are blank or coded to 0 (not present) or 8 (not applicable) for Behavior Code ICD-O-3 values of 0 and 1 for brain and CNS tumors.
For other sites the edit verifies that the Mets at DX fields are blank or coded 0 for Behavior Code ICD-O-3 = 0, 1, or 2 (STORE requirement).

This edit is skipped under the following conditions:

1. Year of Date of Diagnosis is less than 2018, blank (unknown), or invalid
2. Type of Reporting Source = 7 (Death Certificate Only)
3. Behavior Code ICD-O-3 is blank
4. Mets at DX-Bone, Mets at DX-Brain, Mets at DX-Distant LN, Mets at DX-
    Liver, Mets at DX-Lung, and Mets at DX-Other are all blank
5. Diagnosis date = 2018-2021, Schema ID = 00790, 00795, 00830, 99999, and all
    Mets at DX fields = 8.
6. Schema ID = 00822, or Primary Site = C420, C421, C423, C424

If Primary Site = C700-C729, C751-C753 and Behavior Code ICD-O-3 = 0 or 1,
   all Mets at DX fields must = 0, all must = 8, or all must be blank

For all other primary sites, if Behavior Code ICD-O-3 = 0, 1, or 2
    Mets at DX fields must all = 0 or all must be blank]]></description>
            <history>
                <event version="SE21-021-04" user="smithm" date="2021-04-07" ref="68633">Edit created.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-02-27" ref="69200">Add skip conditions. Update Mets at DX logic to check for Primary Site.</event>
                <event version="SE24-024-01" user="cooki" date="2024-03-04" ref="69339">Replaced first paragraph description.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy