source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LR7OPRE.m@ 1259

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

initial load of WorldVistAEHR

File size: 2.0 KB
Line 
1LR7OPRE ;slc/dcm - PRE-Initialization routine ;12/18/97 08:34
2 ;;5.2;LAB SERVICE;**166**;Sep 27, 1994
3 ;
4EN ;Enter here for pre-installation stuff
5 ;Remove Display Group field, file 60
6 ;Remove Default Protocol field, file 69.9
7 ;Remove old options [DISABLED]
8 ;Remove old protocols (DISABLED)
9 ;Protocols and options should be removed by KIDS
10 D DD
11 Q
12DD ;Remove old DD's
13 N IFN,DA,DIK
14 I $P($G(^DD(60,502,0)),"^")="DISPLAY GROUP" D
15 . S IFN=0 F S IFN=$O(^LAB(60,IFN)) Q:IFN<1 I $D(^(IFN,0)) S $P(^(0),"^",6)=""
16 . S DIK="^DD(60,",DA(1)=60,DA=502 D DIK,MES^XPDUTL("DISPLAY GROUP field removed from file 60")
17 I $P($G(^DD(69.9,2,0)),"^")="OE/RR DEFAULT PROTOCOL" D
18 . S IFN=0 F S IFN=$O(^LAB(69.9,IFN)) Q:IFN<1 I $D(^(IFN,1)) S $P(^(1),"^",6)=""
19 . S DIK="^DD(69.9,",DA(1)=69.9,DA=2 D DIK,MES^XPDUTL("OE/RR DEFAULT PROTOCOL field removed from file 69.9")
20 I $P($G(^DD(69.99,2,0)),"^")="CANCEL ON WARD TRANSFER" D
21 . S IFN=0 F S IFN=$O(^LAB(69.9,IFN)) Q:IFN<1 S IFN1=0 F S IFN1=$O(^LAB(69.9,IFN,9,IFN1)) Q:IFN1<1 S $P(^(IFN1,0),"^",3,4)="^"
22 . S DIK="^DD(69.99,",DA(1)=69.99,DA=2 D DIK,MES^XPDUTL("CANCEL ON WARD TRANSFER field removed from file 69.9")
23 . S DIK="^DD(69.99,",DA(1)=69.99,DA=3 D DIK,MES^XPDUTL("CANCEL ON SERVICE TRANSFER field removed from file 69.9")
24 Q
25DIK ;enable/disable DIK for testing
26 D ^DIK
27 Q
28PTCL ;Remove old protocols
29 N %,IFN,DA,DIK,ITEM,MENU
30 Q:'$D(XPDQUES("PRE1"))
31 I 'XPDQUES("PRE1") D BMES^XPDUTL("OK, I will leave the removal of Lab protocols for you to do manually, or") D MES^XPDUTL("you can invoke this entry point later to do the clean up (PTCL^LR7OIPRE).") Q
32 S DIK="^ORD(101,",IFN="LR" F S IFN=$O(^ORD(101,"B",IFN)) Q:IFN=""!(IFN]"LRZ") S DA=$O(^(IFN,0)) Q:'DA D D DIK ;W ".",!,IFN_" protocol removed."
33 . S MENU=0 F S MENU=$O(^ORD(101,"AD",DA,MENU)) Q:+MENU'>0 D
34 .. S ITEM=0 F S ITEM=$O(^ORD(101,"AD",DA,MENU,ITEM)) Q:+ITEM'>0 D
35 ... N DA,DIC,DIK,X,Y
36 ... S DA=$O(^ORD(101,MENU,10,"B",ITEM,0)),DA(1)=MENU,DIK="^ORD(101,"_MENU_",10,"
37 ... I DA D DIK
38 Q
Note: See TracBrowser for help on using the repository browser.