edits.seer.internal.rules.IF177.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="IF177" name="Primary Site, Laterality, CS Extension (SEER IF177)" tag="N0864" java-path="lines.line" category="inter-field" depends="CS_Extension,Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[Integer site = Functions.asInt(line.primarySite.substring(1)) if (line.overRideSiteLatEod == '1' || line.histologicTypeIcdO3 == null || line.dateOfDiagnosisYear < '2004' || line.csExtension == null || (line.histologicTypeIcdO3 == '9140' || Functions.between(line.histologicTypeIcdO3,'9590','9992')) || ((line.dateOfDiagnosisYear == '2016' || line.dateOfDiagnosisYear == '2017') && line.csExtension == null) || !((List)Context.Base_Sites_IF177).contains(site)) return true if (line.laterality == '9' || (line.laterality == '4' && !((List)Context.Bypass_Sites_IF177).contains(site))) { if ([471,472,491,492].contains(site)) return ! (line.csExtension >= '000' && line.csExtension <= '320') if (Functions.between(site, 500, 509)) return ! (line.csExtension >= '000' && line.csExtension <= '100') if (Functions.between(site, 620, 629)) return ! (line.csExtension >= '000' && line.csExtension <= '310') if (Functions.between(site, 690, 699)) return ! (line.csExtension >= '000' && line.csExtension <= '400') if (line.laterality == '4' && line.dateOfDiagnosisYear > '2009' && Functions.between(site, 340, 349) && line.csExtension >= '000' && line.csExtension <= '300') return [23, 25, 26, 36, 38, 40, 41, 42, 43, 50, 51, 52, 53, 70, 75].contains(Functions.asInt(line.csMetsAtDx)) return ! (line.csExtension >= '000' && line.csExtension <= '300') } return true]]></expression> <message>Lateral and CS Extension conflict (ICD-O-3)</message> <description><![CDATA[The edit is skipped if any of the following conditions are true: 1) Over-ride Site/Lat/EOD contains a '1' (review complete) 2) Year of Diagnosis[390] < 2004 or blank 3) Histologic Type ICD-O-3 = 9140, 9590-9992 4) If Year of Diagnosis[390] = 2016-2017 and CS Extension[2810] is blank For the purpose of this edit the following sites are considered paired organs: C079 Parotid gland C080 Submandibular gland C081 Sublingual gland C090 Tonsillar fossa C091 Tonsillar pillar C098-C099 Tonsil, NOS C301 Middle ear C310 Maxillary sinus C312 Frontal sinus C341-C349 Lung C384 Pleura C400 Long bones of upper limb, scapula and associated joints C401 Short bones of upper limb and associated joints C402 Long bones of lower limb and associated joints C403 Short bones of lower limb and associated joints C441 Skin of eyelid C442 Skin of external ear C446 Skin of upper limb and shoulder C447 Skin of lower limb and hip C471 Peripheral nerves and autonomic nervous system of upper limb and shoulder C472 Peripheral nerves and autonomic nervous system of lower limb and hip C491 Connective, subcutaneous, and other soft tissues of upper limb and shoulder C492 Connective, subcutaneous, and other soft tissues of lower limb and hip C500-C509 Breast C569 Ovary C570 Fallopian tube C620-C629 Testis C630 Epididymis C631 Spermatic cord C649 Kidney, NOS C659 Renal pelvis C669 Ureter C690-C699 Eye C740-C749 Adrenal gland C754 Carotid body If Laterality[410] = 9 (no information concerning laterality), CS Extension[2810] cannot specify in situ, localized or regional by direct extension only. If Laterality[410] = 4 (bilateral involvement, lateral origin unknown: stated to be a single primary), CS Extension cannot specify in situ, localized or regional by direct extension only for all paired organs above except C090,C091, C098-C099, C569, C570, C649 and C692. There is an additional exception for cases diagnosed 2010 or later: If Primary Site = C340-C349 (lung), CS Extension may = 000-300 only if CS Mets at DX = {23, 25, 26, 36, 38, 40, 41, 42, 43, 50, 51, 52, 53, 70, 75}. In situ or localized is coded in the CS Extension field as follows: 000-100 for sites C500-C509 (breast) 000-310 for sites C620-C629 (testis) 000-320 for sites C471 (Peripheral nerves and autonomic nervous system of upper limb and shoulder) C472 (Peripheral nerves and autonomic nervous system of lower limb and hip) C491 (Connective, subcutaneous, and other soft tissues of upper limb and shoulder) C492 (Connective, subcutaneous, and other soft tissues of lower limb and hip) 000-400 for sites C690-C699 (eye) 000-300 for all other paired organ sites listed above]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2010-01-29">The edit was modified to include C570 (fallopian tube) in the list of paired sites that are exceptions to "if Laterality is '4' (bilateral involvement, lateral origin unknown: stated to be a single primary), CS Extension cannot specify in situ or localized". Reference to 9-filled year of diagnosis removed. Hematopoietic end range code was changed from 9989 to 9992. Length of CS Extension changed from 2 to 3 characters.</event> <event version="SE13-009-01" user="murphyr" date="2012-12-26" ref="66787">Added: 'For 2010+ cases, if Primary Site = C340-C349 (lung), CS Extension may = 000-300 only if CS Mets at DX = {23, 25, 26, 36, 38, 40, 41, 42, 43, 50, 51, 52, 53, 70, 75}.'</event> <event version="SE16-015-01" user="kirbyk" date="2016-04-01" ref="67242">Added skip condition for DX year = 2016 when CS Extension is blank.</event> <event version="SE16-016-01" user="kirbyk" date="2016-12-07" ref="67560">Edit is now skipped when DX year = 2017 and CS Extension is blank.</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-018-02" user="schadega" date="2018-05-17" ref="67760">Name change.</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="SE24-024-06" user="kirbyk" date="2024-07-03" ref="69326">Removed some edit dependencies.</event> </history> </rule>