Changeset 636 for FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGCV.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGCV.m
r628 r636 1 DGCV ;ALB/DW,ERC,BRM,TMK - COMBAT VET ELIGIBILTY; 10/15/05 ; 3/24/08 7:28am2 ;;5.3;Registration;**528,576,564,673 ,778**; Aug 13, 1993;Build 91 DGCV ;ALB/DW,ERC,BRM,TMK - COMBAT VET ELIGIBILTY; 10/15/05 2 ;;5.3;Registration;**528,576,564,673**; Aug 13, 1993 3 3 ; 4 4 CVELIG(DFN) ; 5 ;API will determine whether or not this vete ran needs to have CV End5 ;API will determine whether or not this vetearn needs to have CV End 6 6 ;Date set. If this determination cannot be done due to imprecise 7 7 ;or missing dates, it returns which dates need editing. … … 10 10 ;Output 11 11 ; RESULT 12 ; 0 - CV End Date should not be set13 ; 1 - CV End Date should be set12 ; 0 - CV End Date should not be updated 13 ; 1 - CV End Date should be updated 14 14 ; If critical dates are imprecise return the following 15 ; A - CV End Date should not be set, imprecise Service Sep date16 ; B - CV End Date should not be set, imprecise Combat To date17 ; C - CV End Date should not be set, imprecise Yugoslavia To date18 ; D - CV End Date should not be set, imprecise Somalia To date19 ; E - CV End Date should not be set, imprecise Pers Gulf To date15 ; A - CV End Date should not be updated, imprecise Service Sep date 16 ; B - CV End Date should not be updated, imprecise Combat To date 17 ; C - CV End Date should not be updated, imprecise Yugoslavia To date 18 ; D - CV End Date should not be updated, imprecise Somalia To date 19 ; E - CV End Date should not be updated, imprecise Pers Gulf To date 20 20 ; If the Service Sep Date is missing, and there are no OEF/OIF/UNKNOWN 21 21 ; OEF/OIF records on file, return the following so that it will … … 84 84 ; 85 85 SETCV(DFN,DGSRV) ;calculate CV end date 86 ; DGSRV is the most recent of the Service Separation Date 87 ; or the OEF/OIF To Date, called from file #2 new style 88 ; cross reference "ACVCOM" 89 N DGCVEDT,DGFDA,DGNDAA,DGPLUS3,DGTMPDT,DGYRS 90 S DGNDAA=3080128 86 K DGCVEDT 87 N DGFDA 91 88 I $G(DFN)']""!($G(DGSRV)']"") Q 92 89 I '$D(^DPT(DFN)) Q 90 S DGCVEDT=$P($$SCH^XLFDT("24M",DGSRV),".") 91 I DGCVEDT=$G(DGCVDT) Q 93 92 I $$GET1^DIQ(2,DFN_",",.5295,"I") Q 94 D CVRULES(DFN,DGSRV,.DGYRS)95 Q:$G(DGYRS)'=3&($G(DGYRS)'=5)96 ;NDAA legislation, enacted 1/28/08, gives vets discharged97 ;on or after 1/28/03 (2 years previously) CV Eligibility98 ;for 5 years. Vets discharged before 1/28/03 get eligibility99 ;for 3 years after enactment (or until 1/27/2011) DG*5.3*778100 S DGTMPDT=$S(DGYRS=3:DGNDAA,1:DGSRV)101 S DGCVEDT=($E(DGTMPDT,1,3)+DGYRS)_$E(DGTMPDT,4,7)102 S DGCVEDT=$$FMADD^XLFDT(DGCVEDT,-1)103 93 S DGFDA(2,DFN_",",.5295)=DGCVEDT 104 94 D FILE^DIE(,"DGFDA") 105 Q106 ;107 CVRULES(DFN,DGSRV,DGYRS) ;apply rules for the CV End Date108 ;extension project - DG*5.3*778109 ;DGSRV - most recent of Service Sep Date or OEIUUF to date110 ; DGYRS = 3 years from NDAA or 1/27/2011111 ; = 5 years from SSD or Enrollment App Date112 ;determine how many years extra CV eligibility to give113 N DGCIEN,DGCUTOFF,DGENRDT,DGPIEN,DGPRI,DGQT,DGSTAT114 ;determine if veteran has an enrollment record prior115 ;to 1/28/2008 (the NDAA date) and no CV End Date for116 ;this enrollment117 S DGYRS=5118 S (DGPRI,DGQT)=0119 S DGCUTOFF=3030128120 S DGCIEN=$$FINDCUR^DGENA(DFN)121 I $G(DGCIEN),($D(^DGEN(27.11,DGCIEN,0)))]"" D122 . S DGENRDT=$$GET1^DIQ(27.11,DGCIEN_",",75.01,"I") Q:$G(DGENRDT)']""123 . I $P(DGENRDT,".",1)<DGNDAA S DGPRI=1 Q124 . I DGENRDT'<DGNDAA D125 . . S DGPIEN=DGCIEN126 . . F S DGPIEN=$$FINDPRI^DGENA(DGPIEN) Q:'DGPIEN D Q:DGQT127 . . . S DGENRDT=$$GET1^DIQ(27.11,DGPIEN_",",75.01,"I")128 . . . Q:$G(DGENRDT)']""129 . . . I $P(DGENRDT,".",1)<DGNDAA S (DGPRI,DGQT)=1130 ;if DGPRI=1, then there is an enrollment prior to 1/28/08131 I DGPRI=1 D Q132 . I $G(DGCIEN)]"" S DGSTAT=$$GET1^DIQ(27.11,DGCIEN_",",.04,"E")133 . I $G(DGSTAT)["INITIAL APPLICATION BY VAMC"!($G(DGSTAT)["BELOW ENROLLMENT GROUP THRESHOLD") D134 . . I DGSRV<DGCUTOFF S DGYRS=3135 ;136 ;if no enrollment prior to 1/28/08 (DGPRI=0) check service date137 ;against cutoff date - 1/28/03138 I DGSRV<DGCUTOFF S DGYRS=3139 95 Q 140 96 ;
Note:
See TracChangeset
for help on using the changeset viewer.