edits.seer.internal.rules.IFN6149.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="IFN6149" name="Mets at DX-BBLLO, EOD Mets, Schema ID (SEER)" tag="N6149" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || line.typeOfReportingSource == '7' || line.eodMets == null || line.eodMets == '88') return true if (line.metsAtDxBone == null && line.metsAtDxBrain == null && line.metsAtDxLiver == null && line.metsAtDxLung == null && line.metsAtDxOther == null ) return true if (line.metsAtDxBone == '1' || line.metsAtDxBrain == '1' || line.metsAtDxLiver == '1' || line.metsAtDxLung == '1' || line.metsAtDxOther == '1' || line.metsAtDxOther == '2') if (((List)Context.IFN_6149_SchemaId_List).contains(line.schemaId)) return line.eodMets == '70' if (line.eodMets == '70' && ((List)Context.IFN_6149_SchemaId_List).contains(line.schemaId)) if (line.metsAtDxBone == '0' && line.metsAtDxBrain == '0' && line.metsAtDxLiver == '0' && line.metsAtDxLung == '0' && line.metsAtDxOther == '0') return false return true]]></expression> <message>If Mets at DX-Bone, Mets at DX-Brain, Mets at DX-Liver, Mets at DX-Lung, or Mets at DX-Other = 1, EOD Mets must = 70</message> <description><![CDATA[Purpose: This edit verifies that a code 1 in any of Mets at DX-Bone, Mets at DX-Brain, Mets at DX-Liver, Mets at DX-Lung, and Mets at DX-Other data items is coded consistently with EOD Mets code of 70 for all Schema IDs where this pattern is defined. 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 or = 88 d. Mets at DX-Bone, Mets at DX-Brain, Mets at DX-Liver, Mets at DX-Lung, and Mets at DX-Other are all blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If Mets at DX-Bone = 1, or Mets at DX-Brain = 1, or Mets at DX-Liver = 1 or Mets at DX-Lung = 1 or Mets at DX-Other = 1 or 2, then EOD Mets must be coded 70 for Schema IDs in the list below: 3. If EOD Mets = 70, Mets at DX-Bone, Mets at DX-Brain, Mets at DX-Liver, Mets at DX-Lung, and Mets at DX-Other must not all equal 0 for the Schema IDs in the list below. 00060 Cervical Nodes 00071 Lip 00072 Tongue Anterior 00073 Gum 00074 Floor of Mouth 00075 Palate Hard 00076 Buccal Mucosa 00077 Mouth Other 00080 Major Salivary Gland 00090 Nasopharynx 00100 Oropharynx HPV-Mediated (p16+) 00111 Oropharynx p16- 00112 Hypopharynx 00118 Pharynx Other 00119 Middle Ear 00121 Maxillary Sinus 00122 Nasal Cavity and Ethmoid Sinus 00128 Sinus Other 00130 Larynx Other 00131 Larynx Supraglottic 00132 Larynx Glottic 00133 Larynx Subglottic 00140 Melanoma Head and Neck 00150 Cutaneous Carcinoma Head and Neck 00161 Esophagus Squamous 00169 Esophagus 00170 Stomach 00180 Small Intestine 00210 Anus [8th: 2018-2020] 09210 Anus [V9: 2023+] 00220 Liver 00241 Gallbladder 00242 Cystic Duct 00250 Bile Ducts Perihilar 00260 Bile Ducts Distal 00270 Ampulla of Vater 00278 Biliary Other 00288 Digestive Other 00358 Trachea 00370 Pleural Mesothelioma 00378 Respiratory Other 00400 Soft Tissue Head and Neck 00410 Soft Tissue Trunk and Extremities 00421 Soft Tissue Abdomen and Thoracic 00422 Heart, Mediastinum and Pleura 00430 GIST 00440 Retroperitoneum 00450 Soft Tissue Rare 00459 Soft Tissue Other 00478 Skin Other 00480 Breast 00500 Vulva [8th:2018-2023] 09500 Vulva [9th: 2024+] 00510 Vagina 00520 Cervix [8th: 2018-2020] 00528 Cervix Sarcoma [2021+] 09520 Cervix [9th: 2021+] 00530 Corpus Carcinoma 00541 Corpus Sarcoma 00542 Corpus Adenosarcoma 00558 Adnexa Uterine Other 00559 Genital Female Other 00570 Penis 00598 Genital Male Other 00600 Kidney Parenchyma 00610 Kidney Renal Pelvis 00631 Urethra 00633 Urethra Prostatic 00638 Urinary Other 00640 Skin Eyelid 00650 Conjunctiva 00660 Melanoma Conjunctiva 00690 Lacrimal Gland 00698 Lacrimal Sac 00700 Orbital Sarcoma 00718 Eye Other 00721 Brain [8th: 2018-2022] 09721 Brain [V9: 2023+] 00722 CNS Other [8th: 2018-2022] 09722 CNS Other [V9: 2023+] 00723 Intracranial Gland [8th: 2018-2022] 09723 Intracranial Gland [V9: 2023+] 00730 Thyroid 00740 Thyroid Medullary 00750 Parathyroid 00760 Adrenal Gland 00778 Endocrine Other 00812 Primary Cutaneous Lymphoma]]></description> <history> <event version="SE21-021-04" user="smithm" date="2021-04-07" ref="68633">Edit created.</event> <event version="SE22-022-01" user="secristc" date="2022-01-13" ref="68834">Added schema IDs 00459 and 00528 to list.</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="shearerw" date="2024-02-14" ref="69365">Add logic for EOD Mets 70. Add 09500 to schema list.</event> <event version="SE24-024-06" user="shearerw" date="2024-06-25" ref="69480">Update logic for EOD Mets 70 to allow all fields to be set to 9.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy