source: FOIAVistA/tag/r/SCHEDULING-SD-SC/SDDIV.m@ 719

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

initial load of FOIAVistA 6/30/08 version

File size: 2.1 KB
Line 
1SDDIV ;BSN/GRR - MULTI-DIVISION SELECT ; 27 FEB 84 9:40 am
2 ;;5.3;Scheduling;**20**;Aug 13, 1993
3ROUT S DIC("A")="ROUTING SLIPS FOR WHICH DIVISION: " G ASK
4APLST S DIC("A")="APPOINTMENT LIST FOR WHICH DIVISION: " G ASK
5FRLST S DIC("A")="FILE ROOM LIST FOR WHICH DIVISION: " G ASK
6CLST S DIC("A")="CLINIC LIST FOR WHICH DIVISION: " G ASK
7PALST S DIC("A")="PRE-APPOINTMENT LETTERS FOR WHICH DIVISION: " G DIC
8CNLET S DIC("A")="CANCELLATION LETTERS FOR WHICH DIVISION: " G DIC
9PCNLET S DIC("A")="APPOINTMENT CANCELLATION LETTERS FOR WHICH DIVISION: " G DIC
10NSLET S DIC("A")="NO-SHOW LETTERS/AUTO REBOOK REPORT FOR WHICH DIVISION: " G ASK
11NSLET1 S DIC("A")="NO-SHOW LETTERS FOR WHICH DIVISION: " G DIC
12RALST S DIC("A")="RADIOLOGY LIST FOR WHICH DIVISION: " G ASK
13A223 S DIC("A")="AMIS SEGMENT 223 FOR WHICH DIVISION: " G ASK
14CSSD S DIC("A")="CREATE SURVEY DISPOSITIONING RECORDS FOR WHICH DIVISION (ENTER 'ALL' FOR ALL DIVISIONS): " G ASK
15SDCP S DIC("A")="CLINIC PROFILES FOR WHICH DIVISION: " G ASK
16DSSA S DIC("A")="DISPOSITION SURVEY APPOINTMENTS FOR WHICH DIVISION: " G ASK
17PSDR S DIC("A")="DIVISION (ENTER 'ALL' FOR ALL DIVISIONS): " G ASK2
18CSEE S DIC("A")="ENTER VISIT DATA FOR WHICH DIVISION: " G ASK
19CALST S DIC("A")="CLINIC ASSIGNMENT LIST FOR WHICH DIVISION: " G ASK
20CACTLST S DIC("A")="CLINIC WORKLOAD LIST FOR WHICH DIVISION: " G ASK
21 Q
22 ;
23ASK 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"
26DIC 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
27AWAY S Y=1 K DIC,SDEF Q
28ERR S Y=-1 K DIC,SDALL,SDEF Q
29ASK2 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. ***
Note: See TracBrowser for help on using the repository browser.