edits.seer.internal.rules.IFN2803.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.
The newest version!
<rule id="IFN2803" name="Grade, Schema ID (NAACCR)" tag="N2803" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId == null) return true if (line.gradeClinical == null && line.gradePathological == null) return true List validCodes = (List)((Map)Context.IFN2803_Table).get(line.schemaId) if (validCodes == null) return true boolean isClinValid = line.gradeClinical == null || validCodes.contains(line.gradeClinical) boolean isPathValid = line.gradePathological == null || validCodes.contains(line.gradePathological) boolean isPostTxValid = line.gradePostTherapy == null || validCodes.contains(line.gradePostTherapy) boolean isPostTxClinValid = line.gradePostTherapyClin == null || validCodes.contains(line.gradePostTherapyClin) return isClinValid && isPathValid && isPostTxValid && isPostTxClinValid]]></expression> <message>Grade Clin,Path,PostTX and Schema ID conflict</message> <description><![CDATA[This edit checks that the four grade data items, Grade Clinical, Grade Pathological, Grade Post Therapy Clin (yc), and Grade Post Therapy Path (yp), are correct by Schema ID. The grade data items may be blank because they are not required before 2018. Grade Clinical and Grade Pathological are required for cases diagnosed 2018 and later. Grade Post Therapy Clin (yc) and Grade PostTherapy Path (yp) may be blank for cases diagnosed 2018 and later. Another edit, Grade Clin, Path, PostTX, Date of Diagnosis (NAACCR), checks that the grade data items are reported by diagnosis date. The edit is skipped if any of the following conditions are true: a. Date of diagnosis is pre-2018, blank or invalid b. Grade Clinical and Grade Pathological are both blank c. Schema ID is blank The allowable values for Grade Clinical, Grade Pathological, Grade Post Therapy Clin (yc), and Grade Post Therapy Path (yp) are listed by Schema ID. The values are the same for the four grade items. The sites and histologies for each schema are listed in the edit _SYS Schema ID, Primary Site, Histology, Behavior (NAACCR). 00060 Cervical Lymph Nodes and Unknown Primary Tumors of the Head and Neck Grade: 9 00071 Lip 00072 Tongue Anterior 00073 Gum 00074 Floor of Mouth 00075 Palate Hard 00076 Buccal Mucosa 00077 Mouth Other Grade: 1, 2, 3, 9 00080 Major Salivary Glands Grade: A, B, C, D, 9 00090 Nasopharynx Grade: A, B, C, D, 9 00100 HPV-Mediated (p16+) Oropharyngeal Cancer Grade: A, B, C, D, 9 00111 Oropharynx (p16-) 00112 Hypopharynx Grade: 1, 2, 3, 4, 9 00118 Pharynx Other Grade: A, B, C, D, 9 00119 Middle Ear Grade: A, B, C, D, 9 00121 Maxillary Sinus 00122 Nasal Cavity and Ethmoid Sinus Grade: 1, 2, 3, 9 00128 Sinus Other Grade: A, B, C, D, 9 00130 Larynx Other 00131 Larynx Supraglottic 00132 Larynx Glottic 00133 Larynx Subglottic Grade: 1, 2, 3, 9 00140 Mucosal Melanoma of the Head and Neck Grade: A, B, C, D, 9 00150 Cutaneous Carcinoma of the Head and Neck Grade: 1, 2, 3, 4, 9 000161 Esophagus and Esophagogastric Junction (Squamous) Grade: 1, 2, 3, 9 00169 Esophagus and GE Junction (Adenocarcinoma and Other) Grade: 1, 2, 3, 9 00170 Stomach Grade: 1, 2, 3, 9 00180 Small Intestine Grade: 1, 2, 3, 4, 9 00190 Appendix [8th: 2018-2022] Grade: 1, 2, 3, 9 09190 Appendix [V9: 2023+] Grade: 1, 2, 3, 9 00200 Colon and Rectum Grade: 1, 2, 3, 4, 9 00210 Anus [8th: 2018-2022] Grade: 1, 2, 3, 4, L, H, 9 09210 Anus [V9: 2023+] Grade: 1, 2, 3, 4, L, H, 9 00220 Liver Grade: 1, 2, 3, 4, 9 00230 Bile Ducts Intrahepatic Grade: 1, 2, 3, 9 00241 Gallbladder 00242 Cystic Duct Grade: 1, 2, 3, 9 00250 Bile Ducts Perihilar Grade: 1, 2, 3, 9 00260 Bile Ducts Distal Grade: 1, 2, 3, 9 00270 Ampulla of Vater Grade: 1, 2, 3, 9 00278 Biliary Other Grade: A, B, C, D, 9 00280 Pancreas Grade: 1, 2, 3, 9 00288 Digestive Other Grade: A, B, C, D, 9 00290 NET Stomach [8th: 2018-2023] Grade: 1, 2, 3, A, B, C, D, 9 09290 NET Stomach [V9: 2024+] Grade: 1, 2, 3, A, B, C, D, 9 00301 NET Duodenum [8th: 2018-2023] Grade: 1, 2, 3, A, B, C, D, 9 09301 NET Duodenum [V9: 2024+] Grade: 1, 2, 3, A, B, C, D, 9 00302 NET Ampulla of Vater [8th: 2018-2023] Grade: 1, 2, 3, A, B, C, D, 9 09302 NET Ampulla of Vater [V9: 2024+] Grade: 1, 2, 3, A, B, C, D, 9 00310 NET Jejunum and Ileum [8th: 2018-2023] Grade: 1, 2, 3, A, B, C, D, 9 09310 NET Jejunum and Ileum [V9: 2024+] Grade: 1, 2, 3, A, B, C, D, 9 00320 NET Appendix [8th: 2018-2023] Grade: 1, 2, 3, A, B, C, D, 9 09320 NET Appendix [V9: 2024+] Grade: 1, 2, 3, A, B, C, D, 9 00330 NET Colon and Rectum [8th: 2018-2023] Grade: 1, 2, 3, A, B, C, D, 9 09330 NET Colon and Rectum [V9: 2024+] Grade: 1, 2, 3, A, B, C, D, 9 00340 NET Pancreas [8th: 2018-2023] Grade: 1, 2, 3, A, B, C, D, 9 09340 NET Pancreas [V9: 2024+] Grade: 1, 2, 3, A, B, C, D, 9 00350 Thymus Grade: A, B, C, D, 9 00358 Trachea Grade: A, B, C, D, 9 00360 Lung Grade: 1, 2, 3, 4, 9 00370 Pleura Grade: 1, 2, 3, 4, 9 00378 Respiratory Other Grade: A, B, C, D, 9 00381 Bone Appendicular 00382 Bone Spine 00383 Bone Pelvis Grade: 1, 2, 3, H, 9 00400 Soft Tissues Head and Neck Grade: 1, 2, 3, A, B, C, D, H, 9 00410 Soft Tissue Trunk and Extremities Grade: 1, 2, 3, A, B, C, D, H, 9 00421 Soft Tissue Abdomen and Thorax 00422 Heart, Mediastinum, Pleura Grade: 1, 2, 3, A, B, C, D, H, 9 00430 Gastrointestinal Stromal Tumor (GIST) Grade: L, H, A, B, C, D, 9 00440 Retroperitoneum Grade: 1, 2, 3, A, B, C, D, H, 9 00450 Soft Tissue Rare Grade: 1, 2, 3, A, B, C, D, H, 9 00458 Kaposi Sarcoma Grade: 1, 2, 3, A, B, C, D, H, 9 00459 Soft Tissue Other Grade: 1, 2, 3, A, B, C, D, H, 9 00460 Merkel Cell Skin Grade: A, B, C, D, 9 00470 Melanoma Skin Grade: A, B, C, D, 9 00478 Skin Other Grade: A, B, C, D, 9 00480 Breast Grade: 1, 2, 3, L, M, H, A, B, C, D, 9 00500 Vulva [8th: 2018-2023] Grade: 1, 2, 3, 9 09500 Vulva [V9: 2024+] Grade: 1, 2, 3, 9 00510 Vagina Grade: 1, 2, 3, 9 00520 Cervix Uteri [8th: 2018-2020] Grade: 1, 2, 3, 9 09520 Cervix Uteri [V9: 2021+] Grade: 1, 2, 3, 9 00528 Cervix Sarcoma [2021+] Grade: 1, 2, 3, 9 00530 Corpus Carcinoma and Carcinosarcoma Grade: 1, 2, 3, 9 00541 Corpus Sarcoma Grade: 1, 2, 3, 9 00542 Corpus Adenosarcoma Grade: 1, 2, 3, L, H, S, 9 00551 Ovary 00552 Primary Peritoneal Carcinoma 00553 Fallopian Tube Grade: 1, 2, 3, B, L, H, 9 00558 Adnexa Uterine Other Grade: A, B, C, D, 9 00559 Genital Female Other Grade: A, B, C, D, 9 00560 Placenta Grade: A, B, C, D, 9 00570 Penis Grade: 1, 2, 3, 9 00580 Prostate Grade: 1, 2, 3, 4, 5, A, B, C, D, E, 9 00590 Testis Grade: A, B, C, D, 9 00598 Genital Male Other Grade: A, B, C, D, 9 00600 Kidney Parenchyma Grade: 1, 2, 3, 4, A, B, C, D, 9 00610 Kidney Renal Pelvis Grade: 1, 2, 3, L, H, 9 00620 Urinary Bladder Grade: 1, 2, 3, L, H, 9 00631 Urethra 00633 Urethra-Prostatic Grade: 1, 2, 3, L, H, 9 00638 Urinary Other Grade: A, B, C, D, 9 00640 Skin Eyelid Grade: 1, 2, 3, 4, 9 00650 Conjunctiva Grade: 1, 2, 3, 4, 9 00660 Melanoma Conjunctiva Grade: A, B, C, D, 9 00671 Melanoma Iris 00672 Melanoma Choroid and Ciliary Body Grade: 1, 2, 3, A, B, C, D, 9 00680 Retinoblastoma Grade: 1, 2, 3, 4, A, B, C, D, 9 00690 Lacrimal Gland Grade: 1, 2, 3, 4, 9 00698 Lacrimal Sac Grade: A, B, C, D, 9 00700 Orbital Sarcoma Grade: 1, 2, 3, A, B, C, D, H, 9 00710 Lymphoma Ocular Adnexa Grade: 1, 2, 3, 4, 9 00718 Eye Other Grade: A, B, C, D, 9 00721 Brain and Spinal Cord [8th: 2018-2022] 00722 CNS Other [8th: 2018-2022] 00723 Intracranial Gland [8th: 2018-2022] Grade: 1, 2, 3, 4, L, H, A, B, C, D, 9 09721 Brain and Spinal Cord Other [V9: 2023+] 09722 CNS Other [V9: 2023+] 09723 Intracranial Gland [V9: 2023+] 09724 Brain and Spinal Cord Medulloblastoma [V9: 2023+] Grade: 1, 2, 3, 4, L, H, A, B, C, D, 9 00730 Thyroid Grade: A, B, C, D, 9 00740 Thyroid Medullary Grade: A, B, C, D, 9 00750 Parathyroid Grade: L, H, A, B, C, D, 9 00760 Adrenal Gland Grade: L, H, M, A, B, C, D, 9 00770 NET Adrenal Grade: A, B, C, D, 9 00778 Endocrine Other Grade: A, B, C, D, 9 00790 Lymphoma 00795 Lymphoma-CLL/SLL Grade: 8 00811 Mycosis Fungoides 00812 Primary Cutaneous Lymphomas (excluding Mycosis Fungoides) Grade: 8 00821 Plasma Cell Myeloma 00822 Plasma Cell Disorder Grade: 8 00830 HemeRetic Grade: 8 99999 Ill-Defined Other Grade: A, B, C, D, 9]]></description> <history> <event version="SE18-018-03" user="kirbyk" date="2018-07-13" ref="67946">Edit created.</event> <event version="SE18-018-04" user="kirbyk" date="2018-08-08" ref="67985">Updated names for schemas 00821 and 00822 in description.</event> <event version="SE18-018-05" user="kirbyk" date="2018-08-17" ref="68020">Changed schema name for 00150.</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-01-13" ref="68832">Updated names for schemas 00450 and 00520 in the description, added 00459, 00528, and 09520 to the list</event> <event version="SE23-023-01" user="secristc" date="2023-02-06" ref="69130">Updated grade codes for multiple schemas and added schema IDs 09190, 09210, and 09721-4 </event> <event version="SE24-024-01" user="kirbyk" date="2024-03-13" ref="69404">Added new schema IDs; added Grade Post Therapy Clin.</event> </history> </rule>