edits.seer.internal.rules.IFN6593.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="IFN6593" name="Derived Rai Stage, Date DX (NAACCR)" tag="N6593" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '2018') return line.derivedRaiStage == null if (line.primarySite !='C421') return line.derivedRaiStage == '8' || line.derivedRaiStage == null else return line.derivedRaiStage == null || Functions.matches(line.derivedRaiStage, /^[0-49]$/) ]]></expression> <message>Derived Rai Stage value is invalid for Year of Diagnosis</message> <description><![CDATA[The edit is skipped if Date of Diagnosis is blank (unknown), or invalid. 1. This data item must be blank for pre-2018 diagnoses. 2. Must be a valid Derived Rai Stage code or blank. 0: 0 Lymphocytosis 1: I Lymphocytosis and Adenopathy 2: II Lymphocytosis and Organomegaly (Adenopathy is any value other than 5) 3: III Lymphocytosis and Anemia (Adenopathy and Organomegaly are any value other than 5) 4: IV Lymphocytosis and Thrombocytopenia (Adenopathy organomegaly and Anemia are any value other than 5) 8: Does not apply; Site is not C421 (All SSDIs should be set to 5) 9: Unknown (All SSDIs are 9 or blank; at least one is set to 9 OR Lymphocytosis is 0, 7, 9 OR Lymphocytosis is blank and one of the other SSDIs is a value other than 5 or 9) Another edit, Derived Rai Stage, Schema ID, Required (NAACCR), checks that the item is coded by Schema ID if required by a standard setter. 3. Code 8 must be used if primary site not C421 4. Codes 0, 1, 2, 3, 4, and 9 must be used if primary site = C421 ]]></description> <history> <event version="SE22-022-01" user="secristc" date="2022-02-17" ref="68861">Edit created.</event> <event version="SE22-022-17" user="beverung" date="2022-11-03" ref="69055">Updated error message.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy