source: FOIAVistA/trunk/r/OPERATIONS_WITH_DESERT_STORM-A1B2/A1B2OSR.m@ 1607

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

initial load of FOIAVistA 6/30/08 version

File size: 2.4 KB
Line 
1A1B2OSR ;ALB/AAS - ODS SUMMARY REPORT ; 11-JAN-91
2 ;;Version 1.55 (local for MAS v5 sites);;
3 ;
4 ; - Description of Utility Array
5 ; - ^Utility($j,"ods-fac",fac)= facility indicator
6 ; - ^Utility($j,"ods-adm",facility)=total admissions for facility
7 ; ,"ods-adm-nat") =national count
8 ; ,"ods-pt-adm",dfn,fac)="" for tracking uniques
9 ; ,"ods-pt-adm-bos",bos,dfn,fac)="" Branch of Service
10 ; ,"ods-pt-adm-spc",spc,dfn,fac)="" admitting specialty
11 ; ,"ods-unq-adm",fac)=count unique admissions
12 ; ,"ods-unq-adm-nat")=count unique adms. nationally
13 ; ,"ods-unq-adm-bos",fac,bos)=unique admissions by branch of service
14 ; ,"ods-unq-adm-bos-nat",bos)=national "
15 ; ,"ods-unq-adm-spc",fac,spc)=unique admissions by admitting specialty
16 ; ,"ods-unq-adm-spc-nat",spc)=national "
17 ;
18 ; ,"ods-dis",fac)=count total discharges
19 ; ,"ods-dis-nat")=national totol discharges
20 ; ,"ods-trf-nva",fac)= ods patients transfered to non-va care
21 ; ,"ods-trf-nva-nat")= national ""
22 ; ,"ods-ptrm",fac) = patients remaining
23 ; ,"ods-ptrm-nat) = national patients remaining
24 ; ,"ods-dis-nva",fac) = va patients displaced to non va care
25 ; ,"ods-dis-nva-nat") = national ""
26 ; ,"ods-dis-va",fac) = va patients displaced to va care
27 ;
28% S U="^" D HOME^%ZIS
29 W @IOF,?28,"OPERATION DESERT SHIELD",!?26,"STATISTICAL SUMMARY REPORT",!!
30 ;
31BDT ;Get beginning date of report
32 S %DT="AEPX",%DT("A")="Start with DATE: " D ^%DT G END:Y<0 S A1B2BDT=Y
33 ;
34EDT ;Get ending date of report
35 S %DT="EX" R !,"Go to DATE: ",X:DTIME S:X=" " X=A1B2BDT G END:(X="")!(X["^") D ^%DT G BDT:Y<0 S A1B2EDT=Y I Y<A1B2BDT W *7," ??",!,"ENDING DATE must follow BEGINNING DATE." G BDT
36 ;
37NSR S A1B2NSR=0 ;K DIR S DIR(0)="Y",DIR("A")="Print Multi-divisional Summary Only",DIR("B")="NO" D ^DIR S A1B2NSR=Y K DIR
38 ;
39DEV ;Get device for output.
40 S %IS="QMP" D ^%ZIS G:POP END
41 I $D(IO("Q")) S ZTSAVE("A1B2*")="",ZTDESC="ODS SUMMARY REPORT",ZTRTN="DQ^A1B2OSR" D ^%ZTLOAD W !,"Request ",$S('$D(ZTSK):"not",1:"")," Queued" G:$D(ZTSK) END K ZTSK
42 ;
43 U IO
44 ;
45DQ D ^A1B2OSR1,^A1B2OSR2
46END X:'$D(ZTQUEUED) ^%ZIS("C") K A1B2BDT,A1B2EDT,%DT
47 K ^UTILITY($J)
48 K A1B2BDT,A1B2EDT,A1B2NSR,A1B2QUIT,CNTF,A,D,P,T,I,J,FAC,BOS,SPC,SUBS,X,X1,Y,Y1,M,N,TAB,A1B2X,A1B2Y,A1B2DATE,PAGE
49 Q
Note: See TracBrowser for help on using the repository browser.