SDWLE113 ;IOFO BAY PINES/TEH - WAITING LIST-ENTER/EDIT ;20 Aug 2002 2:10 PM
;;5.3;scheduling;**263,273,394,1015**;AUG 13 1993;Build 21
;
;
;******************************************************************
; CHANGE LOG
;
; DATE PATCH DESCRIPTION
; ---- ----- -----------
; 11/27/02 SD*5.3*273 Add "/" to line EN1+2
; 12/10/04 SD*5.3*394 Sets SERVICE CONNECTED PRIORITY in WAIT LIST (409.3)
;
;
EN ;Set record status to 'OPEN'
;
N SDWLERR S DR="23////^S X=""O""",DIE="^SDWL(409.3," D ^DIE
;
;Ask comments
;
I $D(^SDWL(409.3,SDWLDA,0)) I $P(^(0),U,18)'="" S DIR("B")=$P(^(0),U,18)
S DIR(0)="FAOU^^",DIR("A")="Comments: " D ^DIR
I Y["^" S SDWLERR=2 Q
I X="@" S DR="25///@",DIE="^SDWL(409.3,",DA=SDWLDA D ^DIE G EN0
S SDWLCOM=Y
S DR="25////^S X=SDWLCOM",DIE="^SDWL(409.3,",DA=SDWLDA D ^DIE
;
;SET SERVICE CONNECTION PRIORITY
;
EN0 I $D(SDWLNSC),$D(^SDWL(409.3,SDWLDA)) D
.S SDWLNSCP=$$GET1^DIQ(2,SDWLDFN_",",.302)
.S DIE="^SDWL(409.3,",DA=SDWLDA,DR="14////^S X=SDWLNSCP" D ^DIE
.S DR="15////^S X=SDWLNSC" D ^DIE
K SDWLNSC,SDWLNSCP
;
EN1 ;Set Editing User
;
S DR="28////^S X=DUZ",DIE="^SDWL(409.3," D ^DIE
;
S SDWLERR=0 Q
Q
;
END K SDWLCN,SDWLCN,SDWLY,SDWLNEW,SDWLSSN,SDWLNAM,SDWLDATA,SDWLIN,SDWLCL,SDWLTY,SDWLST,SDWLSP,SDWLSS
K SDWLSC,SDWLPRI,SDWLRB,SDWLPROV,SDWLDAPT,SDWLST,SDWLCOM,SDWLDUZ,SDWLEDT,SDCL,SDWLTYE,SDWLINE,SDWLS,SDWLX,SDWLPRIE,SDWLPRVE
K SDWLDAPE,SDWLRBE,SDWL,VA,VADM,VAIN,D0,DA,DI,DIC,DIE,DQ,DR,SDWLCLN,SDWLCNT,SDWLDIS,SDWLDISN,SDWLDT
K SDWLDTP,SDWLINN,SDWLPRIN,SDWLTYN,SDWLB,SDWLCPT,SDWLFLG,SDWLPS,SDWLRNE,SDWLSCO,SDWLSCR,SDWLSPO,SDWLSCR,SDWLSPO,SDWLSSO
K SDWLWR,VAERR,YY,MM,DD,SDWLSCP,SDWLVAR,SDWLF,SDWLSX,SDWLCP1,SCWLCP2,SDSWLTAG,SDWLTT,SDWLVBR,SDWLYN,X,Y
K SDWLCP2,SDWLCP3,SDWLCP4,SDWLCP5,SDWLCP6,E,SDWLCOME,SDWLDFN,SDWLPCMM
K DIR,SDWLSTO,SDWLINA,SDWLPOS,SDWLTEM,SDWLOPT,DUOUT
I $D(SDWLDA),SDWLDA'="",$D(^SDWL(409.3,SDWLDA,0)),$P(^SDWL(409.3,SDWLDA,0),U,17)'["O" D
.W !!,?15,"*** Patient being Removed from Wait List ***" S DIK="^SDWL(409.3,",DA=SDWLDA D ^DIK S DUOUT=1
K SDWLDA
Q
SDWLE113 ;IOFO BAY PINES/TEH - WAITING LIST-ENTER/EDIT ;20 Aug 2002 2:10 PM
+1 ;;5.3;scheduling;**263,273,394,1015**;AUG 13 1993;Build 21
+2 ;
+3 ;
+4 ;******************************************************************
+5 ; CHANGE LOG
+6 ;
+7 ; DATE PATCH DESCRIPTION
+8 ; ---- ----- -----------
+9 ; 11/27/02 SD*5.3*273 Add "/" to line EN1+2
+10 ; 12/10/04 SD*5.3*394 Sets SERVICE CONNECTED PRIORITY in WAIT LIST (409.3)
+11 ;
+12 ;
EN ;Set record status to 'OPEN'
+1 ;
+2 NEW SDWLERR
SET DR="23////^S X=""O"""
SET DIE="^SDWL(409.3,"
DO ^DIE
+3 ;
+4 ;Ask comments
+5 ;
+6 IF $DATA(^SDWL(409.3,SDWLDA,0))
IF $PIECE(^(0),U,18)'=""
SET DIR("B")=$PIECE(^(0),U,18)
+7 SET DIR(0)="FAOU^^"
SET DIR("A")="Comments: "
DO ^DIR
+8 IF Y["^"
SET SDWLERR=2
QUIT
+9 IF X="@"
SET DR="25///@"
SET DIE="^SDWL(409.3,"
SET DA=SDWLDA
DO ^DIE
GOTO EN0
+10 SET SDWLCOM=Y
+11 SET DR="25////^S X=SDWLCOM"
SET DIE="^SDWL(409.3,"
SET DA=SDWLDA
DO ^DIE
+12 ;
+13 ;SET SERVICE CONNECTION PRIORITY
+14 ;
EN0 IF $DATA(SDWLNSC)
IF $DATA(^SDWL(409.3,SDWLDA))
Begin DoDot:1
+1 SET SDWLNSCP=$$GET1^DIQ(2,SDWLDFN_",",.302)
+2 SET DIE="^SDWL(409.3,"
SET DA=SDWLDA
SET DR="14////^S X=SDWLNSCP"
DO ^DIE
+3 SET DR="15////^S X=SDWLNSC"
DO ^DIE
End DoDot:1
+4 KILL SDWLNSC,SDWLNSCP
+5 ;
EN1 ;Set Editing User
+1 ;
+2 SET DR="28////^S X=DUZ"
SET DIE="^SDWL(409.3,"
DO ^DIE
+3 ;
+4 SET SDWLERR=0
QUIT
+5 QUIT
+6 ;
END KILL SDWLCN,SDWLCN,SDWLY,SDWLNEW,SDWLSSN,SDWLNAM,SDWLDATA,SDWLIN,SDWLCL,SDWLTY,SDWLST,SDWLSP,SDWLSS
+1 KILL SDWLSC,SDWLPRI,SDWLRB,SDWLPROV,SDWLDAPT,SDWLST,SDWLCOM,SDWLDUZ,SDWLEDT,SDCL,SDWLTYE,SDWLINE,SDWLS,SDWLX,SDWLPRIE,SDWLPRVE
+2 KILL SDWLDAPE,SDWLRBE,SDWL,VA,VADM,VAIN,D0,DA,DI,DIC,DIE,DQ,DR,SDWLCLN,SDWLCNT,SDWLDIS,SDWLDISN,SDWLDT
+3 KILL SDWLDTP,SDWLINN,SDWLPRIN,SDWLTYN,SDWLB,SDWLCPT,SDWLFLG,SDWLPS,SDWLRNE,SDWLSCO,SDWLSCR,SDWLSPO,SDWLSCR,SDWLSPO,SDWLSSO
+4 KILL SDWLWR,VAERR,YY,MM,DD,SDWLSCP,SDWLVAR,SDWLF,SDWLSX,SDWLCP1,SCWLCP2,SDSWLTAG,SDWLTT,SDWLVBR,SDWLYN,X,Y
+5 KILL SDWLCP2,SDWLCP3,SDWLCP4,SDWLCP5,SDWLCP6,E,SDWLCOME,SDWLDFN,SDWLPCMM
+6 KILL DIR,SDWLSTO,SDWLINA,SDWLPOS,SDWLTEM,SDWLOPT,DUOUT
+7 IF $DATA(SDWLDA)
IF SDWLDA'=""
IF $DATA(^SDWL(409.3,SDWLDA,0))
IF $PIECE(^SDWL(409.3,SDWLDA,0),U,17)'["O"
Begin DoDot:1
+8 WRITE !!,?15,"*** Patient being Removed from Wait List ***"
SET DIK="^SDWL(409.3,"
SET DA=SDWLDA
DO ^DIK
SET DUOUT=1
End DoDot:1
+9 KILL SDWLDA
+10 QUIT