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

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

There is a newer version: 024-13
Show newest version
<rule id="IFN6846" name="Mets at DX, Medulloblastoma, EOD Mets (SEER)" tag="N6846" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2024' || line.schemaId == null || line.schemaId != '09724' || line.eodMets == null
            || line.typeOfReportingSource == '7')
    return true

if (line.metsAtDxBone == null && line.metsAtDxBrain == null && line.metsAtDxDistantLn == null && line.metsAtDxLiver == null && line.metsAtDxLung == null && line.metsAtDxOther == null)
    return true

String eodMets = line.eodMets
if (line.metsAtDxBrain == '1' && !Functions.matches(eodMets, /^[1-4]5$/))
    return false
if (line.metsAtDxBone == '1' && !Functions.matches(eodMets, /^[2-4]5$/))
    return false
if ((line.metsAtDxDistantLn == '1' || line.metsAtDxLiver == '1' || line.metsAtDxLung == '1' || line.metsAtDxOther == '2') && eodMets != '45')
    return false

if (eodMets == '15' )
    return line.metsAtDxBrain == '1' || line.metsAtDxOther == '1'
else if (eodMets == '35')
    return line.metsAtDxBone == '1' || line.metsAtDxBrain == '1' || line.metsAtDxOther == '1'
else if (eodMets == '45')
    return line.metsAtDxBone == '1' || line.metsAtDxDistantLn == '1' || line.metsAtDxLiver == '1' || line.metsAtDxLung == '1' || line.metsAtDxOther == '1' || line.metsAtDxOther == '2'

return true]]></expression>
            <message>Mets at DX data items conflict with EOD Mets</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 09724, Medulloblastoma.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2024, blank (unknown), or invalid.
    b. Schema ID is blank or not 09724
    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-Brain = 1
    then EOD Mets must = 15, 25, 35, 45

3. If Mets at DX-Bone = 1
    then EOD Mets must = 25, 35, 45

4. If Mets at DX-Distant LN = 1, Mets at DX-Liver = 1, Mets at DX-Lung = 1, or Mets at DX-Other = 2
    then EOD Mets must = 45.

5. If EOD Mets = 15
    Mets at DX-Brain must = 1 or Mets at DX-Other must = 1

6. If EOD Mets = 35
    Mets at DX-Bone, Mets at DX-Brain, or Mets at DX-Other must = 1

7 If EOD Mets = 45
    Mets at DX-Bone must = 1 or Mets at DX-Distant LN must = 1 or Mets at DX-Liver must = 1 or Mets
    at DX-Lung must = 1 or Mets at DX-Other must = 1, 2]]></description>
            <history>
                <event version="SE23-023-05" user="shearerw" date="2023-06-15" ref="69242">Edit Created.</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-02" ref="69498">Updated edit based on v24A logic.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy