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

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

The newest version!
        <rule id="IFN6748" name="Circumferential Resection Margin (CRM), Colon, Surg Prim Site 2023 (NAACCR)" tag="N6748" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.schemaId != '00200' || line.behaviorCodeIcdO3 == '2'
            || line.typeOfReportingSource == '7')
    return true

if (line.circumferentialResectionMargin == null || line.circumferentialResectionMargin == 'XX.8')
    return true

boolean aCodesCondition = Functions.matches(line.rxSummSurgPrimSite2023, /^A000|A1[0-1]\d|A120|A2[0-8]\d|A290$/)
boolean bCodesCondition = Functions.matches(line.rxSummSurgPrimSite2023, /^B[01]00|B2[0-8]\d|B29[01]$/)
if (Functions.matches(line.primarySite, /^C1(8[02-9]|99)$/) && (aCodesCondition || bCodesCondition) && line.circumferentialResectionMargin != 'XX.7')
    return false
else if (line.primarySite == 'C209' && Functions.matches(line.rxSummSurgPrimSite2023, /^A000|A1[0-1]\d|A120|A2[0-5]\d|A260|A280$/) && line.circumferentialResectionMargin != 'XX.7')
    return false

if (Functions.matches(line.rxSummSurgPrimSite2023, /^[AB]([3-7]\d\d|800)$/) && line.circumferentialResectionMargin == 'XX.7')
    return false

if ((line.rxSummSurgPrimSite2023 == 'A990' || line.rxSummSurgPrimSite2023 == 'B990') && line.circumferentialResectionMargin != 'XX.9')
    return false

return true]]></expression>
            <message>Conflict between RX Summ--Surg Prim Site 2023 and Circumferential Resection Margin (CRM).</message>
            <description><![CDATA[This edit verifies that the Circumferential Resection Margin (CRM) SSDI is coded consistently with RX Summ--Surg Prim Site 2023.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2023, blank (unknown), or invalid.
    b. Schema ID is not 00200
    c. Behavior Code = 2
    d. Circumferential Resection Margin (CRM) is blank or XX.8 (not applicable).
    e. Type of Reporting Source = 7 (death certificate only)


2. If Primary Site = C180, C182-C189, C199:
  If RX Summ--Surg Prim Site 2023 = A000 or B000 (no surgery of primary site), A100-A120 or B100 (local tumor destruction (no specimen sent to pathology)), or A200-A290 or B200-B291 (local excision),
    then the Circumferential Resection Margin must be coded XX.7 (no resection of primary site, no resection of primary site, surgical procedure did not remove enough tissue to measure CRM).

3. If Primary Site = C209:
  If RX Summ--Surg Prim Site 2023 = A000 (no surgery of primary site), A100-A120 (local tumor destruction (no specimen sent to pathology)), or A200-A260, A280 (local excision),
    then the Circumferential Resection Margin must be coded XX.7 (no resection of primary site, surgical procedure did not remove enough tissue to measure CRM).

4. If RX Summ--Surg Prim Site 2023 = A300-A800 or B300-B800 (surgery of primary site),
    then Circumferential Resection Margin must not = XX.7 (no resection of primary site).

5. If RX Summ--Surg Prim Site 2023 = A990 or B990 (unknown if surgery performed)
    then Circumferential Resection Margin must be coded XX.9 (Circumferential or radial resection margin not assessed or unknown if assessed.)]]></description>
            <history>
                <event version="SE23-023-05" user="cooki" date="2023-06-20" ref="69231">Edit created.</event>
                <event version="SE24-024-01" user="shearerw" date="2024-02-13" ref="69354">Rename edit. Remove references to surgical margins.</event>
                <event version="SE24-024-01" user="beverung" date="2024-03-01" ref="69393">Add B codes and update description.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy