[613] | 1 | SDHPIENV ;MTC,PKE/ALB - Health Services R&D- ENVIRONMENT CHECK; 3/12/96 [ 10/21/96 8:19 AM ]
|
---|
| 2 | ;;5.3;Scheduling;**141**;DEC 18, 1997
|
---|
| 3 | ;
|
---|
| 4 | ;
|
---|
| 5 | ENVIR N SDSITE
|
---|
| 6 | S SDSITE=+$$SITE^VASITE()
|
---|
| 7 | I 'SDSITE DO QUIT
|
---|
| 8 | . W !!?3,"A call to $$SITE^VASITE() does not return your Station Number"
|
---|
| 9 | . W !?3,"Please correct this before installing this Patch"
|
---|
| 10 | .;
|
---|
| 11 | . I '$G(XPDENV) Q
|
---|
| 12 | . S XPDQUIT=2
|
---|
| 13 | ;
|
---|
| 14 | I $D(DUZ)'=11 DO
|
---|
| 15 | . W !!?3,"Please set DUZ variables, D ^XUP"
|
---|
| 16 | . I '$G(XPDENV) Q
|
---|
| 17 | . S XPDQUIT=2
|
---|
| 18 | ;
|
---|
| 19 | ; default no to disable option/protocols
|
---|
| 20 | I $G(XPDENV)=1 S XPDDIQ("XPZ1","B")="NO"
|
---|
| 21 | ;
|
---|
| 22 | Q
|
---|
| 23 | ;
|
---|
| 24 | PRETRANS ;
|
---|
| 25 | ;load table of station numbers, ssn from temporary file
|
---|
| 26 | ;
|
---|
| 27 | ;format of table "sd",station,N sequential)=SSN piece string
|
---|
| 28 | ;n winds up not sequential for integration sites
|
---|
| 29 | ;
|
---|
| 30 | M @XPDGREF@("SDHPI")=^XTMP("SDHPIENV")
|
---|
| 31 | ;remove legacy stations
|
---|
| 32 | K @XPDGREF@("SDHPI",505)
|
---|
| 33 | K @XPDGREF@("SDHPI",513)
|
---|
| 34 | K @XPDGREF@("SDHPI",522)
|
---|
| 35 | K @XPDGREF@("SDHPI",533)
|
---|
| 36 | K @XPDGREF@("SDHPI",535)
|
---|
| 37 | ;
|
---|
| 38 | K @XPDGREF@("SDHPI",566) K @XPDGREF@("SDHPI",641)
|
---|
| 39 | K @XPDGREF@("SDHPI",569)
|
---|
| 40 | K @XPDGREF@("SDHPI",574)
|
---|
| 41 | K @XPDGREF@("SDHPI",579)
|
---|
| 42 | K @XPDGREF@("SDHPI",592)
|
---|
| 43 | K @XPDGREF@("SDHPI",591)
|
---|
| 44 | K @XPDGREF@("SDHPI",604)
|
---|
| 45 | ;
|
---|
| 46 | K @XPDGREF@("SDHPI",611) K @XPDGREF@("SDHPI",685)
|
---|
| 47 | K @XPDGREF@("SDHPI",627)
|
---|
| 48 | K @XPDGREF@("SDHPI",640)
|
---|
| 49 | K @XPDGREF@("SDHPI",645)
|
---|
| 50 | K @XPDGREF@("SDHPI",680)
|
---|
| 51 | K @XPDGREF@("SDHPI",686)
|
---|
| 52 | ;
|
---|
| 53 | K @XPDGREF@("SDHPI",691) K @XPDGREF@("SDHPI",752)
|
---|
| 54 | ;
|
---|
| 55 | W !?9,"removed ..."
|
---|
| 56 | ;merge legacy stations to primary
|
---|
| 57 | ;
|
---|
| 58 | M @XPDGREF@("SDHPI",512)=^XTMP("SDHPIENV",566)
|
---|
| 59 | M @XPDGREF@("SDHPI",512)=^XTMP("SDHPIENV",641)
|
---|
| 60 | ;
|
---|
| 61 | M @XPDGREF@("SDHPI",528)=^XTMP("SDHPIENV",513)
|
---|
| 62 | M @XPDGREF@("SDHPI",537)=^XTMP("SDHPIENV",535)
|
---|
| 63 | M @XPDGREF@("SDHPI",549)=^XTMP("SDHPIENV",522)
|
---|
| 64 | M @XPDGREF@("SDHPI",555)=^XTMP("SDHPIENV",592)
|
---|
| 65 | M @XPDGREF@("SDHPI",561)=^XTMP("SDHPIENV",604)
|
---|
| 66 | M @XPDGREF@("SDHPI",568)=^XTMP("SDHPIENV",579)
|
---|
| 67 | M @XPDGREF@("SDHPI",597)=^XTMP("SDHPIENV",574)
|
---|
| 68 | M @XPDGREF@("SDHPI",599)=^XTMP("SDHPIENV",640)
|
---|
| 69 | M @XPDGREF@("SDHPI",610)=^XTMP("SDHPIENV",569)
|
---|
| 70 | M @XPDGREF@("SDHPI",619)=^XTMP("SDHPIENV",680)
|
---|
| 71 | M @XPDGREF@("SDHPI",620)=^XTMP("SDHPIENV",533)
|
---|
| 72 | M @XPDGREF@("SDHPI",646)=^XTMP("SDHPIENV",645)
|
---|
| 73 | ;
|
---|
| 74 | M @XPDGREF@("SDHPI",665)=^XTMP("SDHPIENV",691)
|
---|
| 75 | M @XPDGREF@("SDHPI",665)=^XTMP("SDHPIENV",752)
|
---|
| 76 | ;
|
---|
| 77 | M @XPDGREF@("SDHPI",671)=^XTMP("SDHPIENV",591)
|
---|
| 78 | ;
|
---|
| 79 | M @XPDGREF@("SDHPI",674)=^XTMP("SDHPIENV",611)
|
---|
| 80 | M @XPDGREF@("SDHPI",674)=^XTMP("SDHPIENV",685)
|
---|
| 81 | ;
|
---|
| 82 | M @XPDGREF@("SDHPI",677)=^XTMP("SDHPIENV",686)
|
---|
| 83 | M @XPDGREF@("SDHPI",663)=^XTMP("SDHPIENV",505)
|
---|
| 84 | M @XPDGREF@("SDHPI",689)=^XTMP("SDHPIENV",627)
|
---|
| 85 | ;
|
---|
| 86 | Q
|
---|
| 87 | ;
|
---|
| 88 | POSTINST ;
|
---|
| 89 | ;install station specific table of SSNs.
|
---|
| 90 | N SDSITE
|
---|
| 91 | S SDSITE=+$$SITE^VASITE() I 'SDSITE QUIT
|
---|
| 92 | ;
|
---|
| 93 | K ^XTMP("SDHPI")
|
---|
| 94 | S ^XTMP("SDHPI",0)=$$FMADD^XLFDT(DT,9)
|
---|
| 95 | ;
|
---|
| 96 | I '$D(@XPDGREF@("SDHPI",SDSITE)) DO QUIT
|
---|
| 97 | . S ^XTMP("SDHPI","S",SDSITE,"ERROR","NO DATA REQUESTED")=DT
|
---|
| 98 | ;
|
---|
| 99 | M ^XTMP("SDHPI","S",SDSITE)=@XPDGREF@("SDHPI",SDSITE)
|
---|
| 100 | ;
|
---|
| 101 | Q
|
---|
| 102 | STATION ;
|
---|
| 103 | ;;358;363;402;405;436;437;438;442;452;459;460;463;
|
---|
| 104 | ;;500;501;502;503;504;505;506;508;509;512;513;514;515;516;517;518;519;
|
---|
| 105 | ;;520;521;522;523;525;526;527;528;529;531;532;533;534;535;537;538;539;
|
---|
| 106 | ;;540;541;542;543;544;546;548;549;550;552;553;554;555;556;557;558;
|
---|
| 107 | ;;561;562;564;565;566;567;568;569;570;573;574;575;578;579;
|
---|
| 108 | ;;580;581;583;584;585;586;589;590;591;592;593;594;595;596;597;598;599;
|
---|
| 109 | ;;600;603;604;605;607;608;609;610;611;612;613;614;617;618;619;
|
---|
| 110 | ;;620;621;622;623;626;627;629;630;631;632;635;636;637;
|
---|
| 111 | ;;640;641;642;644;645;646;647;648;649;
|
---|
| 112 | ;;650;652;653;654;655;656;657;658;659;
|
---|
| 113 | ;;660;662;663;664;665;666;667;668;670;671;672;673;674;676;677;678;679;
|
---|
| 114 | ;;680;685;686;687;688;689;691;692;693;695;752;756;757;758;
|
---|
| 115 | Q
|
---|
| 116 | ;checklist
|
---|
| 117 | ; SDSITE=512 M (566),(641) ;baltimore/perrypt/fthoward
|
---|
| 118 | ; SDSITE=528 M (513) ;buffalo/batavia
|
---|
| 119 | ; SDSITE=537 M (535) ;westside/lakeside
|
---|
| 120 | ; SDSITE=549 M (522) ;dallas/bonham
|
---|
| 121 | ; SDSITE=555 M (592) ;desmoines/knoxville
|
---|
| 122 | ; SDSITE=561 M (604) ;eastorange/lyons
|
---|
| 123 | ; SDSITE=568 M (579) ;fortmead/hotsprings
|
---|
| 124 | ; SDSITE=597 M (574) ;lincoln/grandisland
|
---|
| 125 | ; SDSITE=599 M (640) ;paloalto/livermore
|
---|
| 126 | ; SDSITE=610 M (569) ;marion/fortwayne
|
---|
| 127 | ; SDSITE=619 M (680) ;montgomery/tuskegee
|
---|
| 128 | ; SDSTIE=620 M (533) ;montrose/castle pt
|
---|
| 129 | ; SDSITE=646 M (645) ;pittsburguniv/highlandrive
|
---|
| 130 | ; SDSITE=663 M (505) ;seatle/americTN=
|
---|
| 131 | ; SDSITE=665 M (752) ;sepulvada/la opc
|
---|
| 132 | ; SDSITE=671 M (591) ;sanantonio/kerrvile
|
---|
| 133 | ; SDSITE=674 M (611),(685) ;temple/waco/marlin
|
---|
| 134 | ; SDSITE=677 M (686) ;topeka/leavenworth
|
---|
| 135 | ; SDSITE=689 M (627) ;westhaven/newington
|
---|
| 136 | Q
|
---|