Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: SDDIV

SDDIV.m

Go to the documentation of this file.
SDDIV ;BSN/GRR - MULTI-DIVISION SELECT ; 27 FEB 84  9:40 am
 ;;5.3;Scheduling;**20**;Aug 13, 1993
ROUT S DIC("A")="ROUTING SLIPS FOR WHICH DIVISION: " G ASK
APLST S DIC("A")="APPOINTMENT LIST FOR WHICH DIVISION: " G ASK
FRLST S DIC("A")="FILE ROOM LIST FOR WHICH DIVISION: " G ASK
CLST S DIC("A")="CLINIC LIST FOR WHICH DIVISION: " G ASK
PALST S DIC("A")="PRE-APPOINTMENT LETTERS FOR WHICH DIVISION: " G DIC
CNLET S DIC("A")="CANCELLATION LETTERS FOR WHICH DIVISION: " G DIC
PCNLET S DIC("A")="APPOINTMENT CANCELLATION LETTERS FOR WHICH DIVISION: " G DIC
NSLET S DIC("A")="NO-SHOW LETTERS/AUTO REBOOK REPORT FOR WHICH DIVISION: " G ASK
NSLET1 S DIC("A")="NO-SHOW LETTERS FOR WHICH DIVISION: " G DIC
RALST S DIC("A")="RADIOLOGY LIST FOR WHICH DIVISION: " G ASK
A223 S DIC("A")="AMIS SEGMENT 223 FOR WHICH DIVISION: " G ASK
CSSD S DIC("A")="CREATE SURVEY DISPOSITIONING RECORDS FOR WHICH DIVISION (ENTER 'ALL' FOR ALL DIVISIONS): " G ASK
SDCP S DIC("A")="CLINIC PROFILES FOR WHICH DIVISION: " G ASK
DSSA S DIC("A")="DISPOSITION SURVEY APPOINTMENTS FOR WHICH DIVISION: " G ASK
PSDR S DIC("A")="DIVISION (ENTER 'ALL' FOR ALL DIVISIONS): " G ASK2
CSEE S DIC("A")="ENTER VISIT DATA FOR WHICH DIVISION: " G ASK
CALST S DIC("A")="CLINIC ASSIGNMENT LIST FOR WHICH DIVISION: " G ASK
CACTLST S DIC("A")="CLINIC WORKLOAD LIST FOR WHICH DIVISION: " G ASK
 Q
 ;
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
 I X="ALL" S ALL=1 I $D(SDALL),'SDALL S X="?",ALL=0 W *7," ??"
 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"
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
AWAY S Y=1 K DIC,SDEF Q
ERR S Y=-1 K DIC,SDALL,SDEF Q
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
 I $D(^DG(43,1,"GL")),$P(^("GL"),U,2) G DIVISION^VAUTOMA
 S I=$N(^DG(40.8,0)) G:'$D(^DG(40.8,I,0)) ERR S VAUTD(I)=$P(^(0),U) K DIC Q
 ; *** Notify IB if any significant changes occur in this routine. ***