edits.seer.internal.rules.IF24.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="IF24" name="Laterality, Primary Site, Date of Diag (SEER IF24)" tag="N0652" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear >= '2021' && line.primarySite == 'C444') return line.laterality != '0' if (line.dateOfDiagnosisYear >= '2018' && Functions.matches(line.primarySite, /^C09[01]$/)) return true if (line.laterality == '5') return line.dateOfDiagnosisYear >= '2010' && Functions.matches(line.primarySite, /^C(700|71[0-4]|72[2-5]|443|445)$/) 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)$/)) return line.laterality != '0' else if (line.dateOfDiagnosisYear > '1978' && Functions.matches(line.primarySite, /^C(081|090|40[0-3]|44[123567]|47[12]|49[12])$/)) return line.laterality != '0' else if (line.dateOfDiagnosisYear > '2003' && Functions.matches(line.primarySite, /^C(700|71[0-4]|72[2-5])$/)) return line.laterality != '0' return true]]></expression> <message>Laterality and Primary Site conflict</message> <description><![CDATA[This edit is skipped if Date of Diagnosis is blank. The following paired organ sites must have a code other than zero for Laterality: C079 Parotid gland C080 Submandibular gland C091 Tonsillar pillar CO98-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 diagnosed after 1978 or Date of Diagnosis is blank (unknown), and one of the following sites, Laterality must not be zero: 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 C443 Skin of other and unspecified parts of face (midline code `9' for pre-2010, code '5' for 2010+) C445 Skin of trunk (midline code `9' for pre-2010, code '5' for 2010+) 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 cases diagnosed after 2003 or Date of Diagnosis is blank (unknown), and one of the following sites, Laterality must not be zero: C700 Cerebral meninges, NOS C710 Cerebrum C711 Frontal lobe C712 Temporal lobe C713 Parietal lobe C714 Occipital lobe C722 Olfactory nerve C723 Optic nerve C724 Acoustic nerve C725 Cranial nerve, NOS Laterality code of 5 (paired site: midline tumor) is allowed only for cases diagnosed 2010 or later and only for these paired brain and CNS sites: C700, C710- C714, C722-C725, and these paired skin sites: C443 and C445. For cases diagnosed 2018 and later, laterality is no longer required for C090 and C091. For cases diagnosed 2021 and later, the following primary site must have a code other than zero for laterality. Code 5 is allowed: C444 Skin of scalp and neck]]></description> <history> <event version="SE11-001-07" user="greend" date="1991-09-15">Conversion of topography code from ICD-O-1 to ICD-O-2.</event> <event version="SE11-001-10" user="greend" date="1994-05-02">Tonsil, NOS (C098) was added to list of paired organs.</event> <event version="SE11-001-18" user="greend" date="2004-05-12">For cases diagnosed after 2003, additional sites are added to those for which laterality must not be zero.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-17">Edit is now skipped if year of diagnosis is blank. And edit no longer recognizes 9-filled year of diagnosis.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-31">Edit no longer skips for blank year of diagnosis. Now checks for blanks if year is greater than 1978 or 2003.</event> <event version="SE12-004-01" user="murphyr" date="2010-12-13">Laterality code of 5 (paired site: midline tumor) is now allowed only for cases diagnosed 2010+ only for paired brain and CNS sites (C700, C710-C714, C722-C725) and paired skin sites (C441-C443, C445-C447).</event> <event version="SE12-003-02" user="murphyr" date="2011-01-10">Updated documentation.</event> <event version="SE12-004-01" user="murphyr" date="2011-02-16">Removed some sites from list for code '5'.</event> <event version="SE12-008-06" user="murphyr" date="2013-01-10" ref="66817">Fixed an issue in laterality condition preventing the edit from failing for invalid laterality 5.</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-019-01" user="kirbyk" date="2019-03-27" ref="68130">Laterality is no longer required for primary site C090 and C091.</event> <event version="SE18-019-04" user="beverung" date="2019-08-29" ref="68245">Laterality is required again for primary site C090 and C091 for cases prior to 2018.</event> <event version="SE21-021-03" user="beverung" date="2021-03-02" ref="68570">Update edit with 2021+ logic.</event> <event version="SE22-022-17" user="beverung" date="2022-11-16" ref="69062">Removed histology restriction for site C444 with laterality = 5.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>