edits.seer.internal.rules.IFN6749.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="IFN6749" name="Date Initial RX SEER, Ca Dir RX 2023 (SEER)" tag="N6749" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023') return true boolean rxSummTreatmentStatusYes = line.rxSummTreatmentStatus == '2' && line.dateOfDiagnosisYear >= '2024' boolean rxSummSurgPrimSite2023Yes = Functions.matches(line.rxSummSurgPrimSite2023, /^(A|B)([1-8]\d\d|900)$/) boolean scopeSiteCondition = Functions.matches(line.primarySite, /^C(42[0134]|589|7[0127]\d|75[1-3]|76[1-8]|809)$/) boolean rxSummSurgScopeRegLnSurYes = Functions.matches(line.rxSummScopeRegLnSur, /^[2-7]$/) && !scopeSiteCondition boolean rxSummSurgOthRegDisYes = Functions.matches(line.rxSummSurgOthRegDis, /^[1-5]$/) boolean phase1RadiationTreatmentModalityYes = Functions.matches(line.phase1RadiationTreatmentModality, /^0[1-9]|1[0-6]|98$/) boolean rxSummSurgRadSeqYes = Functions.matches(line.rxSummSurgRadSeq, /^[2-9]$/) boolean rxSummBrmYes = line.rxSummBrm == '01' boolean rxSummChemoYes = Functions.matches(line.rxSummChemo, /^0[123]$/) boolean rxSummHormoneYes = line.rxSummHormone == '01' boolean rxSummTransplntEndocrYes = Functions.matches(line.rxSummTransplntEndocr, /^1[012]|[234]0$/) boolean rxSummOtherYes = Functions.matches(line.rxSummOther, /^[1236]$/) boolean atLeastOneFieldYes = rxSummTreatmentStatusYes || rxSummSurgPrimSite2023Yes || rxSummSurgScopeRegLnSurYes || rxSummSurgOthRegDisYes || phase1RadiationTreatmentModalityYes || rxSummSurgRadSeqYes || rxSummBrmYes || rxSummChemoYes || rxSummHormoneYes || rxSummTransplntEndocrYes || rxSummOtherYes return line.dateInitialRxSeerYear == null || atLeastOneFieldYes]]></expression> <message>If Date Initial RX SEER is not blank, at least one field must indicate treatment</message> <description><![CDATA[This edit verifies that Date Initial RX SEER is coded consistently with treatment data items. This edit is skipped if one of the following is true: 1. Year of diagnosis is blank or invalid 2. Year of diagnosis is less than 2023 The following table specifies the values for each treatment field for known to have been performed (YES). If no treatment field specifies YES then Date Initial RX SEER must be blank (unknown if performed or known not to have been performed) If Date Initial RX SEER is a known date (not blank), then AT LEAST ONE treatment field MUST specify YES ====================================================================== 2024 - RX Summ--Treatment Status YES: 2 ====================================================================== RX Summ--Surg Primary Site 2023 YES: A100-A900, B100-B900 ====================================================================== RX Summ--Surg Scope Reg LN Sur For Primary Site = C420, C421, C423, C424, C589, C700-C709, C710-C729, C751-C753, C761-C768, C770-C779, C809 RX Summ--Surg Scope Reg LN Sur can only be set to 9 YES: 2-7 for all other primary sites ====================================================================== RX Summ--Surg Oth Reg/Dis YES: 1-5 ====================================================================== Phase I Radiation Treatment Modality YES: 01-16, 98 ====================================================================== RX Summ--Surg/Rad Seq YES: 2-9 ====================================================================== RX Summ--BRM YES: 01 ====================================================================== RX Summ--Chemo YES: 01-03 ====================================================================== RX Summ--Hormone YES: 01 ====================================================================== RX Summ--Transplant/Endocr YES: 10-12,20,30,40 ====================================================================== RX Summ--Other YES: 1,2,3,6]]></description> <history> <event version="SE23-023-05" user="cooki" date="2023-06-20" ref="69231">Edit created.</event> <event version="SE23-023-06" user="cooki" date="2023-08-01" ref="69297">Limited edit to 2023 cases only.</event> <event version="SE24-024-01" user="kirbyk" date="2024-02-06" ref="69344">Updated description.</event> <event version="SE24-024-01" user="beverung" date="2024-02-16" ref="69332">Updated edit description. Added Treatment Status = YES condition for 2024+.</event> </history> </rule>