Changeset 636 for FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (15 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 179 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/DG10.m
r628 r636 1 DG10 ;ALB/MRL,DAK,AEG,PHH-LOAD/EDIT PATIENT DATA ; 8/24/05 1:47pm 2 ;;5.3;Registration;**32,109,139,149,182,326,513,425,574,642,658**;Aug 13, 1993 1 DG10 ;ALB/MRL,DAK,AEG,PHH-LOAD/EDIT PATIENT DATA ; 1/5/2006 21:46 2 ;;5.3;Registration;**32,109,139,149,182,326,513,425,574,642,658,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 START ; 4 20 D LO^DGUTL … … 7 23 . D EN^DGRPD 8 24 . Q:$G(DGRPOUT) 9 . D REG^IVMCQ($G(DFN)) 25 . ; 26 . ; ** start of VOE change 1 of 3: DAOU/WCJ,VA/CJS,WV/TOAD 1/5/2006 ** 27 . ; 28 . ; HEC query call only wanted/needed for VA agency code 29 . ; 30 . I $G(DUZ("AG"))="V" D REG^IVMCQ($G(DFN)) 31 . ; 32 . ; ** end of VOE change 1 ** 33 . ; 10 34 . D HINQ 11 35 ; … … 17 41 N X S X="MPIFAPI" X ^%ZOSF("TEST") G:'$T SKIP 18 42 K MPIFRTN 19 D MPIQ^MPIFAPI(DFN) 43 ; 44 ; ** start of VOE change 2 of 3: DAOU/WCJ,VA/CJS,WV/TOAD 1/5/2006 ** 45 ; 46 ; MPI query call only wanted/needed for VA agency code 47 ; 48 I $G(DUZ("AG"))="V"!$$GET^XPAR("SYS","DG MPI") D MPIQ^MPIFAPI(DFN) 49 ; 50 ; ** end of VOE change 2 ** 51 ; 20 52 K MPIFRTN 21 53 ; … … 27 59 SKIP ; 28 60 S DGELVER=0 D EN^DGRPD I $D(DGRPOUT) K DGRPOUT G A 29 D HINQ,REG^IVMCQ($G(DFN)) G A1 61 ; 62 ; ** start of VOE change 3 of 3: DAOU/WCJ,VA/CJS,WV/TOAD 1/5/2006 ** 63 ; 64 ; these query calls only wanted/needed for VA agency code 65 ; 66 I $G(DUZ("AG"))="V" D HINQ,REG^IVMCQ($G(DFN)) 67 G A1 68 ; 69 ; ** end of VOE change 3 ** 70 ; 30 71 ; 31 72 HINQ ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGCV.m
r628 r636 1 DGCV ;ALB/DW,ERC,BRM,TMK - COMBAT VET ELIGIBILTY; 10/15/05 ; 3/24/08 7:28am2 ;;5.3;Registration;**528,576,564,673 ,778**; Aug 13, 1993;Build 91 DGCV ;ALB/DW,ERC,BRM,TMK - COMBAT VET ELIGIBILTY; 10/15/05 2 ;;5.3;Registration;**528,576,564,673**; Aug 13, 1993 3 3 ; 4 4 CVELIG(DFN) ; 5 ;API will determine whether or not this vete ran needs to have CV End5 ;API will determine whether or not this vetearn needs to have CV End 6 6 ;Date set. If this determination cannot be done due to imprecise 7 7 ;or missing dates, it returns which dates need editing. … … 10 10 ;Output 11 11 ; RESULT 12 ; 0 - CV End Date should not be set13 ; 1 - CV End Date should be set12 ; 0 - CV End Date should not be updated 13 ; 1 - CV End Date should be updated 14 14 ; If critical dates are imprecise return the following 15 ; A - CV End Date should not be set, imprecise Service Sep date16 ; B - CV End Date should not be set, imprecise Combat To date17 ; C - CV End Date should not be set, imprecise Yugoslavia To date18 ; D - CV End Date should not be set, imprecise Somalia To date19 ; E - CV End Date should not be set, imprecise Pers Gulf To date15 ; A - CV End Date should not be updated, imprecise Service Sep date 16 ; B - CV End Date should not be updated, imprecise Combat To date 17 ; C - CV End Date should not be updated, imprecise Yugoslavia To date 18 ; D - CV End Date should not be updated, imprecise Somalia To date 19 ; E - CV End Date should not be updated, imprecise Pers Gulf To date 20 20 ; If the Service Sep Date is missing, and there are no OEF/OIF/UNKNOWN 21 21 ; OEF/OIF records on file, return the following so that it will … … 84 84 ; 85 85 SETCV(DFN,DGSRV) ;calculate CV end date 86 ; DGSRV is the most recent of the Service Separation Date 87 ; or the OEF/OIF To Date, called from file #2 new style 88 ; cross reference "ACVCOM" 89 N DGCVEDT,DGFDA,DGNDAA,DGPLUS3,DGTMPDT,DGYRS 90 S DGNDAA=3080128 86 K DGCVEDT 87 N DGFDA 91 88 I $G(DFN)']""!($G(DGSRV)']"") Q 92 89 I '$D(^DPT(DFN)) Q 90 S DGCVEDT=$P($$SCH^XLFDT("24M",DGSRV),".") 91 I DGCVEDT=$G(DGCVDT) Q 93 92 I $$GET1^DIQ(2,DFN_",",.5295,"I") Q 94 D CVRULES(DFN,DGSRV,.DGYRS)95 Q:$G(DGYRS)'=3&($G(DGYRS)'=5)96 ;NDAA legislation, enacted 1/28/08, gives vets discharged97 ;on or after 1/28/03 (2 years previously) CV Eligibility98 ;for 5 years. Vets discharged before 1/28/03 get eligibility99 ;for 3 years after enactment (or until 1/27/2011) DG*5.3*778100 S DGTMPDT=$S(DGYRS=3:DGNDAA,1:DGSRV)101 S DGCVEDT=($E(DGTMPDT,1,3)+DGYRS)_$E(DGTMPDT,4,7)102 S DGCVEDT=$$FMADD^XLFDT(DGCVEDT,-1)103 93 S DGFDA(2,DFN_",",.5295)=DGCVEDT 104 94 D FILE^DIE(,"DGFDA") 105 Q106 ;107 CVRULES(DFN,DGSRV,DGYRS) ;apply rules for the CV End Date108 ;extension project - DG*5.3*778109 ;DGSRV - most recent of Service Sep Date or OEIUUF to date110 ; DGYRS = 3 years from NDAA or 1/27/2011111 ; = 5 years from SSD or Enrollment App Date112 ;determine how many years extra CV eligibility to give113 N DGCIEN,DGCUTOFF,DGENRDT,DGPIEN,DGPRI,DGQT,DGSTAT114 ;determine if veteran has an enrollment record prior115 ;to 1/28/2008 (the NDAA date) and no CV End Date for116 ;this enrollment117 S DGYRS=5118 S (DGPRI,DGQT)=0119 S DGCUTOFF=3030128120 S DGCIEN=$$FINDCUR^DGENA(DFN)121 I $G(DGCIEN),($D(^DGEN(27.11,DGCIEN,0)))]"" D122 . S DGENRDT=$$GET1^DIQ(27.11,DGCIEN_",",75.01,"I") Q:$G(DGENRDT)']""123 . I $P(DGENRDT,".",1)<DGNDAA S DGPRI=1 Q124 . I DGENRDT'<DGNDAA D125 . . S DGPIEN=DGCIEN126 . . F S DGPIEN=$$FINDPRI^DGENA(DGPIEN) Q:'DGPIEN D Q:DGQT127 . . . S DGENRDT=$$GET1^DIQ(27.11,DGPIEN_",",75.01,"I")128 . . . Q:$G(DGENRDT)']""129 . . . I $P(DGENRDT,".",1)<DGNDAA S (DGPRI,DGQT)=1130 ;if DGPRI=1, then there is an enrollment prior to 1/28/08131 I DGPRI=1 D Q132 . I $G(DGCIEN)]"" S DGSTAT=$$GET1^DIQ(27.11,DGCIEN_",",.04,"E")133 . I $G(DGSTAT)["INITIAL APPLICATION BY VAMC"!($G(DGSTAT)["BELOW ENROLLMENT GROUP THRESHOLD") D134 . . I DGSRV<DGCUTOFF S DGYRS=3135 ;136 ;if no enrollment prior to 1/28/08 (DGPRI=0) check service date137 ;against cutoff date - 1/28/03138 I DGSRV<DGCUTOFF S DGYRS=3139 95 Q 140 96 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGDEATH.m
r628 r636 1 1 DGDEATH ;ALB/MRL/PJR-PROCESS DECEASED PATIENTS ; 10/27/04 9:45pm 2 ;;5.3;Registration;**45,84,101,149,392,545,595,568,563,725 ,772**;Aug 13, 1993;Build 42 ;;5.3;Registration;**45,84,101,149,392,545,595,568,563,725**;Aug 13, 1993;Build 12 3 3 ; 4 4 GET N DGMTI,DATA … … 14 14 I $P(DGDNEW,"^",1)="",$P(DGDNEW,"^",2)'="" S DR=".352////@" D ^DIE 15 15 I $P(DGDNEW,"^",1)="" K ^TMP("DEATH",$J) G GET 16 SN I $P(DGDNEW,"^",1)'="" S DR=".353" D ^DIE I $P($G(^DPT(DFN,.35)),"^",3)']"" D SNDISP G SN 16 I $P(DGDNEW,"^",1)'="" S DR=".353" D ^DIE 17 17 I DGDOLD'=DGDNEW D DISCHRGE 18 18 I $P(DGDOLD,"^",1)'=$P(DGDNEW,"^",1) D XFR … … 143 143 I YES,'((TYPE=27)!(TYPE=32)) S DGDONOT=1 144 144 Q 145 SNDISP ; Source of Notification display choices146 N DIR,DTOUT,DUOUT,DIRUT,DIROUT,DGLIST,DGLNAME,I,X,Y147 S DGLIST=$P($G(^DD(2,.353,0)),"^",3)148 S Y=6149 S DIR("?",1)=" "150 S DIR("?",2)=" This is a required response. Please select from the following:"151 S DIR("?",3)=" Entering '^' will take you back to the Source of Notification prompt"152 S DIR("?",4)=" "153 S DIR("?",5)=" "154 F X=1:1 S DGLNAME=$P(DGLIST,";",X) Q:DGLNAME']"" S DIR("?",Y)=" "_$P(DGLNAME,":",1)_" "_$P(DGLNAME,":",2) S Y=Y+1155 S DIR("?",Y)=" "156 F I=1:1 Q:'$D(DIR("?",I)) W !,DIR("?",I)157 Q -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMSTAPI.m
r628 r636 1 DGMSTAPI ;ALB/SCK - API's for Military Sexual Trauma ; 2/28/02 4:56pm 2 ;;5.3;Registration;**195,243,308,353,379,443,700**;Aug 13, 1993 1 DGMSTAPI ;ALB/SCK - API's for Military Sexual Trauma ;7:34 PM 30 Jan 2008 2 ;;5.3;Registration;**195,243,308,353,379,443,700,VWEHR1**;WorldVistA 30-Jan-08 3 ; 4 ;Modified from FOIA VISTA, 5 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU 6 ;General Public License See attached copy of the License. 7 ; 8 ;This program is free software; you can redistribute it and/or modify 9 ;it under the terms of the GNU General Public License as published by 10 ;the Free Software Foundation; either version 2 of the License, or 11 ;(at your option) any later version. 12 ; 13 ;This program is distributed in the hope that it will be useful, 14 ;but WITHOUT ANY WARRANTY; without even the implied warranty of 15 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ;GNU General Public License for more details. 17 ; 18 ;You should have received a copy of the GNU General Public License along 19 ;with this program; if not, write to the Free Software Foundation, Inc., 20 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 21 ; 3 22 Q 4 23 ; … … 43 62 . S DGMST="0^U" 44 63 S DGIEN="" 45 S DGIEN=+$P($Q(^DGMS(29.11,"APDT",DFN,DGDATE,DGIEN),-1),",",5) 64 ; 65 ;WV/EHR REVERSE $Q REPLACEMENT; SO 01/12/08 ;VWEHR1 66 ; 67 ;S DGIEN=+$P($Q(^DGMS(29.11,"APDT",DFN,DGDATE,DGIEN),-1),",",5) 68 S DGIEN=+$P($$Q^VWUTIL($NA(^DGMS(29.11,"APDT",DFN,DGDATE,DGIEN)),-1),",",5) 69 ; 70 ;END CHANGE 46 71 ; 47 72 ; Check for valid ien, if entry missing, return Unknown … … 130 155 NEWQ Q $G(DGRSLT) 131 156 ; 132 DELMST(MSTIEN) ; Deletes the MST HISTORY File (#29.11) entry passed in. 157 DELMST(MSTIEN) ; Deletes the MST HISTORY File (#29.11) entry passed in. 133 158 ; This call is not to be used except from inside the DG MST List 134 ; Manager interface. 159 ; Manager interface. 135 160 ; 136 161 ; Input … … 199 224 ; 200 225 DATE(DFN,DGDT) ;Determine 'current' MST date 201 ; 226 ; 202 227 ; Input 203 228 ; DFN - Patient's DFN -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTCOU1.m
r628 r636 1 DGMTCOU1 ;ALB/REW,LD,JAN,AEG,LBD - COPAY UTILITIES ; 8/13/04 8:31am 2 ;;5.3;Registration;**33,45,54,335,358,401,436,445,564**;Aug 13, 1993 1 DGMTCOU1 ;ALB/REW,LD,JAN,AEG,LBD - COPAY UTILITIES ;11/5/06 20:29 2 ;;5.3;Registration;**33,45,54,335,358,401,436,445,564,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 AUTO(DFN,AUTOEX) ; 4 20 ; Returns 1 if Exempt from CP w/o needing MT/CP information … … 69 85 THRESHQT Q 70 86 DISPMAS(DFN) ; Displays Co 87 ;New EHR code ;DAOU/JLG 2/4/05 88 ;not relevant to Agency EHR 89 Q:$G(DUZ("AG"))="E" 90 ;End EHR modifications 71 91 N DGCPS,DGEX,Y,AUTOEX 72 92 S DGEX=$$AUTO(DFN,.AUTOEX) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXD.m
r628 r636 1 DGMTXD ; GENERATED FROM 'DGMT ENTER/EDIT DEPENDENTS' INPUT TEMPLATE(#468), FILE 408.22; 08/13/051 DGMTXD ; GENERATED FROM 'DGMT ENTER/EDIT DEPENDENTS' INPUT TEMPLATE(#468), FILE 408.22;12/18/05 2 2 D DE G BEGIN 3 3 DE S DIE="^DGMT(408.22,",DIC=DIE,DP=408.22,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGMT(408.22,DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXD1.m
r628 r636 1 DGMTXD1 ; ; 08/13/051 DGMTXD1 ; ;12/18/05 2 2 S X=DE(25),DIC=DIE 3 3 K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.22,.11,1,1,79.2) S X=X="" I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" X ^DD(408.22,.11,1,1,2.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXD2.m
r628 r636 1 DGMTXD2 ; ; 08/13/051 DGMTXD2 ; ;12/18/05 2 2 S X=DG(DQ),DIC=DIE 3 3 X ^DD(408.22,.11,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" X ^DD(408.22,.11,1,1,1.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXD3.m
r628 r636 1 DGMTXD3 ; ; 08/13/051 DGMTXD3 ; ;12/18/05 2 2 S X=DE(27),DIC=DIE 3 3 I $D(^DGMT(408.22,DA,0)),$P(^(0),U,12)="",$P(^(0),U,11) D INC^DGMTDD2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXD4.m
r628 r636 1 DGMTXD4 ; ; 08/13/051 DGMTXD4 ; ;12/18/05 2 2 S X=DG(DQ),DIC=DIE 3 3 I $D(^DGMT(408.22,DA,0)),$P(^(0),U,12)=0,$P(^(0),U,11) D INC^DGMTDD2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXE.m
r628 r636 1 DGMTXE ; GENERATED FROM 'DGMT ENTER/EDIT EXPENSES' INPUT TEMPLATE(#474), FILE 408.21; 08/13/051 DGMTXE ; GENERATED FROM 'DGMT ENTER/EDIT EXPENSES' INPUT TEMPLATE(#474), FILE 408.21;12/18/05 2 2 D DE G BEGIN 3 3 DE S DIE="^DGMT(408.21,",DIC=DIE,DP=408.21,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGMT(408.21,DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX1.m
r628 r636 1 DGMTXX1 ; DRIVER FOR COMPILED XREFS FOR FILE #408.21 ; 11/ 22/061 DGMTXX1 ; DRIVER FOR COMPILED XREFS FOR FILE #408.21 ; 11/06/06 2 2 ; 3 3 N DH,DU,DIKILL,DISET,DIKJ,DIKZ,DIKYR,DIKZA,DIK0Z,DIKZK,DIKDP,DIKM1,DIKUP,DIKUM,DV,DIIX,DIKF,DIAU,DIKNM,DIKDA,DIKLK,DIKLM,DIKY,DIXR,DIKCOND,DIKSVDA,DIKPUSH,X1,X2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX11.m
r628 r636 1 DGMTXX11 ; COMPILED XREF FOR FILE #408.21 ; 11/ 22/061 DGMTXX11 ; COMPILED XREF FOR FILE #408.21 ; 11/06/06 2 2 ; 3 3 S DIKZK=2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX12.m
r628 r636 1 DGMTXX12 ; COMPILED XREF FOR FILE #408.21 ; 11/ 22/061 DGMTXX12 ; COMPILED XREF FOR FILE #408.21 ; 11/06/06 2 2 ; 3 3 S DIKZK=1 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX2.m
r628 r636 1 DGMTXX2 ; DRIVER FOR COMPILED XREFS FOR FILE #408.22 ; 11/ 22/061 DGMTXX2 ; DRIVER FOR COMPILED XREFS FOR FILE #408.22 ; 11/06/06 2 2 ; 3 3 N DH,DU,DIKILL,DISET,DIKJ,DIKZ,DIKYR,DIKZA,DIK0Z,DIKZK,DIKDP,DIKM1,DIKUP,DIKUM,DV,DIIX,DIKF,DIAU,DIKNM,DIKDA,DIKLK,DIKLM,DIKY,DIXR,DIKCOND,DIKSVDA,DIKPUSH,X1,X2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX21.m
r628 r636 1 DGMTXX21 ; COMPILED XREF FOR FILE #408.22 ; 11/ 22/061 DGMTXX21 ; COMPILED XREF FOR FILE #408.22 ; 11/06/06 2 2 ; 3 3 S DIKZK=2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX22.m
r628 r636 1 DGMTXX22 ; COMPILED XREF FOR FILE #408.22 ; 11/ 22/061 DGMTXX22 ; COMPILED XREF FOR FILE #408.22 ; 11/06/06 2 2 ; 3 3 S DIKZK=1 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX3.m
r628 r636 1 DGMTXX3 ; DRIVER FOR COMPILED XREFS FOR FILE #408.31 ; 1 1/22/061 DGMTXX3 ; DRIVER FOR COMPILED XREFS FOR FILE #408.31 ; 12/25/06 2 2 ; 3 3 N DH,DU,DIKILL,DISET,DIKJ,DIKZ,DIKYR,DIKZA,DIK0Z,DIKZK,DIKDP,DIKM1,DIKUP,DIKUM,DV,DIIX,DIKF,DIAU,DIKNM,DIKDA,DIKLK,DIKLM,DIKY,DIXR,DIKCOND,DIKSVDA,DIKPUSH,X1,X2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX31.m
r628 r636 1 DGMTXX31 ; COMPILED XREF FOR FILE #408.31 ; 1 1/22/061 DGMTXX31 ; COMPILED XREF FOR FILE #408.31 ; 12/25/06 2 2 ; 3 3 S DIKZK=2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTXX32.m
r628 r636 1 DGMTXX32 ; COMPILED XREF FOR FILE #408.31 ; 1 1/22/061 DGMTXX32 ; COMPILED XREF FOR FILE #408.31 ; 12/25/06 2 2 ; 3 3 S DIKZK=1 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPFUT.m
r628 r636 1 DGPFUT ;ALB/RPM - PRF UTILITIES ; 6/7/05 3:13pm 2 ;;5.3;Registration;**425,554,650**;Aug 13, 1993;Build 3 1 DGPFUT ;ALB/RPM - PRF UTILITIES ;7:46 PM 30 Jan 2008 2 ;;5.3;Registration;**425,554,650,VWEHR1**;WorldVistA 30-Jan-08 3 ; 4 ;Modified from FOIA VISTA, 5 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU 6 ;General Public License See attached copy of the License. 7 ; 8 ;This program is free software; you can redistribute it and/or modify 9 ;it under the terms of the GNU General Public License as published by 10 ;the Free Software Foundation; either version 2 of the License, or 11 ;(at your option) any later version. 12 ; 13 ;This program is distributed in the hope that it will be useful, 14 ;but WITHOUT ANY WARRANTY; without even the implied warranty of 15 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ;GNU General Public License for more details. 17 ; 18 ;You should have received a copy of the GNU General Public License along 19 ;with this program; if not, write to the Free Software Foundation, Inc., 20 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 3 21 ; 4 22 Q ;no direct entry 5 23 ; 6 ANSWER(DGDIRA,DGDIRB,DGDIR0,DGDIRH,DGDIRS) 24 ANSWER(DGDIRA,DGDIRB,DGDIR0,DGDIRH,DGDIRS) ;wrap FileMan Classic Reader call 7 25 ; 8 26 ; Input … … 175 193 ;This function verifies that a given patient has a valid national 176 194 ;Integration Control Number. 177 ; 195 ; 178 196 ; Supported DBIA #2701: The supported DBIA is used to access MPI 179 197 ; APIs to retrieve ICN and determine if ICN … … 207 225 ;TREATED value immediately prior to the date for the treating facility 208 226 ;passed as the second parameter. The most recent treating facility 209 ;will be returned when the second parameter is missing, null, or zero. 227 ;will be returned when the second parameter is missing, null, or zero. 210 228 ; 211 229 ; Input: … … 237 255 . ;find entry for previous treating facility 238 256 . S DGNAM="DGDARR" 239 . S DGARR=$QUERY(@DGNAM@(""),-1) 257 . ; 258 . ;WV/EHR REVERSE $Q REPLACEMENT; SO 01/12/08 ;VWEHR1 259 . ; 260 . ;S DGARR=$QUERY(@DGNAM@(""),-1) 261 . S DGARR=$$Q^VWUTIL($NA(@DGNAM@("")),-1) 262 . ; 263 . ;END CHANGE 264 . ; 240 265 . I DGLTF,DGARR]"" D 241 266 . . I $QS(DGARR,2)'=DGLTF D 242 . . . F S DGARR=$QUERY(@DGARR,-1) Q:+$QS(DGARR,2)=DGLTF 243 . . S DGARR=$QUERY(@DGARR,-1) 267 . . . ; 268 . . . ;WV/EHR REVERSE $Q REPLACEMENT; SO 01/12/08 ;VWEHR1 269 . . . ; 270 . . . ;F S DGARR=$QUERY(@DGARR,-1) Q:+$QS(DGARR,2)=DGLTF 271 . . . F S DGARR=$$Q^VWUTIL($NA(@DGARR),-1) Q:+$QS(DGARR,2)=DGLTF 272 . . . ; 273 . . . ;END CHANGE 274 . . . ; 275 . . ; 276 . . ;WV/EHR REVERSE $Q REPLACEMENT; SO 01/12/08 ;VWEHR1 277 . . ; 278 . . ;S DGARR=$QUERY(@DGARR,-1) 279 . . S DGARR=$$Q^VWUTIL($NA(@DGARR),-1) 280 . . ; 281 . . ;END CHANGE 282 . . ; 244 283 ; 245 284 Q $S($G(DGARR)]"":+$QS(DGARR,2),1:0) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMX6.m
r628 r636 1 DGPMX6 ; GENERATED FROM 'DGPM SPECIALTY TRANSFER' INPUT TEMPLATE(#451), FILE 405;11/ 22/061 DGPMX6 ; GENERATED FROM 'DGPM SPECIALTY TRANSFER' INPUT TEMPLATE(#451), FILE 405;11/06/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPM(",DIC=DIE,DP=405,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPM(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMX61.m
r628 r636 1 DGPMX61 ; ;11/ 22/061 DGPMX61 ; ;11/06/06 2 2 S X=DE(14),DIC=DIE 3 3 S DGPMDDF=9 D ^DGPMDD2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMX62.m
r628 r636 1 DGPMX62 ; ;11/ 22/061 DGPMX62 ; ;11/06/06 2 2 S X=DG(DQ),DIC=DIE 3 3 S DGPMDDF=9 D ^DGPMDD1 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMX63.m
r628 r636 1 DGPMX63 ; ;11/ 22/061 DGPMX63 ; ;11/06/06 2 2 S X=DE(16),DIC=DIE 3 3 S DGPMDDF=8,DGPMDDT=0 D ^DGPMDDCN -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMX64.m
r628 r636 1 DGPMX64 ; ;11/ 22/061 DGPMX64 ; ;11/06/06 2 2 S X=DG(DQ),DIC=DIE 3 3 S DGPMDDF=8,DGPMDDT=1 D ^DGPMDDCN -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMX65.m
r628 r636 1 DGPMX65 ; ;11/ 22/061 DGPMX65 ; ;11/06/06 2 2 S X=DE(17),DIC=DIE 3 3 S DGPMDDF=19,DGPMDDT=0 D ^DGPMDDCN -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMX66.m
r628 r636 1 DGPMX66 ; ;11/ 22/061 DGPMX66 ; ;11/06/06 2 2 S X=DG(DQ),DIC=DIE 3 3 S DGPMDDF=19,DGPMDDT=1 D ^DGPMDDCN -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMX67.m
r628 r636 1 DGPMX67 ; ;11/ 22/061 DGPMX67 ; ;11/06/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPM(",DIC=DIE,DP=405,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPM(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMXX.m
r628 r636 1 DGPMXX ; DRIVER FOR COMPILED XREFS FOR FILE #405 ; 11/ 22/061 DGPMXX ; DRIVER FOR COMPILED XREFS FOR FILE #405 ; 11/06/06 2 2 ; 3 3 N DH,DU,DIKILL,DISET,DIKJ,DIKZ,DIKYR,DIKZA,DIK0Z,DIKZK,DIKDP,DIKM1,DIKUP,DIKUM,DV,DIIX,DIKF,DIAU,DIKNM,DIKDA,DIKLK,DIKLM,DIKY,DIXR,DIKCOND,DIKSVDA,DIKPUSH,X1,X2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMXX1.m
r628 r636 1 DGPMXX1 ; COMPILED XREF FOR FILE #405 ; 11/ 22/061 DGPMXX1 ; COMPILED XREF FOR FILE #405 ; 11/06/06 2 2 ; 3 3 S DIKZK=2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMXX2.m
r628 r636 1 DGPMXX2 ; COMPILED XREF FOR FILE #405 ; 11/ 22/061 DGPMXX2 ; COMPILED XREF FOR FILE #405 ; 11/06/06 2 2 ; 3 3 S DIKZK=1 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTF4.m
r628 r636 1 1 DGPTF4 ;ALB/JDS - PTF ENTRY/EDIT-4 ; 2/19/04 9:33am 2 ;;5.3;Registration;**114,115,397,510,517,478,683 ,775**;Aug 13, 1993;Build32 ;;5.3;Registration;**114,115,397,510,517,478,683**;Aug 13, 1993 3 3 ; 4 4 WR ; … … 59 59 ;change made to allow release of 470, before grouper released to vamc's 60 60 ; patch 115 61 ;DGDAT = effective date of DRG used in DGPTICD (468=CMS-DRG,998=MS-DRG) 62 I DRG=469,(+$G(DGDAT)<3071001) W !!,*7,"Unable to release DRG ",DRG,". Please verify data entered.",*7 D HANG^DGPTUTL G EN1 63 I DRG=998 W !!,*7,"Unable to release DRG ",DRG,". Please verify data entered.",*7 D HANG^DGPTUTL G EN1 61 I DRG=469 W !!,*7,"Unable to release DRG ",DRG,". Please verify data entered.",*7 D HANG^DGPTUTL G EN1 64 62 I $D(DGCST),'DGCST D CEN G EN1:'DGCST 65 63 I '$P(^DGPT(PTF,0),"^",4) W !,"Updating TRANSFER DRGs..." S DGADM=$P(^DGPT(PTF,0),U,2) D SUDO1^DGPTSUDO -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTFDEL.m
r628 r636 1 DGPTFDEL ;ALB/JDS - PTF ENTRY DELETION ; 7/31/07 11:19am2 ;;5.3;Registration;**517 ,760**;Aug 13, 1993;Build 111 DGPTFDEL ;ALB/JDS - PTF ENTRY DELETION ; 1/15/04 8:23am 2 ;;5.3;Registration;**517**;Aug 13, 1993 3 3 ; 4 4 A D LO^DGUTL I $D(^DISV(DUZ,"^DPT(")),$D(^("^DGPT(")) S A=+^("^DGPT("),B=+^("^DPT(") I $D(^DGPT(A,0)),$D(^DPT(B,0)) S:(+^DGPT(A,0)'=B&$D(^DGPT("B",B))) ^DISV(DUZ,"^DGPT(")="" … … 52 52 ; 53 53 KDGPT ; -- kill DGPT rec ; input DGPTIFN := ifn 54 S DA=DGPTIFN,DIK="^DGPT(",FLAG=1,I=0 F S I=$O(^DGCPT(46,"C",DA,I)) Q:'I I '$G(^DGCPT(46,I,9)) S FLAG=0 Q 54 S DA=DGPTIFN,DIK="^DGPT(",FLAG=1,I=0 F S I=$O(^DGCPT(46,"C",DA,I)) Q:'I I '$G(^DGCPT(I,9)) S FLAG=0 Q 55 I FLAG S I=0 F S I=$O(^DGICD9(46.1,"C",DA,I)) Q:'I I '$G(^DGICD9(I,9)) S FLAG=0 Q 55 56 I 'FLAG W !,"CANNOT DELETE THE PTF RECORD WHEN THERE ARE ACTIVE ORDERS OR CPT RECORDS." H 2 K FLAG Q 56 57 D ^DIK K DA,DIK,I,FLAG -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTFM4.m
r628 r636 1 DGPTFM4 ;ALB/MTC/ADL - PTF ENTRY/EDIT-2 ; 1 2/18/0711:37am2 ;;5.3;Registration;**114,195,397,510,565 ,775**;Aug 13, 1993;Build31 DGPTFM4 ;ALB/MTC/ADL - PTF ENTRY/EDIT-2 ; 11/19/03 11:37am 2 ;;5.3;Registration;**114,195,397,510,565**;Aug 13, 1993 3 3 ;;ADL;Update for CSV Project;;Mar 26, 2003 4 4 ; … … 26 26 . W $S(+DGPTTMP>0&($P(DGPTTMP,U,10)):$P(DGPTTMP,U,4)_" ("_$P(DGPTTMP,U,2)_")",1:"**********-"_L),!?17 27 27 D PRN2^DGPTFM8:DG300]"" 28 I $P(M1,U,20) S DRG=$P(M1,U,20) W:DRG=998!(DRG=999)!((DRG=468!(DRG=469)!(DRG=470))&(+$P($G(M1),U,10)<3071001)) *7 W !!?14,"TRANSFER DRG: ",DRG D 29 . N DXD,DGDX 30 . S DXD=$$DRGD^ICDGTDRG(DRG,"DGDX",,$P(M1,U,10)),DGDS=0 31 . F S DGDS=$O(DGDX(DGDS)) Q:'+DGDS Q:DGDX(DGDS)=" " W !,DGDX(DGDS) 28 I $P(M1,U,20) S DRG=$P(M1,U,20) W:DRG=468!(DRG=469)!(DRG=470) *7 W !!?14,"TRANSFER DRG: ",DRG F DGDRGNM=0:0 S DGDRGNM=$O(^ICD(DRG,1,DGDRGNM)) Q:'DGDRGNM W !,$P(^(DGDRGNM,0),U,1) 32 29 JUMP K DG300 F I=$Y:1:21 W ! 33 30 X S DGNUM=$S($D(M(DGZM0+1)):501_"-"_(DGZM0+1),1:"MAS") G 501^DGPTFJC:DGST -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTICD.m
r628 r636 1 1 DGPTICD ;ALB/MTC - PTF DRG Grouper Utility ; 2/19/02 3:08pm 2 ;;5.3;Registration;**375,441,510,559,599,606 ,775**;Aug 13, 1993;Build32 ;;5.3;Registration;**375,441,510,559,599,606**;Aug 13, 1993 3 3 ;variables to pass in: 4 4 ; DGDX <- format: DX CODE1^DX CODE2^DX CODE3^... (REQUIRED) … … 49 49 ; 50 50 PRT ;print DRG and national HCFA values 51 I (ICDDATE<3071001)&(DRG=468!(DRG=469)!(DRG=470)) W *7 52 I DRG=998!(DRG=999) W *7 51 I DRG=468!(DRG=469)!(DRG=470) W *7 53 52 S Y=ICDDATE D DD^%DT ; Y=external representation of effective date 54 53 W !!?9,"Effective Date:"," ",Y -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTR1.m
r628 r636 1 1 DGPTR1 ;ALB/MTC - PTF VERIFICATION ; 12/14/06 10:31am 2 ;;5.3;Registration;**58,247,338,342,423,415,565,678,696,729 ,781**;Aug 13, 1993;Build 12 ;;5.3;Registration;**58,247,338,342,423,415,565,678,696,729**;Aug 13, 1993;Build 59 3 3 START S T=$E(Y,2,3),T=$S(T=40&($E(Y,28)="P"):"P40",1:T),ERR=$P($T(@("T"_T)),";;",2,999),W=$P($T(@(T)),";;",2,999),F=31 D L 4 4 I T=70 S ERR=$P($T(T701),";;",2,999),W=$P($T(701),";;",2,999),F=72 D L … … 26 26 T60 ;;1:DATE OF PROCEDURE^2:LOSING BD SEC^3:DIALYSIS TYPE^4:NUMBER OF TREATMENTS^5:PROCEDURE CODE 27 27 ; 28 LOGIC ;;X'?.N^X'?.A&(X'=" ")^X'=" "^X'?.N&(X'=" ")^X'?.A&(X'=" ")^0^X'?.N&(X'="X")^X'=" "&(X'="P")^X="E"^X="Y"^X=" "^X'="A"&(X'=" ")^(X'?.A)&(X'?.N)&(X'=" ")^(X'?.AN)&('$P(DG0,U,4))^((T1)&(X'=" "))!(('T1)&(X'?.AN)&('$P(DG0,U,4))) ^(X'?.AN)28 LOGIC ;;X'?.N^X'?.A&(X'=" ")^X'=" "^X'?.N&(X'=" ")^X'?.A&(X'=" ")^0^X'?.N&(X'="X")^X'=" "&(X'="P")^X="E"^X="Y"^X=" "^X'="A"&(X'=" ")^(X'?.A)&(X'?.N)&(X'=" ")^(X'?.AN)&('$P(DG0,U,4))^((T1)&(X'=" "))!(('T1)&(X'?.AN)&('$P(DG0,U,4))) 29 29 ; 30 ; ;edit check# ; edit field ; # x check preformed ; display error name #30 ; edit check# ; edit field ; # x check preformed ; display error name # 31 31 10 ;;6;;12;1^2;1;1;1^5;1;1;1^1;2;1;2^2;2;1;2^4;3;3;3^6;;3;3^4;4;1;4^6;5;1;5^2;6;1;6^2;7;1;7^1;8;8;8^6;;1;9^11;9;1;9^4;10;1;10^4;10;1;11^1;11;5;12^7;11;5;12^2;12;1;13^6;;1;13^1;;6;14^2;;1;15^1;;1;16^4;;6;17^3;;1;18^5;;1;19^3;;29 32 32 ; … … 35 35 701 ;;15;;2;1^1;;3;2^4;;1;3^4;;1;4^12;;1;5^4;;3;5^4;;1;6^4;;4;7^4;;1;8^5;;3;9^5;;1;10^5;;1;11^13;12;2;12^13;13;12;13^5;;1;14^3;;17 36 36 ; 37 50 ;;1;1;10;1^1;;6;2^1 6;3;2;3^1;4;3;4^1;5;3;5^6;;1;6^11;7;3;7^6;;32;7^6;;9;8^14;;6;9^14;;2;10^6;;1;11^4;;1;16^4;;1;17^12;;1;18^4;;3;18^4;;1;19^4;;4;20^4;;1;21^5;;3;22^5;;1;23^5;;1;2437 50 ;;1;1;10;1^1;;6;2^13;3;2;3^1;4;3;4^1;5;3;5^6;;1;6^11;7;3;7^6;;32;7^6;;9;8^14;;6;9^14;;2;10^6;;1;11^4;;1;16^4;;1;17^12;;1;18^4;;3;18^4;;1;19^4;;4;20^4;;1;21^5;;3;22^5;;1;23^5;;1;24 38 38 ; 39 39 53 ;;1;;10;1^1;;6;2^13;;2;3^1;;6;4^13;;2;5^1;;3;6^1;;3;7^3;;9;8^3;;54; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX1.m
r628 r636 1 DGPTX1 ; GENERATED FROM 'DG101' INPUT TEMPLATE(#426), FILE 45; 09/04/071 DGPTX1 ; GENERATED FROM 'DG101' INPUT TEMPLATE(#426), FILE 45;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX11.m
r628 r636 1 DGPTX11 ; ; 09/04/071 DGPTX11 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=2,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX110.m
r628 r636 1 DGPTX110 ; ;0 1/12/061 DGPTX110 ; ;04/03/06 2 2 S X=DE(12),DIC=DIE 3 3 K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DPT(D0,.11)):^(.11),1:""),Y=$P(Y(1),U,7) X:$D(^DD(2,.117,2)) ^(2) S X=Y S DIU=X K Y S X=DIV S X="" X ^DD(2,.115,1,1,2.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX111.m
r628 r636 1 DGPTX111 ; ;0 1/12/061 DGPTX111 ; ;04/03/06 2 2 S X=DG(DQ),DIC=DIE 3 3 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX112.m
r628 r636 1 DGPTX112 ; ;0 1/12/061 DGPTX112 ; ;04/03/06 2 2 S X=DE(13),DIC=DIE 3 3 D KILL^DGREGDD1(DA,.116,.11,6,$E(X,1,5)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX113.m
r628 r636 1 DGPTX113 ; ;0 1/12/061 DGPTX113 ; ;04/03/06 2 2 S X=DG(DQ),DIC=DIE 3 3 D SET^DGREGDD1(DA,.116,.11,6,$E(X,1,5)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX114.m
r628 r636 1 DGPTX114 ; ;0 1/12/061 DGPTX114 ; ;04/03/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=2,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX12.m
r628 r636 1 DGPTX12 ; ; 09/04/071 DGPTX12 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX13.m
r628 r636 1 DGPTX13 ; ; 09/04/071 DGPTX13 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(D0,.06,",DIC=DIE,DP=2.06,DL=3,DIEL=1,DU="" K DG,DE,DB Q:$O(^DPT(D0,.06,DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX14.m
r628 r636 1 DGPTX14 ; ; 09/04/071 DGPTX14 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(D0,.02,",DIC=DIE,DP=2.02,DL=3,DIEL=1,DU="" K DG,DE,DB Q:$O(^DPT(D0,.02,DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX15.m
r628 r636 1 DGPTX15 ; ; 09/04/071 DGPTX15 ; ;12/27/07 2 2 S X=DE(14),DIC=DIE 3 3 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX16.m
r628 r636 1 DGPTX16 ; ; 09/04/071 DGPTX16 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 X ^DD(2,.32103,1,1,1.3) I X S X=DIV S Y(2)=";"_$S($D(^DD(2,.3212,0)):$P(^(0),U,3),1:""),Y(1)=$S($D(^DPT(D0,.321)):^(.321),1:"") S X=$P($P(Y(2),";"_$P(Y(1),U,12)_":",2),";",1) S DIU=X K Y S X=DIV S X="" X ^DD(2,.32103,1,1,1.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX17.m
r628 r636 1 DGPTX17 ; ; 09/04/071 DGPTX17 ; ;12/27/07 2 2 S X=DE(16),DIC=DIE 3 3 D AUTOUPD^DGENA2(DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX18.m
r628 r636 1 DGPTX18 ; ; 09/04/071 DGPTX18 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 D AUTOUPD^DGENA2(DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX19.m
r628 r636 1 DGPTX19 ; ; 09/04/071 DGPTX19 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=2,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" … … 80 80 S X=DG(DQ),DIC=DIE 81 81 D EVENT^IVMPLOG(DA) 82 C1F1 N X,X1,X2 S DIXR=6 27D C1X1(U) K X2 M X2=X D C1X1("O") K X1 M X1=X82 C1F1 N X,X1,X2 S DIXR=646 D C1X1(U) K X2 M X2=X D C1X1("O") K X1 M X1=X 83 83 D 84 84 . D FC^DGFCPROT(.DA,2,.525,"KILL",$H,$G(DUZ),.X,.X1,.X2,$G(XQY0)) Q -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX4.m
r628 r636 1 DGPTX4 ; GENERATED FROM 'DG401' INPUT TEMPLATE(#428), FILE 45;12/ 12/071 DGPTX4 ; GENERATED FROM 'DG401' INPUT TEMPLATE(#428), FILE 45;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX41.m
r628 r636 1 DGPTX41 ; ;12/ 12/071 DGPTX41 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""S"",",DIC=DIE,DP=45.01,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"S",DA,""))="" … … 69 69 C5S S X="" G:DG(DQ)=X C5F1 K DB 70 70 C5F1 S DIEZRXR(45.01,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 71 F DIXR=4 22,423,424,425,426S DIEZRXR(45.01,DIXR)=""71 F DIXR=437,438,439,440,441 S DIEZRXR(45.01,DIXR)="" 72 72 Q 73 73 X5 S %DT="ETX" D ^%DT S X=+Y K:Y<1 X I $D(X) X $S(X<$P(^DGPT(DA(1),0),U,2):"W !,""Not before admission"" K X",X>($S($D(^(70)):$S(+^(70):+^(70),1:9999999),1:9999999)):"W !,""Not after discharge"" K X",1:"") … … 115 115 S ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)="" 116 116 C15F1 S DIEZRXR(45.01,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 117 F DIXR=4 22S DIEZRXR(45.01,DIXR)=""117 F DIXR=437 S DIEZRXR(45.01,DIXR)="" 118 118 Q 119 119 X15 S DIC("S")="S DGI=8,DGCR=""AO"",DGSB=""S"" D EN1^DGPTFJC K DGI,DGCR,DGSB,K I 'DGER" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 141 141 S ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)="" 142 142 C20F1 S DIEZRXR(45.01,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 143 F DIXR=4 23S DIEZRXR(45.01,DIXR)=""143 F DIXR=438 S DIEZRXR(45.01,DIXR)="" 144 144 Q 145 145 X20 S DIC("S")="S DGI=9,DGCR=""AO"",DGSB=""S"" D EN1^DGPTFJC K DGI,DGCR,DGSB,K I 'DGER" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 165 165 D ^DGPTX43 166 166 C25F1 S DIEZRXR(45.01,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 167 F DIXR=4 24S DIEZRXR(45.01,DIXR)=""167 F DIXR=439 S DIEZRXR(45.01,DIXR)="" 168 168 Q 169 169 X25 S DIC("S")="S DGI=10,DGCR=""AO"",DGSB=""S"" D EN1^DGPTFJC K DGI,DGCR,DGSB,K I 'DGER" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX42.m
r628 r636 1 DGPTX42 ; ;12/ 12/071 DGPTX42 ; ;12/27/07 2 2 S X=DE(25),DIC=DIE 3 3 K ^DGPT(DA(1),"S","AO",$E(X,1,30),DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX43.m
r628 r636 1 DGPTX43 ; ;12/ 12/071 DGPTX43 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 S ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX44.m
r628 r636 1 DGPTX44 ; ;12/ 12/071 DGPTX44 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""S"",",DIC=DIE,DP=45.01,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"S",DA,""))="" … … 62 62 S ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)="" 63 63 C1F1 S DIEZRXR(45.01,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 64 F DIXR=4 25S DIEZRXR(45.01,DIXR)=""64 F DIXR=440 S DIEZRXR(45.01,DIXR)="" 65 65 Q 66 66 X1 S DIC("S")="S DGI=11,DGCR=""AO"",DGSB=""S"" D EN1^DGPTFJC K DGI,DGCR,DGSB,K I 'DGER" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 88 88 S ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)="" 89 89 C6F1 S DIEZRXR(45.01,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 90 F DIXR=4 26S DIEZRXR(45.01,DIXR)=""90 F DIXR=441 S DIEZRXR(45.01,DIXR)="" 91 91 Q 92 92 X6 S DIC("S")="S DGI=12,DGCR=""AO"",DGSB=""S"" D EN1^DGPTFJC K DGI,DGCR,DGSB,K I 'DGER" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX45.m
r628 r636 1 DGPTX45 ; ;12/ 12/071 DGPTX45 ; ;12/27/07 2 2 ;; 3 1 N X,X1,X2 S DIXR=4 22D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=437 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 I $G(X(1))]"",$G(X(2))]"" D 5 5 . D KDGPT0^DGPTDDCR(.X,.DA,"S",1) … … 12 12 S X=$G(X(1)) 13 13 Q 14 2 N X,X1,X2 S DIXR=4 23D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X14 2 N X,X1,X2 S DIXR=438 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X 15 15 I $G(X(1))]"",$G(X(2))]"" D 16 16 . D KDGPT0^DGPTDDCR(.X,.DA,"S",2) … … 23 23 S X=$G(X(1)) 24 24 Q 25 3 N X,X1,X2 S DIXR=4 24D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X25 3 N X,X1,X2 S DIXR=439 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X 26 26 I $G(X(1))]"",$G(X(2))]"" D 27 27 . D KDGPT0^DGPTDDCR(.X,.DA,"S",3) … … 34 34 S X=$G(X(1)) 35 35 Q 36 4 N X,X1,X2 S DIXR=4 25D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X36 4 N X,X1,X2 S DIXR=440 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X 37 37 I $G(X(1))]"",$G(X(2))]"" D 38 38 . D KDGPT0^DGPTDDCR(.X,.DA,"S",4) … … 45 45 S X=$G(X(1)) 46 46 Q 47 5 N X,X1,X2 S DIXR=4 26D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X47 5 N X,X1,X2 S DIXR=441 D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X 48 48 I $G(X(1))]"",$G(X(2))]"" D 49 49 . D KDGPT0^DGPTDDCR(.X,.DA,"S",5) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX5.m
r628 r636 1 DGPTX5 ; GENERATED FROM 'DG501' INPUT TEMPLATE(#430), FILE 45; 09/05/071 DGPTX5 ; GENERATED FROM 'DG501' INPUT TEMPLATE(#430), FILE 45;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX51.m
r628 r636 1 DGPTX51 ; ; 09/05/071 DGPTX51 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" … … 128 128 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 129 129 C22F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 130 F DIXR=4 47S DIEZRXR(45.02,DIXR)=""130 F DIXR=462 S DIEZRXR(45.02,DIXR)="" 131 131 Q 132 132 X22 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=5 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 158 158 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 159 159 C27F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 160 F DIXR=4 48S DIEZRXR(45.02,DIXR)=""160 F DIXR=463 S DIEZRXR(45.02,DIXR)="" 161 161 Q 162 162 X27 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=6 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX52.m
r628 r636 1 DGPTX52 ; ; 09/05/071 DGPTX52 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" … … 66 66 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 67 67 C1F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 68 F DIXR=4 49S DIEZRXR(45.02,DIXR)=""68 F DIXR=464 S DIEZRXR(45.02,DIXR)="" 69 69 Q 70 70 X1 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=7 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 96 96 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 97 97 C6F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 98 F DIXR=4 50S DIEZRXR(45.02,DIXR)=""98 F DIXR=465 S DIEZRXR(45.02,DIXR)="" 99 99 Q 100 100 X6 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=8 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 126 126 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 127 127 C11F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 128 F DIXR=4 51S DIEZRXR(45.02,DIXR)=""128 F DIXR=466 S DIEZRXR(45.02,DIXR)="" 129 129 Q 130 130 X11 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=9 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX53.m
r628 r636 1 DGPTX53 ; ; 09/05/071 DGPTX53 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX54.m
r628 r636 1 DGPTX54 ; ; 09/05/071 DGPTX54 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX55.m
r628 r636 1 DGPTX55 ; ; 09/05/071 DGPTX55 ; ;12/27/07 2 2 ;; 3 1 N X,X1,X2 S DIXR=4 47D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=462 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 I $G(X(1))]"",$G(X(2))]"" D 5 5 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD1") … … 12 12 S X=$G(X(1)) 13 13 Q 14 2 N X,X1,X2 S DIXR=4 48D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X14 2 N X,X1,X2 S DIXR=463 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X 15 15 I $G(X(1))]"",$G(X(2))]"" D 16 16 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD2") … … 23 23 S X=$G(X(1)) 24 24 Q 25 3 N X,X1,X2 S DIXR=4 49D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X25 3 N X,X1,X2 S DIXR=464 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X 26 26 I $G(X(1))]"",$G(X(2))]"" D 27 27 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD3") … … 34 34 S X=$G(X(1)) 35 35 Q 36 4 N X,X1,X2 S DIXR=4 50D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X36 4 N X,X1,X2 S DIXR=465 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X 37 37 I $G(X(1))]"",$G(X(2))]"" D 38 38 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD4") … … 45 45 S X=$G(X(1)) 46 46 Q 47 5 N X,X1,X2 S DIXR=4 51D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X47 5 N X,X1,X2 S DIXR=466 D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X 48 48 I $G(X(1))]"",$G(X(2))]"" D 49 49 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD5") -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX7.m
r628 r636 1 DGPTX7 ; GENERATED FROM 'DG701' INPUT TEMPLATE(#432), FILE 45;0 2/13/061 DGPTX7 ; GENERATED FROM 'DG701' INPUT TEMPLATE(#432), FILE 45;04/03/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" … … 73 73 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 74 74 C4F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 75 F DIXR=4 32S DIEZRXR(45,DIXR)=""75 F DIXR=447 S DIEZRXR(45,DIXR)="" 76 76 Q 77 77 X4 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=1 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 101 101 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 102 102 C11F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 103 F DIXR=4 34S DIEZRXR(45,DIXR)=""103 F DIXR=449 S DIEZRXR(45,DIXR)="" 104 104 Q 105 105 X11 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=2 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 128 128 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 129 129 C17F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 130 F DIXR=4 35S DIEZRXR(45,DIXR)=""130 F DIXR=450 S DIEZRXR(45,DIXR)="" 131 131 Q 132 132 X17 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=3 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 153 153 D ^DGPTX72 154 154 C23F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 155 F DIXR=4 36S DIEZRXR(45,DIXR)=""155 F DIXR=451 S DIEZRXR(45,DIXR)="" 156 156 Q 157 157 X23 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=4 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX71.m
r628 r636 1 DGPTX71 ; ;0 2/13/061 DGPTX71 ; ;04/03/06 2 2 S X=DE(23),DIC=DIE 3 3 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX72.m
r628 r636 1 DGPTX72 ; ;0 2/13/061 DGPTX72 ; ;04/03/06 2 2 S X=DG(DQ),DIC=DIE 3 3 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX73.m
r628 r636 1 DGPTX73 ; ;0 2/13/061 DGPTX73 ; ;04/03/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" … … 61 61 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 62 62 C1F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 63 F DIXR=4 37S DIEZRXR(45,DIXR)=""63 F DIXR=452 S DIEZRXR(45,DIXR)="" 64 64 Q 65 65 X1 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=5 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 89 89 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 90 90 C8F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 91 F DIXR=4 38S DIEZRXR(45,DIXR)=""91 F DIXR=453 S DIEZRXR(45,DIXR)="" 92 92 Q 93 93 X8 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=6 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 116 116 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 117 117 C14F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 118 F DIXR=4 39S DIEZRXR(45,DIXR)=""118 F DIXR=454 S DIEZRXR(45,DIXR)="" 119 119 Q 120 120 X14 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=7 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 143 143 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 144 144 C20F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 145 F DIXR=4 40S DIEZRXR(45,DIXR)=""145 F DIXR=455 S DIEZRXR(45,DIXR)="" 146 146 Q 147 147 X20 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=8 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX74.m
r628 r636 1 DGPTX74 ; ;0 2/13/061 DGPTX74 ; ;04/03/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" … … 62 62 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 63 63 C1F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 64 F DIXR=4 41S DIEZRXR(45,DIXR)=""64 F DIXR=456 S DIEZRXR(45,DIXR)="" 65 65 Q 66 66 X1 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=9 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 88 88 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 89 89 C6F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 90 F DIXR=4 42S DIEZRXR(45,DIXR)=""90 F DIXR=457 S DIEZRXR(45,DIXR)="" 91 91 Q 92 92 X6 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=10 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 114 114 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 115 115 C11F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 116 F DIXR=4 43S DIEZRXR(45,DIXR)=""116 F DIXR=458 S DIEZRXR(45,DIXR)="" 117 117 Q 118 118 X11 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=11 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 140 140 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" 141 141 C16F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 142 F DIXR=4 44S DIEZRXR(45,DIXR)=""142 F DIXR=459 S DIEZRXR(45,DIXR)="" 143 143 Q 144 144 X16 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=12 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 164 164 D ^DGPTX76 165 165 C21F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 166 F DIXR=4 45S DIEZRXR(45,DIXR)=""166 F DIXR=460 S DIEZRXR(45,DIXR)="" 167 167 Q 168 168 X21 D ICDEN^DGPTF5 Q:X="" S DIC("S")="S DGI=13 D EN3^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX75.m
r628 r636 1 DGPTX75 ; ;0 2/13/061 DGPTX75 ; ;04/03/06 2 2 S X=DE(21),DIC=DIE 3 3 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX76.m
r628 r636 1 DGPTX76 ; ;0 2/13/061 DGPTX76 ; ;04/03/06 2 2 S X=DG(DQ),DIC=DIE 3 3 X "N DG1 S DG1=$P(^DGPT(DA,0),""^"",1) N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T D:(+DG1>0) ADGRU^DGRUDD01(DG1)" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX77.m
r628 r636 1 DGPTX77 ; ;0 2/13/061 DGPTX77 ; ;04/03/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX78.m
r628 r636 1 DGPTX78 ; ;0 2/13/061 DGPTX78 ; ;04/03/06 2 2 ;; 3 1 N X,X1,X2 S DIXR=4 32D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=447 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 5 5 . D KDGPT9D^DGPTDDCR(.X,.DA,"DXLS") … … 15 15 S X=$G(X(1)) 16 16 Q 17 2 N X,X1,X2 S DIXR=4 34D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X17 2 N X,X1,X2 S DIXR=449 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X 18 18 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 19 19 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD1") … … 29 29 S X=$G(X(1)) 30 30 Q 31 3 N X,X1,X2 S DIXR=4 35D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X31 3 N X,X1,X2 S DIXR=450 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X 32 32 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 33 33 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD2") … … 43 43 S X=$G(X(1)) 44 44 Q 45 4 N X,X1,X2 S DIXR=4 36D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X45 4 N X,X1,X2 S DIXR=451 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X 46 46 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 47 47 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD3") … … 57 57 S X=$G(X(1)) 58 58 Q 59 5 N X,X1,X2 S DIXR=4 37D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X59 5 N X,X1,X2 S DIXR=452 D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X 60 60 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 61 61 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD4") … … 71 71 S X=$G(X(1)) 72 72 Q 73 6 N X,X1,X2 S DIXR=4 38D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X73 6 N X,X1,X2 S DIXR=453 D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X 74 74 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 75 75 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD5") … … 85 85 S X=$G(X(1)) 86 86 Q 87 7 N X,X1,X2 S DIXR=4 39D X7(U) K X2 M X2=X D X7("F") K X1 M X1=X87 7 N X,X1,X2 S DIXR=454 D X7(U) K X2 M X2=X D X7("F") K X1 M X1=X 88 88 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 89 89 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD6") … … 99 99 S X=$G(X(1)) 100 100 Q 101 8 N X,X1,X2 S DIXR=4 40D X8(U) K X2 M X2=X D X8("F") K X1 M X1=X101 8 N X,X1,X2 S DIXR=455 D X8(U) K X2 M X2=X D X8("F") K X1 M X1=X 102 102 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 103 103 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD7") … … 113 113 S X=$G(X(1)) 114 114 Q 115 9 N X,X1,X2 S DIXR=4 41D X9(U) K X2 M X2=X D X9("F") K X1 M X1=X115 9 N X,X1,X2 S DIXR=456 D X9(U) K X2 M X2=X D X9("F") K X1 M X1=X 116 116 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 117 117 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD8") -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX79.m
r628 r636 1 DGPTX79 ; ;0 2/13/061 DGPTX79 ; ;04/03/06 2 2 ;; 3 1 N X,X1,X2 S DIXR=4 42D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=457 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 5 5 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD9") … … 15 15 S X=$G(X(1)) 16 16 Q 17 2 N X,X1,X2 S DIXR=4 43D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X17 2 N X,X1,X2 S DIXR=458 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X 18 18 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 19 19 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD10") … … 29 29 S X=$G(X(1)) 30 30 Q 31 3 N X,X1,X2 S DIXR=4 44D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X31 3 N X,X1,X2 S DIXR=459 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X 32 32 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 33 33 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD11") … … 43 43 S X=$G(X(1)) 44 44 Q 45 4 N X,X1,X2 S DIXR=4 45D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X45 4 N X,X1,X2 S DIXR=460 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X 46 46 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 47 47 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD12") -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX8.m
r628 r636 1 DGPTX8 ; GENERATED FROM 'DG801' INPUT TEMPLATE(#1664), FILE 46.1; 09/05/071 DGPTX8 ; GENERATED FROM 'DG801' INPUT TEMPLATE(#1664), FILE 46.1;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGICD9(46.1,",DIC=DIE,DP=46.1,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGICD9(46.1,DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTX81.m
r628 r636 1 DGPTX81 ; ; 09/05/071 DGPTX81 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGICD9(46.1,",DIC=DIE,DP=46.1,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGICD9(46.1,DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXC.m
r628 r636 1 DGPTXC ; GENERATED FROM 'DG PTF CREATE PTF ENTRY' INPUT TEMPLATE(#443), FILE 45; 12/28/041 DGPTXC ; GENERATED FROM 'DG PTF CREATE PTF ENTRY' INPUT TEMPLATE(#443), FILE 45;04/07/05 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" … … 78 78 I $P(^DGPT(DA,0),U,4),$P(^(0),U) S ^DGPT("AFEE",$P(^DGPT(DA,0),U),$E(X,1,30),DA)="" 79 79 C1F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 80 F DIXR=4 32,433,434,435,436,437,438,439,440,441,442,443,444,445,446S DIEZRXR(45,DIXR)=""80 F DIXR=447,448,449,450,451,452,453,454,455,456,457,458,459,460,461 S DIEZRXR(45,DIXR)="" 81 81 Q 82 82 X1 Q … … 133 133 C5S S X="" G:DG(DQ)=X C5F1 K DB 134 134 C5F1 S DIEZRXR(45,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 135 F DIXR=4 32,433,434,435,436,437,438,439,440,441,442,443,444,445,446S DIEZRXR(45,DIXR)=""135 F DIXR=447,448,449,450,451,452,453,454,455,456,457,458,459,460,461 S DIEZRXR(45,DIXR)="" 136 136 Q 137 137 X5 Q -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXC1.m
r628 r636 1 DGPTXC1 ; ; 12/28/041 DGPTXC1 ; ;04/07/05 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXC2.m
r628 r636 1 DGPTXC2 ; ; 12/28/041 DGPTXC2 ; ;04/07/05 2 2 ;; 3 1 N X,X1,X2 S DIXR=4 32D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=447 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 5 5 . D KDGPT9D^DGPTDDCR(.X,.DA,"DXLS") … … 15 15 S X=$G(X(1)) 16 16 Q 17 2 N X,X1,X2 S DIXR=4 33D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X17 2 N X,X1,X2 S DIXR=448 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X 18 18 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 19 19 . D KDGPT9D^DGPTDDCR(.X,.DA,"PDX") … … 29 29 S X=$G(X(1)) 30 30 Q 31 3 N X,X1,X2 S DIXR=4 34D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X31 3 N X,X1,X2 S DIXR=449 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X 32 32 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 33 33 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD1") … … 43 43 S X=$G(X(1)) 44 44 Q 45 4 N X,X1,X2 S DIXR=4 35D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X45 4 N X,X1,X2 S DIXR=450 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X 46 46 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 47 47 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD2") … … 57 57 S X=$G(X(1)) 58 58 Q 59 5 N X,X1,X2 S DIXR=4 36D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X59 5 N X,X1,X2 S DIXR=451 D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X 60 60 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 61 61 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD3") … … 71 71 S X=$G(X(1)) 72 72 Q 73 6 N X,X1,X2 S DIXR=4 37D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X73 6 N X,X1,X2 S DIXR=452 D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X 74 74 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 75 75 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD4") … … 85 85 S X=$G(X(1)) 86 86 Q 87 7 N X,X1,X2 S DIXR=4 38D X7(U) K X2 M X2=X D X7("F") K X1 M X1=X87 7 N X,X1,X2 S DIXR=453 D X7(U) K X2 M X2=X D X7("F") K X1 M X1=X 88 88 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 89 89 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD5") … … 99 99 S X=$G(X(1)) 100 100 Q 101 8 N X,X1,X2 S DIXR=4 39D X8(U) K X2 M X2=X D X8("F") K X1 M X1=X101 8 N X,X1,X2 S DIXR=454 D X8(U) K X2 M X2=X D X8("F") K X1 M X1=X 102 102 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 103 103 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD6") … … 113 113 S X=$G(X(1)) 114 114 Q 115 9 N X,X1,X2 S DIXR=4 40D X9(U) K X2 M X2=X D X9("F") K X1 M X1=X115 9 N X,X1,X2 S DIXR=455 D X9(U) K X2 M X2=X D X9("F") K X1 M X1=X 116 116 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 117 117 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD7") -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXC3.m
r628 r636 1 DGPTXC3 ; ; 12/28/041 DGPTXC3 ; ;04/07/05 2 2 ;; 3 1 N X,X1,X2 S DIXR=4 41D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=456 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 5 5 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD8") … … 15 15 S X=$G(X(1)) 16 16 Q 17 2 N X,X1,X2 S DIXR=4 42D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X17 2 N X,X1,X2 S DIXR=457 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X 18 18 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 19 19 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD9") … … 29 29 S X=$G(X(1)) 30 30 Q 31 3 N X,X1,X2 S DIXR=4 43D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X31 3 N X,X1,X2 S DIXR=458 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X 32 32 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 33 33 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD10") … … 43 43 S X=$G(X(1)) 44 44 Q 45 4 N X,X1,X2 S DIXR=4 44D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X45 4 N X,X1,X2 S DIXR=459 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X 46 46 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 47 47 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD11") … … 57 57 S X=$G(X(1)) 58 58 Q 59 5 N X,X1,X2 S DIXR=4 45D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X59 5 N X,X1,X2 S DIXR=460 D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X 60 60 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 61 61 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD12") … … 71 71 S X=$G(X(1)) 72 72 Q 73 6 N X,X1,X2 S DIXR=4 46D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X73 6 N X,X1,X2 S DIXR=461 D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X 74 74 I $G(X(1))]"",$G(X(2))]"",$G(X(3))]"",$G(X(4))]"" D 75 75 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD13") -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX.m
r628 r636 1 DGPTXX ; DRIVER FOR COMPILED XREFS FOR FILE #45 ; 12/ 12/071 DGPTXX ; DRIVER FOR COMPILED XREFS FOR FILE #45 ; 12/27/07 2 2 ; 3 3 N DH,DU,DIKILL,DISET,DIKJ,DIKZ,DIKYR,DIKZA,DIK0Z,DIKZK,DIKDP,DIKM1,DIKUP,DIKUM,DV,DIIX,DIKF,DIAU,DIKNM,DIKDA,DIKLK,DIKLM,DIKY,DIXR,DIKCOND,DIKSVDA,DIKPUSH,X1,X2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX1.m
r628 r636 1 DGPTXX1 ; COMPILED XREF FOR FILE #45 ; 12/ 12/071 DGPTXX1 ; COMPILED XREF FOR FILE #45 ; 12/27/07 2 2 ; 3 3 S DIKZK=2 … … 98 98 S X=$P(DIKZ(0),U,1) 99 99 I X'="" K ^DGPT("B",$E(X,1,30),DA) 100 CR1 S DIXR=4 32100 CR1 S DIXR=447 101 101 K X 102 102 S X(1)=$P(DIKZ(0),U,1) … … 111 111 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 112 112 . D KDGPT9D^DGPTDDCR(.X,.DA,"DXLS") 113 CR2 S DIXR=4 33113 CR2 S DIXR=448 114 114 K X 115 115 S DIKZ(0)=$G(^DGPT(DA,0)) … … 125 125 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 126 126 . D KDGPT9D^DGPTDDCR(.X,.DA,"PDX") 127 CR3 S DIXR=4 34127 CR3 S DIXR=449 128 128 K X 129 129 S DIKZ(0)=$G(^DGPT(DA,0)) … … 139 139 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 140 140 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD1") 141 CR4 S DIXR=4 35141 CR4 S DIXR=450 142 142 K X 143 143 S DIKZ(0)=$G(^DGPT(DA,0)) … … 153 153 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 154 154 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD2") 155 CR5 S DIXR=4 36155 CR5 S DIXR=451 156 156 K X 157 157 S DIKZ(0)=$G(^DGPT(DA,0)) … … 167 167 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 168 168 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD3") 169 CR6 S DIXR=4 37169 CR6 S DIXR=452 170 170 K X 171 171 S DIKZ(0)=$G(^DGPT(DA,0)) … … 181 181 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 182 182 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD4") 183 CR7 S DIXR=4 38183 CR7 S DIXR=453 184 184 K X 185 185 S DIKZ(0)=$G(^DGPT(DA,0)) … … 195 195 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 196 196 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD5") 197 CR8 S DIXR=4 39197 CR8 S DIXR=454 198 198 K X 199 199 S DIKZ(0)=$G(^DGPT(DA,0)) … … 209 209 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 210 210 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD6") 211 CR9 S DIXR=4 40211 CR9 S DIXR=455 212 212 K X 213 213 S DIKZ(0)=$G(^DGPT(DA,0)) … … 223 223 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 224 224 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD7") 225 CR10 S DIXR=4 41225 CR10 S DIXR=456 226 226 K X 227 227 S DIKZ(0)=$G(^DGPT(DA,0)) … … 237 237 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 238 238 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD8") 239 CR11 S DIXR=4 42239 CR11 S DIXR=457 240 240 K X 241 241 S DIKZ(0)=$G(^DGPT(DA,0)) … … 251 251 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 252 252 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD9") 253 CR12 S DIXR=4 43253 CR12 S DIXR=458 254 254 K X 255 255 END G ^DGPTXX2 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX10.m
r628 r636 1 DGPTXX10 ; COMPILED XREF FOR FILE #45.01 ; 12/ 12/071 DGPTXX10 ; COMPILED XREF FOR FILE #45.01 ; 12/27/07 2 2 ; 3 3 S DA(1)=DA S DA=0 … … 18 18 S X=$P(DIKZ(0),U,12) 19 19 I X'="" S ^DGPT(DA(1),"S","AO",$E(X,1,30),DA)="" 20 CR1 S DIXR=4 2220 CR1 S DIXR=437 21 21 K X 22 22 S X(1)=$P(DIKZ(0),U,1) … … 26 26 . K X1,X2 M X1=X,X2=X 27 27 . D SDGPT0^DGPTDDCR(.X,.DA,"S",1) 28 CR2 S DIXR=4 2328 CR2 S DIXR=438 29 29 K X 30 30 S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0)) … … 35 35 . K X1,X2 M X1=X,X2=X 36 36 . D SDGPT0^DGPTDDCR(.X,.DA,"S",2) 37 CR3 S DIXR=4 2437 CR3 S DIXR=439 38 38 K X 39 39 S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0)) … … 44 44 . K X1,X2 M X1=X,X2=X 45 45 . D SDGPT0^DGPTDDCR(.X,.DA,"S",3) 46 CR4 S DIXR=4 2546 CR4 S DIXR=440 47 47 K X 48 48 S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0)) … … 53 53 . K X1,X2 M X1=X,X2=X 54 54 . D SDGPT0^DGPTDDCR(.X,.DA,"S",4) 55 CR5 S DIXR=4 2655 CR5 S DIXR=441 56 56 K X 57 57 S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX11.m
r628 r636 1 DGPTXX11 ; COMPILED XREF FOR FILE #45.02 ; 12/ 12/071 DGPTXX11 ; COMPILED XREF FOR FILE #45.02 ; 12/27/07 2 2 ; 3 3 S DA=0 … … 64 64 S X=$P(DIKZ(0),U,15) 65 65 I X'="" X ^DD(45.02,15,1,992,1) 66 CR1 S DIXR=4 4766 CR1 S DIXR=462 67 67 K X 68 68 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 73 73 . K X1,X2 M X1=X,X2=X 74 74 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD1") 75 CR2 S DIXR=4 4875 CR2 S DIXR=463 76 76 K X 77 77 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 82 82 . K X1,X2 M X1=X,X2=X 83 83 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD2") 84 CR3 S DIXR=4 4984 CR3 S DIXR=464 85 85 K X 86 86 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 91 91 . K X1,X2 M X1=X,X2=X 92 92 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD3") 93 CR4 S DIXR=4 5093 CR4 S DIXR=465 94 94 K X 95 95 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 100 100 . K X1,X2 M X1=X,X2=X 101 101 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD4") 102 CR5 S DIXR=4 51102 CR5 S DIXR=466 103 103 K X 104 104 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 109 109 . K X1,X2 M X1=X,X2=X 110 110 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD5") 111 CR6 S DIXR=4 52111 CR6 S DIXR=467 112 112 K X 113 113 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 118 118 . K X1,X2 M X1=X,X2=X 119 119 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD6") 120 CR7 S DIXR=4 53120 CR7 S DIXR=468 121 121 K X 122 122 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 127 127 . K X1,X2 M X1=X,X2=X 128 128 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD7") 129 CR8 S DIXR=4 54129 CR8 S DIXR=469 130 130 K X 131 131 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 136 136 . K X1,X2 M X1=X,X2=X 137 137 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD8") 138 CR9 S DIXR=4 55138 CR9 S DIXR=470 139 139 K X 140 140 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 145 145 . K X1,X2 M X1=X,X2=X 146 146 . D SDGPT9M^DGPTDDCR(.X,.DA,"M ICD9") 147 CR10 S DIXR=4 56147 CR10 S DIXR=471 148 148 K X 149 149 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX12.m
r628 r636 1 DGPTXX12 ; COMPILED XREF FOR FILE #45.05 ; 12/ 12/071 DGPTXX12 ; COMPILED XREF FOR FILE #45.05 ; 12/27/07 2 2 ; 3 3 S DA=0 … … 18 18 S X=$P(DIKZ(0),U,9) 19 19 I X'="" S ^DGPT(DA(1),"P","AP6",$E(X,1,30),DA)="" 20 CR1 S DIXR=4 2720 CR1 S DIXR=442 21 21 K X 22 22 S X(1)=$P(DIKZ(0),U,1) … … 26 26 . K X1,X2 M X1=X,X2=X 27 27 . D SDGPT0^DGPTDDCR(.X,.DA,"P",1) 28 CR2 S DIXR=4 2828 CR2 S DIXR=443 29 29 K X 30 30 S DIKZ(0)=$G(^DGPT(DA(1),"P",DA,0)) … … 35 35 . K X1,X2 M X1=X,X2=X 36 36 . D SDGPT0^DGPTDDCR(.X,.DA,"P",2) 37 CR3 S DIXR=4 2937 CR3 S DIXR=444 38 38 K X 39 39 S DIKZ(0)=$G(^DGPT(DA(1),"P",DA,0)) … … 44 44 . K X1,X2 M X1=X,X2=X 45 45 . D SDGPT0^DGPTDDCR(.X,.DA,"P",3) 46 CR4 S DIXR=4 3046 CR4 S DIXR=445 47 47 K X 48 48 S DIKZ(0)=$G(^DGPT(DA(1),"P",DA,0)) … … 53 53 . K X1,X2 M X1=X,X2=X 54 54 . D SDGPT0^DGPTDDCR(.X,.DA,"P",4) 55 CR5 S DIXR=4 3155 CR5 S DIXR=446 56 56 K X 57 57 S DIKZ(0)=$G(^DGPT(DA(1),"P",DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX13.m
r628 r636 1 DGPTXX13 ; COMPILED XREF FOR FILE #45.0535 ; 12/ 12/071 DGPTXX13 ; COMPILED XREF FOR FILE #45.0535 ; 12/27/07 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX14.m
r628 r636 1 DGPTXX14 ; COMPILED XREF FOR FILE #45.06 ; 12/ 12/071 DGPTXX14 ; COMPILED XREF FOR FILE #45.06 ; 12/27/07 2 2 ; 3 3 S DA=0 … … 12 12 S X=$P(DIKZ(0),U,6) 13 13 I X'="" D ADD^AUPNVSIT 14 CR1 S DIXR= 62414 CR1 S DIXR=200 15 15 K X 16 16 S X(1)=$P(DIKZ(0),U,1) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX2.m
r628 r636 1 DGPTXX2 ; COMPILED XREF FOR FILE #45 ; 12/ 12/071 DGPTXX2 ; COMPILED XREF FOR FILE #45 ; 12/27/07 2 2 ; 3 3 S DIKZ(0)=$G(^DGPT(DA,0)) … … 14 14 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 15 15 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD10") 16 CR13 S DIXR=4 4416 CR13 S DIXR=459 17 17 K X 18 18 S DIKZ(0)=$G(^DGPT(DA,0)) … … 29 29 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 30 30 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD11") 31 CR14 S DIXR=4 4531 CR14 S DIXR=460 32 32 K X 33 33 S DIKZ(0)=$G(^DGPT(DA,0)) … … 44 44 . S:$D(DIKIL) (X2,X2(1),X2(2),X2(3),X2(4),X2(5))="" 45 45 . D KDGPT9D^DGPTDDCR(.X,.DA,"D SD12") 46 CR15 S DIXR=4 4646 CR15 S DIXR=461 47 47 K X 48 48 S DIKZ(0)=$G(^DGPT(DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX3.m
r628 r636 1 DGPTXX3 ; COMPILED XREF FOR FILE #45.01 ; 12/ 12/071 DGPTXX3 ; COMPILED XREF FOR FILE #45.01 ; 12/27/07 2 2 ; 3 3 S DA(1)=DA S DA=0 … … 18 18 S X=$P(DIKZ(0),U,12) 19 19 I X'="" K ^DGPT(DA(1),"S","AO",$E(X,1,30),DA) 20 CR1 S DIXR=4 2220 CR1 S DIXR=437 21 21 K X 22 22 S X(1)=$P(DIKZ(0),U,1) … … 27 27 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 28 28 . D KDGPT0^DGPTDDCR(.X,.DA,"S",1) 29 CR2 S DIXR=4 2329 CR2 S DIXR=438 30 30 K X 31 31 S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0)) … … 37 37 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 38 38 . D KDGPT0^DGPTDDCR(.X,.DA,"S",2) 39 CR3 S DIXR=4 2439 CR3 S DIXR=439 40 40 K X 41 41 S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0)) … … 47 47 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 48 48 . D KDGPT0^DGPTDDCR(.X,.DA,"S",3) 49 CR4 S DIXR=4 2549 CR4 S DIXR=440 50 50 K X 51 51 S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0)) … … 57 57 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 58 58 . D KDGPT0^DGPTDDCR(.X,.DA,"S",4) 59 CR5 S DIXR=4 2659 CR5 S DIXR=441 60 60 K X 61 61 S DIKZ(0)=$G(^DGPT(DA(1),"S",DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX4.m
r628 r636 1 DGPTXX4 ; COMPILED XREF FOR FILE #45.02 ; 12/ 12/071 DGPTXX4 ; COMPILED XREF FOR FILE #45.02 ; 12/27/07 2 2 ; 3 3 S DA=0 … … 64 64 S X=$P(DIKZ(0),U,15) 65 65 I X'="" X ^DD(45.02,15,1,992,2) 66 CR1 S DIXR=4 4766 CR1 S DIXR=462 67 67 K X 68 68 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 74 74 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 75 75 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD1") 76 CR2 S DIXR=4 4876 CR2 S DIXR=463 77 77 K X 78 78 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 84 84 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 85 85 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD2") 86 CR3 S DIXR=4 4986 CR3 S DIXR=464 87 87 K X 88 88 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 94 94 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 95 95 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD3") 96 CR4 S DIXR=4 5096 CR4 S DIXR=465 97 97 K X 98 98 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 104 104 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 105 105 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD4") 106 CR5 S DIXR=4 51106 CR5 S DIXR=466 107 107 K X 108 108 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 114 114 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 115 115 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD5") 116 CR6 S DIXR=4 52116 CR6 S DIXR=467 117 117 K X 118 118 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 124 124 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 125 125 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD6") 126 CR7 S DIXR=4 53126 CR7 S DIXR=468 127 127 K X 128 128 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 134 134 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 135 135 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD7") 136 CR8 S DIXR=4 54136 CR8 S DIXR=469 137 137 K X 138 138 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 144 144 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 145 145 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD8") 146 CR9 S DIXR=4 55146 CR9 S DIXR=470 147 147 K X 148 148 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) … … 154 154 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 155 155 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD9") 156 CR10 S DIXR=4 56156 CR10 S DIXR=471 157 157 K X 158 158 S DIKZ(0)=$G(^DGPT(DA(1),"M",DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX5.m
r628 r636 1 DGPTXX5 ; COMPILED XREF FOR FILE #45.05 ; 12/ 12/071 DGPTXX5 ; COMPILED XREF FOR FILE #45.05 ; 12/27/07 2 2 ; 3 3 S DA=0 … … 18 18 S X=$P(DIKZ(0),U,9) 19 19 I X'="" K ^DGPT(DA(1),"P","AP6",$E(X,1,30),DA) 20 CR1 S DIXR=4 2720 CR1 S DIXR=442 21 21 K X 22 22 S X(1)=$P(DIKZ(0),U,1) … … 27 27 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 28 28 . D KDGPT0^DGPTDDCR(.X,.DA,"P",1) 29 CR2 S DIXR=4 2829 CR2 S DIXR=443 30 30 K X 31 31 S DIKZ(0)=$G(^DGPT(DA(1),"P",DA,0)) … … 37 37 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 38 38 . D KDGPT0^DGPTDDCR(.X,.DA,"P",2) 39 CR3 S DIXR=4 2939 CR3 S DIXR=444 40 40 K X 41 41 S DIKZ(0)=$G(^DGPT(DA(1),"P",DA,0)) … … 47 47 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 48 48 . D KDGPT0^DGPTDDCR(.X,.DA,"P",3) 49 CR4 S DIXR=4 3049 CR4 S DIXR=445 50 50 K X 51 51 S DIKZ(0)=$G(^DGPT(DA(1),"P",DA,0)) … … 57 57 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 58 58 . D KDGPT0^DGPTDDCR(.X,.DA,"P",4) 59 CR5 S DIXR=4 3159 CR5 S DIXR=446 60 60 K X 61 61 S DIKZ(0)=$G(^DGPT(DA(1),"P",DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX6.m
r628 r636 1 DGPTXX6 ; COMPILED XREF FOR FILE #45.0535 ; 12/ 12/071 DGPTXX6 ; COMPILED XREF FOR FILE #45.0535 ; 12/27/07 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX7.m
r628 r636 1 DGPTXX7 ; COMPILED XREF FOR FILE #45.06 ; 12/ 12/071 DGPTXX7 ; COMPILED XREF FOR FILE #45.06 ; 12/27/07 2 2 ; 3 3 S DA=0 … … 12 12 S X=$P(DIKZ(0),U,1) 13 13 I X'="" K ^DGPT(DA(1),"C","B",$E(X,1,30),DA) 14 CR1 S DIXR= 62414 CR1 S DIXR=200 15 15 K X 16 16 S X(1)=$P(DIKZ(0),U,1) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX8.m
r628 r636 1 DGPTXX8 ; COMPILED XREF FOR FILE #45 ; 12/ 12/071 DGPTXX8 ; COMPILED XREF FOR FILE #45 ; 12/27/07 2 2 ; 3 3 S DIKZK=1 … … 92 92 S X=$P(DIKZ(70),U,11) 93 93 I X'="" X ^DD(45,80,1,992,1) 94 CR1 S DIXR=4 3294 CR1 S DIXR=447 95 95 K X 96 96 S DIKZ(0)=$G(^DGPT(DA,0)) … … 105 105 . K X1,X2 M X1=X,X2=X 106 106 . D SDGPT9D^DGPTDDCR(.X,.DA,"DXLS") 107 CR2 S DIXR=4 33107 CR2 S DIXR=448 108 108 K X 109 109 S DIKZ(0)=$G(^DGPT(DA,0)) … … 118 118 . K X1,X2 M X1=X,X2=X 119 119 . D SDGPT9D^DGPTDDCR(.X,.DA,"PDX") 120 CR3 S DIXR=4 34120 CR3 S DIXR=449 121 121 K X 122 122 S DIKZ(0)=$G(^DGPT(DA,0)) … … 131 131 . K X1,X2 M X1=X,X2=X 132 132 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD1") 133 CR4 S DIXR=4 35133 CR4 S DIXR=450 134 134 K X 135 135 S DIKZ(0)=$G(^DGPT(DA,0)) … … 144 144 . K X1,X2 M X1=X,X2=X 145 145 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD2") 146 CR5 S DIXR=4 36146 CR5 S DIXR=451 147 147 K X 148 148 S DIKZ(0)=$G(^DGPT(DA,0)) … … 157 157 . K X1,X2 M X1=X,X2=X 158 158 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD3") 159 CR6 S DIXR=4 37159 CR6 S DIXR=452 160 160 K X 161 161 S DIKZ(0)=$G(^DGPT(DA,0)) … … 170 170 . K X1,X2 M X1=X,X2=X 171 171 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD4") 172 CR7 S DIXR=4 38172 CR7 S DIXR=453 173 173 K X 174 174 S DIKZ(0)=$G(^DGPT(DA,0)) … … 183 183 . K X1,X2 M X1=X,X2=X 184 184 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD5") 185 CR8 S DIXR=4 39185 CR8 S DIXR=454 186 186 K X 187 187 S DIKZ(0)=$G(^DGPT(DA,0)) … … 196 196 . K X1,X2 M X1=X,X2=X 197 197 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD6") 198 CR9 S DIXR=4 40198 CR9 S DIXR=455 199 199 K X 200 200 S DIKZ(0)=$G(^DGPT(DA,0)) … … 209 209 . K X1,X2 M X1=X,X2=X 210 210 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD7") 211 CR10 S DIXR=4 41211 CR10 S DIXR=456 212 212 K X 213 213 S DIKZ(0)=$G(^DGPT(DA,0)) … … 222 222 . K X1,X2 M X1=X,X2=X 223 223 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD8") 224 CR11 S DIXR=4 42224 CR11 S DIXR=457 225 225 K X 226 226 S DIKZ(0)=$G(^DGPT(DA,0)) … … 235 235 . K X1,X2 M X1=X,X2=X 236 236 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD9") 237 CR12 S DIXR=4 43237 CR12 S DIXR=458 238 238 K X 239 239 S DIKZ(0)=$G(^DGPT(DA,0)) … … 249 249 . K X1,X2 M X1=X,X2=X 250 250 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD10") 251 CR13 S DIXR=4 44251 CR13 S DIXR=459 252 252 K X 253 253 S DIKZ(0)=$G(^DGPT(DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTXX9.m
r628 r636 1 DGPTXX9 ; COMPILED XREF FOR FILE #45 ; 12/ 12/071 DGPTXX9 ; COMPILED XREF FOR FILE #45 ; 12/27/07 2 2 ; 3 CR14 S DIXR=4 453 CR14 S DIXR=460 4 4 K X 5 5 S DIKZ(0)=$G(^DGPT(DA,0)) … … 15 15 . K X1,X2 M X1=X,X2=X 16 16 . D SDGPT9D^DGPTDDCR(.X,.DA,"D SD12") 17 CR15 S DIXR=4 4617 CR15 S DIXR=461 18 18 K X 19 19 S DIKZ(0)=$G(^DGPT(DA,0)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGREG.m
r628 r636 1 DGREG ;ALB/JDS,MRL/PJR/PHH-REGISTER PATIENT ; 8/24/05 1:40pm 2 ;;5.3;Registration;**1,32,108,147,149,182,245,250,513,425,533,574,563,624,658**;Aug 13, 1993 1 DGREG ;ALB/JDS,MRL/PJR/PHH-REGISTER PATIENT ;1/27/07 13:08 2 ;;5.3;Registration;**1,32,108,147,149,182,245,250,513,425,533,574,563,624,658,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 ; 3 11 START ; 4 12 EN D LO^DGUTL S DGCLPR="" … … 10 18 I '$D(DGIO),$P(^DG(43,1,0),U,30) S %ZIS="N",IOP="HOME" D ^%ZIS I $D(IOS),IOS,$D(^%ZIS(1,+IOS,99)),$D(^%ZIS(1,+^(99),0)) S Y=$P(^(0),U,1) W !,"Using closest printer ",Y,! F I=10,"PRF","RT","HS" S DGIO(I)=Y 11 19 A D ENDREG($G(DFN)) 12 W !! S DIC=2,DIC(0)="ALEQM",DLAYGO=2 K DIC("S"),DIC("B") D ^DIC K DLAYGO G Q1:Y<0 S (DFN,DA)=+Y,DGNEW=$P(Y,"^",3) N Y D PAUSE^DG10 D BEGINREG(DFN) I DGNEW D NEW^DGRP 20 ; 21 ; ** VOE change 1 of 4: DAOU/WCJ 2/1/2005,VA/CJS,WV/TOAD 1/5/2006 ** 22 ; 23 ; if not VA agency code, add DIC("DR") to default some identifiers and 24 ; skip others also, improve readability 25 ; 26 ; before change: 27 ; W !! S DIC=2,DIC(0)="ALEQM",DLAYGO=2 K DIC("S"),DIC("B") D ^DIC K DLAYGO G Q1:Y<0 S (DFN,DA)=+Y,DGNEW=$P(Y,"^",3) N Y D PAUSE^DG10 D BEGINREG(DFN) I DGNEW D NEW^DGRP 28 ; 29 ; after change: 30 W !! 31 N Y,DGREGY S DGREGY=1 D I DGREGY<0 G Q1 32 . N DIC S DIC=2 ; Patient file 33 . S DIC(0)="ALEQM" ; ask, laygo, echo, question, and multi-index 34 . N DLAYGO S DLAYGO=2 ; override file access by user: allow laygo 35 . I $G(DUZ("AG"))'="V" D ;adjust identifiers asked for VOE 36 . . S DIC("DR")=".02;.03;994;.301///N;391///VISTA OFFICE EHR;1901///N;.09" 37 . ; 38 . D ^DIC ; Select Patient 39 . ; 40 . I Y<0 S DGREGY=-1 Q 41 . K DIC("DR") 42 . S (DFN,DA)=+Y 43 . S DGNEW=$P(Y,"^",3) ; new patient? 44 . N Y D PAUSE^DG10 ; prompt user before continuing 45 . D BEGINREG(DFN) ; lock patient record 46 ; 47 ; ** end of VOE change 1 ** 13 48 ; 14 49 ;; ask to continue if patient died - DG*5.3*563 - pjr 10/12/04 … … 18 53 D CIRN 19 54 ; 20 I +$G(DGNEW) D 55 ; ** VOE change 2 of 4: DAOU/WCJ 2/1/2005,VA/CJS,WV/TOAD 1/5/2006 ** 56 ; 57 I $G(DGNEW) D NEW^DGRP ; execute new patient DR string 58 ; 59 ; send CMOR query and display results only if VA agency code 60 ; 61 ; before change: 62 ; I +$G(DGNEW) D 63 ; 64 ; after change: 65 I $G(DGNEW),$G(DUZ("AG"))="V" D 66 . ; 67 . ; end of change 68 . ; 21 69 . ; query CMOR for Patient Record Flag Assignments if NEW patient and 22 70 . ; display results. 23 71 . I $$PRFQRY^DGPFAPI(DFN) D DISPPRF^DGPFAPI(DFN) 24 72 ; 25 D ROMQRY 73 ; before change: 74 ; D ROMQRY 75 ; 76 ; after change: 77 I $G(DUZ("AG"))="V" D ROMQRY 78 ; 79 ; ** end of VOE change 2 ** 26 80 ; 27 81 S (DGFC,CURR)=0 … … 30 84 D HINQ^DG10 31 85 I $D(^DIC(195.4,1,"UP")) I ^("UP") D ADM^RTQ3 32 D REG^IVMCQ($G(DFN)) ; send financial query 86 ; 87 ; ** VOE change 3 of 4: DAOU/WCJ 2/1/2005,VA/CJS,WV/TOAD 1/5/2006 ** 88 ; 89 ; send financial query only for VA agency code 90 ; 91 ; before change: 92 ; D REG^IVMCQ($G(DFN)) ; send financial query 93 ; 94 ; after change: 95 I $G(DUZ("AG"))="V" D REG^IVMCQ($G(DFN)) ; send financial query 96 ; 97 ; ** end of VOE change 3 ** 98 ; 33 99 G A1 34 100 ; … … 62 128 ; 63 129 S DA=DFN1,DIE("NO^")="",DA(1)=DFN,DP=2.101,DR="1///"_$S(SEEN=2:2,CURR=1:1,1:0)_";Q;2"_$S(CURR=1:"///3",1:"")_";2.1;3//"_$S($P(^DG(43,1,"GL"),"^",2):"",1:"/")_$S($D(^DG(40.8,+$P(^DG(43,1,"GL"),"^",3),0)):$P(^(0),"^",1),1:"")_";4////"_DUZ 130 ; 131 ; ** VOE change 4 of 4: DAOU/JLG 2/7/2005,VA/CJS,WV/TOAD 1/5/2006 ** 132 ; 133 ; for VOE or IHS agency codes, add the following: 134 ; force TYPE OF CARE with ALL OTHER 135 ; 136 I $G(DUZ("AG"))="E"!($G(DUZ("AG"))="I") D 137 . S DR="1///"_$S(SEEN=2:2,CURR=1:1,1:0)_";Q;2"_$S(CURR=1:"///3",1:"")_";2.1///5;3//"_$S($P(^DG(43,1,"GL"),"^",2):"",1:"/")_$S($D(^DG(40.8,+$P(^DG(43,1,"GL"),"^",3),0)):$P(^(0),"^",1),1:"")_";4////"_DUZ 138 ; 139 ; ** end of VOE change 4 ** 140 ; 64 141 D EL K DIC("A") N DGNDLOCK S DGNDLOCK=DIE_DFN1_")" L +@DGNDLOCK:2 G:'$T MSG D ^DIE L -@DGNDLOCK 65 142 I $D(DTOUT) D G Q -
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 ! -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGREGAZL.m
r628 r636 1 1 DGREGAZL ;ALB/DW - ZIP LINKING UTILITY ; 5/27/04 10:54am 2 ;;5.3;Registration;**522,560,581,730 ,760**;Aug 13, 1993;Build 112 ;;5.3;Registration;**522,560,581,730**;Aug 13, 1993;Build 2 3 3 ; 4 4 EN(RESULT,DFN) ;Let user edit zip+4, city, state, county based on zip-linking … … 43 43 I DGZIP="" Q DGZIP 44 44 D POSTALB^XIPUTIL(DGZIP,.DGDATA) 45 ;DG*730 - later commented out by DG*76046 ;I $G(DGDATA(1,"CITY ABBREVIATION"))'="",$G(DGDATA(1,"CITY ABBREVIATION"))=$G(DGDATA(2,"CITY")) S DGDATA=1 K DGDATA(2)45 ;DG*730 46 I $G(DGDATA(1,"CITY ABBREVIATION"))'="",$G(DGDATA(1,"CITY ABBREVIATION"))=$G(DGDATA(2,"CITY")) S DGDATA=1 K DGDATA(2) 47 47 I $D(DGDATA("ERROR")) D G ZAGN 48 48 . W $C(7)," ??" … … 52 52 ; ZIP - user input zip for the patient primary address 53 53 ; DFN - Interal entry number of Patient File (#2) 54 ; Output:RESULT=-1 (input error or time dor ^ out)54 ; Output:RESULT=-1 (input error or times or ^ out) 55 55 ; or =user input city 56 56 ; Array index # of selected city. … … 59 59 N DGCITY,DGST,DGCNTY,DGABRV,DGN,DGECH,DGSOC 60 60 N DOLDCITY,DGSAME,DGELEVEN 61 ; DG*760 brought in DGCITI62 N DGCITI63 61 S DGIND="" 64 62 D POSTALB^XIPUTIL(ZIP,.DGDATA) 65 ;DG*730 - later commented out by DG*76066 ;I $G(DGDATA(1,"CITY ABBREVIATION"))'="",$G(DGDATA(1,"CITY ABBREVIATION"))=$G(DGDATA(2,"CITY")) S DGDATA=1 K DGDATA(2)63 ;DG*730 64 I $G(DGDATA(1,"CITY ABBREVIATION"))'="",$G(DGDATA(1,"CITY ABBREVIATION"))=$G(DGDATA(2,"CITY")) S DGDATA=1 K DGDATA(2) 67 65 D FIELD^DID(2,.114,"N","LABEL","DGCITY") 68 66 S DGN="" … … 71 69 . S DGSAME=0 72 70 . F S DGN=$O(DGDATA(DGN)) Q:DGN="" D 73 .. S DGCITI=$P($G(DGDATA(DGN,"CITY")),"*",1)74 71 .. S DGABRV=$G(DGDATA(DGN,"CITY ABBREVIATION")) 75 .. I DOLDCITY'="",DGCITI=DOLDCITY!(DGABRV=DOLDCITY) S DGSAME=1 76 .. ; next 4 commented out lines done by DG*760 77 .. ;I DGABRV="" S DGABRV=$P($G(DGDATA(DGN,"CITY")),"*",1) 78 .. ;I DOLDCITY'="",DGABRV=DOLDCITY S DGSAME=1 79 .. ;I $G(DGDATA(DGN,"CITY"))["*" S:DGABRV'="" DGABRV=DGABRV_"*" 80 .. I $G(DGDATA(DGN,"CITY"))["*" S DGCITI=DGCITI_"*" 81 .. ;S DGECH=DGN_":"_DGABRV 82 .. S DGECH=DGN_":"_DGCITI 72 .. I DOLDCITY'="",DGABRV=DOLDCITY S DGSAME=1 73 .. I DGABRV="" S DGABRV=$P($G(DGDATA(DGN,"CITY")),"*",1) 74 .. I DOLDCITY'="",DGABRV=DOLDCITY S DGSAME=1 75 .. I $G(DGDATA(DGN,"CITY"))["*" S:DGABRV'="" DGABRV=DGABRV_"*" 76 .. S DGECH=DGN_":"_DGABRV 83 77 .. S DGSOC=$S($G(DGSOC)="":DGECH,1:DGSOC_";"_DGECH) 84 78 .. S DGTOT=DGN … … 111 105 . I $D(DUOUT)!$D(DIROUT) D UPCT^DGREGAED G CAGN2 112 106 . S RESULT=$G(Y) 113 I $L($G(RESULT))>15 D 114 . S DGN=Y 115 . S RESULT=$G(DGDATA(DGN,"CITY ABBREVIATION")) 107 I $L($G(RESULT))>15 S RESULT=$E(RESULT,1,15) 116 108 Q DGIND 117 109 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRP1.m
r628 r636 1 DGRP1 ;ALB/MRL,ERC - DEMOGRAPHIC DATA ; 06/22/06 2 ;;5.3;Registration;**109,161,506,244,546,570,629,638,649,700,653**;Aug 13, 1993;Build 2 1 DGRP1 ;ALB/MRL - DEMOGRAPHIC DATA ;1/8/07 09:14 2 ;;5.3;Registration;**109,161,506,244,546,570,629,638,649,700,653,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 19 ; 20 ; 2005 03 18 (VA/JT): DG*5.3*629, stop Missing Patient message based 21 ; on questionable data in Missing Person Date fld (.153). 22 ; 23 ; 2005 04 25? (VA/MRY): DG*5.3*638, add Sex to IDs shown. 24 ; 25 ; 2005 04 27 (VA/JT): DG*5.3*649, change last $EXTRACT for Alias SSN in 26 ; GETNCAL to 10 chars instead of 9, to preserve trailing P for pseudo- 27 ; SSNs. 28 ; 29 ; 2006 04 21 (WV/TOAD, after DAOU/WCJ (2005 02 07) and 30 ; VA/CJS (2005/12/23)): restore 6-part VOE change; space dots and 31 ; semi-colons. 32 ; 33 ; 2006 05 09 (WV/TOAD): rewrite VOE change to fix bugs introduced by 34 ; VA and VOE, and completely refactor bug-prone GETNCAL, and merge back 35 ; into main subroutine body. 3 36 ; 4 37 EN S (DGRPS,DGRPW)=1 D H^DGRPU F I=0,.11,.121,.13,.15,.24,57,"SSN" S DGRP(I)=$S($D(^DPT(DFN,I)):^(I),1:"") 5 38 I $P(DGRP(.15),"^",2)]"" S Z="APPLICANT IS LISTED AS 'INELIGIBLE' FOR TREATMENT!",DGRPCM=1 D WW^DGRPV S DGRPCM=0 6 39 ;I $P(DGRP(.15),"^",3)]"" S Z="APPLICANT IS LISTED AS 'MISSING'. NOTIFY APPROPRIATE PERSONNEL!",DGRPCM=1 D WW^DGRPV S DGRPCM=0 40 ; 41 ; ** VOE change 1 of 3 ** 42 ; 43 ; if EHR agency code, display Registration Date (Date Entered into 44 ; File, .097) 45 ; 46 ; new lines: 47 I $G(DUZ("AG"))="E" D 48 . W !?58,"Reg Dt: ",$$FMTE^XLFDT($P(DGRP(0),U,16),"2D") 49 ; 50 ; 51 ; show field groups 1 and 2 in two columns 52 ; 53 ; field groups 1 & 2 part 1: show Name, SSN, and DOB 54 ; 55 ; 56 ; ** end of VOE change 1 ** 57 ; 7 58 W ! S Z=1 D WW^DGRPV W " Name: " S Z=$P(DGRP(0),"^",1),Z1=31 D WW1^DGRPV 8 59 W "SS: " S X=$P(DGRP(0),"^",9),Z=$E(X,1,3)_"-"_$E(X,4,5)_"-"_$E(X,6,10),Z1=13 D WW1^DGRPV … … 17 68 . . Q:$G(DGREAS)']"" 18 69 . . W DGREAS 19 D GETNCAL ;Display name component, sex, and alias information 70 ; 71 ; ** VOE change 2 of 3 ** 72 ; 73 ; eliminate unnecessary subroutine GETNCAL and merge code back into 74 ; the main subroutine, and make the following changes: 75 ; 76 ; For EHR or IHS agency code, show Health Record No. (.02) for the 77 ; current Facility from the Health Record No. multiple field 78 ; (4101/9000001.41) of the IHS Patient file (9000001) for the current 79 ; patient. 80 ; 81 ; Move Sex field over so it shows up in the same location for 82 ; VA, IHS, and EHR, leaving a blank for where HRN can appear. 83 ; 84 ; Fix the VA bug in which patients having five valid aliases 85 ; were showing "< More alias entries on file >" instead of the fifth 86 ; alias. 87 ; 88 ; Refactor entire subroutine: clean original design was broken 89 ; by patching and had become fragile and confusing; tighten variable 90 ; scopes, use clearer names, comment. 91 ; 92 ; before: 93 ; 94 ; D GETNCAL ;Display name component, sex, and alias information 95 ; 96 ; after: 97 ; 98 ; field groups 1 & 2 part 2: load name components 99 ; 100 ; 101 N DGLABEL S DGLABEL="^ Given^Middle^Prefix^Suffix^Degree" ; labels 102 N DGCOMP S DGCOMP=+$G(^DPT(DFN,"NAME"))_"," ; Name Components fd (1.01) 103 I DGCOMP D GETS^DIQ(20,DGCOMP,"1:6",,"DGCOMP") ; Name Components file 104 ; loads Family (Last) Name (1), Given (First) Name (2), 105 ; Middle Name (3), Prefix (4), Suffix (5), and Degree (6) 106 ; 107 ; 108 ; field groups 1 & 2 part 3: load aliases 109 ; 110 ; 111 N DGCOUNT S DGCOUNT=0 ; how many aliases do we find 112 N DGALIAS S DGALIAS=0 ; IEN of Alias subfile (1/2.01) of Patient fl (2) 113 ; and array of aliases found 114 S DGALIAS=0 F D Q:'DGALIAS 115 . ; 116 . S DGALIAS=$O(^DPT(DFN,.01,DGALIAS)) 117 . Q:'DGALIAS ; out of alias subrecords 118 . N DGNODE S DGNODE=$G(^DPT(DFN,.01,DGALIAS,0)) ; 0-node of subrecord 119 . Q:'$L(DGNODE) ; bad node 120 . ; 121 . S DGCOUNT=DGCOUNT+1 ; another valid alias 122 . I DGCOUNT=6 S DGALIAS=0 Q ; can't show > 5, need to know if 6 or > 123 . ; 124 . S DGALIAS(DGCOUNT)=$P(DGNODE,U) ; Alias fld (.01) 125 . ; 126 . N DGSSN S DGSSN=$P(DGNODE,U,2) ; Alias SSN fld (1) 127 . I $L(DGSSN) D 128 . . S DGSSN=" "_$E(DGSSN,1,3)_"-"_$E(DGSSN,4,5)_"-"_$E(DGSSN,6,10) 129 . . ; incl leading space to separate from alias name 130 . . ; incl 10 chars to allow for P of pseudo-SSNs 131 . . S $E(DGALIAS(DGCOUNT),20)=DGSSN ; truncate alias name & append SSN 132 . ; 133 . S DGALIAS(DGCOUNT)=$E(DGALIAS(DGCOUNT),1,32) ; truncate alias 134 ; 135 I DGCOUNT=0 S DGALIAS(1)="< No alias entries on file >" 136 I DGCOUNT=6 S DGALIAS(5)="< More alias entries on file >" 137 K DGCOUNT 138 ; 139 ; 140 ; field groups 1 & 2 part 4: show 1st name component, and IDs HRN & Sex 141 ; 142 ; 143 W !?5,"Family: " 144 W $E($G(DGCOMP(20,DGCOMP,1)),1,27) 145 ; 146 I "EI"[$G(DUZ("AG")),$G(DUZ(2)) D 147 . N DGNODE S DGNODE=$G(^AUPNPAT(DFN,41,DUZ(2),0)) ; get 0-node for the 148 . ; current Facility from the Health Record No. multiple field 149 . ; (4101/9000001.41) for DFN in the IHS Patient file (9000001) 150 . N DGHRN S DGHRN=$P(DGNODE,U,2) ; Health Record No. (.02) 151 . W ?42," HRN: ",DGHRN 152 ; 153 D 154 . N DGSEX S DGSEX=$P(DGRP(0),U,2) ; Sex fld (.02) of Patient file (2) 155 . W ?61,"Sex: ",$S(DGSEX="M":"MALE",DGSEX="F":"FEMALE",1:"UNANSWERED") 156 ; 157 ; 158 ; field groups 1 & 2 part 5: show remaining name components and aliases 159 ; 160 ; 161 N DGCOUNT F DGCOUNT=2:1:6 D 162 . W !?5,$P(DGLABEL,U,DGCOUNT),": " 163 . N DGNAME S DGNAME=$G(DGCOMP(20,DGCOMP,DGCOUNT)) ; next name component 164 . W $E(DGNAME,1,$S(DGCOUNT=2:23,1:27)) ; 1st line leaves room for "[2]" 165 . I DGCOUNT=2 D ; header for aliases 166 . . W ?37 N DGRPW,Z S DGRPW=0,Z=2 D WW^DGRPV ; write [2], suppress LF 167 . . W " Alias: " 168 . W ?47,$G(DGALIAS(DGCOUNT-1)) ; show next alias 169 ; 170 ; 171 ; show field group 3: remarks 172 ; 173 ; 174 ; ** end of VOE change 2 ** 175 ; 20 176 S Z=3,DGRPX=DGRP(0) D WW^DGRPV W " Remarks: ",$S($P(DGRPX,"^",10)]"":$E($P(DGRPX,"^",10),1,65),1:"NO REMARKS ENTERED FOR THIS PATIENT") S DGAD=.11,(DGA1,DGA2)=1 D A^DGRPU I $P(DGRP(.121),"^",9)="Y" S DGAD=.121,DGA1=1,DGA2=2 D A^DGRPU 21 177 S Z=4 D WW^DGRPV W " Permanent Address: " S Z=" ",Z1=17 … … 29 185 S X="NOT APPLICABLE" I $P(DGRP(.121),U,9)="Y" S Y=$P(DGRP(.121),U,7) X:Y]"" ^DD("DD") S X=$S(Y]"":Y,1:DGRPU)_"-",Y=$P(DGRP(.121),U,8) X:Y]"" ^DD("DD") S X=X_$S(Y]"":Y,1:DGRPU) 30 186 W !?3,"Office: ",$S($P(DGRP(.13),U,2)]"":$P(DGRP(.13),U,2),1:DGRPU),?42,"From/To: ",X 187 ; 188 ; ** VOE change 3 of 3 ** 189 ; 190 ; if EHR agency code, display Alternate Phone Number (.134) 191 ; 192 ; new lines: 193 I $G(DUZ("AG"))="E" D 194 . W !?1,"Alt Ph: ",$P($G(^DPT(DFN,.13)),U,4) 195 ; 196 ; ** end of VOE change 3 ** 197 ; 31 198 W !?1,"Bad Addr: ",$$EXTERNAL^DILFD(2,.121,"",$P(DGRP(.11),U,16)) 32 199 ; … … 50 217 G ^DGRPP 51 218 ; 52 GETNCAL ;Get name component values53 N DGCOMP,DGNC,DGI,DGA,DGALIAS,DGX,DGRPW54 S DGNC="Family^Given^Middle^Prefix^Suffix^Degree"55 S DGCOMP=+$G(^DPT(DFN,"NAME"))_","56 I DGCOMP D GETS^DIQ(20,DGCOMP,"1:6",,"DGCOMP")57 ;Get alias values58 S DGA=0 F DGI=1:1:5 D Q:'$D(DGALIAS(DGI))59 A2 .S DGA=$O(^DPT(DFN,.01,DGA))60 .I 'DGA D:DGI=1 Q61 ..S DGALIAS(DGI)="< No alias entries on file >" Q62 .I DGI=5 S DGALIAS(DGI)="< More alias entries on file >" Q63 .S DGX=$G(^DPT(DFN,.01,DGA,0)) G:'$L(DGX) A264 .S DGALIAS(DGI)=$P(DGX,U),DGX=$P(DGX,U,2)65 .I $L(DGX) D66 ..S DGX=" "_$E(DGX,1,3)_"-"_$E(DGX,4,5)_"-"_$E(DGX,6,9)67 ..; BAJ DG*5.3*700 retrofit 06/22/0668 ..S DGALIAS(DGI)=$E(DGALIAS(DGI),1,19)69 ..S $E(DGALIAS(DGI),20)=DGX Q70 .S DGALIAS(DGI)=$E(DGALIAS(DGI),1,32)71 .Q72 ;Display name component, sex, multiple birth indicator and alias data73 F DGI=1:1:6 D74 .W !?5,$J($P(DGNC,U,DGI),6),": ",$E($G(DGCOMP(20,DGCOMP,DGI)),1,$S(DGI=1:23,1:27))75 .I DGI=1 S (Z,DGRPW)=1 W ?43,"Sex: " S X=$P(DGRP(0),"^",2),Z=$S(X="M":"MALE",X="F":"FEMALE",1:DGRPU),Z1=3 D WW1^DGRPV76 .; BAJ DG*5.3*700 retrofit 06/220677 .I DGI=1 S (Z,DGRPW)=1 W ?56,"MBI: " S X=$P($G(^DPT(DFN,"MPIMB")),U),Z=$S(X="N":"NO",X="Y":"*MULTIPLE BIRTH*",1:DGRPU),Z1=16 D WW1^DGRPV78 .I DGI=2 S DGRPW=0,Z=2 W ?37 D WW^DGRPV W " Alias: "79 .I DGI>1 W ?47,$G(DGALIAS(DGI-1))80 .Q81 Q82 219 SSNREAS(DGREAS) ;get Pseuso SSN Reason - DG*5.3*653, ERC 83 220 S DGREAS=$P(DGRP("SSN"),U) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRP14.m
r628 r636 1 1 DGRP14 ;ALB/MRL/EG/GAH - REGISTRATION SCREEN 14/APPOINTMENT INFORMATION ; 10/18/06 2 ;;5.3;Registration;**568,585,725 ,770**;Aug 13, 1993;Build 42 ;;5.3;Registration;**568,585,725**;Aug 13, 1993;Build 12 3 3 S DGRPS=14 D H^DGRPU S (Z,DGRPW)=1 D WW^DGRPV W " Enrollment Clinics: " 4 4 S I1="" … … 17 17 .;check to see if appointment is cancelled, if so 18 18 .;ignore this appointment eg 01/25/2005 19 . ;I $$CANCEL(DFN,APTDT)="Y" Q TAKEN OUT IN PATCH 770.19 .I $$CANCEL(DFN,APTDT)="Y" Q 20 20 .S CLNAM=$P($P(^TMP($J,"SDAMA301",DFN,APTDT),U,2),";",2) 21 21 .S X=$S(CLNAM]"":CLNAM,1:"UNKNOWN CLINIC")_" ("_$$FMTE^DILIBF(APTDT,"5U")_"), " W:(79-$X)<$L(X) !?24 W X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRP2.m
r628 r636 1 DGRP2 ;ALB/MRL,BRM - REGISTRATION SCREEN 2/CONTACT INFORMATION ;06 JUN 88@2300 2 ;;5.3;Registration;**415,545,638,677,760**;Aug 13, 1993;Build 11 1 DGRP2 ;ALB/MRL,BRM - REGISTRATION SCREEN 2/CONTACT INFORMATION ; 1/5/2006 23:54 2 ;;5.3;Registration;**415,545,638,677,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 S DGRPS=2 D H^DGRPU F I=0,.24,57,1010.15 S DGRP(I)=$S($D(^DPT(DFN,I)):^(I),1:"") 4 20 S DGRPX=DGRP(0) … … 9 25 ;S DGRPX=DGRP(0) 10 26 W !?4,"Religion: ",$S($D(^DIC(13,+$P(DGRPX,"^",8),0)):$P(^(0),"^",1),1:DGRPU),?41,"Father: ",$S($P(DGRP(.24),"^",1)]"":$E($P(DGRP(.24),"^",1),1,29),1:DGRPU) 11 S X=$P(DGRP(57),"^",4),X=$S(X']"":DGRPU,X="X":"NOT APPLICABLE",X=1:"PARA,",X=2:"QUAD,",X=3:"PARA,NON",1:"QUAD,NON"),X=$S("Q P"[$E(X):X_"TRAUMATIC",1:X) W !?9,"SCI: ",X27 S X=$P(DGRP(57),"^",4),X=$S(X']"":DGRPU,X="X":"NOT APPLICABLE",X=1:"PARA,",X=2:"QUAD,",X=3:"PARA,NON",1:"QUAD,NON"),X=$S("QD"[$E(X):X_"TRAUMATIC",1:X) W !?9,"SCI: ",X 12 28 W ?41,"Mother: ",$S($P(DGRP(.24),"^",2)]"":$E($P(DGRP(.24),"^",2),1,29),1:DGRPU) 13 29 W !,?35,"Mom's Maiden: ",$S($P(DGRP(.24),"^",3)]"":$E($P(DGRP(.24),"^",3),1,29),1:DGRPU) 14 W ! S Z=2 D WW^DGRPV W " Previous Care Date Location of Previous Care",!?4,"------------------ -------------------------" S DGRPX=DGRP(1010.15) I $P(DGRPX,"^",5)'="Y" S X="NONE INDICATED" W !?4,X,?28,X 15 E F I=1:1:4 S I1=$P(DGRPX,"^",I) X "I I#2 S Y=I1 X:Y]"""" ^DD(""DD"") W !?4,$S(Y]"""":Y,1:DGRPU)" I '(I#2) W ?28,$S($D(^DIC(4,+I1,0)):$P(^(0),"^",1),1:DGRPU) 30 ; 31 ; ** start of VOE change: DAOU,VA/CJS,WV/TOAD 1/5/2006 ** 32 ; 33 ; New VOE Patient fields 34 ; 35 ; insert 7 lines: 36 ; 37 I $G(DUZ("AG"))="E" D 38 . W !?4,"Veteran: ",$$GET1^DIQ(2,DFN,19902) 39 . W !,"Interpreter Language: " 40 . N IL S IL="" 41 . N I F I=1:1 S IL=$O(^DPT(DFN,19901,"B",IL)) Q:IL="" D 42 . . I I'=1 W "," 43 . . W $$GET1^DIQ(.85,IL,1) 44 ; 45 ; next three groups of lines have been conditionalized to only display 46 ; for VA agency code; also, refactored for clarity 47 ; 48 I $G(DUZ("AG"))="V" D 49 . W ! S Z=2 D WW^DGRPV 50 . W " Previous Care Date Location of Previous Care" 51 . W !?4,"------------------ -------------------------" 52 . S DGRPX=DGRP(1010.15) 53 . ; 54 . I $P(DGRPX,"^",5)'="Y" D 55 . . S X="NONE INDICATED" 56 . . W !?4,X,?28,X 57 . ; 58 . E F I=1:1:4 D 59 . . S I1=$P(DGRPX,"^",I) 60 . . X "I I#2 S Y=I1 X:Y]"""" ^DD(""DD"") W !?4,$S(Y]"""":Y,1:DGRPU)" 61 . . I '(I#2) W ?28,$S($D(^DIC(4,+I1,0)):$P(^(0),"^",1),1:DGRPU) 62 ; 63 ; ** end of VOE change ** 64 ; 16 65 W ! S Z=3 D WW^DGRPV W " Ethnicity: " D 17 66 .I '$O(^DPT(DFN,.06,0)) W "UNANSWERED" Q -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRP3.m
r628 r636 1 DGRP3 ;ALB/MRL - REGISTRATION SCREEN 3/CONTACT INFORMATION ;06 JUN 88@2300 2 ;;5.3;Registration;;Aug 13, 1993 1 DGRP3 ;ALB/MRL - REGISTRATION SCREEN 3/CONTACT INFORMATION ;11/5/06 20:31 2 ;;5.3;Registration;**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 S DGRPW=1,DGRPS=3 D H^DGRPU F I=.21,.211,.33,.331,.34 S DGRP(I)=$S($D(^DPT(DFN,I)):^(I),1:"") 4 20 S DGAD=.21,DGA1=3,DGA2=1 D:$P(DGRP(.21),"^",1)]"" AL^DGRPU(24) S DGAD=.211,DGA1=3,DGA2=2 D:$P(DGRP(.211),"^",1)]"" AL^DGRPU(27) … … 11 27 F I=0:0 S I=$O(DGA(I)) Q:'I S Z=" "_$E(DGA(I),1,27) W !,Z 12 28 W !?7,"Phone: ",$P(X,"^",3),?41,"Work Phone: ",$P(X,"^",4) 29 ;New EHR code ;DAOU/WCJ 2/7/05 30 ;New fields for agency EHR 31 I $G(DUZ("AG"))="E" S DGRPW=0,Z=6 W ! D WW^DGRPV S DGRPI=$G(^DPT(DFN,19900)) D 32 .W "Year arrived in U.S.: ",$P(DGRPI,"^",6),! 33 .W "Mother's Country of Birth: ",$P(DGRPI,"^",4),! 34 .W "Father's Country of Birth: ",$P(DGRPI,"^",5),! 35 ;End EHR modifications 13 36 Q K DGRPI,DGRPI1 14 37 G ^DGRPP -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPCE.m
r628 r636 1 DGRPCE ;ALB/MRL,KV,PJR,BRM,ERC - CONSISTENCY CHECKER, EDIT INCONSISTENCIES ; 12/14/04 9:42am 2 ;;5.3;Registration;**121,122,175,297,342,451,626,689,653**;Aug 13, 1993;Build 2 1 DGRPCE ;ALB/MRL,KV,PJR,BRM - CONSISTENCY CHECKER, EDIT INCONSISTENCIES ; 12/14/04 9:42am 2 ;;5.3;Registration;**121,122,175,297,342,451,626,689,653,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 ; 4 20 ;KV;11/15/00;DG*5.3*297;Disable addition of CD Elig Code in Reg. Screens … … 9 25 S DGEK=0 F I=9,10,11,12,13,14,18,19,20,22,24,36,51 Q:DGEK I DGER[(","_I_",") S DGEK=1 Q 10 26 I 'DGKEY(1) D:DGEK ELDR S I=15 D SASK S I=23 D SASK 27 ;New EHR code DAOU/WCJ 2/5/05 28 ;skip veteran related fields for agency EHR 29 G NKEY:$G(DUZ("AG"))="E" 30 ;End EHR new code 11 31 F I=29,30,31,32,33,43,44,45,48,56 D SASK,MON:DGCCF S DGCCF=0 12 32 G NKEY:DGKEY(3) F I=25,26,27,28,34,35 D SASK … … 39 59 S DGDRC=DGDRC+1,DGDR="DR(1,2,"_DGDRC_")",@DGDR=DGD,DGD="" Q 40 60 ELDR S DGASK=DGASK_"9,10,11,12,13,14,18,19,20,24,29,30,31,34,36,37,38," 41 I 'DGKEY(1) S DGD="391;1901;S DGVTYN=$S($D(^DPT(DFN,""VET"")):$P(^(""VET""),""^"",1),1:"""");S:X'=""Y"" Y=""@1"";.301;S:X'=""Y"" Y=""@1"";.302;@1;" D SAVE 42 I 'DGKEY(2) F I=29,30,31 S DGD=$P($T(@I),";;",2,999) D SAVE 43 D:DGD]"" SAVE I 'DGKEY(3) S DGD=$P($T(34),";;",2,999) D SAVE S DGD=$P($T(51),";;",2,999) D SAVE 61 ;Previous VA code prior to EHR changes 62 ;I 'DGKEY(1) S DGD="391;1901;S DGVTYN=$S($D(^DPT(DFN,""VET"")):$P(^(""VET""),""^"",1),1:"""");S:X'=""Y"" Y=""@1"";.301;S:X'=""Y"" Y=""@1"";.302;@1;" D SAVE 63 ;I 'DGKEY(2) F I=29,30,31 S DGD=$P($T(@I),";;",2,999) D SAVE 64 ;D:DGD]"" SAVE I 'DGKEY(3) S DGD=$P($T(34),";;",2,999) D SAVE S DGD=$P($T(51),";;",2,999) D SAVE 65 ;New code DAOU/WCJ 2/5/05 Skip veteran specific fields 66 I 'DGKEY(1),$G(DUZ("AG"))'="E" S DGD="391;1901;S DGVTYN=$S($D(^DPT(DFN,""VET"")):$P(^(""VET""),""^"",1),1:"""");S:X'=""Y"" Y=""@1"";.301;S:X'=""Y"" Y=""@1"";.302;@1;" D SAVE 67 I 'DGKEY(2),$G(DUZ("AG"))'="E" F I=29,30,31 S DGD=$P($T(@I),";;",2,999) D SAVE 68 D:DGD]"" SAVE I 'DGKEY(3),$G(DUZ("AG"))'="E" S DGD=$P($T(34),";;",2,999) D SAVE S DGD=$P($T(51),";;",2,999) D SAVE 69 ;End new code DAOU/WCJ 2/5/05 44 70 I 'DGKEY(1) D ELIG^DGRPCE1 45 71 Q -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPD.m
r628 r636 1 DGRPD ;ALB/MRL/MLR/JAN/LBD/EG/BRM/JRC-PATIENT INQUIRY (NEW) ; 3/9/06 11:17am 2 ;;5.3;Registration;**109,124,121,57,161,149,286,358,436,445,489,498,506,513,518,550,545,568,585,677,703**;Aug 13, 1993 1 DGRPD ;ALB/MRL/MLR/JAN/LBD/EG/BRM/JRC-PATIENT INQUIRY (NEW) ;1/27/07 13:14 2 ;;5.3;Registration;**109,124,121,57,161,149,286,358,436,445,489,498,506,513,518,550,545,568,585,677,703,634**;Aug 13, 1993;Build 28 3 ; Modified from FOIA VISTA 4 ; GPL Copyright (C) 2007 WorldVistA 3 5 ; *286* Newing variables X,Y in OKLINE subroutine 4 ; *358* If a patient is on a domiciliary ward, don't display MEANS 5 ; TEST required/Medication Copayment Exemption messages 6 ; *436* If an inpatient is not on a domiciliary ward, don't display 7 ; Medication Copayment Exemption message 8 ; *545* Add death information near the remarks field 9 ; *677* Added Emergency Response 6 ; 10 7 SEL K DFN,DGRPOUT W ! S DIC="^DPT(",DIC(0)="AEQMZ" D ^DIC G Q:Y'>0 S DFN=+Y N Y W ! S DIR(0)="E" D ^DIR G SEL:$D(DTOUT)!($D(DUOUT)) D EN G SEL 8 ; 11 9 EN ;call to display patient inquiry - input DFN 12 10 ;MPI/PD CHANGE … … 51 49 .F X=2:1 Q:'$D(RACE(X,0))&'$D(ETHNIC(X,0)) W !,?9,$G(RACE(X,0)),?51,$G(ETHNIC(X,0)) 52 50 I '$$OKLINE(16) G Q 53 ;display cv status #4156 54 N DGCV S DGCV=$$CVEDT^DGCV(+DFN) 55 W !!,?2,"Combat Vet Status: "_$S($P(DGCV,U,3)=1:"ELIGIBLE",$P(DGCV,U,3)="":"NOT ELIGIBLE",1:"EXPIRED") I DGCV>0 W ?45,"End Date: "_$$FMTE^XLFDT($P(DGCV,U,2),"5DZ") 51 ; 52 ; VOE change 53 ; 54 I DUZ("AG")="V" D 55 . ;display cv status #4156 56 . N DGCV S DGCV=$$CVEDT^DGCV(+DFN) 57 . W !!,?2,"Combat Vet Status: "_$S($P(DGCV,U,3)=1:"ELIGIBLE",$P(DGCV,U,3)="":"NOT ELIGIBLE",1:"EXPIRED") I DGCV>0 W ?45,"End Date: "_$$FMTE^XLFDT($P(DGCV,U,2),"5DZ") 58 ; 59 ; end VOE change 60 ; 56 61 ;display primary eligibility 57 62 S X1=DGRP(.36),X=$P(DGRP(.361),"^",1) W !,"Primary Eligibility: ",$S($D(^DIC(8,+X1,0)):$P(^(0),"^",1)_" ("_$S(X="V":"VERIFIED",X="P":"PENDING VERIFICATION",X="R":"PENDING REVERIFICATION",1:"NOT VERIFIED")_")",1:DGRPU) … … 111 116 HDR I '$D(IOF) S IOP="HOME" D ^%ZIS K IOP 112 117 ;MPI/PD CHANGE 113 W @IOF,!,$P(VADM(1),"^",1),?40,$P(VADM(2),"^",2),?65,$P(VADM(3),"^",2) S X="",$P(X,"=",78)="" W !,X,!?15,"COORDINATING MASTER OF RECORD: ",DGCMOR,! Q 118 ; VOE CHANGE 119 ; W @IOF,!,$P(VADM(1),"^",1),?40,$P(VADM(2),"^",2),?65,$P(VADM(3),"^",2) S X="",$P(X,"=",78)="" W !,X,!?15,"COORDINATING MASTER OF RECORD: ",DGCMOR,! Q 120 W @IOF,!,$P(VADM(1),"^",1),?32,$P(VADM(2),"^",2),?50,$$HRNV(DFN),?65,$P(VADM(3),"^",2) S X="",$P(X,"=",78)="" W !,X,!?15,"COORDINATING MASTER OF RECORD: ",DGCMOR,! Q 114 121 ;END MPI/PD CHANGE 122 HRNV(DFN) ; 123 N IRET 124 S IRET=$$HRN^DGLBPID(DFN) 125 I IRET="#" Q "" 126 S IRET="HRN "_IRET 127 Q IRET 128 ; END VOE CHANGE 129 ; 115 130 INP S VAIP("D")="L" D INP^DGPMV10 116 131 S DGPMT=0 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPDB.m
r628 r636 1 1 DGRPDB ;ALB/AAS,JAN,ERC,PHH - VIEW ONLY SCREEN TO DETERMINE BILLING ELIGIBILITY ; 3/23/06 8:16am 2 ;;5.3;Registration;**26,50,358,570,631,709,713 ,749**;Aug 13, 1993;Build 102 ;;5.3;Registration;**26,50,358,570,631,709,713**;Aug 13, 1993 3 3 ; 4 4 % S:'$D(DGQUIT) DGQUIT=0 … … 62 62 ; 63 63 AOIR ;Agent Orange/ionizing radiation 64 N DGEC,NTA65 64 S DGX=$S($D(^DPT(DFN,.321)):^(.321),1:"") 66 65 F I=2,3 S X=$P(DGX,"^",I) W:I=2 !," A/O Exp.: " W:I=3 "ION Rad.: " W $S(X="Y":"YES",X="N":"NO",X="U":"UNKNOWN",1:"NOT ANSWERED")," " 67 66 S X=$G(^DPT(DFN,.38)),X1=$P(X,"^",1) W "Medicaid Elig: ",$S(X1="":"NOT ANSWERED",'X1:"NO",1:"YES") I ($X+15)'>IOM W " - " S Y=$P(X,"^",2) D D^DIQ W $P(Y,"@") 68 S DGEC=$S($D(^DPT(DFN,.322)):^DPT(DFN,.322),1:"")69 S X=$P(DGEC,U,13) W !," Env Contam.: " W $S(X="Y":"YES",X="N":"NO",X="U":"UNKNOWN",1:"NOT ANSWERED")," "70 S NTA=$S($$GETCUR^DGNTAPI(DFN,"DGNTARR")>0:DGNTARR("INTRP"),1:"")71 K DGNTARR72 W "N/T Radium: " W $S(NTA'="":NTA,1:"NOT ANSWERED")73 67 Q 74 68 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPE.m
r628 r636 1 DGRPE ;ALB/MRL,LBD,BRM,TMK - REGISTRATIONS EDITS ; 09/12/05 1:27pm 2 ;;5.3;Registration;**32,114,139,169,175,247,190,343,397,342,454,415,489,506,244,547,522,528,555,508,451,626,638,624,677,672,702,689,735**;Aug 13, 1993;Build 11 1 DGRPE ;ALB/MRL,LBD,BRM,TMK - REGISTRATIONS EDITS ;1/27/07 13:11 2 ;;5.3;Registration;**32,114,139,169,175,247,190,343,397,342,454,415,489,506,244,547,522,528,555,508,451,626,638,624,677,672,702,689,735,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 ; 12 ; VOE changes: DAOU,VA/CJS,WV/TOAD 5/9/2006 13 ; conditionally add edit fields to the following lines: 14 ; 201: Is Patient a Veteran (19902), Interpreter Language (19906) 15 ; 202: skip line if agency code for IHS or VOE 16 ; 305002+1: for VOE, Mother's Country of Birth (19903), Father's Country 17 ; of Birth (19904), Year Arrived in U.S. (19905) 3 18 ; 4 19 ;DGDR contains a string of edits; edit=screen*10+item # … … 53 68 Q 54 69 ; 70 ; VOE changes at lines 201, 202, 304 & after 305002 71 ; 55 72 SETFLDS(DGDR) ; Set up fields to edit 56 73 Q … … 66 83 111000 ;;K DR(2,2.141);.1411;I X']"" W !?4,$C(7),"I need at least one line of Address." S Y=.14105;.1412;S:X']"" Y=.1414;.1413;.1414;.1415;.1416;Q;.14111;@111;K DIE("NO^"); 67 84 112 ;;.134;.135;.133 68 201 ;;.05;.08;.092;.093;.2401:.2403;57.4//NOT APPLICABLE; 69 202 ;; 1010.15//NO;S:X'="Y" Y="@22";S DIE("NO^")="";1010.152;I X']"" W !?4,*7,"But I need to know where you were treated most recently." S Y=1010.15;1010.151;1010.154;S:X']"" Y="@22";1010.153;@22;K DIE("NO^");85 201 ;;.05;.08;.092;.093;.2401:.2403;57.4//NOT APPLICABLE;;S:$G(DUZ("AG"))'="E" Y="@21";19902;19906;@21 86 202 ;;S:"IE"[$G(DUZ("AG")) Y="@22";1010.15//NO;S:X'="Y" Y="@22";S DIE("NO^")="";1010.152;I X']"" W !?4,*7,"But I need to know where you were treated most recently." S Y=1010.15;1010.151;1010.154;S:X']"" Y="@22";1010.153;@22;K DIE("NO^"); 70 87 203 ;;D DR203^DGRPE;6ETHNICITY;2RACE;K DR(2,2.02),DR(2,2.06); 71 88 205 ;;.181; … … 82 99 305001 ;;S:$G(DGX1)=2 Y="@381";S DGX2=$G(^DPT(DA,.21));.341///^S X=$P(DGX2,U);.342///^S X=$P(DGX2,U,2);.343///^S X=$P(DGX2,U,3);.344///^S X=$P(DGX2,U,4);@381 83 100 305002 ;;S:$G(DGX1)=2 Y="@39";.345///^S X=$P(DGX2,U,5);.346///^S X=$P(DGX2,U,6);.347///^S X=$P(DGX2,U,7);.348///^S X=$P(DGX2,U,8);.349///^S X=$P(DGX2,U,9);.34011///^S X=$P(DGX2,U,11);@39;K DGX1,DGX2; 101 ;;S:$G(DUZ("AG"))'="E" Y="@36";19903;19904;19905;@36401 ;;.01;.31115;S:($S(X']"":1,X=3:1,X=9:1,1:0)) Y="@41" S:(X'=5) Y=.3111;.31116;.3111;S:X']"" Y="@41";.3113;S:X']"" Y=.3116;.3114;S:X']"" Y=.3116;.3115:.3117;.2205;.3119;@41; 84 102 401 ;;.01;.31115;S:($S(X']"":1,X=3:1,X=9:1,1:0)) Y="@41" S:(X'=5) Y=.3111;.31116;.3111;S:X']"" Y="@41";.3113;S:X']"" Y=.3116;.3114;S:X']"" Y=.3116;.3115:.3117;.2205;.3119;@41; 85 103 402 ;;.2514;.2515;S:($S(X']"":1,X=3:1,X=9:1,1:0)) Y="@42" S:(X'=5) Y=.251;.2516;.251;S:X']"" Y="@42";.252;S:X']"" Y=.255;.253;S:X']"" Y=.255;.254:.256;.2206;.258;@42; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPECE.m
r628 r636 1 DGRPECE ;ALB/MRY,ERC - REGISTRATION CATASTROPHIC EDITS ; 10/4/06 2:35pm 2 ;;5.3;Registration;**638,682,700,720,653**;Aug 13, 1993;Build 2 1 DGRPECE ;ALB/MRY - REGISTRATION CATASTROPHIC EDITS ;1/6/07 13:28 2 ;;5.3;Registration;**638,682,700,720,653,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 ; 4 20 CEDITS(DFN) ;catastrophic edits - buffer values, save after check … … 37 53 S DIR(0)="2,.09^^" 38 54 S DA=DFN D ^DIR 39 I $D(DIRUT) D CECHECK Q 55 I $D(DIRUT),DUZ("AG")="V" D CECHECK Q ; VOE modification, SSN may be null 56 I $D(DTOUT)!$D(DUOUT) D CECHECK Q ; VOE modification 40 57 S BUFFER("SSN")=Y 41 58 ;if SSN is pseudo, Pseudo SSN Reason is req. - DG*5.3*653, ERC … … 62 79 S DIR(0)="2,.03^^" 63 80 S DA=DFN D ^DIR 64 I $D(DIRUT) D CECHECK Q 81 I $D(DIRUT),DUZ("AG")="V" D CECHECK Q 82 I $D(DTOUT)!$D(DUOUT) D CECHECK Q ; VOE modification 65 83 S BUFFER("DOB")=Y 66 84 SEX ;buffer - get sex 67 85 S DIR(0)="2,.02^^" 68 86 S DA=DFN D ^DIR 69 I $D(DIRUT) D CECHECK Q 87 I $D(DIRUT),DUZ("AG")="V" D CECHECK Q 88 I $D(DTOUT)!$D(DUOUT) D CECHECK Q ; VOE modification 70 89 S BUFFER("SEX")=Y 71 90 MBI ; buffer - get MBI (multiple birth indicator) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX.m
r628 r636 1 DGRPTX ; GENERATED FROM 'DGRPT 10-10T REGISTRATION' INPUT TEMPLATE(#1476), FILE 2;04/ 10/061 DGRPTX ; GENERATED FROM 'DGRPT 10-10T REGISTRATION' INPUT TEMPLATE(#1476), FILE 2;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" … … 106 106 I ($T(AVAFC^VAFCDD01)'="") S VAFCF="391;" D AVAFC^VAFCDD01(DA) 107 107 I $D(DE(4))'[0!(^DD(DP,DIFLD,"AUDIT")'="e") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET 108 C4F1 N X,X1,X2 S DIXR=6 43D C4X1(U) K X2 M X2=X D C4X1("O") K X1 M X1=X108 C4F1 N X,X1,X2 S DIXR=664 D C4X1(U) K X2 M X2=X D C4X1("O") K X1 M X1=X 109 109 I $G(X(1))]"" D 110 110 . K ^DPT("APTYPE",X,DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX1.m
r628 r636 1 DGRPTX1 ; ;04/ 10/061 DGRPTX1 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX10.m
r628 r636 1 DGRPTX10 ; ;04/ 10/061 DGRPTX10 ; ;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" … … 62 62 D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA) 63 63 C1F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 64 F DIXR=60 5S DIEZRXR(2,DIXR)=""64 F DIXR=602 S DIEZRXR(2,DIXR)="" 65 65 Q 66 66 X1 K:$L(X)>30!($L(X)<1) X I $D(X) S DFN=DA D K1^DGLOCK2 … … 77 77 C3S S X="" G:DG(DQ)=X C3F1 K DB 78 78 C3F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 79 F DIXR=60 5S DIEZRXR(2,DIXR)=""79 F DIXR=602 S DIEZRXR(2,DIXR)="" 80 80 Q 81 81 X3 I $D(X),X="Y" S DFN=DA D K1^DGLOCK2 … … 99 99 D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA) 100 100 C5F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 101 F DIXR=60 5S DIEZRXR(2,DIXR)=""101 F DIXR=602 S DIEZRXR(2,DIXR)="" 102 102 Q 103 103 X5 K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3) X I $D(X) S DFN=DA D K1^DGLOCK2 … … 122 122 D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA) 123 123 C7F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 124 F DIXR=60 5S DIEZRXR(2,DIXR)=""124 F DIXR=602 S DIEZRXR(2,DIXR)="" 125 125 Q 126 126 X7 K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3) X I $D(X) S DFN=DA D K1^DGLOCK2 … … 137 137 C9S S X="" G:DG(DQ)=X C9F1 K DB 138 138 C9F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 139 F DIXR=60 5S DIEZRXR(2,DIXR)=""139 F DIXR=602 S DIEZRXR(2,DIXR)="" 140 140 Q 141 141 X9 K:$L(X)>30!($L(X)<3) X I $D(X) S DFN=DA D K1^DGLOCK2 … … 153 153 D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA) 154 154 C10F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 155 F DIXR=60 5S DIEZRXR(2,DIXR)=""155 F DIXR=602 S DIEZRXR(2,DIXR)="" 156 156 Q 157 157 X10 K:$L(X)>30!($L(X)<3) X I $D(X) S DFN=DA D K1^DGLOCK2 … … 170 170 D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA) 171 171 C11F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 172 F DIXR=60 5S DIEZRXR(2,DIXR)=""172 F DIXR=602 S DIEZRXR(2,DIXR)="" 173 173 Q 174 174 X11 I $D(X) S DFN=DA D K1^DGLOCK2 … … 186 186 D SET^DGREGDD1(DA,.218,.21,8,$E(X,1,5)) 187 187 C12F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 188 F DIXR=60 5S DIEZRXR(2,DIXR)=""188 F DIXR=602 S DIEZRXR(2,DIXR)="" 189 189 Q 190 190 X12 K:X[""""!($A(X)=45) X I $D(X) S DFN=DA D K1^DGLOCK2 I $D(X) K:$L(X)>15!($L(X)<5) X I $D(X) D ZIPIN^VAFADDR -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX11.m
r628 r636 1 DGRPTX11 ; ;04/ 10/061 DGRPTX11 ; ;04/21/06 2 2 S X=DE(13),DIC=DIE 3 3 I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".219;" D AVAFC^VAFCDD01(DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX12.m
r628 r636 1 DGRPTX12 ; ;04/ 10/061 DGRPTX12 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".219;" D AVAFC^VAFCDD01(DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX13.m
r628 r636 1 DGRPTX13 ; ;04/ 10/061 DGRPTX13 ; ;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" … … 60 60 C1S S X="" G:DG(DQ)=X C1F1 K DB 61 61 C1F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 62 F DIXR=60 7S DIEZRXR(2,DIXR)=""62 F DIXR=604 S DIEZRXR(2,DIXR)="" 63 63 Q 64 64 X1 I $D(X),X="Y" D K1^DGLOCK2 … … 97 97 Q 98 98 C6F2 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 99 F DIXR=60 7S DIEZRXR(2,DIXR)=""99 F DIXR=604 S DIEZRXR(2,DIXR)="" 100 100 Q 101 101 X6 K:$L(X)>35!($L(X)<3) X I $D(X) S DG20NAME=X,(X,DG20NAME)=$$FORMAT^XLFNAME7(.DG20NAME,3,35) K:'$L(X) X,DG20NAME … … 112 112 C8S S X="" G:DG(DQ)=X C8F1 K DB 113 113 C8F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 114 F DIXR=60 7S DIEZRXR(2,DIXR)=""114 F DIXR=604 S DIEZRXR(2,DIXR)="" 115 115 Q 116 116 X8 K:$L(X)>30!($L(X)<2) X I $D(X) S DFN=DA D E1^DGLOCK2 … … 128 128 ; 129 129 C9F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 130 F DIXR=60 7S DIEZRXR(2,DIXR)=""130 F DIXR=604 S DIEZRXR(2,DIXR)="" 131 131 Q 132 132 X9 K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3) X I $D(X) S DFN=DA D E1^DGLOCK2 … … 147 147 ; 148 148 C11F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 149 F DIXR=60 7S DIEZRXR(2,DIXR)=""149 F DIXR=604 S DIEZRXR(2,DIXR)="" 150 150 Q 151 151 X11 K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3) X I $D(X) S DFN=DA D E1^DGLOCK2 … … 162 162 C13S S X="" G:DG(DQ)=X C13F1 K DB 163 163 C13F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 164 F DIXR=60 7S DIEZRXR(2,DIXR)=""164 F DIXR=604 S DIEZRXR(2,DIXR)="" 165 165 Q 166 166 X13 K:$L(X)>30!($L(X)<3) X I $D(X) S DFN=DA D E1^DGLOCK2 … … 174 174 C14S S X="" G:DG(DQ)=X C14F1 K DB 175 175 C14F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 176 F DIXR=60 7S DIEZRXR(2,DIXR)=""176 F DIXR=604 S DIEZRXR(2,DIXR)="" 177 177 Q 178 178 X14 K:$L(X)>30!($L(X)<3) X I $D(X) S DFN=DA D E1^DGLOCK2 … … 187 187 C15S S X="" G:DG(DQ)=X C15F1 K DB 188 188 C15F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 189 F DIXR=60 7S DIEZRXR(2,DIXR)=""189 F DIXR=604 S DIEZRXR(2,DIXR)="" 190 190 Q 191 191 X15 I $D(X) S DFN=DA D E1^DGLOCK2 … … 201 201 D ^DGRPTX15 202 202 C16F1 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 203 F DIXR=60 7S DIEZRXR(2,DIXR)=""203 F DIXR=604 S DIEZRXR(2,DIXR)="" 204 204 Q 205 205 X16 K:X[""""!($A(X)=45) X I $D(X) S DFN=DA D E1^DGLOCK2 I $D(X) K:$L(X)>15!($L(X)<5) X I $D(X) D ZIPIN^VAFADDR -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX14.m
r628 r636 1 DGRPTX14 ; ;04/ 10/061 DGRPTX14 ; ;04/21/06 2 2 S X=DE(16),DIC=DIE 3 3 D KILL^DGREGDD1(DA,.338,.33,8,$E(X,1,5)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX15.m
r628 r636 1 DGRPTX15 ; ;04/ 10/061 DGRPTX15 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 D SET^DGREGDD1(DA,.338,.33,8,$E(X,1,5)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX16.m
r628 r636 1 DGRPTX16 ; ;04/ 10/061 DGRPTX16 ; ;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" … … 143 143 S X=DG(DQ),DIC=DIE 144 144 D EVENT^IVMPLOG(DA) 145 C6F1 N X,X1,X2 S DIXR=6 27D C6X1(U) K X2 M X2=X D C6X1("O") K X1 M X1=X145 C6F1 N X,X1,X2 S DIXR=646 D C6X1(U) K X2 M X2=X D C6X1("O") K X1 M X1=X 146 146 D 147 147 . D FC^DGFCPROT(.DA,2,.525,"KILL",$H,$G(DUZ),.X,.X1,.X2,$G(XQY0)) Q -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX17.m
r628 r636 1 DGRPTX17 ; ;04/ 10/061 DGRPTX17 ; ;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX18.m
r628 r636 1 DGRPTX18 ; ;04/ 10/061 DGRPTX18 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 X ^DD(2,.301,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(2,.301,1,1,1.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX19.m
r628 r636 1 DGRPTX19 ; ;04/ 10/061 DGRPTX19 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX2.m
r628 r636 1 DGRPTX2 ; ;04/ 10/061 DGRPTX2 ; ;04/21/06 2 2 S X=DE(9),DIC=DIE 3 3 X "S DGXRF=.112 D ^DGDDC Q" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX20.m
r628 r636 1 DGRPTX20 ; ;04/ 10/061 DGRPTX20 ; ;04/21/06 2 2 S X=DE(11),DIC=DIE 3 3 X ^DD(2,.36205,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X="" X ^DD(2,.36205,1,1,2.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX21.m
r628 r636 1 DGRPTX21 ; ;04/ 10/061 DGRPTX21 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 X ^DD(2,.36205,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X="" X ^DD(2,.36205,1,1,1.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX22.m
r628 r636 1 DGRPTX22 ; ;04/ 10/061 DGRPTX22 ; ;04/21/06 2 2 S X=DE(12),DIC=DIE 3 3 X ^DD(2,.36215,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(2,.36215,1,1,2.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX23.m
r628 r636 1 DGRPTX23 ; ;04/ 10/061 DGRPTX23 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 X ^DD(2,.36215,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(2,.36215,1,1,1.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX24.m
r628 r636 1 DGRPTX24 ; ;04/ 10/061 DGRPTX24 ; ;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX25.m
r628 r636 1 DGRPTX25 ; ;04/ 10/061 DGRPTX25 ; ;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(D0,""E"",",DIC=DIE,DP=2.0361,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DPT(D0,"E",DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX26.m
r628 r636 1 DGRPTX26 ; ;04/ 10/061 DGRPTX26 ; ;04/21/06 2 2 ;; 3 1 N X,X1,X2 S DIXR=60 5D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=602 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 D 5 5 . D PNOK^DGDDDTTM … … 20 20 S X=$G(X(1)) 21 21 Q 22 2 N X,X1,X2 S DIXR=60 7D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X22 2 N X,X1,X2 S DIXR=604 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X 23 23 D 24 24 . D ECON^DGDDDTTM -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX27.m
r628 r636 1 DGRPTX27 ; ; 08/13/051 DGRPTX27 ; ;12/08/05 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(D0,""E"",",DIC=DIE,DP=2.0361,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DPT(D0,"E",DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX28.m
r628 r636 1 DGRPTX28 ; ; 08/13/051 DGRPTX28 ; ;12/08/05 2 2 S X=DE(8),DIC=DIE 3 3 K ^DPT("APOS",$E(X,1,30),DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX29.m
r628 r636 1 DGRPTX29 ; ; 08/13/051 DGRPTX29 ; ;12/08/05 2 2 S X=DG(DQ),DIC=DIE 3 3 S ^DPT("APOS",$E(X,1,30),DA)="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX3.m
r628 r636 1 DGRPTX3 ; ;04/ 10/061 DGRPTX3 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX30.m
r628 r636 1 DGRPTX30 ; ; 08/13/051 DGRPTX30 ; ;12/08/05 2 2 ;; 3 1 N X,X1,X2 S DIXR=60 5D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=602 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 D 5 5 . D PNOK^DGDDDTTM -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX4.m
r628 r636 1 DGRPTX4 ; ;04/ 10/061 DGRPTX4 ; ;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX5.m
r628 r636 1 DGRPTX5 ; ;04/ 10/061 DGRPTX5 ; ;04/21/06 2 2 S X=DE(5),DIC=DIE 3 3 S A1B2TAG="PAT" D ^A1B2XFR -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX6.m
r628 r636 1 DGRPTX6 ; ;04/ 10/061 DGRPTX6 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 S A1B2TAG="PAT" D ^A1B2XFR -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX7.m
r628 r636 1 DGRPTX7 ; ;04/ 10/061 DGRPTX7 ; ;04/21/06 2 2 S X=DE(7),DIC=DIE 3 3 K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DPT(D0,.11)):^(.11),1:""),Y=$P(Y(1),U,7) X:$D(^DD(2,.117,2)) ^(2) S X=Y S DIU=X K Y S X=DIV S X="" X ^DD(2,.115,1,1,2.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX8.m
r628 r636 1 DGRPTX8 ; ;04/ 10/061 DGRPTX8 ; ;04/21/06 2 2 S X=DG(DQ),DIC=DIE 3 3 ; -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPTX9.m
r628 r636 1 DGRPTX9 ; ;04/ 10/061 DGRPTX9 ; ;04/21/06 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" … … 189 189 Q 190 190 C6F2 S DIEZRXR(2,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 191 F DIXR=60 5S DIEZRXR(2,DIXR)=""191 F DIXR=602 S DIEZRXR(2,DIXR)="" 192 192 Q 193 193 X6 K:$L(X)>35!($L(X)<3) X I $D(X) S DG20NAME=X,(X,DG20NAME)=$$FORMAT^XLFNAME7(.DG20NAME,3,35) K:'$L(X) X,DG20NAME -
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 -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPV.m
r628 r636 1 1 DGRPV ;ALB/MRL,RTK,PJR,BRM,TMK,AMA - REGISTRATION DEFINE VARIABLES ON ENTRY ; 8/11/05 12:56pm 2 ;;5.3;Registration;**109,114,247,190,327,365,343,397,415,489,546,545,451,624,677,672,689,716**;Aug 13, 1993 2 ;;5.3;Registration;**109,114,247,190,327,365,343,397,415,489,546,545,451,624,677,672,689,716,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 ; 4 20 ; … … 29 45 . S DGRPVV="000000000000000" 30 46 S X="5^3^5^2^3^8^4^2^10^2^4^5^5^2^1" 47 ; 48 ; ** VOE change 1 of 4: DAOU/WCJ 2/7/2005,VA/CJS,WV/TOAD 5/9/2006 ** 49 ; 50 ; new line: if agency code is not VA, new section added to screen 3 51 I $G(DUZ("AG"))'="V" S $P(X,"^",3)="6" 52 ; 53 ; ** end of VOE change 1 ** 54 ; 31 55 F I=1:1:15 S J=+$P(X,"^",I),DGRPVV(I)=$S((I<12)!(I=15):$E("00000000000000000",1,J),1:$E("11111111111111111",1,J)) 32 56 S DGRPVV(1.1)="00" … … 41 65 ;-- commented the line to allow screens 2 & 4 to display for Tricare 42 66 ;I DGRPTYPE["TRICARE" F I=2,4 S J=+$P(DGRPSC,"^",I) I 'J S DGRPVV=$E(DGRPVV,0,I-1)_1_$E(DGRPVV,I+1,99) 67 ; 68 ; ** VOE change 2 of 4: DAOU/WCJ 2/7/2005,VA/CJS,WV/TOAD 5/9/2006 ** 69 ; 70 ; add lines: if agency code is not VA, change last screen to 14, 71 ; and clear flag for screen 15 (it is VA-specific) 72 I $G(DUZ("AG"))'="V" D 73 . S DGRPLAST=14 74 . F I=15 S DGRPVV=$E(DGRPVV,0,I-1)_$S(I=15:"",1:1)_$E(DGRPVV,I+1,99) 75 ; 76 ; ** end of VOE change 2 ** 43 77 ; 44 78 F I=31:0 S I=$O(^DD(391,I)) Q:I=""!(I>99) I $D(^(I,0)),($E(^(0),1)'="*"),'+$P(DGRPSCE,"^",I) S X1=$E(I),X2=$E(I,2) I +X1 S DGRPVV(X1)=$E(DGRPVV(X1),0,X2-1)_1_$E(DGRPVV(X1),X2+1,99) … … 58 92 F I=.3,.32,.361 S DGRP(I)=$S($D(^DPT(DFN,I)):^(I),1:"") 59 93 S DGRPVV(10)=11 I $P(DGRP(.361),"^",1)="V" S DGRPVV(7)=111,DGRPVV(1)=1_$E(DGRPVV(1),2,99) ;if elig verified, can't edit elig data, name, ssn, or dob 94 ; 95 ; ** VOE change 3 of 4: DAOU/WCJ 2/7/2005,VA/CJS,WV/TOAD 5/9/2006 ** 96 ; 97 ; add line: if agency code is not VA, only edit one section of screen 7 98 ; The rest is veteran specific. 99 I $G(DUZ("AG"))'="V" S DGRPVV(7)="1101" 100 ; 101 ; ** end of VOE change 3 ** 102 ; 60 103 I $P(DGRP(.3),"^",6)]"" S DGRPVV(8)=11 ;if monetary ben. verified, can't edit income screening data 61 104 I $P(DGRP(.32),"^",2)]"" S DGRPVV(6)=111111111 ;if service data verified, can't edit service screen … … 69 112 I $P($G(DGRP(.361)),U)="V",($P(DGRP(.361),U,3)="H") S DGRPVV(6)=$E(DGRPVV(6),1,5)_1_$E(DGRPVV(6),7,99),DGRPVV(11)=1000 70 113 S:'DGELVER DGRPLAST=$S($G(DGPRFLG)=1:5,1:15) 114 ; 115 ; ** VOE change 4 of 4: DAOU/WCJ 2/7/2005,VA/CJS,WV/TOAD 5/9/2006 ** 116 ; 117 ; add line: if agency code is not VA, and last screen is set to 15, set 118 ; it to 14 (it is VA-specific) 119 I $G(DUZ("AG"))'="V",DGRPLAST=15 S DGRPLAST=14 120 ; 121 ; ** end of VOE change 4 ** 122 ; 71 123 I DGELVER S DGRPVV="00111"_$E(DGRPVV,6,11)_"1111" F I=1:1:11 S J=$E(DGRPVV,I) I 'J S DGRPLAST=I 72 124 Q K DGRPSC,DGRPSCE -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX7.m
r628 r636 1 DGRPX7 ; GENERATED FROM 'DG LOAD EDIT SCREEN 7' INPUT TEMPLATE(#420), FILE 2; 06/27/071 DGRPX7 ; GENERATED FROM 'DG LOAD EDIT SCREEN 7' INPUT TEMPLATE(#420), FILE 2;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" … … 70 70 I ($T(AVAFC^VAFCDD01)'="") S VAFCF="391;" D AVAFC^VAFCDD01(DA) 71 71 I $D(DE(2))'[0!(^DD(DP,DIFLD,"AUDIT")'="e") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET 72 C2F1 N X,X1,X2 S DIXR=6 43D C2X1(U) K X2 M X2=X D C2X1("O") K X1 M X1=X72 C2F1 N X,X1,X2 S DIXR=664 D C2X1(U) K X2 M X2=X D C2X1("O") K X1 M X1=X 73 73 I $G(X(1))]"" D 74 74 . K ^DPT("APTYPE",X,DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX71.m
r628 r636 1 DGRPX71 ; ; 06/27/071 DGRPX71 ; ;12/27/07 2 2 S X=DE(9),DIC=DIE 3 3 D AUTOUPD^DGENA2(DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX710.m
r628 r636 1 DGRPX710 ; ; 06/27/071 DGRPX710 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX711.m
r628 r636 1 DGRPX711 ; ; 06/27/071 DGRPX711 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(D0,""E"",",DIC=DIE,DP=2.0361,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DPT(D0,"E",DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX712.m
r628 r636 1 DGRPX712 ; ; 06/27/071 DGRPX712 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 S A1B2TAG="PAT" D ^A1B2XFR -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX713.m
r628 r636 1 DGRPX713 ; ; 06/27/071 DGRPX713 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(D0,.373,",DIC=DIE,DP=2.05,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DPT(D0,.373,DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX714.m
r628 r636 1 DGRPX714 ; ; 12/28/061 DGRPX714 ; ;01/18/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(D0,.373,",DIC=DIE,DP=2.05,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DPT(D0,.373,DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX72.m
r628 r636 1 DGRPX72 ; ; 06/27/071 DGRPX72 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 D AUTOUPD^DGENA2(DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX73.m
r628 r636 1 DGRPX73 ; ; 06/27/071 DGRPX73 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX74.m
r628 r636 1 DGRPX74 ; ; 06/27/071 DGRPX74 ; ;12/27/07 2 2 S X=DE(11),DIC=DIE 3 3 X ^DD(2,.36235,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y S X="" X ^DD(2,.36235,1,1,2.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX75.m
r628 r636 1 DGRPX75 ; ; 06/27/071 DGRPX75 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 X ^DD(2,.36235,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y S X="" X ^DD(2,.36235,1,1,1.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX76.m
r628 r636 1 DGRPX76 ; ; 06/27/071 DGRPX76 ; ;12/27/07 2 2 S X=DE(12),DIC=DIE 3 3 X ^DD(2,.3025,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(2,.3025,1,1,2.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX77.m
r628 r636 1 DGRPX77 ; ; 06/27/071 DGRPX77 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 X ^DD(2,.3025,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(2,.3025,1,1,1.4) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX78.m
r628 r636 1 DGRPX78 ; ; 06/27/071 DGRPX78 ; ;12/27/07 2 2 S X=DE(14),DIC=DIE 3 3 X "S DFN=DA D EN^DGMTR K DGREQF" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPX79.m
r628 r636 1 DGRPX79 ; ; 06/27/071 DGRPX79 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 X "S DFN=DA D EN^DGMTR K DGREQF" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRUGA01.m
r628 r636 1 DGRUGA01 ;ALB/GRR - HL7 ADT A01 MESSAGE BUILDER ; 11/27/07 1:43pm2 ;;5.3;Registration;**190,303 ,762**;Aug 13, 1993;Build31 DGRUGA01 ;ALB/GRR - HL7 ADT A01 MESSAGE BUILDER ;06/08/99 2 ;;5.3;Registration;**190,303**;Aug 13, 1993 3 3 ; 4 4 ;This routine will build a ADT A01 (Admit) HL7 message for an inpatient. … … 36 36 .S:DGPCPNM="" DGPCPNM=HL("Q") 37 37 .S $P(DGPV1,HL("FS"),8)=DGPCPPTR_$E(HL("ECH"))_DGPCPNM 38 .K ATTDOC S ATTDOC=$$ATTDOC^DGRUUTL(.ATTDOC) S $P(DGPV1,HL("FS"),18)=ATTDOC K ATTDOC ; P-76239 38 .;Get current ward & room/bed 40 39 .S DGW=$$GET1^DIQ(2,DFN,.1,"I") … … 50 49 I DGOADT]"" S $P(DGPV1,HL("FS"),45)=$$HLDATE^HLFNC(DGOADT) S $P(@DGARRAY@(1),HL("FS"),7)=$$HLDATE^HLFNC(DGOADT) 51 50 S DGPV1=$$DOCID^DGRUUTL(DGPV1) 52 K ATTDOC S ATTDOC=$$ATTDOC^DGRUUTL(.ATTDOC) S $P(DGPV1,HL("FS"),18)=ATTDOC K ATTDOC ; P-76253 51 ;TRANSLATE WARD AND ROOM-BED NAMES IF NEEDED (ALREADY DONE IF SEEDING) 54 52 S:'$G(DGSEED) DGPV1=$$LOCTRAN^DGRUUTL1(DGPV1) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRUGA08.m
r628 r636 1 DGRUGA08 ;ALB/GRR - HL7 ADT A08 MESSAGE BUILDER ; 10/11/07 9:24am2 ;;5.3;Registration;**190,312,328,721 ,762**;Aug 13, 1993;Build 31 DGRUGA08 ;ALB/GRR - HL7 ADT A08 MESSAGE BUILDER ; 21 Sep 2006 8:24 AM 2 ;;5.3;Registration;**190,312,328,721**;Aug 13, 1993;Build 3 3 3 ; 4 4 ;This routine will build a ADT A08 (Patient Update) HL7 message for an inpatient. … … 16 16 N DGPV1,DGHOLD,DGCNT,DGMDT,DGCDT,DGOADT,DGIN1,DGLMT,DGZEL,DGICD,DGICDCNT,DGIN,DGINCNT S DGCNT=0 17 17 Q:DGARRAY="" ;Required output variable name was not passed 18 K @DGARRAY ;Kill output array to insure erron eous data does not exist18 K @DGARRAY ;Kill output array to insure erronuous data does not exist 19 19 I DGMIEN="" N VAIP D NOW^%DTC S VAIP("D")=% D IN5^VADPT S DGMIEN=$G(VAIP(1)) K VAIP Q:DGMIEN="" ;changed p-328 20 20 D NOW^%DTC S DGCDT=$$HLDATE^HLFNC(%) ;Get current date/time and convert to HL7 format … … 33 33 I $G(DGLMT)=1,$E($G(DGDC))="D" S $P(DGPV1,HL("FS"),4)=$P(DGPV1,HL("FS"),7) ;This is a change to a prior HL7, move prior location to current 34 34 N VAIP D IN5^VADPT S $P(DGPV1,HL("FS"),11)=$$GET1^DIQ(45.7,+VAIP(8),1,"I") K VAIP ; p-721 35 K ATTDOC S ATTDOC=$$ATTDOC^DGRUUTL(.ATTDOC) S $P(DGPV1,HL("FS"),18)=ATTDOC K ATTDOC ; P-76236 35 S @DGARRAY@(DGCNT)=$$LOCTRAN^DGRUUTL1(DGPV1) 37 36 S DGCNT=DGCNT+1 ;Increment node counter to store next segment -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRUGA22.m
r628 r636 1 DGRUGA22 ;ALB/GRR - HL7 ADT A22 MESSAGE BUILDER ; 11/7/07 3:45pm2 ;;5.3;Registration;**190 ,762**;Aug 13, 1993;Build31 DGRUGA22 ;ALB/GRR - HL7 ADT A22 MESSAGE BUILDER ;8/5/99 15:36 2 ;;5.3;Registration;**190**;Aug 13, 1993 3 3 ; 4 4 ;This routine will build a ADT A22 (From Leave of Absence) HL7 message for an inpatient. … … 14 14 N DGPV1,DGCNT,DGMDT,DGCDT,DGOADT,DGICD,DGICDCNT,DGIN,DGINCNT S DGCNT=0 15 15 Q:DGARRAY="" ;Required output variable name was not passed 16 K @DGARRAY ;Kill output array to insure erron eous data does not exist16 K @DGARRAY ;Kill output array to insure erronuous data does not exist 17 17 Q:DGMIEN="" 18 18 S DGMDT=$$GET1^DIQ(405,DGMIEN,".01","I") … … 28 28 I DGOADT]"" S $P(DGPV1,HL("FS"),45)=$$HLDATE^HLFNC(DGOADT) 29 29 S DGPV1=$$DOCID^DGRUUTL(DGPV1) 30 N VAIP,DGW,DGRM D IN5^VADPT S DGW=$P(VAIP(5),"^",2),DGRM=$P(VAIP(6),"^",2),$P(DGPV1,HL("FS"),4)=DGW_$E(HLECH)_DGRM K VAIP ; P-76231 30 S @DGARRAY@(DGCNT)=$$LOCTRAN^DGRUUTL1(DGPV1) ;Translate Ward and Room-Bed name, store into array 32 31 S DGMTYP=$$GET1^DIQ(405,DGMIEN,.18,"I") ;Get Movement Type -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRUGBJ.m
r628 r636 1 DGRUGBJ ; ALB/SCK - RAI/MDS COTS ADT Background job ; 11/7/07 3:49pm2 ;;5.3;Registration;**190,312,357 ,762**;Aug 13, 1993;Build31 DGRUGBJ ; ALB/SCK - RAI/MDS COTS ADT Background job ; 8-10-99 2 ;;5.3;Registration;**190,312,357**;Aug 13, 1993 3 3 ; 4 4 EN ; Main Entry point for patient demographic update to COTS system … … 26 26 . ; Check for patient, if not valid, then mark as transmitted and quit 27 27 . I ('$D(^DPT(DFN,0))) D XMITFLAG^VAFCDD01(PVTPTR,"",1) Q 28 . N VAIN D INP^VADPT ; p-762 29 . I '$$CHKWARD^DGRUUTL(+VAIN(4)) D XMITFLAG^VAFCDD01(PVTPTR,"",1) K VAIN Q ; P-762 28 . ; 30 29 . K @DGARRAY 31 30 . S @DGARRAY@("PIVOT")=PVTPTR … … 94 93 Q (HLRST) 95 94 ; 96 ERRBUL(EVNTINFO,RESULT) ; Generate bull etin if an error occurred while building the HL7 message.95 ERRBUL(EVNTINFO,RESULT) ; Generate bulliten if an error occurred while building the HL7 message. 97 96 ; 98 97 N XMY,XMDUZ,XMDT,XMZ,XMB,XMCHAN,XMSUB -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRUUTL.m
r628 r636 1 DGRUUTL ;ALB/GRR - RAI/MDS UTILITY ROUTINE ; 10/11/07 8:42am2 ;;5.3;Registration;**190,444 ,762**;Aug 13, 1993;Build31 DGRUUTL ;ALB/GRR - RAI/MDS UTILITY ROUTINE 2 ;;5.3;Registration;**190,444**;Aug 13, 1993 3 3 HLNAME(DGNAME) ;Piece apart name into LAST NAME_"^"_FIRST NAME_"^"_MIDDLE NAME_"^"_SUFFIX 4 4 ;Input DGNAME - Either Last Name, First or First, Middle and Last Name (i.e. SMITH,JOHN R or JOHN R SMITH) … … 39 39 ; 40 40 ; Returns the medicaid information from the patient file 41 ; P-762 return Medicaid number or 'N' 42 N A S A=$$GET1^DIQ(2,DFN,.383) 43 S:A="" A="N" 44 Q A 41 Q $$GET1^DIQ(2,DFN,.383) 45 42 ; 46 43 GETAMOV(DFN) ;GET LAST ADMISSION MOVEMENT FOR A PATIENT … … 88 85 EXITDOC Q X 89 86 ; 90 ATTDOC(X) ;get attending physician - p-76291 N ATTPTR,ATTNAME,VAIP D IN5^VADPT S ATTPTR=$P(VAIP(18),"^",1),ATTNAME=$P(VAIP(18),"^",2) K VAIP92 I $L(ATTPTR)>6 S ATTPTR=$E(ATTPTR,$L(ATTPTR)-5,$L(ATTPTR))93 I $G(ATTNAME) S ATTNAME=$$HLNAME(ATTNAME)94 Q ATTPTR_$E(HL("ECH"))_ATTNAME -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGX5F.m
r628 r636 1 DGX5F ; GENERATED FROM 'DG501F' INPUT TEMPLATE(#429), FILE 45; 09/05/071 DGX5F ; GENERATED FROM 'DG501F' INPUT TEMPLATE(#429), FILE 45;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(",DIC=DIE,DP=45,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DGPT(DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGX5F1.m
r628 r636 1 DGX5F1 ; ; 09/05/071 DGX5F1 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" … … 63 63 S ^DGPT(DA(1),"M","AM",$E(X,1,30),DA)="" 64 64 C2F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 65 F DIXR=4 47,448,449,450,451,452,453,454,455,456S DIEZRXR(45.02,DIXR)=""65 F DIXR=462,463,464,465,466,467,468,469,470,471 S DIEZRXR(45.02,DIXR)="" 66 66 Q 67 67 X2 S %DT="ETX" D ^%DT S X=Y K:Y<1 X I $D(X) X $S(X<$P(^DGPT(DA(1),0),U,2):"W !,""Not before admission"" K X",X>($S($D(^(70)):$S(+^(70):+^(70),1:9999999),1:9999999)):"W !,""Not after discharge"" K X",1:"") … … 154 154 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 155 155 C25F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 156 F DIXR=4 47S DIEZRXR(45.02,DIXR)=""156 F DIXR=462 S DIEZRXR(45.02,DIXR)="" 157 157 Q 158 158 X25 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=5 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 175 175 D ^DGX5F3 176 176 C29F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 177 F DIXR=4 48S DIEZRXR(45.02,DIXR)=""177 F DIXR=463 S DIEZRXR(45.02,DIXR)="" 178 178 Q 179 179 X29 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=6 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGX5F2.m
r628 r636 1 DGX5F2 ; ; 09/05/071 DGX5F2 ; ;12/27/07 2 2 S X=DE(29),DIC=DIE 3 3 K ^DGPT(DA(1),"M","AC",$E(X,1,30),DA) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGX5F3.m
r628 r636 1 DGX5F3 ; ; 09/05/071 DGX5F3 ; ;12/27/07 2 2 S X=DG(DQ),DIC=DIE 3 3 S ^DGPT(DA(1),"M","AC",$E(X,1,30),DA)="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGX5F4.m
r628 r636 1 DGX5F4 ; ; 09/05/071 DGX5F4 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" … … 66 66 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 67 67 C1F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 68 F DIXR=4 49S DIEZRXR(45.02,DIXR)=""68 F DIXR=464 S DIEZRXR(45.02,DIXR)="" 69 69 Q 70 70 X1 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=7 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 93 93 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 94 94 C5F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 95 F DIXR=4 50S DIEZRXR(45.02,DIXR)=""95 F DIXR=465 S DIEZRXR(45.02,DIXR)="" 96 96 Q 97 97 X5 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=8 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X … … 120 120 X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)" 121 121 C9F1 S DIEZRXR(45.02,DIIENS)=$$OREF^DILF($NA(@$$CREF^DILF(DIE))) 122 F DIXR=4 51S DIEZRXR(45.02,DIXR)=""122 F DIXR=466 S DIEZRXR(45.02,DIXR)="" 123 123 Q 124 124 X9 D ICDEN^DGPTF5 Q:X="" K K S DIC("S")="S DGI=9 D EN^DGPTFJC I 'DGER" S DIC(0)=$P(DIC(0),"E")_$P(DIC(0),"E",2) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGX5F5.m
r628 r636 1 DGX5F5 ; ; 09/05/071 DGX5F5 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGX5F6.m
r628 r636 1 DGX5F6 ; ; 09/05/071 DGX5F6 ; ;12/27/07 2 2 D DE G BEGIN 3 3 DE S DIE="^DGPT(D0,""M"",",DIC=DIE,DP=45.02,DL=2,DIEL=1,DU="" K DG,DE,DB Q:$O(^DGPT(D0,"M",DA,""))="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGX5F7.m
r628 r636 1 DGX5F7 ; ; 09/05/071 DGX5F7 ; ;12/27/07 2 2 ;; 3 1 N X,X1,X2 S DIXR=4 47D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X3 1 N X,X1,X2 S DIXR=462 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X 4 4 I $G(X(1))]"",$G(X(2))]"" D 5 5 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD1") … … 12 12 S X=$G(X(1)) 13 13 Q 14 2 N X,X1,X2 S DIXR=4 48D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X14 2 N X,X1,X2 S DIXR=463 D X2(U) K X2 M X2=X D X2("F") K X1 M X1=X 15 15 I $G(X(1))]"",$G(X(2))]"" D 16 16 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD2") … … 23 23 S X=$G(X(1)) 24 24 Q 25 3 N X,X1,X2 S DIXR=4 49D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X25 3 N X,X1,X2 S DIXR=464 D X3(U) K X2 M X2=X D X3("F") K X1 M X1=X 26 26 I $G(X(1))]"",$G(X(2))]"" D 27 27 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD3") … … 34 34 S X=$G(X(1)) 35 35 Q 36 4 N X,X1,X2 S DIXR=4 50D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X36 4 N X,X1,X2 S DIXR=465 D X4(U) K X2 M X2=X D X4("F") K X1 M X1=X 37 37 I $G(X(1))]"",$G(X(2))]"" D 38 38 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD4") … … 45 45 S X=$G(X(1)) 46 46 Q 47 5 N X,X1,X2 S DIXR=4 51D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X47 5 N X,X1,X2 S DIXR=466 D X5(U) K X2 M X2=X D X5("F") K X1 M X1=X 48 48 I $G(X(1))]"",$G(X(2))]"" D 49 49 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD5") … … 56 56 S X=$G(X(1)) 57 57 Q 58 6 N X,X1,X2 S DIXR=4 52D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X58 6 N X,X1,X2 S DIXR=467 D X6(U) K X2 M X2=X D X6("F") K X1 M X1=X 59 59 I $G(X(1))]"",$G(X(2))]"" D 60 60 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD6") … … 67 67 S X=$G(X(1)) 68 68 Q 69 7 N X,X1,X2 S DIXR=4 53D X7(U) K X2 M X2=X D X7("F") K X1 M X1=X69 7 N X,X1,X2 S DIXR=468 D X7(U) K X2 M X2=X D X7("F") K X1 M X1=X 70 70 I $G(X(1))]"",$G(X(2))]"" D 71 71 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD7") … … 78 78 S X=$G(X(1)) 79 79 Q 80 8 N X,X1,X2 S DIXR=4 54D X8(U) K X2 M X2=X D X8("F") K X1 M X1=X80 8 N X,X1,X2 S DIXR=469 D X8(U) K X2 M X2=X D X8("F") K X1 M X1=X 81 81 I $G(X(1))]"",$G(X(2))]"" D 82 82 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD8") … … 89 89 S X=$G(X(1)) 90 90 Q 91 9 N X,X1,X2 S DIXR=4 55D X9(U) K X2 M X2=X D X9("F") K X1 M X1=X91 9 N X,X1,X2 S DIXR=470 D X9(U) K X2 M X2=X D X9("F") K X1 M X1=X 92 92 I $G(X(1))]"",$G(X(2))]"" D 93 93 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD9") … … 100 100 S X=$G(X(1)) 101 101 Q 102 10 N X,X1,X2 S DIXR=4 56D X10(U) K X2 M X2=X D X10("F") K X1 M X1=X102 10 N X,X1,X2 S DIXR=471 D X10(U) K X2 M X2=X D X10("F") K X1 M X1=X 103 103 I $G(X(1))]"",$G(X(2))]"" D 104 104 . D KDGPT9M^DGPTDDCR(.X,.DA,"M ICD10") -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DPTLK.m
r628 r636 1 DPTLK ;ALB/RMO,RTK - MAS Patient Look-up Main Routine ; 3/22/05 4:19pm 2 ;;5.3;Registration;**32,72,93,73,136,157,197,232,265,277,223,327,244,513,528,541,576,600,485,633,629,647**;Aug 13, 1993 1 DPTLK ;ALB/RMO,RTK - MAS Patient Look-up Main Routine ;1/27/07 13:12 2 ;;5.3;Registration;**32,72,93,73,136,157,197,232,265,277,223,327,244,513,528,541,576,600,485,633,629,647,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 ; 3 11 ; 4 12 ; mods made for magstripe read 12/96 - JFP … … 8 16 ; 9 17 EN ; -- Entry point 18 ;Following line so VOE will use alternate lookup routine, DAOU,VA/CJS,WV/TOAD 19 I $G(DUZ("AG"))'="V" D ^AUPNLK Q 10 20 N DIE,DR 11 21 K DPTX,DPTDFN,DPTSAVX I $D(DIC(0)) G QK:DIC(0)["I"!(DIC(0)'["A"&('$D(X))) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VADATE.m
r628 r636 1 1 VADATE ;ALB/MLI - GENERIC DATE ROUTINE ; 1 DEC 88 @1000 2 ;;5.3;Registration ,;**749**;Aug 13, 1993;Build 102 ;;5.3;Registration;;Aug 13, 1993 3 3 ; 4 4 I $D(VADAT("F")),$S(VADAT("F")<1:1,VADAT("F")>2:1,1:0) K VADAT("F") 5 I '$D(VADAT("W")) S VANOW=$$NOW^XLFDT6 S VA=$S('$D(VADAT("W")): VANOW,1:VADAT("W")),(VA,VADATE("I"))=$S($D(VADAT("S")):VA,'$D(VADAT("T")):$E(VA,1,12),1:$P(VA,".",1))5 I '$D(VADAT("W")) D NOW^%DTC 6 S VA=$S('$D(VADAT("W")):%,1:VADAT("W")),(VA,VADATE("I"))=$S($D(VADAT("S")):VA,'$D(VADAT("T")):$E(VA,1,12),1:$P(VA,".",1)) 7 7 S:'$D(VADAT("H")) (VA(1),VA(2),VA(3))=1 I $D(VADAT("H")) F I=1:1:3 S VA(I)=$S(VADAT("H")[I:1,1:0) 8 8 S VAM=$S('$E(VA,4,5):"",'VA(2):"",$S('$D(VADAT("F")):1,VADAT("F")=2:1,1:0):$P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC","^",+$E(VA,4,5)),1:$E(VA,4,5)),VAY=$S(VA(3):(1700+$E(VA,1,3)),1:""),VAD=$S(VA(1)&$E(VA,6,7):$E(VA,6,7),1:"") … … 13 13 S VADATE("E")=VADATE("E")_$S(VA(3):$E(VAY,3,4),1:"")_$S($D(VAT):"@"_VAT,1:"") 14 14 QUIT I $D(VADAT("J")),VADAT("J")?.N F I=$L(VADATE("E"))+1:1:VADAT("J") S VADATE("E")=" "_VADATE("E") 15 K %DT,VA,VAD,VADEL,VAM,VAT,VAX,VAY ,VANOWQ15 K %DT,VA,VAD,VADEL,VAM,VAT,VAX,VAY Q 16 16 KVAR K VADAT,VADATE Q -
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 1 VADPT1 ;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 3 19 1 ;Demographic [DEM] 4 20 N W,Z,NODE … … 15 31 ; -- age [4 - AG] 16 32 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 ; 17 45 ; 18 46 ; -- expired date [6 - EX] … … 52 80 S @VAV@($P(VAS,"^",12))=Y-1 53 81 Q 82 ; 83 ; Added for VOE to support pediatrics 84 ; 85 PAGE ; -- 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 54 92 ; 55 93 2 ;Other Patient Variables [OPD] -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VADPT2.m
r628 r636 1 1 VADPT2 ;ALB/MJK - ESTABLISH PATIENT VARIABLES ; 3/23/88 9:13 PM ; [10/20/95 4:02pm] 2 ;;5.3;Registration;**69 ,749**;Aug 13, 1993;Build 102 ;;5.3;Registration;**69**;Aug 13, 1993 3 3 5 ; -- INP call 4 S (VAWD,VATS,VADX,VAPP,VAAP,VARM)="" S VANOW=$$NOW^XLFDTK VAMV,VAMV04 S (VAWD,VATS,VADX,VAPP,VAAP,VARM)="" D NOW^%DTC S VANOW=% K VAMV,VAMV0 5 5 I '$D(VAINDT) N VAINDT S VAINDT=VANOW 6 6 S VATD=9999999.999999-VAINDT … … 54 54 ; 55 55 ADM ; -- send back adm ifn for dfn on vaindt or now 56 S VADT=$S($D(VAINDT):VAINDT,1:"") I 'VADT S VADT=$$NOW^XLFDT56 S VADT=$S($D(VAINDT):VAINDT,1:"") I 'VADT D NOW^%DTC S VADT=% 57 57 S VAID=9999999.999999-VADT,VADMVT="" 58 58 F S VAID=$O(^DGPM("ATID1",DFN,VAID)) Q:'VAID S VAMV=+$O(^DGPM("ATID1",DFN,VAID,0)) I $D(^DGPM(VAMV,0)) S VAMV0=^(0),VAMV1=$S($D(^DGPM(+$P(VAMV0,"^",17),0)):^(0),1:9999999.999999) D Q:VADMVT!($P(VAMV0,U,18)'=40) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VADPT3.m
r628 r636 1 1 VADPT3 ;ALB/MRL - PATIENT VARIABLES [IN5]; 12 DEC 1988 ; 7/22/03 5:00pm 2 ;;5.3;Registration;**532 ,749**;Aug 13, 1993;Build 102 ;;5.3;Registration;**532**;Aug 13, 1993 3 3 ;Inpatient variables [Version 5.0 and above] 4 4 6 ; 5 S (NOW,VAX("DAT"))=$$NOW^XLFDT,NOWI=9999999.999999-NOW5 D NOW^%DTC S (NOW,VAX("DAT"))=%,NOWI=9999999.999999-% 6 6 ; 7 7 I $D(VAIP("E")),$D(^DGPM(+VAIP("E"),0)) S VAX("DT")=+^(0),E=+VAIP("E") G GO ;Specific Entry -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VADPT5.m
r628 r636 1 1 VADPT5 ;ALB/MRL/MJK - PATIENT VARIABLES [REG]; 14 DEC 1988 ; 8/6/04 7:42am 2 ;;5.3;Registration;**54,63,242,584 ,749**;Aug 13, 1993;Build 102 ;;5.3;Registration;**54,63,242,584**;Aug 13, 1993 3 3 10 ;Registration/Disposition [REG] 4 4 N VARPSV … … 27 27 ; 28 28 12 ;Appointments [SDA] 29 N VASDSV,SDCNT,SDARRAY ,VANOW30 S VANOW=$$NOW^XLFDT31 S VASDSV("F")=$S($G(VASD("F"))?7N.E:VASD("F"),1: VANOW)29 N VASDSV,SDCNT,SDARRAY 30 D NOW^%DTC 31 S VASDSV("F")=$S($G(VASD("F"))?7N.E:VASD("F"),1:%) 32 32 S VASDSV("T")=$S(+$G(VASD("T")):+VASD("T"),1:9999999) I '$P(VASDSV("T"),".",2) S $P(VASDSV("T"),".",2)=999999 33 33 S VASDSV("W")=$S('$G(VASD("W")):12,1:VASD("W")) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VADPT61.m
r628 r636 1 1 VADPT61 ;ALB/MJK - Patient ID Utilities (cont.); 12 AUG 89 @1200 2 ;;5.3;Registration ,;**749**;Aug 13, 1993;Build 102 ;;5.3;Registration;;Aug 13, 1993 3 3 ; 4 4 1 ;;ID Format Enter/Edit … … 26 26 ; 27 27 BEG ; 28 S VASTART=$$NOW^XLFDT28 D NOW^%DTC S VASTART=% 29 29 Q 30 30 ; 31 31 END ; 32 S VAEND=$$NOW^XLFDT,L=032 D NOW^%DTC S VAEND=%,L=0 33 33 K XMY 34 34 S XMSUB=$P($T(OPTS+VAOPT),";",4),XMDUZ=.5,XMTEXT="VATEXT(",XMY(DUZ)="" -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VAFCPID.m
r628 r636 1 1 VAFCPID ;ALB/MLI,PKE-Create generic PID segment ; 21 Nov 2002 3:13 PM 2 ;;5.3;Registration;**91,149,190,415,508 ,749**;Aug 13, 1993;Build 102 ;;5.3;Registration;**91,149,190,415,508**;Aug 13, 1993 3 3 ; 4 4 ; This routine returns the HL7 defined PID segment with its … … 21 21 ; variables may be altered. 22 22 ; 23 N I,VAFY,VA,VADM,X,X1,Y,OUTPUT,DGNAME, DGMMN,VAPA ; calls VADPT...have to NEW23 N I,VAFY,VA,VADM,X,X1,Y,OUTPUT,DGNAME,VAPA ; calls VADPT...have to NEW 24 24 S VAFSTR=$G(VAFSTR) ; if not defined, just return required fields 25 25 S DFN=$G(DFN) … … 41 41 S X=$$HLNAME^XLFNAME(.DGNAME,"",$E(HLECH)),VAFY(5)=$S(X]"":X,1:HLQ) 42 42 ;Mother's maiden name (#6) 43 I VAFSTR[",6," D 44 .S DGMMN("FILE")=2,DGMMN("IENS")=DFN,DGMMN("FIELD")=.2403 45 .S X=$$HLNAME^XLFNAME(.DGMMN,"",$E(HLECH)),VAFY(6)=$S(X]"":X,1:HLQ) 43 I VAFSTR[",6," S X=$P($G(^DPT(DFN,.24)),"^",3),VAFY(6)=$S(X]"":X,1:HLQ) 46 44 ;Date of birth (#7) 47 45 I VAFSTR[",7," S VAFY(7)=$$HLDATE^HLFNC(+VADM(3)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VAFCTF.m
r628 r636 1 1 VAFCTF ;BIR/DLR-Utility for capturing patient's Date Last Treated and Event Reason ;9/9/2002 2 ;;5.3;Registration;**428,713 ,766**;Aug 13, 1993;Build32 ;;5.3;Registration;**428,713**;Aug 13, 1993 3 3 Q ; quit if called from the top 4 4 ; … … 71 71 . Q 72 72 K VAFCDATA,VAFCPURG,VAFCX,VAFCX1,VAFCX2 73 ;DG*5.3*76674 I $E(VAFCX3,9,10)>23 S VAFCX3=$E(VAFCX3,1,8)_"23"_$E(VAFCX3,11,14)75 I $E(VAFCX3,11)>5 S VAFCX3=$E(VAFCX3,1,10)_"59"_$E(VAFCX3,13,14)76 ;DG*5.3*71377 73 I $E(VAFCX3,13)>5 S VAFCX3=$E(VAFCX3,1,12)_"59" 78 74 Q VAFCX3_"^5" ; X is either null or the date/time of the check out -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VAFHLPID.m
r628 r636 1 1 VAFHLPID ;ALB/MLI/ESD - Create generic PID segment ; 21 Nov 2002 3:13 PM 2 ;;5.3;Registration;**68,94,415,508 ,749**;Aug 13, 1993;Build 102 ;;5.3;Registration;**68,94,415,508**;Aug 13, 1993 3 3 ; 4 4 ; This routine returns the HL7 defined PID segment with its … … 26 26 ; variables may be altered. 27 27 ; 28 N I,VAFY,VA,VADM,X,X1,Y,OUTPUT,DGNAME, DGMMN,VAPA ; calls VADPT...have to NEW28 N I,VAFY,VA,VADM,X,X1,Y,OUTPUT,DGNAME,VAPA ; calls VADPT...have to NEW 29 29 S VAFSTR=$G(VAFSTR) ; if not defined, just return required fields 30 30 S DFN=$G(DFN) … … 50 50 S X=$$HLNAME^XLFNAME(.DGNAME,"",$E(HLECH)),VAFY(5)=$S(X]"":X,1:HLQ) 51 51 ;Mother's maiden name (#6) 52 I VAFSTR[",6," D 53 .S DGMMN("FILE")=2,DGMMN("IENS")=DFN,DGMMN("FIELD")=.2403 54 .S X=$$HLNAME^XLFNAME(.DGMMN,"",$E(HLECH)),VAFY(6)=$S(X]"":X,1:HLQ) 52 I VAFSTR[",6," S X=$P($G(^DPT(DFN,.24)),"^",3),VAFY(6)=$S(X]"":X,1:HLQ) 55 53 ;Date of birth (#7) 56 54 I VAFSTR[",7," S VAFY(7)=$$HLDATE^HLFNC(+VADM(3)) -
FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/VAFHLPR1.m
r628 r636 1 1 VAFHLPR1 ;ALB/ESD - Create generic HL7 PR1 Segment ;4/4/00 2 ;;5.3;Registration;**94,123,160,215,243,606**;Aug 13, 1993 2 ;;5.3;Registration;**94,123,160,215,243,606**;Aug 13, 1993;Build 1 3 3 ;06/22/99 ACS - Added CPT modifier API calls and added CPT modifier to the 4 4 ;PR1 segment (sequence 16)
Note:
See TracChangeset
for help on using the changeset viewer.