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

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

initial load of FOIAVistA 6/30/08 version

File size: 1.8 KB
Line 
1DGRPD1 ;BPFO/JRC - PATIENT INQUIRY (NEW) ; 4/11/06 9:30am
2 ;;5.3;Registration;**703,730**;Aug 13, 1993;Build 2
3 Q
4EC ;display emergency contact information
5 N DGEC1,DGEC2
6 Q:'$G(DFN)
7 S VAOA("A")=1,VAROOT="DGEC1" D OAD^VADPT ; Get Primary EC
8 S VAOA("A")=4,VAROOT="DGEC2" D OAD^VADPT ; Get Secondary EC
9 I DGEC1(9)]"" D
10 . W !,"Emergency Contact Information:"
11 . ;Contacts name and realtionship
12 . W !?5,"E-Cont.: ",DGEC1(9)
13 . I DGEC2(9)]"" W ?40,"E2-Cont.: ",DGEC2(9)
14 . W !,"Relationship: ",DGEC1(10)
15 . I DGEC2(9)]"" W ?36,"Relationship: ",DGEC2(10)
16 . ;ECs address lines 1, 2 and 3
17 . I DGEC1(1)]"" W !?14,DGEC1(1)
18 . I DGEC1(1)']"",DGEC2(1)]"" W !
19 . I DGEC2(1)]"" W ?50,DGEC2(1)
20 . I DGEC1(2)]"" W !?14,DGEC1(2)
21 . I DGEC1(2)']"",DGEC2(2)]"" W !
22 . I DGEC2(2)]"" W ?50,DGEC2(2)
23 . I DGEC1(3)]"" W !?14,DGEC1(3)
24 . I DGEC1(3)']"",DGEC2(3)]"" W !
25 . I DGEC2(3)]"" W ?50,DGEC2(3)
26 . ;Emergency Contact 1 City, State an Zip+4
27 . I DGEC1(4)]"" D
28 . . W !?14,DGEC1(4)
29 . . I DGEC1(5)]"" W ", "_$$GET1^DIQ(5,+DGEC1(5),1)
30 . . W " ",$P(DGEC1(11),"^",2)
31 . ;Emergency Contact 2 City State and Zip+4
32 . I DGEC2(4)]"" D
33 . . I DGEC1(4)']"" W !
34 . . W ?50,DGEC2(4)
35 . . I DGEC2(5)]"" W ", "_$$GET1^DIQ(5,+DGEC2(5),1)
36 . . W " ",$P(DGEC2(11),"^",2)
37 .;Home and work phones
38 . W !,?7,"Phone: ",$S(DGEC1(8)]"":DGEC1(8),1:"UNSPECIFIED")
39 . I DGEC2(9)]"" W ?43,"Phone: ",$S(DGEC2(8)]"":DGEC2(8),1:"UNSPECIFIED")
40 . W !?2,"Work Phone: ",$S($P(^DPT(DFN,.33),U,11)]"":$P(^DPT(DFN,.33),U,11),1:"UNSPECIFIED")
41 . I DGEC2(9)]"" W ?38,"Work Phone: ",$S($P(^DPT(DFN,.331),U,11)]"":$P(^DPT(DFN,.331),U,11),1:"UNSPECIFIED")
42 D KVAR^VADPT
43 Q
44 ;
45CATDIS ;
46 ;displays catastrophic disabity review date if there is one
47 N DGCDIS
48 Q:'$G(DFN)
49 I $$GET^DGENCDA(DFN,.DGCDIS) D
50 .Q:'DGCDIS("REVDTE")
51 .W !!,"Catastrophically Disabled Review Date: ",$$FMTE^XLFDT(DGCDIS("REVDTE"),1)
52 Q
53 ;
Note: See TracBrowser for help on using the repository browser.