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

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

The newest version!
        <rule id="IFN2823" name="_SYS Schema ID, Date of Diagnosis (NAACCR)" tag="N2823" 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.schemaId == null
else if (line.schemaId == null)
    return false

if (line.schemaId == '00520')
    return line.dateOfDiagnosisYear >= '2018' && line.dateOfDiagnosisYear <= '2020'

if ((line.schemaId == '09520' || line.schemaId == '00528') && line.dateOfDiagnosisYear < '2021')
    return false

if (line.dateOfDiagnosisYear < '2023') {
    if (Functions.matches(line.schemaId, /^0972[1234]|09190|09210$/))
        return false
}
else if (Functions.matches(line.schemaId, /^0072[123]|00190|00210$/))
    return false

return true]]></expression>
            <message>Schema ID must be blank for cases diagnosed before 2018 and must not be blank for cases diagnosed 2018+.</message>
            <description><![CDATA[_SYS in edit name indicates an edit on system-generated data items.  The edit is
intended for use by software vendors in testing the accuracy of algorithms used
to assign Schema ID, and for use by central registries in verifyingthe quality of
submitted data.

The edit checks that Schema ID is blank for pre-2018 diagnoses and is coded for
2018 and later diagnoses.

The edit checks that Schema ID 00520 is assigned for 2018-2020 diagnoses only.

The edit checks that Schema IDs 00528 and 09520 are assigned for 2021+ diagnoses only.

The edit checks that Schema ID 09721, 09722, 09723, 09724, 09190 09210 are assigned for 2023+ diagnoses only.

The edit checks that Schema IDs 00721, 00722, 00723, 00190, 00210 are not assigned for 2023+ diagnoses.

Another edit, _SYS Schema ID, Primary Site, Histology, Behavior (NAACCR), checks that
the Schema ID is assigned correctly by primary site, histology, and behavior for
2018+ diagnoses.]]></description>
            <history>
                <event version="SE18-018-10" user="kirbyk" date="2018-12-03" ref="68067">Edit created.</event>
                <event version="SE18-019-01" user="kirbyk" date="2019-04-15" ref="68173">Changed error message.</event>
                <event version="SE18-020-05" user="beverung" date="2020-07-28" ref="68371">Add logic to verify that schema ID = 09520 is only assigned to 2021+ cases.</event>
                <event version="SE21-021-03" user="smithm" date="2021-03-01" ref="68587">Add logic to verify that Schema ID 00520 is assigned for 2018-2020 diagnoses only.</event>
                <event version="SE22-022-01" user="secristc" date="2022-01-13" ref="68829">Add logic to verify that Schema ID = 00528 is only assigned for 2021+ cases.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-02-24" ref="69196">Add logic for Schema IDs that should and should not be assigned for 2023+ cases.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy