edits.seer.internal.rules.IFN6437.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="IFN6437" name="Lymphovascular Invasion, Schema ID (SEER)" tag="N6437" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.lymphVascularInvasion == null || line.schemaId == null || line.typeOfReportingSource == '7') return true if (['00570', '00590'].contains(line.schemaId)) return Functions.matches(line.lymphVascularInvasion, /^[012349]$/) if (['00710', '00790', '00795', '00811', '00812', '00821', '00822', '00830'].contains(line.schemaId) || (line.schemaId == '00430' && line.dateOfDiagnosisYear > '2020')) return line.lymphVascularInvasion == '8' if (line.dateOfDiagnosisYear > '2021' && ['00730', '00740', '00760'].contains(line.schemaId)) return line.lymphVascularInvasion != '1' && line.lymphVascularInvasion != '8' return true ]]></expression> <message>Lymphovascular Invasion not valid for Schema ID</message> <description><![CDATA[1. This edit is skipped for any of the following conditions: a. Diagnosis date is pre-2018, invalid, blank (unknown). b. Lymphovascular Invasion is blank c. Schema ID is blank. d. Type of Reporting Source = 7 (Death Certificate Only) 2. Lymphovascular invasion must be coded 0, 1, 2, 3, 4, or 9 for the following: Schema ID 00570 Penis 00590 Testis 3. Lymphvascular invasion must be coded 8 for the following: Schema IDs: 00430 GIST (2021+) 00710 Lymphoma Ocular Adnexa 00790 Lymphoma 00795 Lymphoma (CLL/SLL) 00811 Mycosis Fungoides 00812 Primary Cutaneous Lymphoma non MF 00821 Plasma Cell Myeloma 00822 Plasma Cell Disorder 00830 HemeRetic 4. Lymphovascular Invasion must not be coded 1 or 8 for the following Schema IDs for 2022+: 00730 Thyroid 00740 Thyroid Medullary 00760 Adrenal]]></description> <history> <event version="SE21-021-04" user="smithm" date="2021-04-01" ref="68632">Edit created.</event> <event version="SE21-021-06" user="kirbyk" date="2021-06-03" ref="68677">Restricting condition for Schema ID = 00430 to DX Years 2021+.</event> <event version="SE22-022-01" user="secristc" date="2022-01-17" ref="68816">Added logic for schema IDs 00730, 00740, 00760 for DX years 2021+.</event> <event version="SE22-022-17" user="beverung" date="2022-11-03" ref="69057">Updated Thyroid/Adrenal condition to check for DX Year 2022+.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy