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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN3997" name="SSDI for Appendix &amp; Colorectal, Blank for Other Schemas (NAACCR)" tag="N3997" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId == null)
    return true
    
if (line.schemaId != '09190' && line.histologicSubtype != null)
    return false

if (line.schemaId != '00200'){
    
    if (line.kras != null || line.circumferentialResectionMargin != null || line.microsatelliteInstability != null || line.tumorDeposits != null)
        return false
    else if (line.brafMutationalAnalysis != null || line.nrasMutationalAnalysis != null)
        return false
    
    if (line.schemaId != '00190' && line.schemaId != '09190' && (line.ceaPretreatmentInterpretation != null || line.ceaPretreatmentLabValue != null))
        return false    
}

return true]]></expression>
            <message>Conflict between schema and coded SSDI items for Appendix &amp; Colorectal</message>
            <description><![CDATA[This edit verifies that Site-Specific Data Items that are defined for Appendix
Carcinoma (Schema ID 00190) and Colon and Rectum (Schema ID 00200) are blank 
(not coded) for all other schemas.

This edit is skipped for any of the following conditions:

    a.Date of Diagnosis is before 2018, blank, invalid.
    b.Schema ID is blank.

If Schema ID is not 09190 (Appendix [V9: 2023+] the following Site-Specific
Data Item must be blank:
    Histologic Subtype

If Schema ID is not 00190 (Appendix [8th: 2018-2020]), 09190 (Appendix [V9: 2023+])
or 00200 (Colon and Rectum), the following Site-Specific Data Items must be blank:

    CEA Pretreatment Interpretation
    CEA Pretreatment Lab Value

If Schema ID is not 00200 (Colon and Rectum), the following Site-Specific 
Data Items must be blank:

    Circumferential Resection Margin (CRM)
    BRAF Mutational Analysis
    KRAS
    Microsatellite Instability (MSI)
    NRAS Mutational Analysis
    Tumor Deposits

NOTE: Perineural Invasion, also collected for Colon and Rectum, is included in another edit.]]></description>
            <history>
                <event version="SE18-018-03" user="schadega" date="2018-07-18" ref="67832">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="kirbyk" date="2020-08-03" ref="68464">Added BRAF Mutational Analysis and NRAS Mutational Analysis to fields that must be blank.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-02-14" ref="69140">Added Histologic Subtype field that must be blank and logic for Schema ID 09190.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy