1 | C0Q1P2 ; VEN/SMH - Kids utilities for C0Q 1.0 patch 1 ; 7/26/12 11:15am
|
---|
2 | ;;1.0;QUALITY MEASURES;*1*;July 13, 2112;
|
---|
3 | ; Licensed under package license. See Documentation for license and
|
---|
4 | ; usage conditions.
|
---|
5 | ;
|
---|
6 | ; PEPs: PRE, POST
|
---|
7 | ;
|
---|
8 | PRE ; Unified Pre; PEP
|
---|
9 | D PREREM
|
---|
10 | QUIT
|
---|
11 | POST ; Unified Post; PEP
|
---|
12 | D POSTREM
|
---|
13 | QUIT
|
---|
14 | ;
|
---|
15 | ; Rest of entry points are private
|
---|
16 | ;
|
---|
17 | ;
|
---|
18 | ARRAY(MODE,ARRAY) ;List of exchange entries used by delete and install
|
---|
19 | ;
|
---|
20 | N LN S LN=1
|
---|
21 | ;
|
---|
22 | ; NQF 0024-alt-core_wt-kids
|
---|
23 | ; NB: Commented out. Reminder needs to be re-done to include BMI %tile
|
---|
24 | ; S ARRAY(LN,1)="MU NQF0024 BMI_MK"
|
---|
25 | ; I MODE S ARRAY(LN,2)="07/06/2011@15:11:46"
|
---|
26 | ; S LN=LN+1
|
---|
27 | ;
|
---|
28 | ; NQF 0013-core-HTN
|
---|
29 | S ARRAY(LN,1)="MU NQF0013 HTN_MK"
|
---|
30 | I MODE S ARRAY(LN,2)="07/06/2011@15:08:53"
|
---|
31 | S LN=LN+1
|
---|
32 | ;
|
---|
33 | ; NQF 0028a-core-tobacco-access
|
---|
34 | ; NQF 0028b-core-tobaocc-intervention
|
---|
35 | ; Both are in the first; dialog is in the second.
|
---|
36 | S ARRAY(LN,1)="MU NQF0028 TOBACCO_MK"
|
---|
37 | I MODE S ARRAY(LN,2)="07/06/2011@15:14:49"
|
---|
38 | S LN=LN+1
|
---|
39 | S ARRAY(LN,1)="MU NQF0028AB MANAGEMENT DI"
|
---|
40 | I MODE S ARRAY(LN,2)="06/08/2011@16:50:31"
|
---|
41 | S LN=LN+1
|
---|
42 | ;
|
---|
43 | ; NQF 0041-alt-core-flu
|
---|
44 | S ARRAY(LN,1)="MU NQF0041 FLU_MK"
|
---|
45 | I MODE S ARRAY(LN,2)="07/06/2011@15:26:59"
|
---|
46 | S LN=LN+1
|
---|
47 | ;
|
---|
48 | ; NQF 0059-option1-DM-Hbalc
|
---|
49 | ; NQF 0061-option3-DM-BP
|
---|
50 | ; NQF 0064-option2-DM-LDL
|
---|
51 | ; All are in One Reminder Exchange entry
|
---|
52 | S ARRAY(LN,1)="MU NQF0059_61_64_SMH"
|
---|
53 | I MODE S ARRAY(LN,2)="07/16/2012@10:46:17"
|
---|
54 | S LN=LN+1
|
---|
55 | ;
|
---|
56 | ; Inpatient Education Reminders (popularly known as ED-1 and ED-2)
|
---|
57 | ; NQF 0495
|
---|
58 | ; NQF 0497
|
---|
59 | S ARRAY(LN,1)="MU NQF 0495 ED-1"
|
---|
60 | I MODE S ARRAY(LN,2)="07/17/2012@11:47:55"
|
---|
61 | S LN=LN+1
|
---|
62 | S ARRAY(LN,1)="MU NQF 0497 ED-2"
|
---|
63 | I MODE S ARRAY(LN,2)="07/17/2012@11:50:23"
|
---|
64 | S LN=LN+1
|
---|
65 | ;
|
---|
66 | ; MU Stroke Measures
|
---|
67 | ; NQF 0435
|
---|
68 | ; NQF 0436
|
---|
69 | ; NQF 0437
|
---|
70 | ; NQF 0438
|
---|
71 | ; NQF 0439
|
---|
72 | ; NQF 0440
|
---|
73 | ; NQF 0441
|
---|
74 | ; NB: Contains two Labs! Must rematch if not on your system.
|
---|
75 | ; Installation will become talkative
|
---|
76 | S ARRAY(LN,1)="MU STROKE 2.3.4.5.6.8.10 SMH"
|
---|
77 | I MODE S ARRAY(LN,2)="07/18/2012@10:33:53"
|
---|
78 | S LN=LN+1
|
---|
79 | ;
|
---|
80 | ; MU VTE Measures
|
---|
81 | ; NQF 0371
|
---|
82 | ; NQF 0372
|
---|
83 | ; NQF 0373
|
---|
84 | ; NQF 0374
|
---|
85 | ; NQF 0375
|
---|
86 | ; NQF 0376
|
---|
87 | ; NB: Contains several labs. Must rematch if not on your system.
|
---|
88 | ; Installation will become talkative
|
---|
89 | S ARRAY(LN,1)="MU VTE 1.2.3.4.5.6 SMH"
|
---|
90 | I MODE S ARRAY(LN,2)="07/20/2012@09:48:30"
|
---|
91 | S LN=LN+1
|
---|
92 | ;
|
---|
93 | ;
|
---|
94 | ; NQF 0421-core-adult-weight
|
---|
95 | ; NB: B/c of the presence of patient lists, measures sent as part of
|
---|
96 | ; an extract.
|
---|
97 | S ARRAY(LN,1)="MU NQF0421 ADULT BMI SMH"
|
---|
98 | I MODE S ARRAY(LN,2)="07/26/2012@11:00:17"
|
---|
99 | S LN=LN+1
|
---|
100 | ;
|
---|
101 | QUIT
|
---|
102 | ;
|
---|
103 | ;
|
---|
104 | ;===============================================================
|
---|
105 | DELEI ;If the Exchange File entry already exists delete it.
|
---|
106 | N ARRAY,IC,IND,LIST,LUVALUE,NUM
|
---|
107 | D ARRAY(1,.ARRAY)
|
---|
108 | S IC=0
|
---|
109 | F S IC=$O(ARRAY(IC)) Q:'IC D
|
---|
110 | .S LUVALUE(1)=ARRAY(IC,1)
|
---|
111 | .D FIND^DIC(811.8,"","","U",.LUVALUE,"","","","","LIST")
|
---|
112 | .I '$D(LIST) Q
|
---|
113 | .S NUM=$P(LIST("DILIST",0),U,1)
|
---|
114 | .I NUM'=0 D
|
---|
115 | ..F IND=1:1:NUM D
|
---|
116 | ... N DA,DIK
|
---|
117 | ... S DIK="^PXD(811.8,"
|
---|
118 | ... S DA=LIST("DILIST",2,IND)
|
---|
119 | ... D ^DIK
|
---|
120 | Q
|
---|
121 | ;
|
---|
122 | ;===============================================================
|
---|
123 | EXFINC(Y) ;Return a 1 if the Exchange file entry is in the list to
|
---|
124 | ;include in the build. This is used in the build to determine which
|
---|
125 | ;entries to include.
|
---|
126 | N ARRAY,FOUND,IEN,IC,LUVALUE
|
---|
127 | D ARRAY(1,.ARRAY)
|
---|
128 | S FOUND=0
|
---|
129 | S IC=0
|
---|
130 | F S IC=+$O(ARRAY(IC)) Q:(IC=0)!(FOUND) D
|
---|
131 | . M LUVALUE=ARRAY(IC)
|
---|
132 | . S IEN=+$$FIND1^DIC(811.8,"","KU",.LUVALUE)
|
---|
133 | . I IEN=Y S FOUND=1 Q
|
---|
134 | Q FOUND
|
---|
135 | ;
|
---|
136 | PREREM ;
|
---|
137 | D DELEI
|
---|
138 | Q
|
---|
139 | POSTREM ;
|
---|
140 | D SMEXINS
|
---|
141 | Q
|
---|
142 | ;===============================================================
|
---|
143 | SMEXINS ;Silent mode install.
|
---|
144 | N ARRAY,IC,IEN,LUVALUE,PXRMINST
|
---|
145 | S PXRMINST=1
|
---|
146 | D ARRAY(1,.ARRAY)
|
---|
147 | S IC=0
|
---|
148 | F S IC=$O(ARRAY(IC)) Q:'IC D
|
---|
149 | .M LUVALUE=ARRAY(IC)
|
---|
150 | .S IEN=+$$FIND1^DIC(811.8,"","KU",.LUVALUE)
|
---|
151 | .I IEN'=0 D
|
---|
152 | .. N TEXT
|
---|
153 | .. I LUVALUE(1)["PARAMETER" S TEXT="Installing entry "_LUVALUE(1)
|
---|
154 | .. E S TEXT="Installing reminder exchange entry "_LUVALUE(1)
|
---|
155 | .. D BMES^XPDUTL(TEXT)
|
---|
156 | .. D INSTALL^PXRMEXSI(IEN,"I",1)
|
---|
157 | Q
|
---|
158 | ;
|
---|