source: FOIAVistA/trunk/r/AUTO_REPLENISHMENT_WARD_STOCK-PSGW/PSGWARP.m@ 1635

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

initial load of FOIAVistA 6/30/08 version

File size: 2.4 KB
Line 
1PSGWARP ;BHAM ISC/PTD,CML-Print AMIS Report - CONTINUED ; 23 Mar 93 / 12:43 PM
2 ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
3HDR ;PRINT REPORT MAIN HEADER
4 W:$Y @IOF W !,?43,"AUTOMATIC REPLENISHMENT/WARD STOCK AMIS REPORT",!?46,"FOR INPATIENT SITE: ",SITE(SITE),!!?11,"FROM " S Y=BDT X ^DD("DD") W Y," TO " S Y=EDT X ^DD("DD") W Y
5 W ?93,"PRINTED ON: ",$$PSGWDT^PSGWUTL1,! F J=1:1:132 W "-"
6 Q
7 ;
8SUB1 ;PRINT SUB-HEADER FOR SECTION 1: DOSES BY TYPE.
9 W !,"(INPATIENT SEGMENT 158)",!?3,"DOSES BY TYPE:",!?116,"AVERAGE",!?6,"FIELD",?19,"DOSES",?33,"COST OF",?50,"DOSES",?65,"COST OF",?83,"TOTAL",?99,"TOTAL",?115,"COST PER"
10 W !?17,"DISPENSED",?32,"DISPENSED",?49,"RETURNED",?65,"RETURNS",?81,"DISPENSED",?99,"COST",?117,"DOSE",!," " F J=1:1:120 W "-"
11 Q
12 ;
13SUB2 ;PRINT SUB-HEADER FOR SECTION 2: UNITS OF ISSUE.
14 W !!?3,"UNITS OF ISSUE:",!?116,"AVERAGE",!?6,"FIELD",?19,"UNITS",?33,"COST OF",?50,"UNITS",?65,"COST OF",?83,"TOTAL",?99,"TOTAL",?115,"COST PER"
15 W !?17,"DISPENSED",?32,"DISPENSED",?49,"RETURNED",?65,"RETURNS",?81,"DISPENSED",?99,"COST",?117,"UNIT",!," " F J=1:1:120 W "-"
16 Q
17 ;
18SUB3 ;PRINT SUB-HEADER FOR SECTION 3: FLUIDS & ADMIN SETS.
19 W !!?3,"FLUIDS AND ADMINISTRATION SETS:",!?116,"AVERAGE",!?6,"FIELD",?33,"COST OF",?65,"COST OF",?83,"TOTAL",?99,"TOTAL",?117,"UNIT"
20 W !?17,"DISPENSED",?32,"DISPENSED",?49,"RETURNED",?65,"RETURNS",?81,"DISPENSED",?99,"COST",?117,"COST",!," " F J=1:1:120 W "-"
21 Q
22SUB4 ;PRINT SUB-HEADER FOR SECTION 4: BLOOD AND BLOOD PRODUCTS.
23 W !!!,"(OUTPATIENT SEGMENT 157)",!?3,"BLOOD AND BLOOD PRODUCTS:",!?116,"AVERAGE",!?6,"FIELD",?33,"COST OF",?65,"COST OF",?83,"TOTAL",?99,"TOTAL",?117,"UNIT"
24 W !?17,"DISPENSED",?32,"DISPENSED",?49,"RETURNED",?65,"RETURNS",?81,"DISPENSED",?99,"COST",?117,"COST",!," " F J=1:1:120 W "-"
25 Q
26 ;
27SUMRY ;PRINT SUMMARY OF FIELDS THAT ARE ACTUALLY REPORTED ON AMIS
28 S $P(LN,"-",23)="" W !!!!?52,"SUMMARY OF REPORTED FIELDS:",!!?34,"INPATIENT SEGMENT 158",?75,"OUTPATIENT SEGMENT 157",!?33,LN,?75,LN
29 W !?33,"FIELD 03 ",$J($P(LOC("03"),"^",5),10,0),?75,"FIELD 22 ",$J($P(LOC("22"),"^",6),10,2),!?33,"FIELD 04 ",$J($P(LOC("04"),"^",5),10,0),!?33,"FIELD 05 ",$J($P(LOC("05"),"^",7),10,2)
30 W !?33,"FIELD 06 ",$J($P(LOC("06"),"^",5),10,0),!?33,"FIELD 07 ",$J($P(LOC("07"),"^",5),10,0),!?33,"FIELD 08 ",$J($P(LOC("08"),"^",7),10,2)
31 W !?33,"FIELD 17 ",$J($P(LOC("17"),"^",5),10,0),!?33,"FIELD 18 ",$J($P(LOC("18"),"^",7),10,2)
32 Q
Note: See TracBrowser for help on using the repository browser.