Changeset 636 for FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPU.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/DGRPU.m
r628 r636 1 DGRPU ;ALB/MRL,TMK - REGISTRATION UTILITY ROUTINE ;19 OCT 2005 2 ;;5.3;Registration;**33,114,489,624,672,689**;Aug 13, 1993;Build 1 1 DGRPU ;ALB/MRL,TMK - REGISTRATION UTILITY ROUTINE ;12/25/06 18:28 2 ;;5.3;Registration;**33,114,489,624,672,689,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 H ;Screen Header 4 20 I DGRPS'=1.1 W @IOF S Z=$P($T(H1+DGRPS),";;",2)_", SCREEN <"_DGRPS_">"_$S($D(DGRPH):" HELP",1:""),X=79-$L(Z)\2 D W … … 165 181 Q 166 182 SSNNM(DFN) ; SSN and name on first line of screen 167 N X,SSN 168 S X=$S($D(^DPT(+DFN,0)):^(0),1:""),SSN=$P(X,"^",9),SSN=$E(SSN,1,3)_"-"_$E(SSN,4,5)_"-"_$E(SSN,6,10) 183 ; 184 ; ** start of VOE change: DAOU/JLG 2/1/2005,VA/CJS,WV/TOAD 5/9/2006 ** 185 ; 186 ; Change code so it will display HRN if SSN is null 187 ; 188 ; before: 189 ; 190 ; N X,SSN 191 ; S X=$S($D(^DPT(+DFN,0)):^(0),1:""),SSN=$P(X,"^",9),SSN=$E(SSN,1,3)_"-"_$E(SSN,4,5)_"-"_$E(SSN,6,10) 192 ; 193 ; after: 194 ; 195 ; Social Security Number field (.09) in Patient file (2) 196 N X,SSN,HRN 197 S X=$S($D(^DPT(+DFN,0)):^(0),1:""),SSN=$P(X,"^",9) 198 I SSN S SSN=$E(SSN,1,3)_"-"_$E(SSN,4,5)_"-"_$E(SSN,6,10) 199 ; 200 ID S SSN=$$ID^DGLBPID(DFN) ;**GFT/VW 201 ; for IHS or EHR, replace SSN with HRN 202 I $G(DUZ("AG"))'="V" D 203 . Q:SSN]"" 204 . S HRN=$$HRN^AUPNPAT3(+DFN,DUZ(2)) 205 . I HRN S SSN="HRN-"_HRN 206 ; 207 ; ** end of VOE change ** 208 ; 169 209 S X=$P(X,U)_"; "_SSN 170 210 Q X
Note:
See TracChangeset
for help on using the changeset viewer.