source: FOIAVistA/trunk/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRPIYK.m@ 1582

Last change on this file since 1582 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.4 KB
Line 
1RMPRPIYK ;PHX/RFM,RVD-DISPLAY ISSUE FROM STOCK ;2/10/03 08:41
2 ;;3.0;PROSTHETICS;**61**;Feb 09, 1996
3 ; RVD - patch #61 - pip phase III
4 ;
5 ;DBIA # 800 - global read of file #440.
6 ;DBIA # 801 - global read of file #441.
7 ;
8 W @IOF S $P(HL,"=",IOM-1)="" W !,HL
9 W:'$D(RMPRHISD) !?31,"***STOCK ISSUE***" W:$D(RMPRHISD) !!?31,"***HISTORICAL DATA***" W !!?5,"PATIENT NAME: ",RMPRNAM,?50,"SSN: ",RMPRSSN
10 W !!?5,"TYPE OF TRANSACTION: ",$P(R3("D"),U,4),?43,"SOURCE: ",$P(R3("D"),U,14)
11 W !!?5,"PATIENT CATEGORY: ",$P(R4("D"),U,3),?43,"SPECIAL CATEGORY: ",$P(R4("D"),U,4)
12 W !!?5,"ITEM: ",$E($P(^PRC(441,$P(^RMPR(661,$P(R1(0),U,6),0),U,1),0),U,2),1,30),?43,"VENDOR: " I +$P(R1(0),U,9) W $E($P(^PRC(440,+$P(R1(0),U,9),0),U,1),1,29)
13 I $D(R1(1)),$P(R1(1),U,4)>0 W !!?5,"PSAS HCPCS: ",$P(^RMPR(661.1,$P(R1(1),U,4),0),U,1)," ",$P(^(0),U,2),!!?5,"CPT MODIFIER: ",$P(R1(1),U,6)
14 I $D(R1(2)) W !!?5,"HCPCS/ITEM: ",$P(R1(2),U,1)," ",$P(R1(2),U,2)
15 S:'$D(RMLACO) RMLACO=0
16 S RUNICOST=$P(R1(0),U,16)/$P(R1(0),U,7)
17 S RTOTCOST=$P(R1(0),U,16)+RMLACO
18 W !!?5,"QUANTITY: ",$P(R1(0),U,7),?23,"UNIT COST: ",$J(RUNICOST,0,2),?43,"TOTAL COST: ",$J(RTOTCOST,0,2)
19 W !!?5,"SERIAL NUMBER: ",$P(R1(0),U,11),?43,"LOT NUMBER: ",$P(R1(0),U,24),!?5,"REMARKS: ",$P(R1(0),U,18)
20 W !?5,"DATE OF SERVICE: ",$P($G(R1("D")),U,8)
21 W ?43,"Inventory Location: "
22 I $G(RMLOC) W $P($G(^RMPR(661.5,RMLOC,0)),U,1)
23 W !,HL
24 K RUNICOST,RTOTCOST
25 Q
Note: See TracBrowser for help on using the repository browser.