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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF531" name="TNM Edition Number, Date of Diagnosis (SEER)" tag="N2013" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2015')
    return true

if (line.dateOfDiagnosisYear == '2015')
    return ['07', '88'].contains(line.tnmEditionNumber) || line.tnmEditionNumber == null
else if (line.dateOfDiagnosisYear == '2016' || line.dateOfDiagnosisYear == '2017')
    return ['07', 'U7', '88'].contains(line.tnmEditionNumber)
else if (line.dateOfDiagnosisYear > '2017' && line.dateOfDiagnosisYear < '2021')
    return ['08', '88'].contains(line.tnmEditionNumber) || line.tnmEditionNumber == null
else if (line.dateOfDiagnosisYear > '2020')
    return ['00', '08', '09', '88'].contains(line.tnmEditionNumber) || line.tnmEditionNumber == null
return true]]></expression>
            <message>TNM Edition Number is not valid for Diagnosis Year</message>
            <description><![CDATA[This edit is skipped if any of the following conditions are true:
1. Year of Date of Diagnosis is less than 2015

If Year of Date of Diagnosis is 2015, then TNM Edition Number must equal 07 (Seventh Edition) or 88 (not applicable) or blank

If Year of Date of Diagnosis is 2016-2017, then TNM Edition Number must equal 07 (Seventh Edition) or U7(UICC) or 88(not applicable) and cannot be blank.

If Year of Date of Diagnosis is > 2017 and < 2021, then TNM Edition Number must equal 08 (Eighth Edition) or 88 ( not applicable) or blank.

If year of Date of Diagnosis is > 2020 , then TNM Edition Number must equal 00, 08, 09, 88, or blank.]]></description>
            <history>
                <event version="SE15-013-01" user="kirbyk" date="2015-01-14" ref="67185">Edit created.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-03-31" ref="67243">For 2016 cases, &apos;U7&apos; is valid and blank is invalid.</event>
                <event version="SE16-016-01" user="kirbyk" date="2016-12-08" ref="67571">For 2017 cases, &apos;U7&apos; is valid and blank is invalid.</event>
                <event version="SE18-018-02" user="kirbyk" date="2018-06-22" ref="67920">For 2017+ cases, &apos;08&apos;, &apos;88&apos;, and blank are valid.</event>
                <event version="SE18-020-05" user="beverung" date="2020-08-06" ref="68473">For 2021+ cases, &apos;00&apos;, &apos;08&apos;, &apos;09&apos;, &apos;88&apos;, and blank are valid.</event>
                <event version="SE22-022-03" user="beverung" date="2022-04-06" ref="68921">Do not allow TNM Edition Number = 00 for cases with Year of DX 2021 and later.</event>
                <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event>
                <event version="SE23-023-01" user="secristc" date="2023-02-17" ref="69169">Added 00 as a valid TNM edition number for DX year > 2020.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy