edits.seer.internal.rules.IFN2760.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="IFN2760" name="Schema Discriminator 1, Date DX (NAACCR)" tag="N2760" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '2018' && line.schemaDiscriminator1 != null) return false return line.schemaDiscriminator1 == null || Functions.matches(line.schemaDiscriminator1, /^[0-79]$/)]]></expression> <message>Schema Discriminator 1 is not valid for Date DX</message> <description><![CDATA[The edit is skipped if date of diagnosis is blank or invalid. 1. This data item must be blank for pre-2018 diagnoses. 2. Must be a valid Schema Discriminator 1 code 0 1 2 3 4 5 6 7 9 blank Other edits for Schema Discriminator 1 check for appropriate codes by Schema ID and AJCC ID. This data item is used in determining Schema IDs and AJCC IDs and is required by all standard setters.]]></description> <history> <event version="SE18-018-02" user="kirbyk" date="2018-05-03" ref="67784">Edit created.</event> <event version="SE18-018-06" user="kirbyk" date="2018-08-24" ref="68026">Changed error message.</event> </history> </rule>