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

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

The newest version!
        <rule id="IFN6246" name="EOD Primary Tumor, Testis, Morphology, Tumor Size (SEER)" tag="N6246" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.dateOfDiagnosisYear > '2023' || line.eodPrimaryTumor == null)
    return true
if (line.typeOfReportingSource == '7' || line.schemaId == null || line.schemaId != '00590')
    return true
if (line.tumorSizeClinical == null && line.tumorSizePathologic == null)
    return true
if (line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null)
    return true

String morphTypebehavIcdO3 = line.histologicTypeIcdO3 + line.behaviorCodeIcdO3
if (line.eodPrimaryTumor == '100') {
    if (morphTypebehavIcdO3 != '90613')
        return false
    if (!Functions.matches(line.tumorSizeClinical, /^00[1-9]|0[12]\d|99[09]$/) && !Functions.matches(line.tumorSizePathologic, /^00[1-9]|0[12]\d|99[09]$/))
        return false
    if (line.tumorSizeSummary != null && !Functions.matches(line.tumorSizeSummary, /^00[1-9]|0[12]\d|99[09]$/))
        return false
}
else if (line.eodPrimaryTumor == '150') {
    if (morphTypebehavIcdO3 != '90613')
        return false
    if (!Functions.matches(line.tumorSizeClinical, /^0[3-9]\d|[1-8]\d\d|9[0-8]\d|999$/) && !Functions.matches(line.tumorSizePathologic, /^0[3-9]\d|[1-8]\d\d|9[0-8]\d|999$/))
        return false
    if (line.tumorSizeSummary != null && !Functions.matches(line.tumorSizeSummary, /^0[3-9]\d|[1-8]\d\d|9[0-8]\d|999$/))
        return false
}
return true]]></expression>
            <message>EOD Primary Tumor/Tumor Size conflict for Testis</message>
            <description><![CDATA[This edit checks consistency of coding between EOD Primary Tumor code 100
and Histologic Type ICD-O-3, Behavior Code ICD-O-3, Tumor Size Clinical, Tumor Size Pathologic,
and Tumor Size Summary for Schema ID 00590, Testis.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2021, after 2023, blank (unknown), or invalid.
    b. Schema ID is blank or not 00590
    c. EOD Primary Tumor is blank
    d. Histologic Type ICD-O-3 or Behavior Code ICD-O-3 is blank
    e. Tumor Size Clinical and Tumor Size Pathologic are both blank
    f. Type of Reporting Source is 7 (Death Certificate Only)


2. If EOD Primary Tumor = 100 (tumor size < 3cm limited to testis):
    a. Histologic Type ICD-O-3 and Behavior Code ICD-O-3 must = 90613 (pure seminoma)
    b. Tumor Size Clinical must = 001-029, 990, 999 or
       Tumor Size Pathologic must = 001-029, 990, 999
    c. Tumor Size Summary if not blank must = 001-029, 990, 999


3. If EOD Primary Tumor = 150 (tumor >= 3cm limited to testis):
    a. Histologic Type ICD-O-3 and Behavior Code ICD-O-3 must = 90613 (pure seminoma)
    b. Tumor Size Clinical must = 030-989 or 999 or Tumor Size
       Pathologic if not blank must = 030-989 or 999 and
    c. Tumor Size Summary if not blank must = 030-989 or 999]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-03-25" ref="68606">Edit created.</event>
                <event version="SE21-021-04" user="kirbyk" date="2021-05-10" ref="68650">Fixed Tumor Size valid values for condition #2.</event>
                <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-01-26" ref="69114">Replace Morph with Hist in description only.</event>
                <event version="SE24-024-01" user="cooki" date="2024-03-08" ref="69397">Added 2024 skip condition.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy