Changeset 636 for FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGREGAED.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/DGREGAED.m
r628 r636 1 DGREGAED ;ALB/DW/PHH - Address Edit API; 9/1/2005 2 ;;5.3;Registration;**522,560,658,730**;Aug 13, 1993;Build 2 1 DGREGAED ;ALB/DW/PHH - Address Edit API; 1/5/2006 23:03 ;10/10/06 08:05 2 ;;5.3;Registration;**522,560,658,730,634**;Aug 13, 1993;Build 28 3 ; Modified from FOIA VISTA, 4 ; Copyright (C) 2007 WorldVistA 5 ; 6 ; This program is free software; you can redistribute it and/or modify 7 ; it under the terms of the GNU General Public License as published by 8 ; the Free Software Foundation; either version 2 of the License, or 9 ; (at your option) any later version. 10 ; 11 ; This program is distributed in the hope that it will be useful, 12 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ; GNU General Public License for more details. 15 ; 16 ; You should have received a copy of the GNU General Public License 17 ; along with this program; if not, write to the Free Software 18 ; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 3 19 EN(DFN,FLG) ;Entry point 4 20 ;Input: … … 11 27 N I,X,Y 12 28 I $G(DFN)="" Q 13 ;I ($G(DFN)'?.N) Q29 I ($G(DFN)'?.N) Q 14 30 S FLG(1)=$G(FLG(1)),FLG(2)=$G(FLG(2)) 15 31 D INPUT(.DGINPUT,DFN) … … 29 45 N DIR,X,Y,DA,DGR,DTOUT,DUOUT,DIROUT,DGN,POP 30 46 S POP=0 31 F DGN=.111,.112,.113,.1112,.131,.132,.121 Q:POP D 47 ; 48 ; ** VOE change 1 of 3: DAOU/WCJ 2/7/2005,VA/CJS,WV/TOAD 1/5/2006 ** 49 ; 50 ; .134 is new field ALTERNATE PHONE for VOE 51 ; 52 ; before change: 53 ; 54 ; F DGN=.111,.112,.113,.1112,.131,.132,.121 Q:POP D 55 ; 56 ; after change: 57 ; 58 F DGN=.111,.112,.113,.1112,.131,.132,.134,.121 Q:POP D 59 . ; 60 . ; end change 61 . ; 32 62 . I ($G(DGINPUT(.111))="")&((DGN=.112)!(DGN=.113)) Q 33 63 . I ($G(DGINPUT(.112))="")&(DGN=.113) Q … … 37 67 .. I $G(DGR)=-1 S POP=1 Q 38 68 .. N DGM F DGM=.1112,.114,.115,.117 S DGINPUT(DGM)=$G(DGR(DGM)) 69 . ; 70 . ; new line: 71 . ; 72 . I DGN=.134,$G(DUZ("AG"))'="E" Q 73 . ; 74 . ; ** end of VOE change 1 ** 75 . ; 39 76 AGN . S DIR(0)=2_","_DGN 40 77 . S DA=DFN … … 50 87 I $G(POP)=1 S DGINPUT=-1 51 88 Q 52 COMPARE(DGINPUT,DFN) ;Display before & after address fields 89 COMPARE(DGINPUT,DFN) ;Display before & after address fields. 53 90 N DGCURR,DGN,DGCMP,DGM,DGCNTY,DGCIEN,DGST 54 91 D GETS^DIQ(2,DFN_",",".111;.112;.113;.114;.115;.117;.1112;.131;.132;.121","EI","DGCURR") 55 F DGN=.111,.112,.113,.114,.115,.117,.1112,.131,.132,.121 D 92 ; 93 ; ** VOE change 2 of 3: DAOU/WCJ 2/7/2005,VA/CJS,WV/TOAD 1/5/2006 ** 94 ; 95 ; for VOE agency code, add new ALTERNATE PHONE field (.134) 96 ; to DGCMP("OLD") array 97 ; 98 ; before change: 99 ; 100 ; F DGN=.111,.112,.113,.114,.115,.117,.1112,.131,.132,.121 D 101 ; . S DGCMP("OLD",DGN)=$G(DGCURR(2,DFN_",",DGN,"E")) 102 ; 103 ; after change: 104 ; 105 I $G(DUZ("AG"))="E" D GETS^DIQ(2,DFN,.134,"EI","DGCURR") 106 F DGN=.111,.112,.113,.114,.115,.117,.1112,.131,.132,.134,.121 D 107 . I $G(DUZ("AG"))'="E",DGN=.134 Q ; skip for non-VOE 108 . ; 109 . ; ** end of VOE change 2 ** 110 . ; 56 111 . S DGCMP("OLD",DGN)=$G(DGCURR(2,DFN_",",DGN,"E")) 57 112 S DGCIEN=$G(DGCURR(2,DFN_",",.117,"I")) … … 77 132 .. W !,?6," Phone: ",?16,$P($G(DGCMP(DGM,.131)),U) 78 133 .. W !,?6," Office: ",?16,$P($G(DGCMP(DGM,.132)),U) 134 .. ; 135 .. ; ** VOE change 3 of 3: DAOU/WCJ 2/7/2005,VA/CJS,WV/TOAD 1/5/2006 ** 136 .. ; 137 .. ; for VOE agency code, display new ALTERNATE PHONE field (.134) 138 .. ; 139 .. ; insert line: 140 .. ; 141 .. I $G(DUZ("AG"))="E" W !,?6," Alt Phone: ",?16,$P($G(DGCMP(DGM,.134)),U) 142 .. ; 143 .. ; ** end of VOE change 3 ** 144 .. ; 79 145 . W !,?6,"Bad Addr: ",?16,$P($G(DGCMP(DGM,.121)),U) 80 146 . W !
Note:
See TracChangeset
for help on using the changeset viewer.