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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF114" name="Behavior Code ICDO3, Seq Num--Central (SEER IF114)" tag="N0653" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Year_of_Diagnosis">
            <expression><![CDATA[if (line.behaviorCodeIcdO3 == null)
    return true

if (line.dateOfDiagnosisYear != null && line.dateOfDiagnosisYear < '2001' && ['8442','8451','8462','8472','8473'].contains(line.histologicTypeIcdO3)
        && Functions.matches(line.sequenceNumberCentral, /^([0-5]\d|99)$/)  && line.behaviorCodeIcdO3 == '1')
    return true

if (line.dateOfDiagnosisYear > '2000' && line.dateOfDiagnosisYear != null && (line.behaviorCodeIcdO3 == '2' || line.behaviorCodeIcdO3 == '3'))
    return line.sequenceNumberCentral < '60' || line.sequenceNumberCentral > '88'

if (line.dateOfDiagnosisYear > '2000' && line.dateOfDiagnosisYear != null && (line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1'))
    return line.sequenceNumberCentral >= '60' && line.sequenceNumberCentral <= '88'

if (Functions.matches(line.sequenceNumberCentral, /^([0-5]\d|99)$/))
    return line.behaviorCodeIcdO3 == '2' || line.behaviorCodeIcdO3 == '3'

return true]]></expression>
            <message>Behavior Code ICD-O-3 and Seq Num--Central conflict</message>
            <description><![CDATA[This edit is skipped if Behavior Code ICD-O-3 [523] is blank.

1.  If Sequence Number--Central [380] = 00-59, or 99, then Behavior
    Code ICD-O-3 [523] must = 2 (in situ) or 3 (malignant).

     Exceptions to the above rule are:

          If Year of Diagnosis[390] < 2001 and not blank, and
          Histologic Type ICD-O-3[522]=8442,8451,8462,8472,8473, Behavior
          Code ICD-O-3[523] can equal 1 (borderline) with a Sequence
          Number--Central[380] of 00-59, or 99.

          These codes may have been entered in ICD-O-2 as malignant, but
          converted to ICD-O-3 as borderline.  The Sequence Number--
          Central[380] field would pertain to the pre-converted (ICD-O-2)
          malignant behavior.(Please note that 9421 is not included
          because the standard setting organizations have agreed to
          collect it with a  behavior of 3 rather than 1.)

2.  If Year of Diagnosis[390] > 2000 and not blank, and Behavior
    Code ICD-O-3 [523] = 2(in situ) or 3(malignant), then
    Sequence Number--Central [380] cannot = 60-88.

3.  If Year of Dignosis[390] > 2000 and not blank, and Behavior Code
    ICD-O-3[523]= 0 or 1, Sequence Number--Central[380] must = 60-88.]]></description>
            <history>
                <event version="SE11-001-20" user="greend" date="2006-03-23">The range for sequence number was expanded from 35-59.</event>
                <event version="SE12-002-01" user="murphyr" date="2009-12-08">Changed edit to not accept 9999 as a year of diagnosis.</event>
                <event version="SE12-002-01" user="murphyr" date="2009-12-21">Edit now checks for blank year of diagnosis when year of diagnosis is greater than 2000.</event>
                <event version="SE16-016-08" user="depryf" date="2017-11-22" ref="67674">Edit syntax updated to allow pre-compilation optimization; no change in behavior.</event>
                <event version="SE18-019-01" user="kirbyk" date="2019-04-09" ref="68120">Updated logic for cervix in situ cases.</event>
                <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy