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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6269" name="LN Head and Neck Levels, Melanoma Head/Neck, Derived SS 2018 (SEER)" tag="N6269" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.derivedSummaryStage2018 == null || line.schemaId != '00140' || line.typeOfReportingSource  == '7')
    return true
String ln13 = line.lnHeadAndNeckLevels1To3
String ln45 = line.lnHeadAndNeckLevels4To5
String ln67 = line.lnHeadAndNeckLevels6To7
String lnOther = line.lnHeadAndNeckOther
if ((ln13 == null || ln13 == '8') && (ln45 == null || ln45 == '8') && (ln67 == null || ln67 == '8') && (lnOther == null || lnOther == '8'))
    return true

Boolean ln13Condition = Functions.matches(ln13, /^[1-7]$/)
Boolean ln45Condition = Functions.matches(ln45, /^[123]$/)
Boolean ln67Condition = Functions.matches(ln67, /^[123]$/)
Boolean lnOtherCondition = Functions.matches(lnOther, /^[1-7]$/)

return !(ln13Condition || ln45Condition || ln67Condition || lnOtherCondition) || !['0','1','2'].contains(line.derivedSummaryStage2018)]]></expression>
            <message>LN Head and Neck codes conflict with Derived Summary Stage 2018</message>
            <description><![CDATA[This edit verifies that the LN Head and Neck SSDIs, with positive nodes, are
coded consistently with Derived Summary Stage 2018 for Schema ID 00140, Melanoma
Head and Neck.

1. The edit is skipped for the following conditions:
   a. Date of Diagnosis before 2021, blank (unknown), or invalid.
   b. Schema ID is not 00140
   c. LN Head and Neck Levels I-III, LN Head and Neck levels IV-V, LN Head and
      Neck Levels VI-VII, and LN Head and Neck Other are all blank or not
      applicable.
   d. Derived Summary Stage 2018 is blank
   e. Type of Reporting Source = 7

2. If LN Head and Neck Levels I-III = 1-7 (lymph nodes involved) or
     LN Head and Neck Levels IV-V = 1-3 (lymph nodes involved) or
     LN Head and Neck Levels VI-VII = 1-3 (lymph nodes involved) or
     LN Head and Neck Other = 1-7 (lymph nodes involved)
   Derived Summary Stage 2018 must not = 0, 1, or 2 (in situ, local, regional by
     extension only)]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-03-30" ref="68637">Edit created.</event>
                <event version="SE22-022-04" user="secristc" date="2022-05-03" ref="68965">Added skip condition for Type of Reporting Source = 7.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy