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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN3006" name="Schema Discriminator 2, Date DX (NAACCR)" tag="N3006" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null)
    return true
    
if (line.dateOfDiagnosisYear < '2018')
    return line.schemaDiscriminator2 == null

if (line.schemaDiscriminator2 == '8')
    return line.dateOfDiagnosisYear > '2017' && line.dateOfDiagnosisYear < '2022'

return line.schemaDiscriminator2 == null || Functions.matches(line.schemaDiscriminator2, /^[129]$/)]]></expression>
            <message>Schema Discriminator 2 is not valid for Date DX</message>
            <description><![CDATA[The edit is skipped if date of diagnosis is blank (unknown) or invalid.

1. This data item must be blank for pre-2018 diagnoses.

2. Must be a valid Schema Discriminator 2 code

    1
    2
    8
    9
    blank

3. Schema Discriminator 2, code 8 may only be used for 2018-2021 diagnoses.

Other edits for Schema Discriminator 2 check for appropriate codes by Schema ID
and AJCC ID. This data item is used to determine Schema IDs and AJCC IDs and is
required by all standard setters.]]></description>
            <history>
                <event version="SE18-018-02" user="kirbyk" date="2018-05-30" ref="67790">Edit created.</event>
                <event version="SE18-018-06" user="kirbyk" date="2018-08-24" ref="68026">Changed error message.</event>
                <event version="SE18-020-05" user="beverung" date="2020-08-06" ref="68455">Added code &apos;8&apos; for 2018-2021 cases.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy