source: FOIAVistA/trunk/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSPOST.m@ 702

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

initial load of FOIAVistA 6/30/08 version

File size: 2.0 KB
Line 
1PSSPOST ;BIR/WRT-Post-install routine ; 04/07/98 10:19
2 ;;1.0;PHARMACY DATA MANAGEMENT;**10**;9/30/97
3 ; POST-INSTALL ROUTINE
4VERSION S:'$D(^PS(59.7,1,80)) ^PS(59.7,1,80)="1.0^0"
5 D ^PSSDENT,MR,LABM,CLEAN S $P(^PS(59.7,1,80),"^",1)="1.0" D BTEMP,P8 K ^TMP($J,"PSSEXP"),SCH,IEN,OEXP
6 S:'$D(^PS(59.7,1,31)) ^PS(59.7,1,31)="^IV" I $D(^PS(59.7,1,31)),$P(^PS(59.7,1,31),"^",2)="" S $P(^PS(59.7,1,31),"^",2)="IV"
7 S X="PSSJXR",Y="55",DMAX="5000" D EN^DIKZ
8 S X="PSSVX6",Y="52.6",DMAX="5000" D EN^DIKZ
9 Q
10P8 S SCH="" F S SCH=$O(^TMP($J,"PSSEXP",SCH)) Q:SCH="" S OEXP=$O(^TMP($J,"PSSEXP",SCH,0)) I $D(^PS(51.1,"AC","PSJ",SCH)) S IEN=$O(^PS(51.1,"AC","PSJ",SCH,0)) S:$P(^PS(51.1,IEN,0),"^",8)="" $P(^PS(51.1,IEN,0),"^",8)=OEXP
11 Q
12BTEMP F GG=0:1 S HH=$P($T(DATA+GG),";",3,20) Q:HH="" S RCD=$P(HH,"^",1),EXP=$P(HH,"^",2) D BTEMP1
13 K GG,HH,RCD,EXP Q
14BTEMP1 S ^TMP($J,"PSSEXP",RCD,EXP)=""
15 Q
16CLA K ^PSDRUG("VAC") S DIK="^PSDRUG(",DIK(1)="25" D ENALL^DIK
17 Q
18MR N ROOT,I,J,X,LINE
19 S ROOT=$NA(@XPDGREF@("DATA"))
20 F J=1:1 Q:'$D(@ROOT@(J)) S LINE=^(J) D MR1
21 Q
22MR1 I $D(^PS(51.2,"B",$P(LINE,"^",1))) S DA=$O(^PS(51.2,"B",$P(LINE,"^",1),0)) S $P(^PS(51.2,DA,0),"^",2)=$P(LINE,"^",2)
23 Q
24CLEAN F IFN=0:0 S IFN=$O(^PSDRUG(IFN)) Q:'IFN K:$D(^PSDRUG(IFN,"CH")) ^PSDRUG(IFN,"CH") K:$D(^PSDRUG(IFN,"PS")) ^PSDRUG(IFN,"PS") K:$D(^PSDRUG(IFN,"IV")) ^PSDRUG(IFN,"IV")
25 Q
26LABM K IEN F IEN=0:0 S IEN=$O(^PSDRUG(IEN)) Q:'IEN D LABM1,LABM2,LABM3
27 Q
28LABM1 I $P($G(^PSDRUG(IEN,"CLOZ1")),"^")="LAB MONITOR" S ^PSDRUG(IEN,"CLOZ1")="^1"
29 Q
30LABM2 I $D(^PSDRUG(IEN,"CLOZ1")),$P(^PSDRUG(IEN,"CLOZ1"),"^")="",$D(^PSDRUG(IEN,"CLOZ")) S $P(^PSDRUG(IEN,"CLOZ1"),"^",2)=1
31 Q
32LABM3 I '$D(^PSDRUG(IEN,"CLOZ1")),$D(^PSDRUG(IEN,"CLOZ")) S $P(^PSDRUG(IEN,"CLOZ1"),"^",2)=1
33 Q
34DATA ;;QD^EVERY DAY
35 ;;BID^TWICE A DAY
36 ;;Q4H^EVERY 4 HOURS
37 ;;Q3H^EVERY 3 HOURS
38 ;;Q8H^EVERY 8 HOURS
39 ;;QAM^EVERY MORNING
40 ;;Q6H^EVERY 6 HOURS
41 ;;TID^THREE TIMES A DAY
42 ;;QID^FOUR TIMES A DAY
43 ;;Q12H^EVERY 12 HOURS
44 ;;QOD^EVERY OTHER DAY
45 ;;QHS^AT BEDTIME
46 ;;Q24H^EVERY 24 HOURS
47 ;;Q2H^EVERY 2 HOURS
Note: See TracBrowser for help on using the repository browser.