source: WorldVistAEHR/trunk/r/REMOTE_ORDER_ENTRY_SYSTEM-RMPF-RMPJ/RMPFDT6.m@ 1154

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

initial load of WorldVistAEHR

File size: 4.8 KB
Line 
1RMPFDT6 ;DDC/KAW-PATIENT DISPLAY TYPE SPECIFIC MODEL SCREEN [ 03/10/98 1:46 PM ]
2 ;;2.0;REMOTE ORDER/ENTRY SYSTEM;**Y2K**;JUN 16, 1995
3PRTB I CX=1 D
4 .W ! W:$D(RMPFEDIT)&$D(CN) "[",CN,"]" W ?42,"Product Group of",!,?4,"Battery Type",?20,"Quantity",?38,"Item Requiring Batteries",?73,"Status"
5 .W !,?4,"-------------",?20,"--------",?31,"--------------------------------------",?72,"--------"
6 W !,$J(CX,2),". ",$E(RMPFITP,1,16),?20,$J(RMPFQTY,5),?31,RMPFPG,?72,$E(RMPFLIS,1,8)
7 Q
8PRTD I CX<2 W ! W:$D(RMPFEDIT)&$D(CN) "[",CN,"]" W ?4,"Battery Type",?20,"Quantity",?31,"Status",!,?4,"-------------",?20,"--------",?31,"------"
9 W !,$J(CX,2)," ",?4,$E(RMPFITP,1,16),?20,$J(RMPFQTY,8),?31,$E(RMPFLIS,1,6)
10 Q
11PRTG I CX<2 D HEAD W ?4,"Make",?16,"Model",?27,"Pur By",?35,"Serial #",?45,"Battery",?54,"Acq. Dt.",?64,"Replace SN",?75,"Stat." D LINE1
12 W !,$J(CX,2)," ",$E(RMPFMAK,1,7),?11,$E(RMPFITP,1,15),?27,RMPFOB
13 W ?34,$E(RMPFSN,1,9),?45,$E(RMPFBAT,1,7)
14 W ?53,RMPFACQD
15 I $D(RMPFN) S X=0 F K=1:1 S X=$O(RMPFN(X)) Q:'X D
16 .W:CT>0 ! W ?64,$E(RMPFN(X),1,13) S CT=CT+1
17 .I CT=0 W ?75,$E(RMPFLIS,1,5) K RMPFLIS
18 I $D(RMPFLIS) W ?75,$E(RMPFLIS,1,5)
19 Q
20PRTW D PRTQ Q
21PRTM I CX=1 D
22 .W ! W:$D(RMPFEDIT)&$D(CN) "[",CN,"]" W ?9,"Make",?27,"Model",?42,"Quantity",?56,"Components",?72,"Status"
23 .W !,?4,"--------------",?20,"--------------------",?42,"--------",?52,"------------------",?72,"-------"
24 W !,$J(CX,2),". ",$E(RMPFMAK,1,16),?20,$E(RMPFITP,1,20),?42,$J(RMPFQTY,5)
25 S CM="" D COMP^RMPFDT3 W ?52,CM W:$L(CM)>18 !
26 W ?72,$E(RMPFLIS,1,8)
27 Q
28PRTQ I CX<2 W ! W:$D(RMPFEDIT)&($D(CN)) "[",CN,"]" W ?8,"Hearing Aid Accessory",?36,"Quantity",?46,"Status",!,?4,"------------------------------",?36,"--------",?46,"------"
29 W !,$J(CX,2)," ",?4,$E(RMPFITP,1,30),?35,$J(RMPFQTY,9),?46,$E(RMPFLIS,1,6)
30 Q
31PRTX I CX<2 D HEAD W ?6,"Make",?21,"Model",?35,"Component",?47,"Comp Price",?59,"Ear",?64,"Status" S RMPFTOT=0 W !?4,"--------",?14,"-------------------",?35,"----------",?47,"----------",?59,"---",?64,"------"
32 W !,$J(CX,2)," ",?4,$E(RMPFMAK,1,8),?14,$E(RMPFITP,1,19)
33 S X=0 F K=1:1 S X=$O(RMPFC(X)) Q:'X S Y=$P(RMPFC(X),U,1) I Y D
34 .Q:'$D(^RMPF(791811.2,Y,0)) S S3=^(0)
35 .S RMPFCOM=$P(S3,U,3),RMPFCOMC=$J($P(RMPFC(X),U,2),0,2)
36 .S RMPFTOT=RMPFTOT+RMPFCOMC
37 .W:$X'>0 "(cont.)",!,$J(CX,2),". ",$E(RMPFMAK,1,8),?18,$E(RMPFITP,1,11),?27,$J(RMPFCOST,6)
38 .W:CT ! W ?35,$E(RMPFCOM,1,9),?47,$J(RMPFCOMC,10)
39 .W:CT=0 ?56,RMPFISDP,?60,$E(RMPFLR,1),?64,$E(RMPFLIS,1,6)
40 .S CT=CT+1
41 I RMPFSN'="" W !?4,"Serial Number: ",RMPFSN
42 I RMPFCERU'="" W:RMPFSN="" ! W:$P(^RMPF(791810,RMPFX,101,RMPFY,90),U,10) ?32,"Re-" W ?33,"Certified: ",RMPFCERD,?57,"By: ",$E(RMPFCERU,1,19)
43 Q
44PRTN I CX<2 D
45 .W !,?5,"Make",?14,"Model",?24,"Serial #",?35,"Iss Date",?45,"Battery",?53,"Type",?58,"Ear",?63,"Replace",?73,"Status"
46 .W !?3,"-------",?11,"-----------",?23,"----------",?34,"----------",?45,"-------",?53,"----",?58,"---",?62,"----------",?73,"------"
47 W !,$J(CX,2)," ",$E(RMPFMAK,1,7),?11,$E(RMPFITP,1,11),?23,RMPFSN,?34,RMPFISDP,?45,$E(RMPFBAT,1,7),?53,$E(RMPFISRE,1,4),?59,RMPFLR
48 I $D(RMPFN) S X=0 F K=1:1 S X=$O(RMPFN(X)) Q:'X W:CT>0 ! W ?62,$E(RMPFN(X),1,10) W:CT=0 ?73,$E(RMPFLIS,1,6) K RMPFLIS S CT=CT+1
49 I $D(RMPFLIS) W ?73,$E(RMPFLIS,1,6)
50 Q
51PRTT I CX<2 D HEAD W !?5,"Make",?17,"Model",?28,"Serial #",?48,"Type of Loss",?72,"Status",!?3,"---------",?14,"-----------",?27,"----------",?39,"-------------------------------",?72,"------"
52 W !,$J(CX,2)," ",$E(RMPFMAK,1,9),?14,$E(RMPFITP,1,11),?27,RMPFSN,?39,RMPFTOL,?72,$E(RMPFLIS,1,6)
53 Q
54PRTV I CX<2 W !?5,"Make",?19,"Model",?32,"Serial #",?43,"Recover Date",?57,"Ear",?62,"Status",!?3,"---------",?14,"---------------",?31,"----------",?43,"------------",?57,"---",?62,"------"
55 W !,$J(CX,2)," ",$E(RMPFMAK,1,9),?14,$E(RMPFITP,1,15),?31,$E(RMPFSN,1,10),?43,RMPFRED,?58,RMPFLR,?62,$E(RMPFLIS,1,6)
56 Q
57PRTZ I CX<2 W:$D(RMPFEDIT)&$D(CN) "[",CN,"]" D
58 .W ?59,"SC/",?70,"Spec"
59 .W !?10,"Prosthetic Item",?34,"Qty",?39,"Price",?46,"Typ",?50,"Disabil.",?59,"NSC",?63,"Categ.",?70,"Cat.",?75,"Stat."
60 .W !?3,"------------------------------",?34,"---",?38,"-------",?46,"---",?50,"--------",?59,"---",?63,"------",?70,"----",?75,"-----"
61 Q:CX=0
62 W !,$J(CX,2)," ",$E(RMPFITP,1,30),?34,$J(RMPFQTY,3),?38,$J((RMPFCOST*QT),7,2),?47,RMPFTT,?50,RMPFDIS,?60,RMPFDSN,?63,RMPFPCT,?70,RMPFPSC,?75,$E(RMPFLIS,1,5)
63 Q
64PRTJ I CX<2 W:$D(RMPFEDIT)&($D(CN)) "[",CN,"]" W !?11,"Prosthetic Item",?37,"Qty",?43,"Price",?51,"Status",!?3,"--------------------------------",?37,"---",?42,"-------",?51,"------"
65 Q:CX=0
66 W !,$J(CX,2)," ",$E(RMPFITP,1,32),?37,$J(RMPFQTY,3),?42,$J((RMPFCOST*QT),7,2),?51,$E(RMPFLIS,1,6)
67 Q
68HEAD W ! W:$D(RMPFEDIT)&$D(CN) "[",CN,"]"
69 Q
70LINE W !?4,"--------",?14,"-----------",?27,"------",?35,"----------",?47,"-------",?56,"--------",?66,"-" W:RMPFHAT'="H" ?69,"-----------"
71 Q
72LINE1 W !?3,"-------",?11,"---------------",?27,"------",?34,"----------",?45,"-------",?53,"----------",?64,"----------",?75,"-----"
Note: See TracBrowser for help on using the repository browser.