edits.seer.internal.rules.IF41_3.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="IF41_3" name="Primary Site, Laterality, EOD, ICDO3 (SEER IF41)" tag="N0465" java-path="lines.line" category="inter-field" depends="EOD--Extension,EOD--Old_2_Digit,EOD--Old_4_Digit_Extent,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 > '2003' || line.dateOfDiagnosisYear == null) return true String eodOld4DigitExtent = null if (line.eodOld4Digit != null && line.eodOld4Digit.length() > 2) eodOld4DigitExtent = line.eodOld4Digit.substring(2, 3) if (Functions.matches(line.primarySite, /^C(079|080|09[189]|301|31[02]|34[1-9]|384|50\d|569|570|62\d|63[01]|6[456]9|69\d|74\d|754)$/) || (line.dateOfDiagnosisYear > '1978' && [81,90,400,401,402,403,441,442,446,447,471,472,491,492].contains(site))) { if ((line.histologicTypeIcdO3 == '9140' && line.dateOfDiagnosisYear > '1987') || Functions.between(line.histologicTypeIcdO3, '9590','9989')) return true if (line.codingSystemForEod == '0') { if (line.laterality == '9' && ['0-','4-','5-'].contains(line.eodOld2Digit)) return false if (line.laterality == '4' && ['0-','4-','5-'].contains(line.eodOld2Digit) && ! (site == 569 || (site == 649 && line.histologicTypeIcdO3 == '8960') || (site == 692 && ['9510','9511','9512','9513','9514'].contains(line.histologicTypeIcdO3)))) return false } else if (line.codingSystemForEod == '1') { if (line.laterality == '9' && Functions.matches(line.eodOld2Digit, /^[01234][-&0-9\s]$/)) return false if (line.laterality == '4' && Functions.matches(line.eodOld2Digit, /^[01234][-&0-9\s]$/) && ! (site == 569 || (site == 649 && line.histologicTypeIcdO3 == '8960') || (site == 692 && ['9510','9511','9512','9513','9514'].contains(line.histologicTypeIcdO3)))) return false } else if (line.codingSystemForEod == '3') { if (line.laterality == '9' && Functions.matches(eodOld4DigitExtent, /^[0123\s]$/)) return false if (line.laterality == '4' && Functions.matches(eodOld4DigitExtent, /^[0123\s]$/) && ! (site == 569 || (site == 649 && line.histologicTypeIcdO3 == '8960') || (site == 692 && ['9510','9511','9512','9513','9514'].contains(line.histologicTypeIcdO3)))) return false } else if (line.codingSystemForEod == '4') { if (line.laterality == '9' && (Functions.between(site,500,509) && (Functions.matches(line.eodExtension, /^[01]\d$/)) || (Functions.matches(line.primarySite, /^C(079|08[01]|09[0189]|301|31[02]|34[1-9]|384|40[0-3]|4[79][12]|569|570|62\d|63[01]|6[456]9|69\d|74\d|754)$/) && Functions.matches(line.eodExtension, /^([012]\d|30)$/)) || ([441,442,446,447].contains(site) && Functions.matches(line.eodExtension, /^([0-3]\d|40)$/)))) return false if ([90,91,98,99,569].contains(site) || (site == 649 && line.histologicTypeIcdO3 == '8960') || (site == 692 && ['9510','9511','9512','9513','9514'].contains(line.histologicTypeIcdO3))) return true if (line.laterality == '4' && ((Functions.between(site,500,509) && Functions.matches(line.eodExtension, /^[01]\d$/)) || (Functions.matches(line.primarySite, /^C(079|08[01]|09[0189]|301|31[02]|34[1-9]|384|40[0-3]|4[79][12]|569|570|62\d|63[01]|6[456]9|69\d|74\d|754)$/) && Functions.matches(line.eodExtension, /^([012]\d|30)$/)) || ([441,442,446,447].contains(site) && Functions.matches(line.eodExtension, /^([0-3]\d|40)$/)))) return false } } return true]]></expression> <message>Primary Site, Laterality and EOD 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) Inter-Field edit flag "Date of Diagnosis is not valid." has been triggered 3) Histologic Type ICD-O-3[522] is empty 4) Year of Diagnosis[390] > 2003 or blank 5) Histologic Type ICD-O-3[522] = 9590-9989 6) Histologic Type ICD-O-3[522] = 9140 and Year of Diagnosis[390] greater than 1987 For all diagnosis years, the following are considered paired organ sites for purposes of this edit: C079 Parotid gland C080 Submandibular gland C091 Tonsillar pillar C098-C099 Tonsil, NOS C301 Middle Ear C310 Maxillary sinus C312 Frontal sinus C341-C349 Lung C384 Pleura 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 For cases with year of diagnosis[390] > 1978 but not 9999 the following are also considered paired organ sites for purposes of this edit: C081 Sublingual gland C090 Tonsillar fossa 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 For the above paired organ sites, if Laterality[410] is bilateral involvement, lateral origin unknown (4) or unknown (9), the extent of disease should not specify in situ, localized or regional by direct extension only. The follow are the criteria for each of the extent of disease coding systems. 1. For Nonspecific Extent of Disease (Coding System for EOD[870] = 0): A. If Laterality[410] is '9' (no information concerning laterality), EOD--Old 2 digit[850] cannot be coded '0-' (in situ carcinoma), '4-' (localized), or '5-' (regional by direct extension only. B. If Laterality[410] is '4' (bilateral involvement; lateral origin unknown: stated to be a single primary), then EOD--Old 2 digit[850] cannot be coded '0-' (in situ carcinoma), '4-' (localized), or '5-' (regional direct extension only) for site/histology combinations other than: C569 Ovary C649 Kidney 8960 Wilms tumor C692 Retina 9510-9514 Retinoblastoma, 2. For Two-Digit Extent of Disease (Coding System for EOD[870] = 1): A. If Laterality[410] is '9' (no information concerning laterality), then the first digit of EOD--Old 2 digit[850] cannot be '0', '1', '2', '3', or '4'. B. If Laterality[410] is '4' (bilateral involvement, lateral origin unknown: stated to be a single primary), then the first digit of EOD--Old 2 digit[850] cannot be '0', '1', '2', '3', or '4' for site histology combinations other than C569 Ovary C649 Kidney 8960 Wilms tumor C692 Retina 9510-9514 Retinoblastoma. 3. For Four Digit Extent of Disease (Coding System for EOD[870] = 3): A. If Laterality[410] is '9' (no information concerning laterality), then the third digit of EOD--Old 4 digit[860] must be greater than '3'. B. If Laterality[410] is '4' (bilateral involvement, lateral origin unknown: stated to be a single primary), then the third digit of EOD--Old 4 digit[860] must be greater than '3' for site/histology combinations other than C569 Ovary C649 Kidney 8960 Wilms tumor C692 Retina 9510-9514 Retinoblastoma. 4. For Ten Digit Site-specific Extent of Disease(Coding System for EOD[870]=4): IF A. Laterality[410] is '9' (no information concerning laterality) OR B. Laterality[410] is '4' (bilateral involvement, lateral origin unknown: stated to be a single primary), for site/histology combinations other than C090 Tonsillar fossa C091 Tonsillary pillar C098-C099 Tonsil, NOS C569 Ovary C649 Kidney 8960 Wilms tumor C692 Retina 9510-9514 Retinoblastoma, THEN the EOD--extension[790] must not be: '00' thru '19' for sites C500-C509 Breast '00' thru '30' for all other paired organ sites '00' thru '40' for sites C441,C442,C446,C447 Skin.]]></description> <history> <event version="SE11-001-17" user="greend" date="2003-10-10">For EOD coding system = '4', the following sites are excluded from the edit. C090/Tonsillar fossa; C091/Tonsillar pillar; C098-C099/Tonsil, NOS</event> <event version="SE11-001-18" user="greend" date="2004-12-29">Edit modified to look at the CS Extension field for diagnosis years 2004+.</event> <event version="SE11-001-19" user="greend" date="2005-07-12">CS Extension edit check was removed from edit.</event> <event version="SE11-001-21" user="greend" date="2007-08-02">Definition of localized for breast 1988+ cases modified from 00-10 to 00-19.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-16">9-filled year of diagnosis no longer recognized.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-18">Edit now skipped if year of diagnosis 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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE18-020-05" user="kirbyk" date="2020-07-27" ref="68443">Replaced EOD--Old 4 Digit Extent sub-field with EOD--Old 4 Digit parent field.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-03" ref="69326">Removed some edit dependencies.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy