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

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

The newest version!
        <rule id="IFN2686" name="Ki-67, Date DX (NAACCR)" tag="N2686" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null)
    return true

if (line.dateOfDiagnosisYear < '2018' && line.ki67 != null)
    return false

boolean netSchemas = ['00290', '00301', '00302', '00310', '00320', '00330', '00340'].contains(line.schemaId)
boolean expandedNetSchemas = ['00290', '00301', '00302', '00310', '00320', '00330', '00340', '09290', '09301', '09302', '09310', '09320', '09330', '09340'].contains(line.schemaId)

if (line.dateOfDiagnosisYear < '2021' && netSchemas && line.ki67 != null)
    return false

if (Functions.matches(line.ki67, /^XXX\.[456]$/) && !expandedNetSchemas)
    return false

return line.ki67 == null || Functions.matches(line.ki67, /^XXX\.[4-9]|[1-9]{0,1}\d\.\d|100\.0$/)]]></expression>
            <message>Ki-67 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 Ki-67 code or blank: 
                                    
    0.0-100.0: 0.0-100.0 percent positive: enter percent positive
    XXX.4: Ki-67 stated as less than 3%
    XXX.5: Ki-67 stated as 3%-20%
    XXX.6: Ki-67 stated as greater than 20%
    XXX.7: Test done, actual percentage not stated
    XXX.8: Not applicable: Information not collected for this case
    XXX.9: Not documented in medical record
           Ki-67(MIB-1) not assessed or unknown if assessed

3. Code must contain decimal point with at least one character before and one character
after decimal point.

4. This data item must be blank for pre-2021 cases assigned to Schema IDs
   00290, 00301, 00302, 00310, 00320, 00330, and 00340

5. Codes XXX.4, XXX.5, and XXX.6 must only be used for Schema IDs
   00290, 00301, 00302, 00310, 00320, 00330, 00340, 09290, 09301, 09302, 09310, 09320, 09330, and 09340

Another edit, Ki-67, Schema ID, Required (NAACCR), checks that the item is coded 
by Schema ID if required by a standard setter.]]></description>
            <history>
                <event version="SE18-018-04" user="schadega" date="2018-08-01" ref="67868">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-07-28" ref="68412">Add new codes and add logic for DX year 2021.</event>
                <event version="SE22-022-01" user="secristc" date="2022-03-01" ref="68780">Removed right justified from description.</event>
                <event version="SE24-024-03" user="cooki" date="2024-03-27" ref="69446">Added additional schemas to condition 5.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy