source: FOIAVistA/trunk/r/LAB_SERVICE-LR-LS/LR138PO.m@ 1681

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

initial load of FOIAVistA 6/30/08 version

File size: 2.2 KB
Line 
1LR138PO ;DALISC/FHS - LR*5.2*138 POST INSTALL ROUTINE KIDS INSTALL
2 ;;5.2;LAB SERVICE;**138**;Sep 27, 1994
3EN ;Builds Laboratory OOS Locations for each LMIP valid WKLD Divison
4 ;
5 W !!,$$CJ^XLFSTR("Starting Post Install Process",80),!!
6 L +^LAM(0):2 I $T S:$D(^LAM(0))#2 $P(^(0),U,3)=99999 L -^LAM(0)
7 L +^LRO(69,"AA"):1 I '$T D G END
8 . W !?5,"Cant lock ^LRO(69,AA) GLOBAL POST INSTALL ABORTED",!
9 S X=$$ADD^XPDMENU("LR LIM/WKLD MENU","LR WKLD LOCATION")
10 W !!,"Option [LR WKLD LOCATIONS] was ",$S(X:"Added",1:"NOT ADDED")," to [LR LIM/WKLD] MENU ",!!
11 S X=$$ADD^XPDMENU("LR LIM/WKLD MENU","LR WKLD ACC AREA LOCATION")
12 W !!,"Option [LR WKLD ACC AREA LOCATIONS] was ",$S(X:"Added",1:"NOT ADDED")," to [LR LIM/WKLD] MENU ",!!
13LOC ;
14 S LRPKG=$O(^DIC(9.4,"B","LR",0))
15 I 'LRPKG S LRPKG=$O(^DIC(9.4,"B","LAB SERVICE",0))
16 I 'LRPKG D G END
17 .W !!$$CJ^XLFSTR("Not able to find 'LAB SERVICE' in your Package (#9.4) file.",80),!,$$CJ^XLFSTR("Contact your IRM Service !!",80),!!,$C(7) H 5 S XPDQUIT=2
18 . W !,$$CJ^XLFSTR("POST INSTALL ABORTED",80)
19 W !!,$$CJ^XLFSTR("Creating Laboratory OOS Workload Locations",80),!!
20SET S LROK=""
21 S LRVN=$O(^LRO(67.9,0)) I LRVN S LRDIVN=LRVN D LK I $G(LROK)>0 S ^LAB(69.9,1,.8)=LROK
22 I $G(LROK)>0 S LRVN1=0 F S LRVN1=$O(^LRO(67.9,LRVN,1,LRVN1)) Q:LRVN1<1 S LRDIVN=LRVN1 D LK
23 S LRDIVN=+$$SITE^VASITE I LRDIVN D LK I $G(LROK)>0,'$G(^LAB(69.9,1,.8)) S ^(.8)=LROK
24 I $G(^LAB(69.9,1,.8)) W !,$$CJ^XLFSTR("Database Upgrade Completed Successfully",80),!! D G MSG
25 . K DA,DIC,DIE S DA=+$G(^LAB(69.9,1,.8)),DIC="^SC(",DR="0:999999"
26 . W !!,$$CJ^XLFSTR("DEFAULT LAB OOS LOCATION IS",80),!! D EN^DIQ W !
27 W !! F I=1:1:2 D EQUALS^LRX W $C(7)
28 W !,$$CJ^XLFSTR(" Database Upgrade was INCOMPLETE ",80)
29 W !! F I=1:1:2 D EQUALS^LRX W $C(7)
30 W !
31MSG S $P(^LAB(69.9,1,"VSIT"),U)=2
32 W !,$$CJ^XLFSTR("PCE/VSIT ON (#615) field in LABORATORY SITE (#69.9) file",80)
33 W !,$$CJ^XLFSTR("has been set to BOTH PCE/VSIT AND STOP CODES",80),!!
34END ;
35 L -^LRO(69,"AA")
36 Q:$G(LRDBUG)
37 K DA,DATA,DIE,DIK,DIC,DR,LRDIV,LRDIVN,LRNAME,LROK,LRPKG,LRSCODE,LRVN
38 K LRVN1,X
39 Q
40LK ;
41 Q:$G(LRSDCX)
42 S LRDIV=$S($G(^DIC(4,LRDIVN,99)):$P(^(99),U),1:LRDIVN)
43 S LRSCODE=108,LRNAME="LAB DIV "_LRDIV_" OOS ID "_LRSCODE
44 D LOADB^LRCAPPH2
45 Q
Note: See TracBrowser for help on using the repository browser.