source: WorldVistAEHR/trunk/r/SCHEDULING-SD-SC/SDWLE113.m@ 789

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

initial load of WorldVistAEHR

File size: 2.2 KB
Line 
1SDWLE113 ;IOFO BAY PINES/TEH - WAITING LIST-ENTER/EDIT ;20 Aug 2002 2:10 PM
2 ;;5.3;scheduling;**263,273,394**;AUG 13 1993
3 ;
4 ;
5 ;******************************************************************
6 ; CHANGE LOG
7 ;
8 ; DATE PATCH DESCRIPTION
9 ; ---- ----- -----------
10 ; 11/27/02 SD*5.3*273 Add "/" to line EN1+2
11 ; 12/10/04 SD*5.3*394 Sets SERVICE CONNECTED PRIORITY in WAIT LIST (409.3)
12 ;
13 ;
14EN ;Set record status to 'OPEN'
15 ;
16 N SDWLERR S DR="23////^S X=""O""",DIE="^SDWL(409.3," D ^DIE
17 ;
18 ;Ask comments
19 ;
20 I $D(^SDWL(409.3,SDWLDA,0)) I $P(^(0),U,18)'="" S DIR("B")=$P(^(0),U,18)
21 S DIR(0)="FAOU^^",DIR("A")="Comments: " D ^DIR
22 I Y["^" S SDWLERR=2 Q
23 I X="@" S DR="25///@",DIE="^SDWL(409.3,",DA=SDWLDA D ^DIE G EN0
24 S SDWLCOM=Y
25 S DR="25////^S X=SDWLCOM",DIE="^SDWL(409.3,",DA=SDWLDA D ^DIE
26 ;
27 ;SET SERVICE CONNECTION PRIORITY
28 ;
29EN0 I $D(SDWLNSC),$D(^SDWL(409.3,SDWLDA)) D
30 .S SDWLNSCP=$$GET1^DIQ(2,SDWLDFN_",",.302)
31 .S DIE="^SDWL(409.3,",DA=SDWLDA,DR="14////^S X=SDWLNSCP" D ^DIE
32 .S DR="15////^S X=SDWLNSC" D ^DIE
33 K SDWLNSC,SDWLNSCP
34 ;
35EN1 ;Set Editing User
36 ;
37 S DR="28////^S X=DUZ",DIE="^SDWL(409.3," D ^DIE
38 ;
39 S SDWLERR=0 Q
40 Q
41 ;
42END K SDWLCN,SDWLCN,SDWLY,SDWLNEW,SDWLSSN,SDWLNAM,SDWLDATA,SDWLIN,SDWLCL,SDWLTY,SDWLST,SDWLSP,SDWLSS
43 K SDWLSC,SDWLPRI,SDWLRB,SDWLPROV,SDWLDAPT,SDWLST,SDWLCOM,SDWLDUZ,SDWLEDT,SDCL,SDWLTYE,SDWLINE,SDWLS,SDWLX,SDWLPRIE,SDWLPRVE
44 K SDWLDAPE,SDWLRBE,SDWL,VA,VADM,VAIN,D0,DA,DI,DIC,DIE,DQ,DR,SDWLCLN,SDWLCNT,SDWLDIS,SDWLDISN,SDWLDT
45 K SDWLDTP,SDWLINN,SDWLPRIN,SDWLTYN,SDWLB,SDWLCPT,SDWLFLG,SDWLPS,SDWLRNE,SDWLSCO,SDWLSCR,SDWLSPO,SDWLSCR,SDWLSPO,SDWLSSO
46 K SDWLWR,VAERR,YY,MM,DD,SDWLSCP,SDWLVAR,SDWLF,SDWLSX,SDWLCP1,SCWLCP2,SDSWLTAG,SDWLTT,SDWLVBR,SDWLYN,X,Y
47 K SDWLCP2,SDWLCP3,SDWLCP4,SDWLCP5,SDWLCP6,E,SDWLCOME,SDWLDFN,SDWLPCMM
48 K DIR,SDWLSTO,SDWLINA,SDWLPOS,SDWLTEM,SDWLOPT,DUOUT
49 I $D(SDWLDA),SDWLDA'="",$D(^SDWL(409.3,SDWLDA,0)),$P(^SDWL(409.3,SDWLDA,0),U,17)'["O" D
50 .W !!,?15,"*** Patient being Removed from Wait List ***" S DIK="^SDWL(409.3,",DA=SDWLDA D ^DIK S DUOUT=1
51 K SDWLDA
52 Q
Note: See TracBrowser for help on using the repository browser.