edits.seer.internal.rules.IFN3069.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="IFN3069" name="_SYS Schema ID, Site, Histo, Sex (NAACCR)" tag="N3069" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.sex == null || line.primarySite == null || line.histologicTypeIcdO3 == null) return true String hist = line.histologicTypeIcdO3 String sex = line.sex String schemaId = line.schemaId if (!Functions.matches(line.primarySite, /^C48[1-8]$/) || hist == null) return true int histInt = Functions.asInt(hist) if (histInt == 8806 || histInt == 8930 || histInt == 8931) { if (Functions.matches(sex, /^[13459]$/) && schemaId != '00450') return false if (Functions.matches(sex, /^[26]$/) && schemaId != '00552') return false } if ((8000 <= histInt && 8700 >= histInt) || (8720 <= histInt && histInt <= 8790) || Functions.matches(hist, /$8822|89(33|[568]0)|90([056789]0|52|71|73|85|91)|91[01]0|970[01]^/)) { if (Functions.matches(sex, /^[13459]$/) && schemaId != '00440') return false if (Functions.matches(sex, /^[26]$/) && schemaId != '00552') return false } return true]]></expression> <message>Primary Site, Histologic Type ICD-O-3, Sex are incompatible with Schema ID.</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 Schema ID, and for use by central registries in verifying the quality of submitted data. 1. The edit is skipped for the following conditions: a. Date of diagnosis before 2018, invalid or blank b. Sex is blank. c. Primary Site is blank d. Histologic Type ICD-O-3 is blank 2. This edit verifies that Schema ID has been assigned correctly where Primary Site and Histologic Type ICD-O-3 codes are not sufficient to identify the appropriate EOD staging scheme. Sex is required to discriminate between histologies assigned to Primary Peritoneal Carcinoma (female), Retroperitoneum (male), and Soft Tissue Other. The edit checks that Schema ID, Primary Site code, Histologic Type ICD-O-3 code, and Sex 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. SCHEMA ID SITE HISTO Sex 00440 Retroperitoneum C481- 8000-8700 1,3,4,5,9 C482, 8720-8790 C488 8822, 8933 8950, 8960 8980, 9000 9050, 9052 9060 9070-9071 9073, 9080 9085 9090-9091 9100, 9110 9700-9701 00450 Soft Tissue Other C481- 8806 1,3,4,5,9 C482, 8930 C488 8931 00552 Primary Peritoneal Carcinoma C481- 8000-8700 2,6 C482, 8720-8790 C488 8806, 8822 8930-8931 8933, 8950 8960, 8980 9000, 9050 9052, 9060 9070-9071 9073, 9080 9085 9090-9091 9100, 9110 9700-9701 SCHEMA ID SEX CODES AND DEFINITIONS 00450 1: Male 3: Other (Hermaphrodite) 4: Transsexual, NOS 5: Transsexual, natal male 9: Not stated, unknown 00552 2: Female 6: Transsexual, natal female]]></description> <history> <event version="SE18-018-10" user="kirbyk" date="2018-12-04" ref="68067">Edit created.</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-07-22" ref="68372">Updated skip conditions.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy