source: FOIAVistA/trunk/r/CAPACITY_MANAGEMENT_TOOLS-KMPD-KMPL/KMPDSS1.m@ 1352

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

initial load of FOIAVistA 6/30/08 version

File size: 2.0 KB
Line 
1KMPDSS1 ;OAK/RAK - CP Status ;2/14/05 10:49
2 ;;2.0;CAPACITY MANAGEMENT TOOLS;**3**;Mar 22, 2002
3 ;
4DISPLAY(KMPDAPP) ;-display environment data
5 ;-----------------------------------------------------------------------------
6 ; KMPDAPP... CP application
7 ; H^HL7
8 ; R^RUM
9 ; S^SAGG
10 ; T^TIMING
11 ;-----------------------------------------------------------------------------
12 ;
13 Q:$G(KMPDAPP)=""
14 Q:"HRST"'[$P(KMPDAPP,U)
15 ;
16 S KMPDNMSP=$P(KMPDAPP,U) Q:KMPDNMSP=""
17 S KMPDTITL=$P(KMPDAPP,U,2)
18 ;
19 D EN^VALM("KMPD STATUS")
20 ;
21 Q
22 ;
23HDR ; -- header code
24 ;
25 Q:$G(KMPDNMSP)=""
26 ;
27 N ROUTINE,TEXT,VERSION
28 ;
29 S ROUTINE="KMP"_$S(KMPDNMSP="H"!(KMPDNMSP="T"):"D",1:KMPDNMSP)_"UTL"
30 ;
31 ; version data
32 ; if sagg
33 I $P(KMPDNMSP,U)="S" D
34 .S VERSION="" S X="KMPSUTL" X ^%ZOSF("TEST") Q:'$T
35 .S VERSION=$P($T(+2^KMPSUTL),";",3)_"^"_$P($T(+2^KMPSUTL),";",5)
36 ; all others
37 E S @("VERSION=$$VERSION^"_ROUTINE)
38 ;
39 ; header text
40 S TEXT="Environment Check for "_$G(KMPDTITL)
41 S TEXT=$J(" ",IOM-$L(TEXT)\2)_TEXT
42 S VALMHDR(1)=TEXT
43 S TEXT=$$PKG($P(KMPDNMSP,U))_" v"_$P(VERSION,U)_" "_$P(VERSION,U,2)
44 S TEXT=$J(" ",IOM-$L(TEXT)\2)_TEXT
45 S VALMHDR(2)=TEXT
46 ;
47 Q
48 ;
49INIT ; -- init variables and list array
50 ;
51 Q:$G(KMPDNMSP)=""
52 ;
53 N ROUTINE
54 ;
55 S ROUTINE="FORMAT^KMPDSS"_$S(KMPDNMSP="H"!(KMPDNMSP="T"):"D",1:KMPDNMSP)_"(.VALMCNT)"
56 ;
57 D @(ROUTINE)
58 ;
59 ;D FORMAT^KMPRSSA(.VALMCNT)
60 ;
61 Q
62 ;
63HELP ; -- help code
64 ;
65 S X="?" D DISP^XQORM1 W !!
66 ;
67 Q
68 ;
69EXIT ; -- exit code
70 ;
71 K @VALMAR
72 ;
73 Q
74 ;
75EXPND ; -- expand code
76 ;
77 Q
78 ;
79PKG(KMPDNM) ;-- extrinsic function - return package name
80 ;-----------------------------------------------------------------------------
81 ; KMPDNM... H - HL7
82 ; R - RUM
83 ; S - SAGG
84 ; T - Timing
85 ;-----------------------------------------------------------------------------
86 ;
87 Q:$G(KMPDNM)="" ""
88 Q:"HRST"'[KMPDNM ""
89 ;
90 N IEN,NMSP
91 ;
92 S NMSP="KMP"_$S(KMPDNM="H"!(KMPDNM="T"):"D",1:KMPDNM)
93 S IEN=$O(^DIC(9.4,"C",NMSP,0))
94 Q $P($G(^DIC(9.4,+IEN,0)),U)
Note: See TracBrowser for help on using the repository browser.