edits.seer.internal.rules.IFN6174.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="IFN6174" name="Number of Positive Pelvic Nodes/Positive Para-aortic Nodes, Corpus Uteri, EOD Regional Nodes (SEER)" tag="N6174" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[ if(line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || !['00528', '00530','00541','00542'].contains(line.schemaId) || line.eodRegionalNodes == null || line.typeOfReportingSource == '7') return true if ((line.numberOfPositivePelvicNodes == null || line.numberOfPositivePelvicNodes == 'X8') && (line.numberOfPositiveParaAorticNodes == null || line.numberOfPositiveParaAorticNodes == 'X8')) return true if (line.schemaId == '00530') { if (Functions.matches(line.numberOfPositivePelvicNodes, /^0[1-9]|[1-9]\d|X[126]$/) && !Functions.between(line.eodRegionalNodes, '100', '600')) return false if (Functions.matches(line.numberOfPositiveParaAorticNodes, /^0[1-9]|[1-9]\d|X[126]$/) && !Functions.between(line.eodRegionalNodes, '400', '600')) return false } if (['00528', '00541','00542'].contains(line.schemaId)) if ((Functions.matches(line.numberOfPositivePelvicNodes, /^0[1-9]|[1-9]\d|X[126]$/) || Functions.matches(line.numberOfPositiveParaAorticNodes, /^0[1-9]|[1-9]\d|X[126]$/)) && line.eodRegionalNodes != '300') return false if (line.eodRegionalNodes == '000') return Functions.matches(line.numberOfPositiveParaAorticNodes, /^00|X[89]$/) && Functions.matches(line.numberOfPositivePelvicNodes, /^00|X[89]$/) return true ]]></expression> <message>Number of Positive Pelvic Nodes and Number of Positive Para-Aortic Nodes conflict with EOD Regional Nodes</message> <description><![CDATA[This edit verifies that the Number of Positive Pelvic Nodes SSDI and the Number of Positive Para-aortic Nodes SSDI are coded consistently with EOD Regional Nodes for Schema ID 00531, Corpus Carcinoma and Carcinosarcoma, 00541, Corpus Sarcoma, and 00542, Corpus Adenosarcoma. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2021, blank (unknown), or invalid. b. Schema ID is blank or not 00528, 00530, 00541, or 00542 c. Number of Positive Pelvic Nodes and Number of Positive Para-aortic Nodes are both blank or both = X8 (not applicable) d. EOD Regional Nodes is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If Schema ID = 00530: a. If Number of Positive Pelvic Nodes = 01-99, X1 (100 or more nodes positive), X2 (positive nodes, number unknown),or X6 (positive aspiration or core biopsy of nodes) then EOD Regional Nodes must = 100-600 (positive pelvic nodes or para-aortic nodes with or without pelvic nodes) b. If Number of Positive Para-aortic Nodes = 01-99, X1 (100 or more nodes positive), X2 (positive nodes, number unknown), or X6 (positive aspiration or core biopsy of nodes), then EOD Regional Nodes must = 400-600 (positive para-aortic nodes) 3. If Schema ID = 00528, 00541 or 00542: a. If Number of Positive Pelvic Nodes = 01-99, X1, X2, or X6 then EOD Regional Nodes must = 300 (positive pelvic nodes or para-aortic nodes) b. If Number of Positive Para-aortic Nodes = 01-99, X1, X2, or X6, then EOD Regional Nodes must = 300 (positive pelvic or para-aortic nodes) 4. If EOD Regional Nodes = 000 (no nodes involved), then Number of Positive Pelvic Nodes must = 00, X8, or X9 and Number of Positive Para-aortic Nodes must = 00, X8, or X9]]></description> <history> <event version="SE21-021-04" user="secristm" date="2021-04-08" ref="68611">Edit created.</event> <event version="SE22-022-01" user="smithm" date="2022-01-19" ref="68840">Add 00528 schema id as condition to either fail or skip</event> <event version="SE22-022-03" user="beverung" date="2022-04-27" ref="68947">Update edit name and remove CoC Accredited Flag.</event> <event version="SE24-024-01" user="kirbyk" date="2024-02-14" ref="69341">Updated requirements for Schema ID = 00530.</event> </history> </rule>