edits.seer.internal.rules.IFN3007.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.
The newest version!
<rule id="IFN3007" name="Schema ID, Site, Histo, Schema Discriminator 2 (NAACCR)" tag="N3007" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.primarySite == null || line.histologicTypeIcdO3 == null) return true Map contextMap = (Map)Context.SchemaDiscriminator2Table Map histMap = (Map)contextMap.get(line.primarySite) if (histMap == null) return line.schemaDiscriminator2 == null int histInt = Functions.asInt(line.histologicTypeIcdO3) Map discrimMap = (Map)histMap.get(histInt) if (discrimMap == null) return line.schemaDiscriminator2 == null // exception case for C111 with schema ID 00090 (Nasopharynx) if (line.primarySite == 'C111' && line.schemaId == '00090' && line.schemaDiscriminator2 == null) return true // exception case for C160 with schema ID 00170 (Stomach) if (line.primarySite == 'C160' && line.schemaId == '00170' && line.schemaDiscriminator2 == null && line.histologicTypeIcdO3 == '8020') return true List schemaIds = (List)discrimMap.get(line.schemaDiscriminator2) if (schemaIds == null) return false else return schemaIds.contains(line.schemaId) return true]]></expression> <message>Primary Site, Histologic Type ICD-O-3, and Schema Discriminator 2 are incompatible with Schema ID.</message> <description><![CDATA[This edit verifies that Schema Discriminator 2, where required, is used where the Primary Site and Histologic Type ICD-O-3 codes are not sufficient to identify the appropriate Schema ID. The edit checks that Schema ID, Primary Site code or Histologic Type ICD-O-3 code, and Schema Discriminator 2 code occur together within the edited record, as shown in the following chart. If there is an edit failure, the problem may be due to a software error. If coding is reviewed and correct, the software vendor should be consulted for assistance in resolving the issue. 1. The edit is skipped for the following conditions: a. Date of diagnosis before 2018, blank, or invalid. b. Primary Site is blank c. Histologic Type ICD-O-3 is blank 2. The edit checks that Schema Discriminator 2 is coded and not blank for combinations of Primary Site and Histologic Type ICD-O-3. The combinations of site and histology are determined by Schema ID but are checked independently of Schema ID assignment. 3. The edit then verifies that Schema Discriminator 2 is valid for Primary Site, Histologic Type ICD-O-3, and Schema ID. Where SITE or HISTO is listed as "All", Schema Discriminator 2 is required for all the sites or histologies assigned to the Schema ID. Where a specific site or histology is listed, Schema Discriminator 2 is required for only those sites or histologies for the Schema ID. 4. The edit verifies that Schema Discriminator 2 is blank for all other Primary Site or Histologic Type ICD-O-3 codes in the Schema ID. 5. The edit verifies that Schema Discriminator 2 is left blank for all other Schema IDs. 6. Where Schema Discriminator 1 is also required to assign the correct Schema ID, the edit will pass either Schema ID as correct. The Schema IDs include 00100 and 00111 for C111, and 00161 and 00169 for C160. 7. Where Schema Discriminator 2 is required for a site/histology combination for one Schema ID, but not for the same combination of site/histology in another Schema ID, the edit will pass the Schema ID where it is not required: e.g., 00090, C111, all histos, and 00170, C160, 8020. SCHEMA ID SITE HISTO DISC 2 00100 Oropharynx (p16+) C019 All 2 C024 All 2 C051 All 2 C052 All 2 C090 All 2 C091 All 2 C098 All 2 C099 All 2 C100 All 2 C102 All 2 C103 All 2 C104 All 2 C108 All 2 C109 All 2 C111 All 2 00111 Oropharynx (p16-) C019 All 1, 9 C024 All 1, 9 C051 All 1, 9 C052 All 1, 9 C090 All 1, 9 C091 All 1, 9 C098 All 1, 9 C099 All 1, 9 C100 All 1, 9 C102 All 1, 9 C103 All 1, 9 C104 All 1, 9 C108 All 1, 9 C109 All 1, 9 C111 All 1, 9 00161 Esophagus Squamous C150-C155 8020 1, 9 C158-C159 C160 00169 Esophagus excl Sqms C150-C155 8020 2 C158-C159 C160 00410 Soft Tissue Sarcoma, Trunk, Extremities C473 All 1 C475 All 1 C493 All 1 C494 All 1 C495 All 1 00421 Soft Tissue Sarcoma, Abdomen, Thoracic Visceral Organs C473 All 2, 8 C475 All 2, 8 C493 All 2, 8 C494 All 2, 8 C495 All 2, 8 00459 Soft Tissue Sarcoma, Other C473 All* 9 C475 All* 9 C493 All* 9 C494 All* 9 C495 All* 9 * Excluding 8992 SCHEMA ID SCHEMA DISCRIMINATOR 2 CODES AND DEFINITIONS 00100 2: p16 Positive; HPV Positive; Diffuse, strong reactivity 00111 1: p16 Negative; Nonreactive 9: Not tested for p16; Unknown 00161 1: Undifferentiated carcinoma with squamous component 9: Undifferentiated carcinoma, NOS 00169 2: Undifferentiated carcinoma with glandular component 00410 1: External structure Blank: Primary Site is not C473, C474, C493-C495, Discriminator is not necessary 00421 2: Internal viscera 8: Not applicable, abstracted prior to 2021 updates Blank: Primary Site is not C473, C474, C493-C495, Discriminator is not necessary 00459 9: Not specified as external or internal, unable to determine Blank: Primary Site is not C473, C474, C493-C495, Discriminator is not necessary ]]></description> <history> <event version="SE18-018-10" user="kirbyk" date="2018-12-04" ref="68066">Edit created.</event> <event version="SE18-019-01" user="kirbyk" date="2019-03-28" ref="68161">Changed edit name.</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="SE21-021-02" user="kirbyk" date="2021-01-26" ref="68554">Updated requirements for EOD 2.0 schemas.</event> <event version="SE22-022-01" user="beverung" date="2022-02-18" ref="68822">Update for 2022.</event> <event version="SE22-022-13" user="kirbyk" date="2022-10-18" ref="69043">Fixed edit to fail correctly when Schema ID is missing.</event> <event version="SE22-022-14" user="kirbyk" date="2022-10-20" ref="69047">Fixed Primary Sites in edit table; added exception for schema Nasopharynx.</event> <event version="SE22-022-17" user="beverung" date="2022-12-06" ref="69064">Added exception for C160/00170 and updated description to mention exceptions.</event> <event version="SE24-024-01" user="kirbyk" date="2024-02-16" ref="69346">Updated requirements for 2024.</event> <event version="SE24-024-06" user="cooki" date="2024-07-22" ref="69487">Updated to v24a.</event> </history> </rule>