edits.seer.internal.rules.IFN7059.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="IFN7059" name="hCG Post-Orchiectomy Lab Value, Range, Testis (NAACCR)" tag="N7059" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2024' || line.schemaId != '00590' || line.typeOfReportingSource == '7') return true if (line.hcgPostOrchiectomyLabValue == null || line.hcgPostOrchiectomyLabValue == 'XXXXX.8') return true if (line.hcgPostOrchiectomyRange == null || line.hcgPostOrchiectomyRange == '8') return true if (Functions.matches(line.hcgPostOrchiectomyLabValue, /^([5-9]\d\d\d\.\d)|([1-4]\d\d\d\d\.\d)$/) || line.hcgPostOrchiectomyLabValue == '50000.0') return line.hcgPostOrchiectomyRange == '2' if (line.hcgPostOrchiectomyLabValue != '50000.0' && (Functions.matches(line.hcgPostOrchiectomyLabValue, /^[5-9]\d\d\d\d\.\d$/) || line.hcgPostOrchiectomyLabValue == 'XXXXX.1')) return line.hcgPostOrchiectomyRange == '3' if (line.hcgPostOrchiectomyRange == '5') return line.hcgPostOrchiectomyLabValue == 'XXXXX.9' return true]]></expression> <message>Conflict between hCG Post-Orchiectomy Lab Value and hCG Post-Orchiectomy Range</message> <description><![CDATA[This edit verifies that hCG Post-Orchiectomy Lab Value and hCG Post-Orchiectomy Range SSDIs are coded consistently with each other 1. The edit is skipped for any of the following conditions: a. Date of Diagnosis pre-2024, blank (unknown), or invalid. b. Schema ID is blank or not 00590 c. Type of Reporting Source = 7 (Death Certificate Only) d. hCG Post-Orchiectomy Lab Value or hCG Post-Orchiectomy Range is blank or coded not applicable 2. If hCG Post-Orchiectomy Lab Value = 5,000.0 - 50,000.0 mIU/mL hCG Post-Orchiectomy Range must = 2 (5,000-50,000 mIU/mL) 3. If hCG Post-Orchiectomy Lab Value = 50,000.1-99,999.9 ng/mL or XXXXX.1(100,000 mIU/mL or greater) hCG Post-Orchiectomy Range must = 3 (greater than 50,000 mIU/mL) 4. If hCG Post-Orchiectomy Range = 5 (unknown or not done, pre-orchiectomy normal) hCG Post-Orchiectomy Lab Value must = XXXXX.9 (not assessed or unknown)]]></description> <history> <event version="SE24-024-06" user="shearerw" date="2024-07-23" ref="69502">Edit Created.</event> </history> </rule>