edits.seer.internal.rules.IFN4003.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="IFN4003" name="SSDI for Vulva, Vagina, Cervix, Blank for Other Schemas (NAACCR)" tag="N4003" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId == null) return true if (!['00500', '09500'].contains(line.schemaId) && line.lnLaterality != null) return false if (!['00500', '09500', '00510'].contains(line.schemaId) && (line.lnAssessMethodFemoralInguinal != null || line.lnStatusFemoralInguinal != null)) return false if (!['00500', '09500', '00510', '00520', '09520'].contains(line.schemaId) && (line.lnAssessMethodPelvic != null || line.lnStatusPelvic != null)) return false boolean ssdisAreBlank = (line.lnAssessMethodParaaortic == null && line.lnDistantAssessMethod == null && line.lnDistantMediastinalScalene == null && line.lnStatusParaAortic == null) if (!['00510', '00520', '09520'].contains(line.schemaId) && !ssdisAreBlank) return false return true]]></expression> <message>Conflict between schema and coded SSDI items for Vulva, Vagina, Cervix</message> <description><![CDATA[This edit verifies that Site-Specific Data Items that are defined for Vulva (Schema ID 00500), Vagina (Schema ID 00510), and Cervix (Schema IDs 00520, 09520) are blank (not coded) for all other schemas. This edit is skipped for any of the following conditions: a.Date of Diagnosis is before 2018, blank, invalid. b.Schema ID is blank. If Schema ID is not 00500 (Vulva) or 09500 (Vulva), the following Site-Specific Data Item must be blank: LN Laterality If Schema ID is not 00500 (Vulva), 09500 (Vulva), or 00510 (Vagina), the following Site-Specific Data Items must be blank: LN Assessment Method Femoral-Inguinal LN Status Femoral-Inguinal If Schema ID is not 00500 (Vulva), 09500 (Vulva), 00510 (Vagina), 00520 (Cervix), or 09520 (Cervix), the following Site-Specific Data Items must be blank: LN Assessment Method Pelvic LN Status Pelvic If Schema ID is not 00510 (Vagina), 00520 (Cervix), or 09520 (Cervix), the following Site-Specific Data Items must be blank: LN Assessment Method Para-Aortic LN Distant Assessment Method LN Distant: Mediastinal, Scalene LN Status Para-Aortic NOTE: FIGO Stage, also collected for these schemas, is included in another edit]]></description> <history> <event version="SE18-018-02" user="schadega" date="2018-06-04" ref="67814">Edit Created.</event> <event version="SE18-018-06" user="kirbyk" date="2018-08-24" ref="68026">Changed error message.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE18-020-05" user="beverung" date="2020-08-06" ref="68468">Added '09520' to Schema IDs for Cervix.</event> <event version="SE22-022-01" user="smithm" date="2022-03-04" ref="68894">Updated SSDI requirements for NAACCR 22.</event> <event version="SE23-023-01" user="shearerw" date="2023-02-17" ref="69167">Updated years for p16 when Schema ID is not 09520.</event> <event version="SE24-024-03" user="kirbyk" date="2024-03-20" ref="69421">Added conditions for Schema ID = 09500; removed conditions for p16.</event> </history> </rule>