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/VADPT1.m

    r628 r636  
    1 VADPT1 ;ALB/MRL/MJK - PATIENT VARIABLES ; 08 DEC 1988 ; 11/9/04 6:17pm
    2  ;;5.3;Registration;**415,489,516,614**;Aug 13, 1993
     1VADPT1 ;ALB/MRL/MJK - PATIENT VARIABLES ;1/27/07  15:00
     2 ;;5.3;Registration;**415,489,516,614,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
    3191 ;Demographic [DEM]
    420 N W,Z,NODE
     
    1531 ; -- age [4 - AG]
    1632 S W=$S('$D(^DPT(DFN,.35)):"",'^(.35):"",1:+^(.35)) S Y=$S('W:DT,1:W) S:Z]"" @VAV@($P(VAS,"^",4))=$E(Y,1,3)-$E(Z,1,3)-($E(Y,4,7)<$E(Z,4,7))
     33 ;
     34 ; Added for VOE to support pediatrics
     35 ;
     36 I @VAV@($P(VAS,"^",4))<2 D  ;IHS/ANMC/CLS 01/20/2005
     37 .N X,X1,X2,X3
     38 .S X1=$S('$G(^DPT(DFN,.35)):DT,1:+^(.35))
     39 .S X2=$P(VAX,"^",3) Q:'X1!('X2)
     40 .D ^%DTC S X3=X\365.25,X=$S(X3>2:X3,X<31:X_" DYS",1:X\30_" MOS")
     41 .S @VAV@($P(VAS,"^",4))=X Q
     42 ;
     43 ; End VOE addition
     44 ;
    1745 ;
    1846 ; -- expired date [6 - EX]
     
    5280 S @VAV@($P(VAS,"^",12))=Y-1
    5381 Q
     82 ;
     83 ; Added for VOE to support pediatrics
     84 ;
     85PAGE ; -- IHS printable age  ;IHS/ITSC/CLS 01/14/2005
     86 N X,X1,X2,Y,AUX
     87 S X1=$S('$D(^DPT(DFN,.35)):DT,1:+^(.35))
     88 S X2=$P(VAX,"^",3) D:X2 ^%DTC:X1 S AUX=X\365.25,X=$S(AUX>2:AUX_" YRS",X<31:X_" DYS",1:X\30_" MOS")
     89 S @VAV@($P(VAS,"^",4))=X Q
     90 ;
     91 ; End addition for VOE & IHS
    5492 ;
    55932 ;Other Patient Variables [OPD]
Note: See TracChangeset for help on using the changeset viewer.