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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6305" name="Mets at DX, Lymphoma Ocular Adnexa, EOD Nodes/Mets (SEER)" tag="N6305" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '7')
    return true
if (line.eodMets == null || line.schemaId == null || line.schemaId != '00710')
    return true
if (line.metsAtDxBone == null && line.metsAtDxBrain == null && line.metsAtDxDistantLn == null && line.metsAtDxLiver == null && line.metsAtDxLung == null && line.metsAtDxOther == null)
    return true

if ((line.metsAtDxBone == '1' || line.metsAtDxBrain == '1' || line.metsAtDxLiver == '1' || line.metsAtDxLung == '1' || line.metsAtDxOther == '2') && !['10','50'].contains(line.eodMets))
    return false
if (line.metsAtDxOther == '1' && !['10','30','50'].contains(line.eodMets))
    return false
if (line.metsAtDxDistantLn == '1' && !['600','700','750'].contains(line.eodRegionalNodes))
    return false
if (['30','50'].contains(line.eodMets) && line.metsAtDxOther != '1')
    return false
if (['600','700','750'].contains(line.eodRegionalNodes) && line.metsAtDxDistantLn != '1')
    return false
return true]]></expression>
            <message>Mets at DX fields conflict with EOD Nodes/Mets for Lymphoma Ocular Adnexa</message>
            <description><![CDATA[This edit verifies that 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 coded consistently with EOD Mets for Schema ID 00710, Lymphoma Ocular Adnexa.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2021, blank (unknown), or invalid.
    b. Schema ID is blank or not 00710
    c. 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
    d. EOD Mets is blank
    e. Type of Reporting Source is 7 (Death Certificate Only)

2. If Mets at DX-Bone = 1, Mets at DX-Brain = 1, Mets at Dx-Liver = 1,
    or Mets at DX-Lung = 1 or Mets at DX-Other = 2,
        then EOD Mets must = 10 or 50.

3. If Mets at DX-Other = 1,
        then EOD Mets must = 10, 30, or 50

4. If Mets at DX-Distant LN = 1,
      then EOD Regional Nodes must = 600 (mediastinal), 700 (peripheral and central
      lymph nodes), or 750 (distant nodes NOS).

5. If EOD Mets = 30 or 50
      then Mets at DX-Other must = 1

6. if EOD Regional Nodes = 600, 700, or 750 (Distant lymph nodes)
       then Mets at DX-Distant LN must = 1]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-04-14" ref="68608">Edit created.</event>
                <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy