edits.seer.internal.rules.IFN6148.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="IFN6148" name="Mets at DX-Distant LN, EOD Mets, Schema ID (SEER)" tag="N6148" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '7' || line.schemaId == null || line.metsAtDxDistantLn == null || line.eodMets == null) return true boolean schema50028andYear2021Plus = line.dateOfDiagnosisYear >= '2021' && line.schemaId == '00528' if (line.metsAtDxDistantLn == '1' && (Functions.matches(line.metsAtDxBone, /^0|9$/) || line.metsAtDxBone == null) && (Functions.matches(line.metsAtDxBrain, /^0|9$/) || line.metsAtDxBrain == null) && (Functions.matches(line.metsAtDxLiver, /^0|9$/) || line.metsAtDxLiver == null) && (Functions.matches(line.metsAtDxLung, /^0|9$/) || line.metsAtDxLung == null) && (Functions.matches(line.metsAtDxOther, /^0|9$/) || line.metsAtDxOther == null) && (((List)Context.IFN_6148_SchemaId_List).contains(line.schemaId) || schema50028andYear2021Plus)) return line.eodMets == '10' if ((((List)Context.IFN_6148_SchemaId_List).contains(line.schemaId) || schema50028andYear2021Plus) && line.eodMets == '10') return line.metsAtDxDistantLn == '1' if (line.schemaId == '00230' && (line.eodMets == '50' || line.eodMets == '10')) return line.metsAtDxDistantLn == '1' if (line.schemaId == '00280' && (line.eodMets == '20' || line.eodMets == '10')) return line.metsAtDxDistantLn == '1' return true]]></expression> <message>Mets at Dx-Distant LN and EOD Mets conflict for this schema</message> <description><![CDATA[Purpose: This edit verifies that Mets at DX-Distant LN code 1, with no other positive Mets at DX data item, and EOD Mets are coded consistently by Schema ID. 1. This edit is skipped if any of the following conditions is true: a. Year of Date of Diagnosis is less than 2021, blank (unknown), or invalid b. Schema ID is blank c. EOD Mets is blank d. Mets at DX-Distant LN is blank e. Type of Reporting Source is 7 (Death Certificate Only) NOTE: Mets at DX-Distant LN coded in EOD Regional Nodes for 00458, 00710, 00811. EOD Mets coded 88 for 00458, 00821, 00822, 00830, 99999 2. If Mets at DX-Distant LN = 1 (yes) (and Mets at DX-Bone = 0 or 9, Mets at DX-Brain = 0 or 9, Mets at DX-Liver = 0 or 9, Mets at DX-Lung = 0 or 9, and Mets at DX-Other = 0 or 9 or the field is empty) then EOD Mets must be coded as shown in the list below: 00060 Cervical Nodes 10 00071 Lip 10 00072 Tongue Anterior 10 00073 Gum 10 00074 Floor of Mouth 10 00075 Palate Hard 10 00076 Buccal Mucosa 10 00077 Mouth Other 10 00080 Major Salivary Gland 10 00090 Nasopharynx 10 00100 Oropharynx p16+ 10 00111 Oropharynx p16- 10 00112 Hypopharynx 10 00118 Pharynx Other 10 00119 Middle Ear 10 00121 Maxillary Sinus 10 00122 Nasal Cavity 10 00128 Sinus Other 10 00130 Larynx Other 10 00131 Larynx Supraglottic 10 00132 Larynx Glottic 10 00133 Larynx Subglottic 10 00140 Melanoma H&N 10 00150 Cutaneous Carcinoma 10 00160 Esophagus Squamous 10 00169 Esophagus 10 00170 Stomach 10 00180 Small Intestine 10 00210 Anus [8th: 2018-2020] 10 09210 Anus [V9: 2023+] 10 00220 Liver 10 00241 Gallbladder 10 00242 Cystic Duct 10 00250 Bile Ducts Perihilar 10 00260 Bile Ducts Distal 10 00270 Ampulla of Vater 10 00278 Biliary Other 10 00288 Digestive Other 10 00358 Trachea 10 00370 Pleural Mesothelioma 10 00378 Respiratory Other 10 00400 Soft Tissue H&N 10 00410 Soft Tissue Trunk 10 00421 Soft Tissue Abdomen 10 00422 Heart,Mediastinum 10 00430 GIST 10 00440 Retroperitoneum 10 00450 Soft Tissue Rare 10 00459 Soft Tissue Other 10 00478 Skin Other 10 00480 Breast 10 00500 Vulva [8th: 2018-2023] 10 09500 Vulva [V9: 2024+] 10 00510 Vagina 10 00520 Cervix [8th: 2018-2020] 10 00528 Cervix Sarcoma [2021+] 10 09520 Cervix [9th: 2021+] 10 00530 Corpus Carcinoma 10 00541 Corpus Sarcoma 10 00542 Corpus Adenosarcoma 10 00558 Adnexa Uterine Other 10 00559 Genital Female Other 10 00570 Penis 10 00598 Genital Male Other 10 00600 Kidney Parenchyma 10 00610 Kidney Renal Pelvis 10 00631 Urethra 10 00633 Urethra Prostatic 10 00638 Urinary Other 10 00640 Skin of Eyelid 10 00650 Conjunctiva 10 00660 Melanoma Conjunctiva 10 00690 Lacrimal Gland 10 00698 Lacrimal Sac 10 00700 Orbital Sarcoma 10 00718 Eye Other 10 00721 Brain [8th: 2018-2022] 10 09721 Brain [V9: 2023+] 10 00722 CNS Other [8th: 2018-2022]10 09722 CNS Other [V9: 2023+] 10 00723 Intracranial Gland [8th: 2018-2022] 10 09723 Intracranial Gland [V9: 2023+] 10 00730 Thyroid 10 00740 Thyroid Medullary 10 00750 Parathyroid 10 00760 Adrenal 10 00778 Endocrine Other 10 00812 Primary Cutaneous Lymphoma10 3. If EOD Mets = 10 for the schemas above, Mets at DX-Distant LN must = 1 4. If Schema ID = 00230 and EOD Mets = 50, 10 Mets at DX-Distant LN must = 1 5. If Schema ID = 00280 and EOD Mets = 20, 10 Mets at DX-Distant LN must = 1]]></description> <history> <event version="SE21-021-04" user="secristm" date="2021-03-16" ref="68634">Edit created.</event> <event version="SE21-021-04" user="kirbyk" date="2021-05-10" ref="68652">Added more requirements for EOD Mets = 10.</event> <event version="SE22-022-01" user="smithm" date="2022-01-27" ref="68835">Add 00528 (2021+), 00459 to list of schema ids</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> <event version="SE23-023-01" user="shearerw" date="2023-02-06" ref="69131">Add 09210, 09721, 09722, 09723 to list of schema ids.</event> <event version="SE24-024-01" user="cooki" date="2024-03-14" ref="69409">Added 09500 to list of schema ids.</event> </history> </rule>