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

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
28 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPOBIL5.m

    r628 r636  
    11RMPOBIL5 ;(NG)/DUG - HOME OXYGEN BILLING TRANSACTIONS ;7/24/98
    2  ;;3.0;PROSTHETICS;**29,99,137**;Feb 09, 1996;Build 5
    3  N RMPRMERG S RMPRMERG=0
     2 ;;3.0;PROSTHETICS;**29,99**;Feb 09, 1996
    43 S (RC,RA,AN,ANS,RK,RZ)=0 D HDR
    54 F  S RA=$O(^RMPR(660,"AC",RMPRDFN,RA)) Q:RA=""  D
     
    76 . F  S AN=$O(^RMPR(660,"AC",RMPRDFN,RA,AN)) Q:AN=""  D
    87 . . I $D(^RMPO(665.72,"AC",AN))>0 S RC=RC+1,IT(RC)=AN
    9  ;Check for merged accounts
    10  I $D(^XDRM("B",RMPRDFN_";DPT(")) D
    11  . S RMPRMERG=$O(^XDRM("B",RMPRDFN_";DPT(",RMPRMERG)) Q:RMPRMERG=""
    12  . S RMPRMERG=+^XDRM(RMPRMERG,0) Q:RMPRMERG=0  D
    13  .. S RA=0
    14  .. F  S RA=$O(^RMPR(660,"AC",RMPRMERG,RA)) Q:RA=""  D
    15  ... S AN=""
    16  ... F  S AN=$O(^RMPR(660,"AC",RMPRMERG,RA,AN)) Q:AN=""  D
    17  .... I $D(^RMPO(665.72,"AC",AN))>0 S RC=RC+1,IT(RC)=AN
    188 G:'$D(IT) END
    199DIS ;DISPLAY APPLIANCES OR REPAIRS
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPOPED.m

    r628 r636  
    11RMPOPED ;EDS/MDB,DDW,RVD - HOME OXYGEN MISC FILE EDITS ;7/24/98
    2  ;;3.0;PROSTHETICS;**29,44,41,52,77,110,140**;Feb 09, 1996;Build 10
     2 ;;3.0;PROSTHETICS;**29,44,41,52,77,110**;Feb 09, 1996;Build 10
    33 ;
    44 ; HNC - patch 52
     
    1111UNLOCK I $D(RMPODFN) L -^RMPR(665,RMPODFN)
    1212 Q
    13 EXIT D KILL^XUSCLEAN
     13EXIT K DIC,DIE,DIR,DIK,X,Y,Z,DR,DA,DD,DO,D0,DTOUT,DIROUT,DUOUT,DIRUT,QUIT,DFN,ITEM,ITEMS,IEN,IENS,ITMACT,ITM,C,S,W,PI,VDR,ZST
    1414 D UNLOCK
    1515 Q
     
    171171RX ;Edit the Rx Data
    172172 ;
    173  N RXD,RXDI
    174173 K DIC,DIE,DA,DR
    175174 S DIC="^RMPR(665,"_RMPODFN_",""RMPOB"",",DIC(0)="AEQLZ"
    176175 S DA(1)=RMPODFN,DIC("P")="665.193D"
    177  S RXD=$O(^RMPR(665,DA(1),"RMPOB","B",""),-1) D:RXD
    178  . S DIC("B")=$$FMTE^XLFDT(RXD)
     176 I $D(^DISV(DUZ,DIC)) S Y=^(DIC) I $D(@(DIC_(+Y)_",0)")) D
     177 . S DIC("B")=$P(^(0),U,1)
    179178 D ^DIC Q:Y<0!$$QUIT
    180179 S DIE=DIC,DA=+Y,DR=".01;2//^D EXPIRE^RMPOBIL4;3" D ^DIE Q:$$EQUIT
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR121B.m

    r628 r636  
    11RMPR121B ;PHX/HNC -POST GUI PURCHASE ORDER TRANSACTION ;3/1/2003
    2  ;;3.0;PROSTHETICS;**90,75,137**;FEB 09,1996;Build 5
     2 ;;3.0;PROSTHETICS;**90,75**;FEB 09,1996;Build 25
    33 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44A1(SIG,RMPRA,RMPRSITE) S RMPRGUI=1 G A2
     
    2020 S PRCRMPR=1,X=1,PRCRMPR=1
    2121 D UP1^PRCH7PUC(.X,PRCA,PRCB,PRCC,PRCSITE,PRCVEN,PRCRMPR)
    22  I X="^" D C664 G QUIT
     22 I X="^" G QUIT
    2323 S PRC442=$P(^RMPR(664,RMPRA,4),U,6)
    2424 I $P(^PRC(442,PRC442,7),U,1)'=6 G QUT
    25  S $P(^RMPR(664,RMPRA,0),U,5)="",$P(^RMPR(664,RMPRA,2),U)="",$P(^RMPR(664,RMPRA,2),U,2)=""
    2625 I $D(RMPRPSC) S $P(^RMPR(664,RMPRA,2),U,5)=RMPRPSC
    2726 S DA=RMPRA,DIK="^RMPR(664," D IX1^DIK
     
    8382 D DELIV^RMPR121A
    8483 Q
    85 C664 ;CANCEL 664 ENTRY WHEN IFCAP IS CANCELLED
    86  S $P(^RMPR(664,RMPRA,0),U,5)=$P(^RMPR(664,RMPRA,0),U),$P(^RMPR(664,RMPRA,2),U,2)=+DUZ
    87  S WDS="INSUFF FUNDS CANCEL",DA=RMPRA,DR="3.1////^S X=WDS",DIE="^RMPR(664," D ^DIE K WDS
    88  Q
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR29A.m

    r628 r636  
    11RMPR29A ;PHX/JLT,RVD-RMPR29 CONTINUED [ 09/29/94  11:22 AM ]
    2  ;;3.0;PROSTHETICS;**12,13,28,41,142**;Feb 09, 1996;Build 2
     2 ;;3.0;PROSTHETICS;**12,13,28,41**;Feb 09, 1996
    33POST ;POST 2529-3 TO APPLIANCE/REPAIR FILE #660
    44 I '$D(RMPRDA)!('$D(^RMPR(664.1,RMPRDA,2,0))) Q
     
    1111 F RA=0:0 S RA=$O(^RMPR(664.1,RMPRDA,2,RA)) Q:RA'>0  I $D(^(RA,0)) S IT=$P(^(0),U,1),QTY=$P(^(0),U,2),UN=$P(^(0),U,3),RDA=$P(^(0),U,5),TYP=$P(^(0),U,7),ELS=$P(^(0),U,8),SCAT=$P(^(0),U,9),SER=$P(^(0),U,12) D
    1212 .S HCPCS=$P($G(^RMPR(664.1,RMPRDA,2,RA,2)),U,1),RMCPT=$P($G(^(2)),U,2)
    13  .I RDA,'$D(^RMPR(660,RDA,0)) S RDA=""
    1413 .I 'RDA S DIC="^RMPR(660,",DLAYGO=660,DIC(0)="LZ",X=RMPRDT D FILE^DICN K DLAYGO Q:+Y'>0  S RDA=+Y,RNEW=$P(Y,U,3) S $P(^RMPR(660,RDA,0),U,1)=RMPRDT,$P(^(0),U,2)=RMPRDFN,$P(^(0),U,3)=RMPRDT
    1514DR .K DR S DR="2///^S X=TYP;4.5////^S X=$G(HCPCS);5///^S X=QTY;9///^S X=SER;78///^S X=UN;8////^S X=RMPR(""STA"");11///^S X=4;62///^S X=ELS;63///^S X=SCAT;68///^S X=RMPRG;4.1////^S X=$P(^RMPR(661.1,HCPCS,0),U,4);4.7////^S X=RMCPT"
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR29BG.m

    r628 r636  
    11RMPR29BG ;OI-HINES/SPS -OWL BASE HCPCS ENTER/EDIT/DELETE RPC;12/27/2004
    2  ;;3.0;PROSTHETICS;**75,142**;Feb 09, 1996;Build 2
     2 ;;3.0;PROSTHETICS;**75**;Feb 09, 1996;Build 25
    33A1(RMAED,RMPRSITE,RMIE1,RMIE16,RMITM,RMQTY,RMUI,RMTT,RMPC,RMSN,RMHCPC,RMCPTM,RMVEN) ;roll and scroll entry point
    44 G A2
    55EN(RESULTS,RMAED,RMPRSITE,RMIE1,RMIE16,RMITM,RMQTY,RMUI,RMTT,RMPC,RMSN,RMHCPC,RMCPTM,RMVEN,RMBD,RMHTECH,RMPRTXT) ;RPC entry point
    66A2 ;
    7  N J,L,RESULTS,RMIE16C,RMIE16F,R6641,RSITE
     7 N J,L,RESULTS,RMIE16C,RMIE16F
    88 S RESULTS(0)=""
    99 K ^TMP($J)
     
    1616 S ^TMP("SPS",0)=RMAED_U_RMPRSITE_U_RMIE1_U_RMIE16_U_RMITM_U_RMQTY_U_RMUI_U_RMTT_U_RMPC_U_RMSN_U_RMHCPC_U_RMCPTM_U_RMVEN
    1717 S RMIE16F=$O(^RMPR(664.1,RMIE1,2,0))
    18  S R6641=$G(^RMPR(664.1,RMIE1,0))
    19  S RSITE=$P(R6641,U,15),RSITE=$O(^RMPR(669.9,"C",RSITE,0))
    20  I RSITE'=RMPRSITE S RMPRSITE=RSITE
    2118 I RMIE16F>0 S:RMIE16'=RMIE16F RMTT=$P(^RMPR(664.1,RMIE1,2,RMIE16F,0),U,7),RMPC=$P(^(0),U,8)
    2219 I RMIE16=RMIE16F D:RMTT'=$P(^RMPR(664.1,RMIE1,2,RMIE16F,0),U,7)!(RMPC'=$P(^(0),U,8))
     
    6057DEL ;
    6158 S DA=$P(^RMPR(664.1,RMIE1,2,RMIE16,0),U,5)
    62  I DA'="" D
    63  . S DIK="^RMPR(660," D ^DIK
    64  . K DA,DIK
     59 S DIK="^RMPR(660," D ^DIK
     60 K DA,DIK
    6561 S DA=$P(^RMPR(664.1,RMIE1,2,RMIE16,0),U,6)
    66  I DA'="" D
    67  . S DIK="^RMPR(664.2," D ^DIK
    68  . K DA,DIK
     62 S DIK="^RMPR(664.2," D ^DIK
     63 K DA,DIK
    6964 S DA(1)=RMIE1,DA=RMIE16,DIK="^RMPR(664.1,"_DA(1)_",2," D ^DIK
    7065 K DA,DIK
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR29CA.m

    r628 r636  
    11RMPR29CA ;OI-HINES/HNC,SPS -WORK ORDER SUSPENSE RPC;12/27/2004
    2  ;;3.0;PROSTHETICS;**75,122,142**;Feb 09, 1996;Build 2
     2 ;;3.0;PROSTHETICS;**75,122**;Feb 09, 1996;Build 2
    33A1(RMIE68,RMPRDUZ,RMSUSTAT,RMPR6641,RMPRTXT) ;roll and scroll entry point
    44 G A2
    55EN(RESULTS,RMIE68,RMPRDUZ,RMSUSTAT,RMPR6641,RMPRTXT) ;RPC entry point
    66A2 ;
    7  S RESULTS(0)="",STP=0
     7 S RESULTS(0)=""
    88 K ^TMP($J)
    99 ;
     
    1111 ;3=cancel or 4=cancel and clone
    1212 S RMIE=0
    13  F  S RMIE=$O(^RMPR(664.1,RMPR6641,2,RMIE)) Q:RMIE'>0  D  Q:STP=1
    14  .S RMIE60=$P(^RMPR(664.1,RMPR6641,2,RMIE,0),U,5) Q:'RMIE60
     13 F  S RMIE=$O(^RMPR(664.1,RMPR6641,2,RMIE)) Q:RMIE'>0  D
     14 .S RMIE60=$P(^RMPR(664.1,RMPR6641,2,RMIE,0),U,5)
    1515 .S ^TMP($J,RMIE60)=""
    16  .D FD
    17  .I STP=1 Q
    18  .D UPD
    19  I STP=1 G EXIT
     16 .D FD,UPD
    2017 I RMSUSTAT=1 D CNOTE
    2118 I RMSUSTAT=0 D INOTE,FD
     
    2421 I RMSUSTAT=4 D CANOTE^RMPR29CB
    2522 ;set status
    26  G EXIT
     23 Q
    2724CNOTE ;(#12) COMPLETION NOTE
    2825 ;set file 668
     
    10198 D ^DIC
    10299 I Y=-1 S RESULTS(0)="1^Error Modifying Record!" Q
     100 ;S DIE=DIC K DIC
    103101 S (DA,RMPRDA2)=+Y
     102 ;S DR="1" D ^DIE
    104103 K DIE,DR,Y
     104 ;S ^RMPR(668,RMIE68,1,0)="^668.011DA^1^1"
    105105 N RMPRC
    106106 S L="",LN=0
     
    167167 S:RMSUSTAT="" RMSUSTAT=0
    168168 L +^RMPR(660,RMIE60):2
    169  I $T=0 S RESULTS(0)="1^Someone else is Editing this entry! If this problem persists contact your IRM to clear the Lock Table",STP=1 Q
     169 I $T=0 S RESULTS(0)="1^Someone else is Editing this entry!" G EXIT
    170170 S RM680=$G(^RMPR(668,RMIE68,0))
    171171 S RM688=$G(^RMPR(668,RMIE68,8))
     
    202202 D FILE^DIE("","RMDAT","RMERROR")
    203203 L -^RMPR(660,RMIE60)
    204  I $D(RMERROR) S RMERR=1,STP=1 G ERR
     204 I $D(RMERROR) S RMERR=1 D ERR
    205205 ;
    206206 Q
    207207UPD ;update file 668 with 2319 records
    208  K DD,DO
     208 K DD,D0
    209209 S DA(1)=RMIE68
    210210 S DIC="^RMPR(668,"_DA(1)_","_"10,"
    211211 S DIC(0)="L",DLAYGO=668,X=RMIE60
    212212 D FILE^DICN
    213  K X,DD,DO
    214213 S DA(1)=RMIE68
    215214 S DIC="^RMPR(668,"_DA(1)_","_"11,"
    216215 S X=RMAMIS
    217216 D FILE^DICN
    218  K DIC,X,DLAYGO,DO
     217 K DIC,X,DLAYGO,D0
    219218 Q
    220219A3 G A4
     
    226225 Q
    227226ERR ;exit on error
    228  S RESULTS(0)="1^ERROR WAS "_RMERROR("DIERR",1,"TEXT",1)
    229227EXIT ;
    230  K %,BDC,RM688,RMAA,RMAMIS,RMCODT,RMDAT,RMDWRT,RMICD9,RMIE,RMIE60,RMINDT
    231  K RMPRCO,RMPRDI,RMSERV,RMSTAT,RMTRES,RMTYRE,STP
    232  Q
     228 K RMTYRE,RMTRES,RMSUSTAT,RMSTAT,RMSERV,RMEQU,RMPRTST,RMPRDUZ,RMPRDI,RMPRCO,RMPR6641,RMIE68
     229 K RMIE60,RMIE,RMICD9,RMDWRT,RMDAT,RMCODT,RMAMIS,RMAA,RM688,RMPRTXT
     230 K BDC,BAD,%,RMINDT,RMPREQU
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR29GA.m

    r628 r636  
    11RMPR29GA ;PHX/JLT,RVD,SPS-RMPR29 CONTINUED [ 09/29/94  11:22 AM ]
    2  ;;3.0;PROSTHETICS;**75,60,142**;Feb 09, 1996;Build 2
     2 ;;3.0;PROSTHETICS;**75,60**;Feb 09, 1996;Build 18
    33 ; Developed form RMPR29A for the GUI application
    44POST ;POST 2529-3 TO APPLIANCE/REPAIR FILE #660
     
    1414 .S HCPCS=$P($G(^RMPR(664.1,RMPRDA,2,RA,2)),U,1),RMCPT=$P($G(^(2)),U,2),RMHTECH=$P($G(^(2)),U,3)
    1515 .;Changed .01 and 1 fields to create date DT below 5/25/06 for 75 SPS
    16  .I RDA,'$D(^RMPR(660,RDA,0)) S RDA=""
    1716 .I 'RDA S DIC="^RMPR(660,",DLAYGO=660,DIC(0)="LZ",X=DT D FILE^DICN K DLAYGO Q:+Y'>0  S RDA=+Y,RNEW=$P(Y,U,3) S $P(^RMPR(660,RDA,0),U,1)=DT,$P(^(0),U,2)=RMPRDFN,$P(^(0),U,3)=DT
    1817DR .K DR
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR4C21.m

    r628 r636  
    11RMPR4C21 ;PHX/HNB-CANCEL A PURCHASE CARD TRANSACTION;3/1/1996
    2  ;;3.0;PROSTHETICS;**3,20,62,140**;Feb 09, 1996;Build 10
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2 ;;3.0;PROSTHETICS;**3,20,62**;Feb 09, 1996
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 ;RVD patch #62 - pce interface
    55 ;
     
    2525 S RMPR442=$P($G(^RMPR(664,RMPRA,4)),U,6)
    2626 I RMPR442="" G BYPASS
    27  I $P($G(^PRC(442,RMPR442,7)),U)=45 W !!,"Purchase Card CANCELLED in IFCAP, will cancel open Pros PC order, hit return" R X:10 G BYPASS
    2827 D CAN^PRCH7B(.X,RMPRA,RMPR442,0)
    2928 I X="^" W !!,"NOT CANCELED You must say YES to 'Approve and print Amendment number'" G EXIT
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR4E21.m

    r628 r636  
    11RMPR4E21 ;PHX/HNC - CLOSE OUT PURCHASE CARD TRANSACTION ;3/1/1996
    2  ;;3.0;PROSTHETICS;**3,12,26,28,30,34,41,45,62,111,78,114,118,133,137**;Feb 09, 1996;Build 5
     2 ;;3.0;PROSTHETICS;**3,12,26,28,30,34,41,45,62,111,78,114,118,133**;Feb 09, 1996;Build 2
    33 ;TH  Patch #78 - 08/04/03 - Add shipment date. Call routine ^RMPR4E23
    44 ;RVD patch #62 - PCE processing and link to suspense
     
    2525 S RM(RMPRA,0)=$G(^RMPR(664,RMPRA,0)),RM(RMPRA,2)=$G(^(2)),RM(RMPRA,4)=$G(^(4))
    2626 S RMPER=$P(RM(RMPRA,2),U,6),RMBAN=$P(RM(RMPRA,4),U,2),RMSHI=$P(RM(RMPRA,0),U,11),RMSHIEN=$P(RM(RMPRA,0),U,12)
    27  S:RMSHI=""!(RMSHI+0=0) RMSHI=0
    2827 ;added by #62
    2928 ;collect all items and previous linkage to suspense.
     
    7877 I $P(^RMPR(664,RMPRA,0),U,11)="",$P(^(0),U,10) S $P(^(0),U,11)=$P(RM(RMPRA,0),U,10)
    7978 S DA=RMPRA,DIE="^RMPR(664,",DR="12;17;26" D ^DIE
    80  S:+$P(^RMPR(664,RMPRA,0),U,11)=0 $P(^(0),U,11)=0
    8179 I RMPER'=$P(^RMPR(664,RMPRA,2),U,6) S RMPERF=1
    8280 I RMBAN'=$P(^RMPR(664,RMPRA,4),U,2) S RMBANF=1
    83  I RMSHI'=$P(^RMPR(664,RMPRA,0),U,11)!($P(^(0),U,11)=0&$P(^(0),U,12)) S RMSHIF=1
     81 I RMSHI'=$P(^RMPR(664,RMPRA,0),U,11) S RMSHIF=1
     82 S:$P(^RMPR(664,RMPRA,0),U,11)="" $P(^(0),U,11)=0
    8483CHK1 ;delete imcomplete items
    8584 S DIK="^RMPR(664,"_RMPRA_",1,",DA(1)=RMPRA F I=0:0 S I=$O(^RMPR(664,RMPRA,1,I)) Q:I'>0  S RMPRI=$G(^(I,0)) I $P(RMPRI,U,3)=""!($P(RMPRI,U,4)="")!($P(RMPRI,U,5)="") S DA=I D ^DIK
     
    140139 .I DA'="" S SKPSHDT=1 D ^RMPR4E23 K SKPSHDT
    141140EX1 ;
    142  I $D(RM60LINK) D
    143  . F I=0:0 S I=$O(RM60LINK(I)) Q:I'>0  D
    144  .. I '$D(^RMPR(660,I,0)) K RM60LINK(I)
    145141 ;added by #62
    146142 D:$D(RM68FG)=1 AUTO^RMPRPCEL D:$D(RM68FG)>1 MAN^RMPRPCEL
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR4LOP.m

    r628 r636  
    11RMPR4LOP ;PHX/HNB - LIST OPEN PURCHASE CARD TRANSACTIONS ;3/1/1996
    2  ;;3.0;PROSTHETICS;**3,20,140**;Feb 09, 1996;Build 10
     2 ;;3.0;PROSTHETICS;**3,20**;Feb 09, 1996
    33 ;sort by originator, assistance from Long Beach PVB
    44 W !,"This report lists Open Purchase Card Transactions created in the"
     
    2323EXIT I $E(IOST)["C"&($Y<20) F  W ! Q:$Y>20
    2424 I $D(RMPREDT),'$D(DTOUT),'$D(DUOUT),$E(IOST)["C",'$D(RMPRFLL),RMPREND'=1 S DIR(0)="E" D ^DIR
    25 EX K RMPREND,RMPROBL,RMPRFLL,RMPRFLG,DUOUT,DIR,RO,RP,RMPRY,RMPRCOUN,RMPRX,RMPRBDT,RMPREDT,RMPRCK,%DT,X,Y,PAGE,IT,ZTSK,^TMP($J),PRCIEN D ^%ZISC
     25EX K RMPREND,RMPROBL,RMPRFLL,RMPRFLG,DUOUT,DIR,RO,RP,RMPRY,RMPRCOUN,RMPRX,RMPRBDT,RMPREDT,RMPRCK,%DT,X,Y,PAGE,IT,ZTSK,^TMP($J) D ^%ZISC
    2626 K CNT,DTOUT,ROBL,X1,X2,RMPR,%ZIS,INIC,INIB
    2727 Q
     
    4141 I DUZ=$P(^RMPR(664,RP,0),U,9)!($D(^XUSEC("RMPR FCP MANAGER",DUZ))) W $$DEC^RMPR4LI($P(^RMPR(664,RP,4),U,1),$P(^RMPR(664,RP,0),U,9),RP)
    4242 E  W "encrypted"
    43  S RD=$P(^RMPR(664,RP,0),U,1),PRCIEN=$P(^RMPR(664,RP,4),U,6)
     43 S RD=$P(^RMPR(664,RP,0),U,1)
    4444  S RD=$P(RD,"."),RD=$E(RD,4,5)_"/"_$E(RD,6,7)
    45  W ?36,RD I PRCIEN,($P($G(^PRC(442,PRCIEN,7)),U)=45) W "#"
     45 W ?36,RD
    4646 W ?43,$P(^RMPR(664,RP,4),U,5)
    4747 W ?50
     
    6969HDR I PAGE'=1!($E(IOST)["C") W @IOF
    7070 I $E(IOST)["C" W @IOF G EXIT:X="^"
    71  W !,RMPRX_"-",RMPRY," Open 2421PC Transactions     "_"STA "_$$STA^RMPRUTIL,?72,"PAGE ",PAGE,!,"# = PURCHASE CARD Order CANCELLED on IFCAP SYSTEM",! S PAGE=PAGE+1 Q
     71 W !,RMPRX_"-",RMPRY," Open 2421PC Transactions     "_"STA "_$$STA^RMPRUTIL,?72,"PAGE ",PAGE,! S PAGE=PAGE+1 Q
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR4OPN.m

    r628 r636  
    11RMPR4OPN ;PHX/HNB - LIST OPEN PURCHASE CARD TRANSACTIONS ;3/1/1996
    2  ;;3.0;PROSTHETICS;**3,20,140**;Feb 09, 1996;Build 10
     2 ;;3.0;PROSTHETICS;**3,20**;Feb 09, 1996
    33 W !,"This report lists Open Purchase Card Transactions created in the"
    44 W !,"Prosthetics Package."
     
    1818EXIT I $E(IOST)["C"&($Y<20) F  W ! Q:$Y>20
    1919 I $D(RMPREDT),'$D(DTOUT),'$D(DUOUT),$E(IOST)["C",'$D(RMPRFLL),RMPREND'=1 S DIR(0)="E" D ^DIR
    20 EX K RMPREND,RMPROBL,RMPRFLL,RMPRFLG,DUOUT,DIR,RO,RP,RMPRY,RMPRCOUN,RMPRX,RMPRBDT,RMPREDT,RMPRCK,%DT,X,Y,PAGE,IT,ZTSK,^TMP($J),PRCIEN D ^%ZISC
     20EX K RMPREND,RMPROBL,RMPRFLL,RMPRFLG,DUOUT,DIR,RO,RP,RMPRY,RMPRCOUN,RMPRX,RMPRBDT,RMPREDT,RMPRCK,%DT,X,Y,PAGE,IT,ZTSK,^TMP($J) D ^%ZISC
    2121 K CNT,DTOUT,ROBL,X1,X2,RMPR,%ZIS
    2222 Q
     
    3636 I DUZ=$P(^RMPR(664,RP,0),U,9)!($D(^XUSEC("RMPR FCP MANAGER",DUZ))) W $$DEC^RMPR4LI($P(^RMPR(664,RP,4),U,1),$P(^RMPR(664,RP,0),U,9),RP)
    3737 E  W "encrypted"
    38  S RD=$P(^RMPR(664,RP,0),U,1),PRCIEN=$P(^RMPR(664,RP,4),U,6)
     38 S RD=$P(^RMPR(664,RP,0),U,1)
    3939 S RD=$P(RD,"."),RD=$E(RD,4,5)_"/"_$E(RD,6,7)
    40  W ?36,RD I PRCIEN,($P($G(^PRC(442,PRCIEN,7)),U)=45) W "#"
     40 W ?36,RD
    4141 W ?43,$P(^RMPR(664,RP,4),U,5)
    4242 W ?50
     
    5959 Q
    6060HDR I PAGE'=1!($E(IOST)["C") W @IOF
    61  W !,RMPRX_"-",RMPRY," Open 2421PC Transactions     "_"STA "_$$STA^RMPRUTIL,?72,"PAGE ",PAGE,!,"# = PURCHASE CARD Order CANCELLED on IFCAP SYSTEM",! S PAGE=PAGE+1 Q
     61 W !,RMPRX_"-",RMPRY," Open 2421PC Transactions     "_"STA "_$$STA^RMPRUTIL,?72,"PAGE ",PAGE,! S PAGE=PAGE+1 Q
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR4P21.m

    r628 r636  
    11RMPR4P21 ;PHX/HNC,RVD -PRINT PURCHASE CARD ORDER ;3/1/1996
    2  ;;3.0;PROSTHETICS;**3,15,19,26,55,90,132,133,139**;Feb 09, 1996;Build 4
     2 ;;3.0;PROSTHETICS;**3,15,19,26,55,90,132,133**;Feb 09, 1996;Build 2
    33 ;
    44 ; ODJ - patch 55 - 1/29/01 - replace hard code mail route symbol 121
     
    6363 I VAPA(2)'="" W ?5,VAPA(2),?40,$E(RMPRB,1,40),!,?5,VAPA(4)_","_$P(VAPA(5),U,2)_" "_VAPA(6),?40,"9. Authority For Issuance  CFR 17.115",!,?5,VAPA(8),?43,"CHARGE MEDICAL APPROPRIATION"
    6464 W !,RMPRB
    65  ;Remove claim number print in *139 since it held SSN at times
    66  W !,"7. Claim Number",?40,"8. ID #:"_" "_$P($P(VADM(2),U,2),"-",3),!,RMPRB,!,"10. Statistical Data",?30,"11. FOB Point",?46,"12. Discount",?61,"13. Delivery Time"
     65 W !,"7. Claim Number"_" "_VAEL(7),?40,"8. ID #:"_" "_$P($P(VADM(2),U,2),"-",3),!,RMPRB,!,"10. Statistical Data",?30,"11. FOB Point",?46,"12. Discount",?61,"13. Delivery Time"
    6766 S R664("E")=$O(R664(1,0)),CAT=$P(R664(1,R664("E"),0),U,10)
    6867 S RMPRCAT=$S(CAT=1:"SC/OP",CAT=2:"SC/IP",CAT=3:"NSC/IP",CAT=4:"NSC/OP",1:"")
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR8PG.m

    r628 r636  
    11RMPR8PG ;PHX,HOIFO/JLT,SPS-PURGE 668 SUSPENSE FILE ;8/29/1994
    2  ;;3.0;PROSTHETICS;**5,75,140**;Feb 09, 1996;Build 10
     2 ;;3.0;PROSTHETICS;**5,75**;Feb 09, 1996;Build 25
    33 ;
    44 ;02/03/06 Added code to delete the pointer in 664.1 field .05 when a
     
    1414 S DIS(0)="I $P(^RMPR(668,D0,0),U,7)=RMPR(""STA"")",IOP=ION,DIC="^RMPR(668,",FLDS=".01;C1,1;C20;L17,2,3,6;C45;L15,5;C65,4;C1,7;C1",BY="5",FR=$S($D(^RMPR(668,"B")):$O(^RMPR(668,"B","")),1:2890101)
    1515 S TO=RMPRDT,DHD="Purge Suspense File Entries from Station/Division "_RMPR("STA") D EN1^DIP
    16  N RMPR6641
    1716 F  S RMPRIEN=$O(^RMPR(668,RMPRIEN)) Q:RMPRIEN'>0  I $P($G(^RMPR(668,RMPRIEN,0)),U,7)=RMPR("STA") I ($P(^RMPR(668,RMPRIEN,0),U,5))&($P(^(0),U,5)<RMPRDT) S DA=RMPRIEN,DIC="^RMPR(668," S DA=RMPRIEN,DIK=DIC D ^DIK D  S RDEL=RDEL+1
    18  . S RMPR6641=0 F  S RMPR6641=$O(^RMPR(664.1,"SUS",DA,RMPR6641)) Q:RMPR6641'>0  D
     17 . F  S RMPR6641=$O(^RMPR(664.1,"SUS",DA,RMPR6641)) Q:RMPR6641'>0  D
    1918 .. I $D(^RMPR(664.1,RMPR6641,0)) S $P(^(0),U,8)=""
    2019END I $G(RDEL)<1 W !!,"No Suspense entries purged."
     
    2221 I $G(RDEL)=1 W !!,RDEL,"Suspense entry purged. "
    2322EXIT ;common exit point
    24  K I,RD,X,DIS,%ZIS,X1,X2,RMPRIEN,RMPRDT,RMPR6641,RDEL,DIC,DIK,DA,RL,BY,DHD,DHIT,FLDS,FR,TO D ^%ZISC Q
     23 K I,RD,X,DIS,%ZIS,X1,X2,RMPRIEN,RMPRDT,RDEL,DIC,DIK,DA,RL,BY,DHD,DHIT,FLDS,FR,TO D ^%ZISC Q
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR9CA.m

    r628 r636  
    11RMPR9CA ;OI-HINES/HNC -SUSPENSE RPC;12/27/2004
    2  ;;3.0;PROSTHETICS;**90,135,141**;Feb 09, 1996;Build 5
     2 ;;3.0;PROSTHETICS;**90**;Feb 09, 1996
    33A1 ;roll and scroll entry point
    44 G A2
     
    137137 F  S RMPRCMT=$O(^RMPR(668,RMIE68,3,RMPRCMT)) Q:RMPRCMT=""  D
    138138 .S GMRCMT(RMPRCMT)=^RMPR(668,RMIE68,3,RMPRCMT,0)
    139  D CMT^GMRCGUIB(GMRCO,.GMRCMT,DUZ,RMPREODT,DUZ)
     139 S RMGMRCO=$$RC^GMRCGUIA(.GMRCO,DUZ,RMPREODT,.GMRCMT,DUZ)
    140140 K RMPREODT,GMRCO,RMGMRCO,GMRCMT,RMPRCMT
    141141 S RESULTS(0)="0^Completed Suspense Action, and Posted note to CPRS Consult.  Suspense status has changed to PENDING."
     
    190190 Q
    191191UPD ;update file 668 with 2319 records
    192  S DA(1)=RMIE68 K DD,DO,DIC
     192 S DA(1)=RMIE68
    193193 S DIC="^RMPR(668,"_DA(1)_","_"10,"
    194194 S DIC(0)="L",DLAYGO=668,X=RMIE60
    195195 D FILE^DICN
    196  K X,DD,DO,DIC
    197  S DA(1)=RMIE68,DIC(0)="L",DLAYGO=668
     196 S DA(1)=RMIE68
    198197 S DIC="^RMPR(668,"_DA(1)_","_"11,"
    199198 S X=RMAMIS
    200199 D FILE^DICN
    201  K DIC,X,DLAYGO,DD,DO
     200 K DIC,X,DLAYGO
    202201 Q
    203202A3 G A4
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR9DO.m

    r628 r636  
    11RMPR9DO ;HOIFO/HNC -  ORDER CONROL PROCESSING-REMOTE PROCEDURE ;9/8/03  07:12
    2  ;;3.0;PROSTHETICS;**59,77,90,60,135**;Feb 09, 1996;Build 12
     2 ;;3.0;PROSTHETICS;**59,77,90,60**;Feb 09, 1996;Build 18
    33 ;
    44 ;8/5/03 Make sure no dups, HNC patch 77
     
    175175 ;PPD=1 for previous pending
    176176 I ADATE'="" S (PDAY,WRKDAY)=$$WRKDAY^RMPREOU(RMPRA)
    177  I ADATE="" S (PDAY,WRKDAY)=$$CWRKDAY^RMPREOU(RMPRA) I $P(^RMPR(668,RMPRA,0),U,10)="X" S (PDAY,WRKDAY)=$$CANWKDY^RMPREOU(RMPRA)
     177 I ADATE="" S (PDAY,WRKDAY)=$$CWRKDAY^RMPREOU(RMPRA)
    178178 I ADATE'="" S CDAY=$$PDAY^RMPREOU(RMPRA)
    179  ;
    180179 S STATUS=$$STATUS^RMPREOU(RMPRA)
    181180 I STATUS["PENDING" D
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPR9P21.m

    r628 r636  
    11RMPR9P21 ;PHX/SPS,HNC,RVD -SEND DATA TO PC TO PRINT PURCHASE CARD ORDER ;4/27/05
    2  ;;3.0;PROSTHETICS;**90,116,119,133,139**;Feb 09, 1996;Build 4
     2 ;;3.0;PROSTHETICS;**90,116,119,133**;Feb 09, 1996;Build 2
    33 ;
    44EN(RMPRA,RMPRSITE,RMPRPTR) ;ENTRY POINT FOR VISTA ROLL AND SCROLL
     
    6767 I VAPA(2)'="" S ^TMP($J,"RMPRPRT",CNT+10)="    "_VAPA(8)_SPACE_"CHARGE MEDICAL APPROPRIATION"
    6868 S ^TMP($J,"RMPRPRT",CNT+11)=RMPRB
    69  S ^TMP($J,"RMPRPRT",CNT+12)="7. Claim Number                        8. ID #:"_" "_$P($P(VADM(2),U,2),"-",3)
     69 S ^TMP($J,"RMPRPRT",CNT+12)="7. Claim Number   "_VAEL(7)_"             8. ID #:"_" "_$P($P(VADM(2),U,2),"-",3)
    7070 S ^TMP($J,"RMPRPRT",CNT+13)=RMPRB
    7171 S ^TMP($J,"RMPRPRT",CNT+14)="10. Statistical Data         11. FOB Point    12. Discount    13. Delivery Time"
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRD1.m

    r628 r636  
    11RMPRD1 ;PHX/HNB-DISPLAY LOOKUP ;10/19/1993 [ 06/28/94  3:17 PM ]<<= NOT VERIFIED >
    2  ;;3.0;PROSTHETICS;**38,141**;Feb 09, 1996;Build 5
     2 ;;3.0;PROSTHETICS;**38**;Feb 09, 1996
    33EN ;DISPLAY DATE,PATIENT,ITEM,COST FROM 660
    44 S Z=^RMPR(660,+Y,0)
     
    2222 .F  S RMPRI=$O(^RMPR(664,+Y,1,RMPRI)) Q:$G(RMPRI)'>0  D
    2323 ..S RMPRI1=$P(^RMPR(664,+Y,1,RMPRI,0),U,1) Q:$G(RMPRI1)'>0
    24  ..S RMPRIT=$P($G(^RMPR(661,RMPRI1,0)),U,1)
    25  ..S:RMPRIT RMPRN=$P(^PRC(441,RMPRIT,0),U,2) S:RMPRIT="" RMPRN="*MASTER ITEM DELETED*"
     24 ..S RMPRIT=$P(^RMPR(661,RMPRI1,0),U,1)
     25 ..S RMPRN=$P(^PRC(441,RMPRIT,0),U,2)
    2626 ..W ?64,$E(RMPRN,1,15)
    2727 ..I $O(^RMPR(664,+Y,1,RMPRI)) W !
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRDDC.m

    r628 r636  
    11RMPRDDC ;VACO/HNC - SERVER ROUTINE FOR DALC RECORD IN 660 ; 11/01/2006
    2  ;;3.0;PROSTHETICS;**60,141**;Feb 09, 1996;Build 5
     2 ;;3.0;PROSTHETICS;**60**;Feb 09, 1996;Build 18
    33 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 ;
     
    99 ;loop msg
    1010 K RMPRMSG
    11  N ERR
    1211 S RMPRCNT=0
    1312 S RMPRMSGC=0
     
    5150 .; RMPRDAT,U,21 IS RESERVED FOR A RETURN NUMBER TBD SKIPPED
    5251 .S RMPROS=$P($G(RMPRDATA),U,22)   ;ordering station
    53  .S RMPRSTA=$$FIND1^DIC(4,"","X",RMPROS,"D","","ERR")
    54  .I $D(ERR)!(RMPRSTA'>0) D
    55  .. S RMPR6699=$O(^RMPR(669.9,0)),RMPRSTA=$P(^RMPR(669.9,RMPR6699,0),U,2)
    5652 .S X=$P($G(RMPRDATA),U,20)  ;return date
    5753 .S X=$E(X,5,6)_"/"_$E(X,7,8)_"/"_$E(X,3,4) D ^%DT S RMPRRT=Y
     
    114110 K RMPRITM,RMPRHCPE,RMPRHCP,RMPRSTN,RMPRCMT,RMPRCOST,RMPRQTY,RMPRREF
    115111 K RMPRSRL,RMPRVND,RMPRDUN,RMPRTAX,RMPRRT,DFN,RMPR(660),RMPRCNT,RMPRDATA
    116  K RMPRFLG,RMPROUT,RMPRNAM,RMPRWHN,RMPRMSGC,RMPRPNAM,RMPRNPMN,RMPRSTA,RMPR6699
     112 K RMPRFLG,RMPROUT,RMPRNAM,RMPRWHN,RMPRMSGC,RMPRPNAM,RMPRNPMN
    117113 ;purge server message
    118114 S XMSER="S."_XQSOP,XMZ=XQMSG D REMSBMSG^XMA1C
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPREOS.m

    r628 r636  
    11RMPREOS ;HINES-CIOFO/HNC -Suspense Processing ; 2/25/04 10:26am
    2  ;;3.0;PROSTHETICS;**45,50,52,55,57,62,80,85,97,135**;Feb 09, 1996;Build 12
     2 ;;3.0;PROSTHETICS;**45,50,52,55,57,62,80,85,97**;Feb 09, 1996
    33 ;
    44 ;  HNC - patch 52 - 9/22/00 Modify EN2 not to check for RMPRFLAG
     
    7272 S GMRCO=$P(^RMPR(668,DA,0),U,15) Q:GMRCO=""
    7373 ;note in array
    74  S RMPRCMT=0,GMRCMT=1
     74 S RMPRCMT=0
    7575 F  S RMPRCMT=$O(^RMPR(668,DA,3,RMPRCMT)) Q:RMPRCMT=""  D
    7676 .S GMRCMT(RMPRCMT)=^RMPR(668,DA,3,RMPRCMT,0)
    77  I $G(GMRCMT(1))="" S GMRCMT(1)="nothing noted"
     77 I $G(GMRCMT)="" S GMRCMT="nothing noted"
    7878 ;call api
    79  D CMT^GMRCGUIB(GMRCO,.GMRCMT,DUZ,RMPREODT,DUZ)
     79 S RMGMRCO=$$RC^GMRCGUIA(.GMRCO,DUZ,RMPREODT,.GMRCMT,DUZ)
    8080 K RMPREODT,GMRCO,RMGMRCO,GMRCMT,RMPRCMT
    8181 Q
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPREOU.m

    r628 r636  
    11RMPREOU ;HINES/HNC -Suspense Processing Utility  ;2-2-2000
    2  ;;3.0;PROSTHETICS;**45,55,59,135**;Feb 09, 1996;Build 12
     2 ;;3.0;PROSTHETICS;**45,55,59**;Feb 09, 1996
    33 ; Add new function for working days M-F.
    44 Q
     
    104104 D WDAY
    105105 Q RMTO
    106 CANWKDY(DA) ;*135 working days between create and cancel date for cancel w/o initial action records.
    107  ;holidays are counted as working days
    108  ;parm 1=ien 668, DA
    109  N RMTO,RB,RE
    110  S RB=$P($G(^RMPR(668,DA,0)),U)
    111  Q:RB="" 0
    112  S RE=$P(^RMPR(668,DA,5),U)
    113  Q:RE="" 0
    114  D WDAY
    115  Q RMTO
    116106WDAY ;       RB - begining date
    117107 ;       RE - ending date
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRP21.m

    r628 r636  
    11RMPRP21 ;PHX/RFM-PRINT 10-2421 ;8/29/1994
    2  ;;3.0;PROSTHETICS;**3,19,55,90,129,133,139**;Feb 09, 1996;Build 4
     2 ;;3.0;PROSTHETICS;**3,19,55,90,129,133**;Feb 09, 1996;Build 2
    33 ;
    44 ; ODJ - patch 55 - 1/29/01 - extrinsic to get mail routing code
     
    66 ;                            nois AUG-1097-32118
    77 ;
    8  I '$D(RMPR)!'$D(RMPRSITE) D DIV4^RMPRSIT Q:$D(X)
     8 I '$D(RMPR) D DIV4^RMPRSIT Q:$D(X)
    99 I +$P(^RMPR(669.9,RMPRSITE,0),U,5) I $D(RMPRA)&($D(^%ZIS(1,$P(^RMPR(669.9,RMPRSITE,0),U,5),0))) S IOP="Q;"_$P(^(0),U,1) S %ZIS="MQ" D ^%ZIS G:POP EX S ZTIO=ION G PT
    1010 I $D(RMPRA)&('$P(^RMPR(669.9,RMPRSITE,0),U,5)) G ZIS
     
    1515 S DIC("W")="D EN2^RMPRD1" D ^DIC G:Y<0 EX S RMPRA=+Y I $P(^RMPR(664,+Y,0),U,5) D M2^RMPRM
    1616 D PR^RMPR21A I %'>0 G EX
    17  I +$P(^RMPR(669.9,RMPRSITE,0),U,5) I $D(RMPRA)&($D(^%ZIS(1,$P(^RMPR(669.9,RMPRSITE,0),U,5),0))) S IOP="Q;"_$P(^(0),U,1),%ZIS="Q" D ^%ZIS G:POP EX S ZTIO=ION G PT
     17 ;I +$P(^RMPR(669.9,RMPRSITE,0),U,5) I $D(RMPRA)&($D(^%ZIS(1,$P(^RMPR(669.9,RMPRSITE,0),U,5),0))) S IOP="Q;"_$P(^(0),U,1),%ZIS="Q" D ^%ZIS G:POP EX S ZTIO=ION G PT
    1818ZIS S %ZIS="QM" D ^%ZIS G:POP EX
    1919 I '$D(IO("Q")) U IO G PRT
     
    2323PRT ;ENTRY POINT TO PRINT 2421S
    2424 S %X="^RMPR(664,RMPRA,",%Y="R664(" D %XY^%RCR K %X,%Y
    25  S RDUZ=$P(R664(0),U,9),RDUZ=$P(^VA(200,RDUZ,0),U,1),DFN=$P(R664(0),U,2),RTN=$P(R664(0),U,7),CP=$P(R664(0),U,6),CP=$P($G(^PRCS(410,CP,0)),U,1),RMPRPAGE=2
     25 S RDUZ=$P(R664(0),U,9),RDUZ=$P(^VA(200,RDUZ,0),U,1),DFN=$P(R664(0),U,2),RTN=$P(R664(0),U,7),CP=$P(R664(0),U,6),CP=$P(^PRCS(410,CP,0),U,1),RMPRPAGE=2
    2626 D ADD^VADPT,DEM^VADPT,ELIG^VADPT
    2727 W:$Y>0 @IOF W ?20,"OMB Number 2900-0188",?50,"PO#: "
     
    5959 I VAPA(2)'="" W ?5,VAPA(2),?40,$E(RMPRB,1,40),!,?5,VAPA(4)_","_$P(VAPA(5),U,2)_" "_VAPA(6),?40,"9. Authority For Issuance  CFR 17.115",!,?5,VAPA(8),?43,"CHARGE MEDICAL APPROPRIATION"
    6060 W !,RMPRB
    61  ;Remove claim number print in *139 since it held SSN at times
    62  W !,"7. Claim Number",?40,"8. SSN"_" "_$P($P(VADM(2),U,2),"-",3),!,RMPRB,!,"10. Statistical Data",?30,"11. FOB Point",?46,"12. Discount",?61,"13. Delivery Time"
     61 W !,"7. Claim Number"_" "_VAEL(7),?40,"8. SSN"_" "_$P($P(VADM(2),U,2),"-",3),!,RMPRB,!,"10. Statistical Data",?30,"11. FOB Point",?46,"12. Discount",?61,"13. Delivery Time"
    6362 S R664("E")=$O(R664(1,0)),CAT=$P(R664(1,R664("E"),0),U,10)
    6463 S RMPRCAT=$S(CAT=1:"SC/OP",CAT=2:"SC/IP",CAT=3:"NSC/IP",CAT=4:"NSC/OP",1:"") S SPE=$P(R664(1,R664("E"),0),U,11)
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRPAT2.m

    r628 r636  
    11RMPRPAT2 ;PHX/RFM/JLT/HNC-DISPLAY PATIENT ITEM ACTIVITY ;10/19/1993
    2  ;;3.0;PROSTHETICS;**32,34,29,44,99,75,137**;Feb 09, 1996;Build 5
    3  D HDR N RMPRMERG S RMPRMERG=0
     2 ;;3.0;PROSTHETICS;**32,34,29,44,99,75**;Feb 09, 1996;Build 25
     3 D HDR
    44 S (RA,AN,ANS,RK,RZ)=0 K ^TMP($J,"TT"),^TMP($J,"AG"),IT
    55 MERGE ^TMP($J,"TT")=^RMPR(660,"AC",RMPRDFN)
    6  ;Check for merged accounts
    7  I $D(^XDRM("B",RMPRDFN_";DPT(")) D
    8  . S RMPRMERG=$O(^XDRM("B",RMPRDFN_";DPT(",RMPRMERG)) Q:RMPRMERG=""
    9  . S RMPRMERG=+^XDRM(RMPRMERG,0) Q:RMPRMERG=0
    10  . MERGE ^TMP($J,"TT")=^RMPR(660,"AC",RMPRMERG)
    116 S B=0
    127 F  S B=$O(^TMP($J,"TT",B)) Q:B'>0  D
     
    2116 . .S ^TMP($J,"AG",GN,ND,BC)=B
    2217 S B=""
    23  F  S B=$O(^TMP($J,"AG",B)) Q:+B=0  D
     18 F  S B=$O(^TMP($J,"AG",B)) Q:B'>0  D
    2419 .S BC=""
    2520 .F  S BC=$O(^TMP($J,"AG",B,BC)) Q:BC'>0  D
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRPCEB.m

    r628 r636  
    11RMPRPCEB ;HIN/RVD-PROS PCE BACKGROUND UTILITY ; 1/23/04 8:09am
    2  ;;3.0;PROSTHETICS;**62,69,77,82,78,114,120,133,142**;Feb 09, 1996;Build 2
     2 ;;3.0;PROSTHETICS;**62,69,77,82,78,114,120,133**;Feb 09, 1996;Build 2
    33 ;
    44 ;RVD patch #69 - add STATION in the error message.
     
    2727 F  S RI=$O(^RMPR(660,RI)) Q:RI'>0  D
    2828 .S RM600=$G(^RMPR(660,RI,0))
    29  .I $P(RM600,U,2)="" Q
    3029 .S RM611=$G(^RMPR(660,RI,1))
    3130 .S RM610=$G(^RMPR(660,RI,10))
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRPCED.m

    r628 r636  
    11RMPRPCED ;Hines OIFO/RVD - Prosthetics/660/668/PCE DELETE ;7/30/02  09:39
    2  ;;3.0;PROSTHETICS;**62,70,121,131,141**;Feb 09, 1996;Build 5
     2 ;;3.0;PROSTHETICS;**62,70,121,131**;Feb 09, 1996;Build 3
    33 ;RVD 7/1/02 - patch #70 - new RMPR variables before calling PCE.
    44 ;
     
    5252 .S RMAMIS68=$G(^RMPR(660,I,"AMS")) S:RMAMIS68=RMAMIS RMCNT=RMCNT+1
    5353 ;if no other line item of the same GROUPER #, then delete.
    54  I RMCNT=1,RMAMIEN D
     54 I RMCNT=1 D
    5555 .S DA=RMAMIEN
    5656 .S DA(1)=RMIE68,DIK="^RMPR(668,"_DA(1)_",11,"
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRPIY7.m

    r628 r636  
    11RMPRPIY7 ;HINCIO/ODJ - PIP EDIT - PROMPTS ;9/18/02  15:17
    2  ;;3.0;PROSTHETICS;**61,118,139**;Feb 09, 1996;Build 4
     2 ;;3.0;PROSTHETICS;**61,118**;Feb 09, 1996
    33 ;
    44 ;DBIA # 800 - FILEMAN read of file #440.
     
    2121 S RMPR5("IEN")=""
    2222LOCNM1 D ^DIR
    23  ;Patch *139 removes upper case translation to allow access to lower
    24  ;case entries used in location creation option
    25  ;S X=$TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
     23 S X=$TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
    2624 I $G(RMPR5("IEN"))'="" S RMPREXC="" G LOCNMX
    2725 I $D(DTOUT) S RMPREXC="T" G LOCNMX
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRPIYF.m

    r628 r636  
    11RMPRPIYF ;PHX/RFM,RVD-EDIT ISSUE FROM STOCK ;8/2/02  07:27
    2  ;;3.0;PROSTHETICS;**61,117,139**;Feb 09, 1996;Build 4
     2 ;;3.0;PROSTHETICS;**61,117**;Feb 09, 1996
    33 ; RVD #61 - phase III of PIP enhancement.
    44 ;
     
    7575 ;
    7676DEL1 ;ENTRY POINT TO DELETE AN ISSUE FROM STOCK
    77  ;** MOVED TO RMPRPIFD DUE TO SIZE CONSTRAINTS
    78  G DEL1^RMPRPIFD
     77 K DIR
     78 S DIR("A")="Are you sure you want to DELETE this entry",DIR("B")="N",DIR(0)="Y"
     79 D ^DIR I $D(DTOUT)!$D(DUOUT)!$D(DIRUT) G EXIT
     80 I Y'=1 G CO^RMPRPIYE
     81 ;
     82DEL2 ;call API for returning item to PIP
     83 S (RMCHK,RMERPCE)=0
     84 S RMI68=$P($G(^RMPR(660,RMPRIEN,10)),U,1) I RMI68>0 D  I RMERPCE W !!,"** STOCK ISSUE DELETE ABORTED",!! G EXIT
     85 .S RMCHK=$$DEL^RMPRPCED(RMPRIEN)
     86 .I RMCHK'=0 W !!,"*** ERROR in PCE DELETE, Please notify your IRM..660 IEN = ",RMPRIEN,!! S RMERPCE=1 H 3
     87 S RMPR60("IEN")=RMPRIEN
     88 S RMCHK=$$DEL^RMPRPIU3(.RMPR60)
     89 I $G(RMCHK) W !,"*** Error in API RMPRPIU3, ERROR = ",RMCHK,!,"*** Please inform your IRM !!",! G EXIT
     90 ;
     91 W $C(7),!?10,"Deleted..." H 1
    7992EXIT ;KILL VARIABLES AND EXIT ROUTINE
    8093 I $G(RMPRIEN),$D(^RMPR(660,RMPRIEN)) L -^RMPR(660,RMPRIEN)
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRPRT1.m

    r628 r636  
    11RMPRPRT1 ;PHX/HNB-CONTINUATION OF PRINT 2319 ;10/19/1993
    2  ;;3.0;PROSTHETICS;**10,99,137,141**;Feb 09, 1996;Build 5
     2 ;;3.0;PROSTHETICS;**10,99**;Feb 09, 1996
    33 ;CALLED BY END^RMPRPRT
    44 ;VARIABLES REQUIRED: R5 - A STRING ARRAY HOLDING PATIENT'S PROSTHETIC
    55 ;                         DISABILITY CODE INFORMATION
    6  N RMPRMERG S RMPRMERG=0
    7  I $D(^XDRM("B",RMPRDFN_";DPT(")) D
    8  . S RMPRMERG=$O(^XDRM("B",RMPRDFN_";DPT(",RMPRMERG)) Q:RMPRMERG=""
    9  . S RMPRMERG=+^XDRM(RMPRMERG,0)
    106 I $Y>(IOSL-6) W @IOF D HDR^RMPRPRT
    117 W !!,"PSC Issue Card: " S J=0 W !
     
    4743 S RA=""
    4844 F  S RA=$O(^RMPR(660,"AC",RMPRDFN,RA)) Q:RA'>0  S AN="" F  S AN=$O(^RMPR(660,"AC",RMPRDFN,RA,AN)) Q:AN'>0  S RC=RC+1,Y=^RMPR(660,AN,0) D PRT I $Y>(IOSL-6) W @IOF D HDR^RMPRPRT
    49  S RA=""
    50  I RMPRMERG D
    51  . F  S RA=$O(^RMPR(660,"AC",RMPRMERG,RA)) Q:RA'>0  S AN="" F  S AN=$O(^RMPR(660,"AC",RMPRMERG,RA,AN)) Q:AN'>0  S RC=RC+1,Y=^RMPR(660,AN,0) D PRT I $Y>(IOSL-6) W @IOF D HDR^RMPRPRT
    5245 I RC=0 W !,"No Appliances or Repairs exist for this veteran!",!!
    5346 E  W !!,"End of Appliance/Repair records for this veteran!",!!," *Historical Item"
     
    8275 K RMPRLPRO
    8376 I VEN'="" W ?33,$E(VEN,1,10)
    84  W:$G(STA)'="" ?45,$P($G(^DIC(4,STA,99)),U,1) W ?50,$E(SN,1,10),?62,DEL,?72,$J($S(CST'="":CST,$P(Y,U,17):$P(Y,U,17),1:""),0,2)
     77 W ?45,$P(^DIC(4,STA,99),U,1),?50,$E(SN,1,10),?62,DEL,?72,$J($S(CST'="":CST,$P(Y,U,17):$P(Y,U,17),1:""),0,2)
    8578 W:REM]"" !,?5,"REMARKS: ",REM I $Y+6>IOSL D HDR^RMPRPRT,HDRH
    8679 S (DATE,TYPE,QTY,VEN,TRANS,TRANS1,STA,SN,DEL,CST,FRM,REM)=""
  • FOIAVistA/tag/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRSP7.m

    r628 r636  
    11RMPRSP7 ;HIN/RVD-PRINT 2319 WITHOUT SUSPENSE LINK ;3/17/03  08:13
    2  ;;3.0;PROSTHETICS;**62,69,77,135**;Feb 09, 1996;Build 12
     2 ;;3.0;PROSTHETICS;**62,69,77**;Feb 09, 1996
    33 ;RVD 8/27/01 patch #62 - PCE data print
    44 ;RVD 4/9/02 patch #69 -  Disregard Historical data
    55 ;RVD 3/17/02 patch #77 - Fixed For Loop to include all PT 2319 records
    66 ;                        that are not linked
    7  ;RGB 3/22/07 patch 135 - Modified code to check issues in 660 against file 668 suspense records
    8  ;                        in addition to current check of complete flag in issue record.
    97 ;
    108 D DIV4^RMPRSIT I $D(Y),(Y<0) Q
     
    4846 .Q:($P(RM0,U,13)=13)!($P(RM0,U,15)="*")
    4947 .Q:($P(RM10,U,14)>0)!($P(RM0,U,10)'=RMPR("STA"))
    50  .;FILTER SHIPPING CHARGES AND DDC TRANSACTIONS
    51  .Q:($P(RM0,U,17)'="")!($P(RM0,U,13)=16)
    52  .S RMIE68=$O(^RMPR(668,"F",RJ,0))
    53  .I RMIE68,$D(^RMPR(668,RMIE68,10,"B",RJ)) Q
     48 .Q:$P(RM0,U,17)'=""
    5449 .I $P(RM0,U,10)=RS D
    5550 ..S RMDFN=$P(RM0,U,2)
Note: See TracChangeset for help on using the changeset viewer.