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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6633" name="Gleason Patterns Clinical, Grade Clinical (SEER)" tag="N6633" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId != '00580' || line.gradeClinical == null)
    return true

String gleason = line.gleasonPatternsClinical
if (gleason == null || gleason == 'X8')
    return true

if (Functions.matches(gleason, /^[123][123]$/))
    return line.gradeClinical == '1'
else if (gleason == '34')
    return line.gradeClinical == '2'
else if (gleason == '43')
    return line.gradeClinical == '3'
else if (gleason == '44' || gleason == '35' || gleason == '53')
    return line.gradeClinical == '4'
else if (gleason == '45' || gleason == '54' || gleason == '55')
    return line.gradeClinical == '5'

return true]]></expression>
            <message>Gleason Patterns Clinical and Grade Clinical conflict.</message>
            <description><![CDATA[This edit verifies that Grade Clinical is coded consistently with Gleason
Patterns Clinical SSDI.

1. The edit is skipped for the following conditions:
   a. Date of Diagnosis before 2018, blank (unknown), or invalid.
   b. Schema ID is not 00580
   c. Gleason Patterns Clinical is blank or not applicable.
   d. Grade Clinical is blank.

2. If Gleason Patterns Clinical = 11, 12, 13, 21, 22, 23, 31, 32, or 33
   Then Grade Clinical must = 1

3. If Gleason Patterns Clinical = 34
   Then Grade Clinical must = 2

4. If Gleason Patterns Clinical = 43
   Then Grade Clinical must = 3

5. If Gleason Patterns Clinical = 44, 35, or 53
   Then Grade Clinical must = 4

6. If Gleason Patterns Clinical = 45, 54, or 55
   Then Grade Clinical must = 5]]></description>
            <history>
                <event version="SE18-019-01" user="kirbyk" date="2019-04-05" ref="68155">Edit created.</event>
                <event version="SE21-021-11" user="beverung" date="2022-01-05" ref="68740">Changed edit name and tag. Updated skip condition to allow DX Year 2018.</event>
                <event version="SE22-022-01" user="beverung" date="2022-02-25" ref="68900">Update edit id to match tag.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy