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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6219" name="Progesterone Receptor Summary, Percent Positive, Breast (NAACCR)" tag="N6219" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '7')
    return true
if (line.progesteroneRecepSummary == null || line.progesteroneRecepPrcntPosOrRange == null || Functions.matches(line.progesteroneRecepPrcntPosOrRange, /^XX[789]$/))
    return true
if (line.schemaId == null || line.schemaId != '00480')
    return true

if (line.progesteroneRecepSummary == '0')
    return line.progesteroneRecepPrcntPosOrRange == '000'
else if (line.progesteroneRecepSummary == '1')
    return Functions.matches(line.progesteroneRecepPrcntPosOrRange, /^00[1-9]|0[1-9]\d|100|R[1-9]\d$/)
else if (line.progesteroneRecepSummary == '7' || line.progesteroneRecepSummary == '9')
    return line.progesteroneRecepPrcntPosOrRange == 'XX7' || line.progesteroneRecepPrcntPosOrRange == 'XX9'

return true]]></expression>
            <message>Progesterone Receptor Summary and Progesterone Receptor Percent Positive or Range conflict for 2021+</message>
            <description><![CDATA[This edit checks on consistency of coding between the Progesterone Receptor
Summary SSDI codes 0,1,7, and 9, and Progesterone Receptor Percent Positive or
Range SSDI for Schema ID 00480, Breast.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis is blank (unknown), invalid, or before 2021.
    b. Schema ID is blank or not 00480.
    c. Progesterone Receptor Summary is blank
    d. Progesterone Receptor Percent Positive or Range is blank or XX7 (test
       done, results not in chart), XX8 (not applicable), or XX9 (not documented
        in medical record)
    e. Type of Reporting Source = 7 (Death Certificate Only)

Progesterone Receptor Percent Positive or Range is required by SEER only if
collected by a CoC-accredited facility on an analytic case (CoC Accredited Flag
= 1).

2. If Progesterone Receptor Summary = 0 (negative),
    Progesterone Receptor Percent Positive or Range must = 000 (negative)

3. If Progesterone Receptor Summary = 1 (positive)
    Progesterone Receptor Percent Positive or Range must = 001-100, R10-R99
    (positive)

4. If Progesterone Receptor Summary = 7 (test done, results not in chart) or 9
    (not documented in medical record)
    Progesterone Receptor Percent Positive or Range must = XX7 or XX9]]></description>
            <history>
                <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event>
                <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy