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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF214" name="CS SSF 3, SSF 4, Prostate Schema (CS)" tag="N0965" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_3,CS_Site-Specific_Factor_4,CS_Version_Input_Original,Histologic_Type_ICD-O-3,Primary_Site">
            <expression><![CDATA[if (line.csSiteSpecificFactor3 == null || line.csSiteSpecificFactor4 == null || line.behaviorCodeIcdO3 == '0' ||
    line.behaviorCodeIcdO3 == '1' || line.csVersionInputOriginal < '010200' || line.dateOfDiagnosisYear == null ||
    (Functions.asInt(line.dateOfDiagnosisYear) >= 2010 && (line.csSiteSpecificFactor4 == null || line.csSiteSpecificFactor4 == '988')))
   return true

if (line.registryId == '0000001566' && line.csSiteSpecificFactor4 == '988')
    return true

if (line._csSchemaId == 'prostate' && Functions.matches(line.csSiteSpecificFactor3, /^9[678]0$/))
      return Functions.matches(line.csSiteSpecificFactor4, /^\d[5]\d$/)

return true]]></expression>
            <message>CS SSF 3, SSF 4 and Prostate Schema conflict</message>
            <description><![CDATA[Purpose: This edit verifies that, for cases coded using the Prostate
schema, if a prostatectomy is not performed or unknown if performed (CS
Site-Specific Factor 3 coded 960, 970, or 980), the middle digit of CS
Site-Specific Factor 4 (involvement of prostatic apex at prostatectomy)
must be coded 5, indicating unknown apex involvement at prostatectomy.

This edit is skipped if any of the following conditions are true:
1. CS Site-Specific Factor 3 is empty.
2. CS Site-Specific Factor 4 is empty.
3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline).
4. CS Version Input Original is less than 010200 (version 01.02).
5. Year of diagnosis is blank.
6. Year of diagnosis is 2010 or later and CS Site-Specific Factor 4 is 988.
7. Registry ID is 0000001566 (Texas) and SSF4 is 988.

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.

For cases using the CS Prostate schema:

If CS Site-Specific Factor 3 = 960 (unknown if prostatectomy done), 970
(no prostatectomy done within first course of treatment), 980
(prostatectomy performed, but not considered first course of treatment),
then the second digit of CS Site-Specific Factor 4 must = 5 (prostatectomy
apex involvement: unknown).]]></description>
            <history>
                <event version="SE11-001-23" user="greend" date="2009-01-07">This edit was created.</event>
                <event version="SE12-002-01" user="murphyr" date="2010-03-10">CS dll used to determine schema. Values &quot;096,097,098&quot; for CS Site-Specific Factor 3 changed to &quot;960,970,980&quot; per CsV2.</event>
                <event version="SE12-004-01" user="murphyr" date="2011-02-11">Updated documentation.</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>
                <event version="SE21-021-11" user="beverung" date="2022-01-06" ref="68761">Add skip condition for TX when SSF4 is 988.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy