source: FOIAVistA/trunk/r/GEN_MED_OTHER-GMV/GMV3PST.m@ 1076

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

initial load of FOIAVistA 6/30/08 version

File size: 3.6 KB
Line 
1GMV3PST ;HOIFO/FT-POST INSTALLATION FOR GMRV*5*3 ;5/17/05 08:56
2 ;;5.0;GEN. MED. REC. - VITALS;**3**;Oct 31, 2002
3 ;
4 ; This routine uses the following IAs:
5 ; #2263 - ^XPAR calls (supported)
6 ; #4835 - Add RPCS to OR CPRS GUI CHART option (private)
7 ; #10141 - ^XPDUTL calls (supported)
8 ;
9 ; This routine supports the following IAs:
10 ; #4833 - ADDRPCS (private)
11 ;
12 ; This post-installation:
13 ; Updates the parameters for the required client version.
14 ; Adds GMV RPCS to the 'OR CPRS GUI CHART' list of RPCs
15 ;
16EN ; Main entry point
17 D XPAR,ADDRPCS,DLL
18 Q
19XPAR ; Setup preliminary parameters
20 ; This submodule is called during the KIDS installation
21 ; process.
22 ;
23 ; Variables:
24 ; GMV: [Private] Scratch
25 ; GMVGUI: [Private] Current version of GUI being installed
26 ; GMVLST: [Private] Scratch List
27 ;
28 ; New private variables
29 N GMV,GMVGUI,GMVLST
30 ; Announce my intentions
31 D BMES^XPDUTL("Updating system parameters.")
32 ; Set current client version
33 S GMVGUI="5.0.3.19"
34 ; Deactivate all previous versions from XPAR
35 D GETLST^XPAR(.GMVLST,"SYS","GMV GUI VERSION")
36 F GMV=0:0 S GMV=$O(GMVLST(GMV)) Q:'GMV D
37 .D EN^XPAR("SYS","GMV GUI VERSION",$P(GMVLST(GMV),"^",1),0)
38 ; Add and/or activate current client versions
39 D EN^XPAR("SYS","GMV GUI VERSION","VITALS.EXE:"_GMVGUI,1)
40 D EN^XPAR("SYS","GMV GUI VERSION","VITALSMANAGER.EXE:"_GMVGUI,1)
41 Q
42DLL ;
43 ; Variables:
44 ; GMV: [Private] Scratch
45 ; GMVDLL: [Private] Current version of DLL being installed
46 ; GMVLST: [Private] Scratch List
47 ;
48 ; New private variables
49 N GMV,GMVDLL,GMVLST
50 ; Announce my intentions
51 D BMES^XPDUTL("Updating DLL parameter.")
52 ; Deactivate all previous versions from XPAR
53 D GETLST^XPAR(.GMVLST,"SYS","GMV DLL VERSION")
54 F GMV=0:0 S GMV=$O(GMVLST(GMV)) Q:'GMV D
55 .D EN^XPAR("SYS","GMV DLL VERSION",$P(GMVLST(GMV),"^",1),0)
56 ; Add and/or activate current client versions
57 S GMVDLL="GMV_VITALSVIEWENTER.DLL:v. 01/20/06 09:08" ;T17
58 D EN^XPAR("SYS","GMV DLL VERSION",GMVDLL,1)
59 S GMVDLL="GMV_VITALSVIEWENTER.DLL:v. 02/15/06 15:55" ;T18
60 D EN^XPAR("SYS","GMV DLL VERSION",GMVDLL,1)
61 S GMVDLL="GMV_VITALSVIEWENTER.DLL:v. 03/14/06 16:35" ;released version (19)
62 D EN^XPAR("SYS","GMV DLL VERSION",GMVDLL,1)
63 Q
64ADDRPCS ; Add GMV RPCs to CPRS option
65 N GMVDA,GMVDA1,GMVERR,GMVFDA,GMVIEN,GMVMSG,GMVNAME,GMVNODE,GMVTEST,GMVX
66 K ^TMP($J),^TMP("GMV 3PST",$J)
67 S GMVDA=$$FIND1^DIC(19,"","O","OR CPRS GUI CHART","B","","GMVERR")
68 I 'GMVDA D Q
69 .S GMVMSG(1)="Cannot find the 'OR CPRS GUI CHART' option."
70 .S GMVMSG(2)="Cannot add the RPCs needed. Please log a Remedy Ticket."
71 .D EN^DDIOL(.GMVMSG,"","!?5")
72 .Q
73 ; Get list of existing RPCs for OR CPRS GUI CHART option
74 D GETS^DIQ(19,GMVDA,"320*","I","^TMP($J)","GMVERR")
75 S GMVX=""
76 F S GMVX=$O(^TMP($J,19.05,GMVX)) Q:GMVX="" D
77 .S GMVIEN=+$G(^TMP($J,19.05,GMVX,.01,"I"))
78 .Q:'GMVIEN
79 .S ^TMP("GMV 3PST",$J,GMVIEN)=""
80 .Q
81 K GMVERR,GMVX
82 ; get GMV rpcs from table
83 F GMVX=1:1 S GMVNODE=$T(RPCLIST+GMVX) Q:$P(GMVNODE,";",3)="" D
84 .S GMVNAME=$P(GMVNODE,";",3)
85 .Q:GMVNAME=""
86 .K GMVERR
87 .S GMVDA1=$$FIND1^DIC(8994,"","O",GMVNAME,"B","","GMVERR")
88 .Q:'GMVDA1
89 .Q:$D(^TMP("GMV 3PST",$J,GMVDA1)) ;rpc is already there
90 .K GMVERR,GMVFDA,GMVIEN
91 .S GMVFDA(19.05,"+1,"_GMVDA_",",.01)=GMVDA1
92 .D UPDATE^DIE("","GMVFDA","GMVIEN","GMVERR")
93 .Q
94 K ^TMP($J),^TMP("GMV 3PST",$J)
95 Q
96RPCLIST ; List of GMV RPCs to add to OR CPRS GUI CHART option
97 ;;GMV ADD VM
98 ;;GMV CONVERT DATE
99 ;;GMV GET CATEGORY IEN
100 ;;GMV GET CURRENT TIME
101 ;;GMV GET VITAL TYPE IEN
102 ;;GMV LATEST VM
103 ;;GMV MANAGER
104 ;;GMV PARAMETER
105 ;;GMV USER
106 ;;GMV VITALS/CAT/QUAL
107 ;;GMV V/M ALLDATA
108 ;;GMV EXTRACT REC
109 ;;GMV MARK ERROR
110 ;;GMV ALLERGY
111 ;;GMV DLL VERSION
112 ;;GMV LOCATION SELECT
113 ;;;
Note: See TracBrowser for help on using the repository browser.