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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF444" name="CS SSF 1, SSF 2, SSF 15, SSF 16, Breast (CS)" tag="N1765" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_1,CS_Site-Specific_Factor_15,CS_Site-Specific_Factor_16,CS_Site-Specific_Factor_2">
            <expression><![CDATA[if (line.csSiteSpecificFactor1 == null || line.csSiteSpecificFactor1 == '988' ||
    line.csSiteSpecificFactor2 == null || line.csSiteSpecificFactor2 == '988' ||
    line.csSiteSpecificFactor15 == null || line.csSiteSpecificFactor15 == '988' ||
    line.csSiteSpecificFactor16 == null || line.csSiteSpecificFactor16 == '988' ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' ||
    line._csSchemaId != 'breast' || line.dateOfDiagnosisYear < '2010')
    return true

if (line.csSiteSpecificFactor1 == '010' && line.csSiteSpecificFactor2 == '010' &&
    line.csSiteSpecificFactor15 == '010')
    return line.csSiteSpecificFactor16 == '111'
if (line.csSiteSpecificFactor1 == '010' && line.csSiteSpecificFactor2 == '010' &&
    line.csSiteSpecificFactor15 == '020')
    return line.csSiteSpecificFactor16 == '110'
if (line.csSiteSpecificFactor1 == '010' && line.csSiteSpecificFactor2 == '020' &&
    line.csSiteSpecificFactor15 == '010')
    return line.csSiteSpecificFactor16 == '101'
if (line.csSiteSpecificFactor1 == '010' && line.csSiteSpecificFactor2 == '020' &&
    line.csSiteSpecificFactor15 == '020')
    return line.csSiteSpecificFactor16 == '100'
if (line.csSiteSpecificFactor1 == '020' && line.csSiteSpecificFactor2 == '010' &&
    line.csSiteSpecificFactor15 == '010')
    return line.csSiteSpecificFactor16 == '011'
if (line.csSiteSpecificFactor1 == '020' && line.csSiteSpecificFactor2 == '010' &&
    line.csSiteSpecificFactor15 == '020')
    return line.csSiteSpecificFactor16 == '010'
if (line.csSiteSpecificFactor1 == '020' && line.csSiteSpecificFactor2 == '020' &&
    line.csSiteSpecificFactor15 == '010')
    return line.csSiteSpecificFactor16 == '001'
if (line.csSiteSpecificFactor1 == '020' && line.csSiteSpecificFactor2 == '020' &&
    line.csSiteSpecificFactor15 == '020')
    return line.csSiteSpecificFactor16 == '000'
if (Functions.matches(line.csSiteSpecificFactor1, /(^030|99[6789]$)/) ||
    Functions.matches(line.csSiteSpecificFactor2, /(^030|99[6789]$)/) ||
    Functions.matches(line.csSiteSpecificFactor15, /(^030|99[789]$)/))
    return line.csSiteSpecificFactor16 == '999'

return true]]></expression>
            <message>CS SSF 1, SSF 2, SSF 15 and SSF 16 conflict for Breast schema</message>
            <description><![CDATA[This edit verifies that for cases using the Breast schema, SSF 1 (Estrogen Receptor Assay), SSF 2 (Progesterone Receptor Assay), SSF 15 (HER2: Summary Result of Testing) and SSF 16 (Combinations of ER, PR, and HER2 Results) are coded consistently. ER results are coded in the first digit of SSF 16: 0 for negative and 1 for positive. PR results are coded in the second digit: 0 for negative and 1 for positive. HER2 results are coded in the third digit: 0 for negative and 1 for positive.

This edit is skipped if any of the following conditions are true:
1. Year of Date of Diagnosis is less than 2010
2. CS Site-Specific Factor 1 is blank or 988
3. CS Site-Specific Factor 2 is blank or 988
4. CS Site-Specific Factor15 is blank or 988
5. CS Site-Specific Factor16 is blank or 988
6. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)
7. CS schema is invalid

If CS schema is Breast:
1.  If CS Site-Specific Factor 1 = 010 (positive/elevated)
    and CS Site-Specific Factor 2 = 010 (positive/elevated)
    and CS Site-Specific Factor15 = 010 (positive/elevated)
    THEN
        CS Site-Specific Factor16  must = 111 (ER Positive, PR Positive, HER2 Positive)
2.  If CS Site-Specific Factor 1 = 010 (positive/elevated)
    and CS Site-Specific Factor 2 = 010 (positive/elevated)
    and CS Site-Specific Factor15 = 020 (negative/normal)
    THEN
        CS Site-Specific Factor16  must = 110 (ER Positive, PR Positive, HER2 Negative)
3.  If CS Site-Specific Factor 1 = 010 (positive/elevated)
    and CS Site-Specific Factor 2 = 020 (negative/normal)
    and CS Site-Specific Factor15 = 010 (positive/elevated)
    THEN
        CS Site-Specific Factor16  must = 101 (ER Positive, PR Negative, HER2 Positive)
4.  If CS Site-Specific Factor 1 = 010 (positive/elevated)
    and CS Site-Specific Factor 2 = 020 (negative/normal)
    and CS Site-Specific Factor15 = 020 (negative/normal)
    THEN
        CS Site-Specific Factor16  must = 100 (ER Positive, PR Negative, HER2 Negative)
5.  If CS Site-Specific Factor 1 = 020 (negative/normal)
    and CS Site-Specific Factor 2 = 010 (positive/elevated)
    and CS Site-Specific Factor15 = 010 (positive/elevated)
    THEN
        CS Site-Specific Factor16  must = 011 (ER Negative, PR Positive, HER2 Positive)
6.  If CS Site-Specific Factor 1 = 020 (negative/normal)
    and CS Site-Specific Factor 2 = 010 (positive/elevated)
    and CS Site-Specific Factor15 = 020 (negative/normal)
    THEN
        CS Site-Specific Factor16  must = 010 (ER Negative, PR Positive, HER2 Negative)
7.  If CS Site-Specific Factor 1 = 020 (negative/normal)
    and CS Site-Specific Factor 2 = 020 (negative/normal)
    and CS Site-Specific Factor15 = 010 (positive/elevated)
    THEN
        CS Site-Specific Factor16  must = 001 (ER Negative, PR Negative, HER2 Positive)
8.  If CS Site-Specific Factor 1 = 020 (negative/normal)
    and CS Site-Specific Factor 2 = 020 (negative/normal)
    and CS Site-Specific Factor15 = 020 (negative/normal)
    THEN
        CS Site-Specific Factor16  must = 000 (ER Negative, PR Negative, HER2 Negative)
9.  If CS Site-Specific Factor 1 = 030, 996, 997, 998, or 999 (codes
    indicating borderline, results not interpretable or not in chart,
    or test not done or unknown if test done)
      or CS Site-Specific Factor 2 = 030, 996, 997, 998, or 999
      or CS Site-Specific Factor15 = 030, 997, 998, or 999
    THEN
        CS Site-Specific Factor16  must = 999 (one or more tests not performed,
        one or more tests unknown if performed, one or more tests unknown or
        borderline results, unknown)


This edit first determines the correct CS schema by doing a function call to the CS Dynamic Link Library (dll).  The function call passes Primary Site, Histologic Type ICD-O-3, and CS Site-Specific Factor25 (schema discriminator) to the dll and the CS schema name is returned.]]></description>
            <history>
                <event version="SE13-010-01" user="murphyr" date="2013-05-07" ref="66859">Edit created.</event>
                <event version="SE13-010-03" user="murphyr" date="2013-08-13" ref="66859">Disabled edit (it will always return true).</event>
                <event version="SE14-011-01" user="murphyr" date="2013-10-28" ref="67020">Re-enabled edit and added skip condition for year of Dx less than 2010.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-04" ref="67370">Changed edit to use schema IDs instead of schema names</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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy