Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

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
     1DGREGAED ;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
    319EN(DFN,FLG) ;Entry point
    420 ;Input:
     
    1127 N I,X,Y
    1228 I $G(DFN)="" Q
    13  ;I ($G(DFN)'?.N) Q
     29 I ($G(DFN)'?.N) Q
    1430 S FLG(1)=$G(FLG(1)),FLG(2)=$G(FLG(2))
    1531 D INPUT(.DGINPUT,DFN)
     
    2945 N DIR,X,Y,DA,DGR,DTOUT,DUOUT,DIROUT,DGN,POP
    3046 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 . ;
    3262 . I ($G(DGINPUT(.111))="")&((DGN=.112)!(DGN=.113)) Q
    3363 . I ($G(DGINPUT(.112))="")&(DGN=.113) Q
     
    3767 .. I $G(DGR)=-1 S POP=1 Q
    3868 .. 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 . ;
    3976AGN . S DIR(0)=2_","_DGN
    4077 . S DA=DFN
     
    5087 I $G(POP)=1 S DGINPUT=-1
    5188 Q
    52 COMPARE(DGINPUT,DFN) ;Display before & after address fields
     89COMPARE(DGINPUT,DFN) ;Display before & after address fields.
    5390 N DGCURR,DGN,DGCMP,DGM,DGCNTY,DGCIEN,DGST
    5491 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 . ;
    56111 . S DGCMP("OLD",DGN)=$G(DGCURR(2,DFN_",",DGN,"E"))
    57112 S DGCIEN=$G(DGCURR(2,DFN_",",.117,"I"))
     
    77132 .. W !,?6,"   Phone: ",?16,$P($G(DGCMP(DGM,.131)),U)
    78133 .. 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 .. ;
    79145 . W !,?6,"Bad Addr: ",?16,$P($G(DGCMP(DGM,.121)),U)
    80146 . W !
Note: See TracChangeset for help on using the changeset viewer.