edits.seer.internal.rules.IFN6357.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="IFN6357" name="Schema Discriminator 1, Urethra, Sex (NAACCR)" tag="N6357" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[ if(line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || !['00631','00633'].contains(line.schemaId) || line.sex == null) return true if (line.schemaDiscriminator1 == '2' || line.schemaId == '00633') return line.sex != '2' && line.sex != '6' return true ]]></expression> <message>Schema Discriminator 1 conflicts with Sex or Schema ID</message> <description><![CDATA[This edit verifies that Schema Discriminator 1 is coded consistently with Sex for Schema IDs 00631 Urethra and 00633 Prostatic Urethra. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2021, blank (unknown), or invalid. b. Schema ID is not 00631 or 00633. c. Sex is blank. 2. If Schema Discriminator 1 = 2 (Males only, Prostatic Urethra) Sex must not = 2 (Female) or 6 (Natal Female) 3. If Schema ID = 00633, Prostatic Urethra Sex must not = 2 (Female) or 6 (Natal Female) ]]></description> <history> <event version="SE21-021-04" user="secristm" date="2021-04-20" ref="68639">Edit created.</event> <event version="SE21-021-04" user="kirbyk" date="2021-05-13" ref="68661">Removed skip condition for Type of Reporting Source.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy