[613] | 1 | SDDIV ;BSN/GRR - MULTI-DIVISION SELECT ; 27 FEB 84 9:40 am
|
---|
| 2 | ;;5.3;Scheduling;**20**;Aug 13, 1993
|
---|
| 3 | ROUT S DIC("A")="ROUTING SLIPS FOR WHICH DIVISION: " G ASK
|
---|
| 4 | APLST S DIC("A")="APPOINTMENT LIST FOR WHICH DIVISION: " G ASK
|
---|
| 5 | FRLST S DIC("A")="FILE ROOM LIST FOR WHICH DIVISION: " G ASK
|
---|
| 6 | CLST S DIC("A")="CLINIC LIST FOR WHICH DIVISION: " G ASK
|
---|
| 7 | PALST S DIC("A")="PRE-APPOINTMENT LETTERS FOR WHICH DIVISION: " G DIC
|
---|
| 8 | CNLET S DIC("A")="CANCELLATION LETTERS FOR WHICH DIVISION: " G DIC
|
---|
| 9 | PCNLET S DIC("A")="APPOINTMENT CANCELLATION LETTERS FOR WHICH DIVISION: " G DIC
|
---|
| 10 | NSLET S DIC("A")="NO-SHOW LETTERS/AUTO REBOOK REPORT FOR WHICH DIVISION: " G ASK
|
---|
| 11 | NSLET1 S DIC("A")="NO-SHOW LETTERS FOR WHICH DIVISION: " G DIC
|
---|
| 12 | RALST S DIC("A")="RADIOLOGY LIST FOR WHICH DIVISION: " G ASK
|
---|
| 13 | A223 S DIC("A")="AMIS SEGMENT 223 FOR WHICH DIVISION: " G ASK
|
---|
| 14 | CSSD S DIC("A")="CREATE SURVEY DISPOSITIONING RECORDS FOR WHICH DIVISION (ENTER 'ALL' FOR ALL DIVISIONS): " G ASK
|
---|
| 15 | SDCP S DIC("A")="CLINIC PROFILES FOR WHICH DIVISION: " G ASK
|
---|
| 16 | DSSA S DIC("A")="DISPOSITION SURVEY APPOINTMENTS FOR WHICH DIVISION: " G ASK
|
---|
| 17 | PSDR S DIC("A")="DIVISION (ENTER 'ALL' FOR ALL DIVISIONS): " G ASK2
|
---|
| 18 | CSEE S DIC("A")="ENTER VISIT DATA FOR WHICH DIVISION: " G ASK
|
---|
| 19 | CALST S DIC("A")="CLINIC ASSIGNMENT LIST FOR WHICH DIVISION: " G ASK
|
---|
| 20 | CACTLST S DIC("A")="CLINIC WORKLOAD LIST FOR WHICH DIVISION: " G ASK
|
---|
| 21 | Q
|
---|
| 22 | ;
|
---|
| 23 | ASK S ALL=0,SDEF=$$PRIM^VASITE G:'$D(^DG(40.8,SDEF,0)) ERR W !,DIC("A")," ",$P(^(0),"^"),"// " R X:DTIME I X["^" G ERR
|
---|
| 24 | I X="ALL" S ALL=1 I $D(SDALL),'SDALL S X="?",ALL=0 W *7," ??"
|
---|
| 25 | S:X="" DIV=SDEF G:X=""!(X="ALL") AWAY S DIC="^DG(40.8,",DIC(0)="EQMN" I X["?",$S('$D(SDALL):1,SDALL:1,1:0) W " Enter 'ALL' for all divisions or"
|
---|
| 26 | DIC D ^DIC G:X["?"!((Y<0)&('$D(SDLT))) ASK Q:$D(SDLT)&(Y'>0) S:$D(SDLT) SDV1=+Y S DIV=+Y K DIC Q
|
---|
| 27 | AWAY S Y=1 K DIC,SDEF Q
|
---|
| 28 | ERR S Y=-1 K DIC,SDALL,SDEF Q
|
---|
| 29 | ASK2 S (VAUTD,Y)=0 I '$D(^DG(40.8,$N(^DG(40.8,0)),0)) W !,*7,"***WARNING...MEDICAL CENTER DIVISION FILE IS NOT SET UP" G ERR
|
---|
| 30 | I $D(^DG(43,1,"GL")),$P(^("GL"),U,2) G DIVISION^VAUTOMA
|
---|
| 31 | S I=$N(^DG(40.8,0)) G:'$D(^DG(40.8,I,0)) ERR S VAUTD(I)=$P(^(0),U) K DIC Q
|
---|
| 32 | ; *** Notify IB if any significant changes occur in this routine. ***
|
---|