source: FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPE1.m@ 1806

Last change on this file since 1806 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 2.4 KB
Line 
1DGRPE1 ;ALB/MRL,RTK,BRM,RGL - REGISTRATIONS EDITS (CONTINUED) ; 8/29/05 3:02pm
2 ;;5.3;Registration;**114,327,451,631**;Aug 13, 1993
3 ;
4 ;***CONTAINS ISM SPECIFIC CODE TO AVOID STORE ERRORS WITH ELIG.***
5 ;
6 I DGRPS'=7 F I=1:1 S J=$P(DGDR,",",I) Q:J="" F J1=J,J*1000 Q:'$T(@J1) S DGDRD=$P($T(@J1),";;",2) D S
7 I DGRPS=7 S DR="[DG LOAD EDIT SCREEN 7]"
8 ;S DR(2,2.0361)=".01"
9 D ^DIE K DIE,DR,DGCT,DGDR,DGDRD,DGDRS,I,J,J1
10 ;update/set ELIGIBILITY VERIF. SOURCE field (327/Ineligible Project)
11 I $D(^DPT(DFN,.361)) S DGELG=^DPT(DFN,.361) D
12 .I $P(DGELG,U,5)["VIVA",$P(DGELG,U,6)=.5 S DATA(.3613)="H"
13 .E S DATA(.3613)="V"
14 .I '$$UPD^DGENDBS(2,DFN,.DATA)
15 Q
16S I $L(@DGDRS)+$L(DGDRD)<241 S @DGDRS=@DGDRS_DGDRD Q
17 S DGCT=DGCT+1,DGDRS="DR(1,2,"_DGCT_")",@DGDRS=DGDRD Q
18701 ;;391;D SC7^DGRPV;1901;.301;S:X'="Y" Y=.313;.302;.313;.312;
19702 ;;.361;D AAC1^DGLOCK2 S:DGAAC(1)']"" Y=361;.309;361;.323;D ^DGYZODS;S:'DGODS Y=.36265;11500.02;11500.03;.36265;S:X='"Y" Y="@72";.3626;@72;
20703 ;;.3731;
211001 ;;.152;S:X="" Y="@101";.1651;.1653;.1654;.307;.1656;@101;
221002 ;;.153;S:X="" Y="@102";.1657:.1659;.16;@102;
231101 ;;.3611;.3612;.3614;.3615;
241102 ;;.306;
251103 ;;.322;
261104 ;;D VETTYPE^DGRPE1;D MSG^DGRPE1 S Y=0;@114;K DGRDCHG;D DR^DGRPE1;.302;.3721;D EFF^DGRPE1;D:$G(DGRDCHG) BULL^DGRPE1;K DGRDCHG
27MSG W !,"Patient is not a veteran. Can't enter rated disabilities",! Q
28 ;
29BULL ; Rated Disabilities update bulletin
30 N DGBULL,DGLINE,DGMGRP,DGNAME,DIFROM,VA,VAERR,XMTEXT,XMSUB,XMDUZ
31 S DGMGRP=$O(^XMB(3.8,"B","DGEN ELIGIBILITY ALERT",""))
32 Q:'DGMGRP
33 D XMY^DGMTUTL(DGMGRP,0,1)
34 S DGNAME=$P($G(^DPT(DFN,0)),"^"),DGSSN=$P($G(^DPT(DFN,0)),"^",9)
35 S XMTEXT="DGBULL("
36 S XMSUB="RATED DISABILITY UPDATED"
37 S DGLINE=0
38 D LINE^DGEN("Patient: "_DGNAME,.DGLINE)
39 D LINE^DGEN("SSN: "_DGSSN,.DGLINE)
40 D LINE^DGEN("",.DGLINE)
41 D LINE^DGEN("Send updates to SC Disabilities to HEC via fax or HECAlert",.DGLINE)
42 D LINE^DGEN("Outlook mail group so that they can be entered into VHA's",.DGLINE)
43 D LINE^DGEN("Authoritative Database. SC Disability information entered directly",.DGLINE)
44 D LINE^DGEN("into VistA may be overlaid.",.DGLINE)
45 D ^XMD
46 Q
47DR ;
48 K DGSCPC
49 S DGSCPC=$P($G(^DPT(DFN,.3)),U,2)
50 S DR(2,2.04)=".01;2;3"
51 Q
52EFF ;
53 I $G(DGSCPC)=$P($G(^DPT(DFN,.3)),U,2) Q
54 S DGFDA(2,DFN_",",.3014)="@"
55 D FILE^DIE("","DGFDA","DGERR")
56 K DGFDA,DGSCPC
57 Q
58VETTYPE ;
59 S:$S('$D(^DPT(DFN,"VET")):0,^("VET")="Y":1,1:0) Y="@114" Q
60 S:'$S('$D(^("TYPE")):1,'$D(^DG(391,+^("TYPE"),0)):1,$P(^(0),"^",2):0,1:1) Y="@114"
61 Q
Note: See TracBrowser for help on using the repository browser.