edits.seer.internal.rules.IFN4900.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="IFN4900" name="Summary Stage 2018, Schema ID (NAACCR)" tag="N4900" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId == null || line.summaryStage2018 == null) return true List validCode = (List)((Map)Context.IFN_SS2018_Table).get(line.schemaId) if (validCode == null) return Functions.matches(line.summaryStage2018, /^[0-479]$/) return validCode.contains(line.summaryStage2018)]]></expression> <message>Summary Stage 2018 not valid for this Schema ID.</message> <description><![CDATA[1. This edit is skipped for any of the following conditions: a. Diagnosis date is pre-2018, blank (unknown), or invalid b. Schema ID is blank c. Summary Stage 2018 is blank 2. This edit checks that Summary Stage 2018 is correct by Schema ID. The data item may be blank because it was not required before 2018. The allowable values for Summary Stage 2018 are 0, 1, 2, 3, 4, 7, and 9 for all Schema IDs except for those listed below. The sites and histologies for each schema are listed in the edit _SYS Schema ID, Primary Site, Histology, Behavior (NAACCR). 00060 Cervical Lymph Nodes and Unknown Primary Summary Stage 2018: 3, 7, 9 00381 Bone Appendicular 00382 Bone Spine 00383 Bone Pelvis Summary Stage 2018: 1, 2, 3, 4, 7, 9 00400 Soft Tissues Head and Neck Summary Stage 2018: 1, 2, 3, 4, 7, 9 00410 Soft Tissue Trunk and Extremities Summary Stage 2018: 1, 2, 3, 4, 7, 9 00421 Soft Tissue Abdomen and Thorax 00422 Heart, Mediastinum, Pleura Summary Stage 2018: 1, 2, 3, 4, 7, 9 00440 Retroperitoneum Summary Stage 2018: 1, 2, 3, 4, 7, 9 00450 Soft Tissue Rare Summary Stage 2018: 1, 2, 3, 4, 7, 9 00458 Kaposi Sarcoma Summary Stage 2018: 1, 2, 3, 4, 7, 9 00459 Soft Tissue Other Summary Stage 2018: 1, 2, 3, 4, 7, 9 00541 Corpus Sarcoma 00542 Corpus Adenosarcoma Summary Stage 2018: 1, 2, 3, 4, 7, 9 00680 Retinoblastoma Summary Stage 2018: 1, 2, 3, 4, 7, 9 00700 Orbital Sarcoma Summary Stage 2018: 1, 2, 3, 4, 7, 9 00710 Lymphoma Ocular Adnexa Summary Stage 2018: 1, 2, 3, 4, 7, 9 00721 Brain and Spinal Cord [8th: 2018-2022] 00722 CNS Other [8th: 2018-2022] Summary Stage 2018: 1, 2, 7, 8, 9 09721 Brain and Spinal Cord Other [V9: 2023+] 09722 CNS Other [V9: 2023+] Summary Stage 2018: 1, 2, 7, 8, 9 00723 Intracranial Gland [8th: 2018-2022] Summary Stage 2018: 0, 1, 2, 7, 8, 9 09723 Intracranial Gland [V9: 2023+] Summary Stage 2018: 0, 1, 2, 7, 8, 9 09724 Brain and Spinal Cord Medulloblastoma [9V9: 2023+] Summary Stage 2018: 1, 2, 7, 8, 9 00790 Lymphoma 00795 Lymphoma-CLL/SLL Summary Stage 2018: 1, 2, 7, 9 00811 Mycosis Fungoides 00812 Primary Cutaneous Lymphomas (excluding MF and SS) Summary Stage 2018: 1, 2, 3, 4, 7, 9 00821 Plasma Cell Myeloma Summary Stage 2018: 7, 9 00822 Plasma Cell Disorder Summary Stage 2018: 1, 3, 7, 9 00830 HemeRetic Summary Stage 2018: 1, 7, 9 99999 Ill-Defined Other Summary Stage 2018: 9]]></description> <history> <event version="SE18-018-03" user="kirbyk" date="2018-07-18" ref="67954">Edit created.</event> <event version="SE18-018-04" user="kirbyk" date="2018-08-08" ref="67985">Updated names for schemas 00821 and 00822 in description.</event> <event version="SE18-018-05" user="schadega" date="2018-08-17" ref="68021">Updated name for schema 00830 in description.</event> <event version="SE18-020-02" user="kirbyk" date="2020-03-27" ref="68332">Removed codes 1 and 3 for Derived Summary Stage 2018.</event> <event version="SE22-022-01" user="secristc" date="2022-01-14" ref="68845">Added logic for schema ID 00459, updated description for 00450</event> <event version="SE22-022-01" user="smithm" date="2022-02-28" ref="68830">Added logic for Schema IDs 00528 and 09520</event> <event version="SE23-023-01" user="shearerw" date="2023-02-07" ref="69137">Add Schema IDs 09721-09724 to SS2018 Table. Add code 0 to schema id 00370 (set to default values).</event> <event version="SE23-023-02" user="shearerw" date="2023-05-04" ref="69262">Remove code 0 for Schema ID 00370 for 2018-2022.</event> <event version="SE24-024-01" user="kirbyk" date="2024-02-06" ref="69349">Removed date requirement for code 0 for Schema ID 00370.</event> </history> </rule>