edits.seer.internal.rules.IFN2822.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="IFN2822" name="_SYS AJCC ID, Date of Diagnosis (NAACCR)" tag="N2822" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[ if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '2018' && line.ajccId != null) return false else if (line.dateOfDiagnosisYear >= '2018' && line.ajccId == null) return false else if (line.dateOfDiagnosisYear < '2021' && line.ajccId == '9001') return false else if (line.dateOfDiagnosisYear < '2023' && Functions.matches(line.ajccId, /^(900[2-5])$/)) return false else if (line.dateOfDiagnosisYear < '2024' && Functions.matches(line.ajccId, /^(900[6-9]|901[0-2])$/)) return false else if (line.dateOfDiagnosisYear >= '2021' && line.ajccId == '52') return false else if (line.dateOfDiagnosisYear >= '2023' && Functions.matches(line.ajccId, /^(19|21|72)$/)) return false else if (line.dateOfDiagnosisYear >= '2024' && Functions.matches(line.ajccId, /^(29|3[0-4]|50)$/)) return false return true]]></expression> <message>AJCC ID must be blank for cases diagnosed before 2018</message> <description><![CDATA[_SYS in edit name indicates an edit on system-generated data items. The edit is intended for use by software vendors in testing the accuracy of algorithms used to assign AJCC ID, and for use by central registries in verifying the quality of submitted data. The edit checks that AJCC ID is blank for pre-2018 diagnoses and is coded for 2018 and later diagnoses. The edit checks the following: AJCC ID 9001 is assigned for 2021+ diagnoses only. AJCC IDS 9002, 9003, 9004, and 9005 are assigned for 2023+ diagnoses only. AJCC IDs 9006 - 9012 are assigned for 2024+ diagnoses only. AJCC ID 52 is assigned for 2018-2020 diagnoses only. AJCC IDs 19, 21, and 72 are assigned for 2018-2022 diagnoses only. AJCC IDs 29, 30, 31, 32, 33, 34, and 50 assigned for 2018-2023 diagnoses only. Another edit, _SYS AJCC ID, Primary Site, Histology, Behavior (NAACCR), checks that the AJCC ID is assigned correctly by primary site, histology, and behavior for 2018+ diagnoses.]]></description> <history> <event version="SE22-022-01" user="secristc" date="2022-02-23" ref="68903">Edit created.</event> <event version="SE23-023-02" user="shearerw" date="2023-05-02" ref="69246">Update what schemas are valid before and after 2023.</event> <event version="SE24-024-01" user="cooki" date="2024-03-14" ref="69385">Updated description and logic to match V24.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy