source: WorldVistAEHR/trunk/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRST2.m@ 1226

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

initial load of WorldVistAEHR

File size: 1.4 KB
Line 
1RMPRST2 ;PHX/RFM,RVD-DISPLAY ISSUE FROM STOCK ;3/8/05 08:07
2 ;;3.0;PROSTHETICS;**12,28,33,41,53,61**;Feb 09, 1996
3 ; DBIA #800 - Read Access to file 440.
4 ; DBIA #801 - Read Access to file 441.
5 ;
6 W @IOF S $P(HL,"=",IOM-1)="" W !,HL
7 W:'$D(RMPRHISD) !?31,"***STOCK ISSUE***" W:$D(RMPRHISD) !!?31,"***HISTORICAL DATA***" W !!?5,"PATIENT NAME: ",RMPRNAM,?50,"SSN: ",RMPRSSN
8 W !!?5,"TYPE OF TRANSACTION: ",$P(R3("D"),U,4),?43,"SOURCE: ",$P(R3("D"),U,14)
9 W !!?5,"PATIENT CATEGORY: ",$P(R4("D"),U,3),?43,"SPECIAL CATEGORY: ",$P(R4("D"),U,4)
10 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)
11 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)
12 I $D(R1(2)) W !!?5,"HCPCS/ITEM: ",$P(R1(2),U,1)," ",$P(R1(2),U,2)
13 S:'$D(RMLACO) RMLACO=0
14 S RUNICOST=$P(R1(0),U,16)/$P(R1(0),U,7)
15 S RTOTCOST=$P(R1(0),U,16)+RMLACO
16 W !!?5,"QUANTITY: ",$P(R1(0),U,7),?23,"UNIT COST: ",$J(RUNICOST,0,2),?43,"TOTAL COST: ",$J(RTOTCOST,0,2)
17 W !!?5,"SERIAL NUMBER: ",$P(R1(0),U,11),?43,"LOT NUMBER: ",$P(R1(0),U,24),!?5,"REMARKS: ",$P(R1(0),U,18)
18 W !?5,"DATE OF SERVICE: ",$P($G(R1("D")),U,8)
19 W ?43,"Inventory Location: "
20 ;I $G(RMLOC) W $P($G(^RMPR(661.3,RMLOC,0)),U,1)
21 I $G(RMLOC) W $P($G(^RMPR(661.5,RMLOC,0)),U,1)
22 W !,HL
23 K RUNICOST,RTOTCOST
24 Q
Note: See TracBrowser for help on using the repository browser.