edits.seer.internal.rules.IFN2693.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-edits-seer Show documentation
Show all versions of validation-edits-seer Show documentation
Java implemenation of the SEER edits.
<rule id="IFN2693" name="Circumferential Resection Margin (CRM), Date DX (NAACCR)" tag="N2693" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '2018' && line.circumferentialResectionMargin != null) return false return line.circumferentialResectionMargin == null || Functions.matches(line.circumferentialResectionMargin, /^[1-9]{0,1}\d\.\d|XX\.\d$/)]]></expression> <message>Circumferential Resection Margin (CRM) is not valid for Date DX</message> <description><![CDATA[The edit is skipped if Date of Diagnosis is blank (unknown), or invalid. 1. This data item must be blank for pre-2018 diagnoses. 2. Must be a valid Circumferential Resection Margin (CRM) code or blank: 0.0: Circumferential resection margin (CRM) positive Margin IS involved with tumor Described as "less than 0.1 millimeter (mm)" 0.1-99.9: Distance of tumor from margin: 0.1-99.9 millimeters (mm) (Exact size to nearest tenth of millimeter) XX.0: 100 mm or greater XX.1: Margins clear, distance from tumor not stated Circumferential or radial resection margin negative, NOS No residual tumor identified on specimen XX.2: Margins cannot be assessed XX.3: Described as "at least" 1mm XX.4: Described as "at least" 2mm XX.5: Described as "at least" 3mm XX.6: Described as "greater than" 3mm XX.7: No resection of primary site Surgical procedure did not remove enough tissue to measure the circumferential or radial resection margin (Examples include: polypectomy only, endoscopic mucosal resection (EMR), excisional biopsy only, transanal disk excision) XX.8: Not applicable: Information not collected for this case XX.9: Not documented in medical record Circumferential Resection Margin (CRM) not assessed or unknown if assessed 3. Code must contain decimal point with at least one character before and one character after decimal point. Another edit, Circumferential Resection Margin (CRM), Schema ID, Required (NAACCR), checks that the item is coded by Schema ID if required by a standard setter.]]></description> <history> <event version="SE18-018-04" user="kirbyk" date="2018-07-31" ref="67872">Edit created.</event> <event version="SE18-018-06" user="kirbyk" date="2018-08-24" ref="68026">Changed error message.</event> <event version="SE22-022-01" user="secristc" date="2022-03-01" ref="68780">Removed right justified from description.</event> </history> </rule>