edits.seer.internal.rules.IFN6819.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="IFN6819" name="Bilirubin Pretreatment Lab, Unit of Measure, Liver (NAACCR)" tag="N6819" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || line.schemaId != '00220' || line.typeOfReportingSource == '7') return true if (line.bilirubinPretxUnitOfMeasure == null || line.bilirubinPretxUnitOfMeasure == '8' || line.bilirubinPretxTotalLabValue == null || line.bilirubinPretxTotalLabValue == 'XXX.8') return true if (line.bilirubinPretxTotalLabValue == 'XXX.7') return line.bilirubinPretxUnitOfMeasure == '7' if (line.bilirubinPretxTotalLabValue == 'XXX.9') return line.bilirubinPretxUnitOfMeasure == '9' return true]]></expression> <message>Conflict between Bilirubin Pretreatment Total Lab Value and Bilirubin Pretreatment Unit of Measure</message> <description><![CDATA[This edit verifies that Bilirubin Pretreatment Total Lab Value and Bilirubin Pretreatment Unit of Measure SSDIs are coded consistently with each other 1. The edit is skipped for any of the following conditions: a. Date of Diagnosis pre-2021, blank (unknown), or invalid. b. Schema ID is blank or not 00220. c. Type of Reporting Source = 7 (Death Certificate Only) d. Bilirubin Pretreatment Total Lab Value or Bilirubin Pretreatment Unit of Measure is blank or coded not applicable 2. If Bilirubin Pretreatment Total Lab Value = XXX.7 (test ordered, results not in chart) Bilirubin Pretreatment Unit of Measure must = 7 (test ordered, results not in chart) 3. If Bilirubin Pretreatment Total Lab Value = XXX.9 (not assessed or unknown) Bilirubin Pretreatment Unit of Measure must = 9 (not assessed or unknown)]]></description> <history> <event version="SE23-023-05" user="shearerw" date="2023-06-16" ref="69240">Edit Created.</event> </history> </rule>