edits.seer.internal.rules.IF42_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="IF42_3" name="Laterality, Primary Site, Morph ICDO3 (SEER IF42)" tag="N0445" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[if (line.overRideSiteLatMorph == '1' || line.histologicTypeIcdO3 == null || line.histologicTypeIcdO3 >= '9590' || ((line.dateOfDiagnosisYear >= '1988' || line.dateOfDiagnosisYear == null) && line.histologicTypeIcdO3 == '9140')) return true else if (line.dateOfDiagnosisYear >= '2018' && (line.primarySite == 'C090' || line.primarySite == 'C091') && line.laterality == '0') return true else if (line.dateOfDiagnosisYear >= '2021' && Functions.matches(line.primarySite, /^C44[345]$/) && line.histologicTypeIcdO3 >= '8720' && line.histologicTypeIcdO3 <= '8790') return line.laterality != '0' 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' || line.dateOfDiagnosisYear == null) && Functions.matches(line.primarySite, /^C(081|090|40[0-3]|44[1267]|4[79][12])$/))) return !(line.behaviorCodeIcdO3 == '2' && !(line.laterality ==~/^[1235]$/)) return true]]></expression> <message>Laterality, Primary Site and Behavior Code ICD-O-3 conflict</message> <description><![CDATA[This edit is skipped if any of the following is true: 1. Histologic Type ICD-O-3 is empty 2. Histologic Type ICD-O-3 >= 9590 3. Diagnosis year is greater than 1987 or is blank, and Histologic Type ICD-O-3 = 9140 4. Over-ride Site/Lat/Morph field contains a '1'(review complete) If the Primary Site is a paired organ (see lists below) and the Behavior Code ICD-O-3 is in situ (`2'), then Laterality must be `1', `2', '3', or `5', meaning right: origin of primary; left: origin of primary; or only one side involved, right or left origin unspecified; paired site: midline tumor. 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 diagnosed after 1978 or if diagnosis date is blank, 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 cases diagnosed 2018 and later, laterality is no longer required for C090 and C091. For cases diagnosed 2021 and later, the following primary site with histology 8720- 8790 must have a code other than zero for laterality. Code 5 is allowed: C443 Skin of face C444 Skin of scalp and neck C445 Skin of trunk]]></description> <history> <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="SE12-002-01" user="murphyr" date="2009-12-31">Modified to include laterality code '5'. Edit now checks for blanks if year of dx is greater than 1987.</event> <event version="SE12-002-01" user="murphyr" date="2010-01-06">Edit will now skip if year dx is greater than 1987 and not blank and if histology equals 9140.</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-04-11" ref="68167">Edit modified to allow laterality code '0' for DX Year >=2018 and primary site equals C090 or C091.</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="SE21-021-03" user="beverung" date="2021-03-04" ref="68571">Require laterality not = 0 for sites C443-445 with histologies 8720-8790 for 2021+.</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