A1B2OLC ;ALB/MJK - ODS Local Outputs; JAN 13,1991
;;Version 1.55 (local for MAS v5 sites);;
;
EN D DT^DICRW S X=$T(+1),DIK="^DOPT(""A1B2OLC"","
G A:$D(^DOPT("A1B2OLC",7))
S ^DOPT("A1B2OLC",0)="ODS Local Output Options^1N^"
F I=1:1 S Y=$T(@I) Q:Y="" S ^DOPT("A1B2OLC",I,0)=$P(Y,";",3,99)
D IXALL^DIK
;
A W !! S DIC="^DOPT(""A1B2OLC"",",DIC(0)="IQEAM"
D ^DIC Q:Y<0 D @+Y G A
;
1 ;;ODS Patient Inquiry
Q
;
2 ;;ODS Inpatient List
Q
;
3 ;;Statistical Summary
Q
;
4 ;;[reserved]
Q
;
5 ;;Admission Date Range List
W !!,"ODS Admission Date Range Listing",!!
S L=0,DIC="^A1B2(11500.2,",A1B2FL=11500.2 D DIS^A1B2UTL
S (FLDS,BY)="[A1B2 OLC ADMIT]",FR=",?",TO=",?"
D EN1^DIP
Q K %DT,POP,DIS,FLDS,BY,FR,TO,L,DIC,A1B2FL Q
;
6 ;;Discharge Date Range List
W !!,"ODS Discharge Date Range Listing",!!
S L=0,DIC="^A1B2(11500.2,",A1B2FL=11500.2 D DIS^A1B2UTL
S (FLDS,BY)="[A1B2 OLC DISCH]",FR=",?",TO=",?"
D EN1^DIP G Q
;
7 ;;Displaced Patient List
W !!,"Displaced Patient Listing",!!
S L=0,DIC="^A1B2(11500.3,",A1B2FL=11500.3 D DIS^A1B2UTL
S FLDS="[A1B2 OLC DISPLACED]",FR=",?",TO=",?",BY="@.02:.02,@.01"
D EN1^DIP G Q
;
8 ;;Registrations w/o Admissions
W !!,"Registrations w/o Admissions Listing",!!
S L=0,DIC="^A1B2(11500.4,",A1B2FL=11500.4 D DIS^A1B2UTL
S BY="@.02:.02,@.01",FR=",?",TO=",?",L=0,FLDS="[A1B2 OLC REGIS]"
D EN1^DIP G Q
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HA1B2OLC 1407 printed Dec 13, 2024@02:21:16 Page 2
A1B2OLC ;ALB/MJK - ODS Local Outputs; JAN 13,1991
+1 ;;Version 1.55 (local for MAS v5 sites);;
+2 ;
EN DO DT^DICRW
SET X=$TEXT(+1)
SET DIK="^DOPT(""A1B2OLC"","
+1 if $DATA(^DOPT("A1B2OLC",7))
GOTO A
+2 SET ^DOPT("A1B2OLC",0)="ODS Local Output Options^1N^"
+3 FOR I=1:1
SET Y=$TEXT(@I)
if Y=""
QUIT
SET ^DOPT("A1B2OLC",I,0)=$PIECE(Y,";",3,99)
+4 DO IXALL^DIK
+5 ;
A WRITE !!
SET DIC="^DOPT(""A1B2OLC"","
SET DIC(0)="IQEAM"
+1 DO ^DIC
if Y<0
QUIT
DO @+Y
GOTO A
+2 ;
1 ;;ODS Patient Inquiry
+1 QUIT
+2 ;
2 ;;ODS Inpatient List
+1 QUIT
+2 ;
3 ;;Statistical Summary
+1 QUIT
+2 ;
4 ;;[reserved]
+1 QUIT
+2 ;
5 ;;Admission Date Range List
+1 WRITE !!,"ODS Admission Date Range Listing",!!
+2 SET L=0
SET DIC="^A1B2(11500.2,"
SET A1B2FL=11500.2
DO DIS^A1B2UTL
+3 SET (FLDS,BY)="[A1B2 OLC ADMIT]"
SET FR=",?"
SET TO=",?"
+4 DO EN1^DIP
Q KILL %DT,POP,DIS,FLDS,BY,FR,TO,L,DIC,A1B2FL
QUIT
+1 ;
6 ;;Discharge Date Range List
+1 WRITE !!,"ODS Discharge Date Range Listing",!!
+2 SET L=0
SET DIC="^A1B2(11500.2,"
SET A1B2FL=11500.2
DO DIS^A1B2UTL
+3 SET (FLDS,BY)="[A1B2 OLC DISCH]"
SET FR=",?"
SET TO=",?"
+4 DO EN1^DIP
GOTO Q
+5 ;
7 ;;Displaced Patient List
+1 WRITE !!,"Displaced Patient Listing",!!
+2 SET L=0
SET DIC="^A1B2(11500.3,"
SET A1B2FL=11500.3
DO DIS^A1B2UTL
+3 SET FLDS="[A1B2 OLC DISPLACED]"
SET FR=",?"
SET TO=",?"
SET BY="@.02:.02,@.01"
+4 DO EN1^DIP
GOTO Q
+5 ;
8 ;;Registrations w/o Admissions
+1 WRITE !!,"Registrations w/o Admissions Listing",!!
+2 SET L=0
SET DIC="^A1B2(11500.4,"
SET A1B2FL=11500.4
DO DIS^A1B2UTL
+3 SET BY="@.02:.02,@.01"
SET FR=",?"
SET TO=",?"
SET L=0
SET FLDS="[A1B2 OLC REGIS]"
+4 DO EN1^DIP
GOTO Q
+5 ;