-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathGMTS_2_7_94_PSO_7_314.KIDs
2930 lines (2864 loc) · 86.1 KB
/
GMTS_2_7_94_PSO_7_314.KIDs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
KIDS Distribution saved on Sep 14, 2018@07:38:44
GMTS*2.7*94 / PSO*7.0*314 COMBINED BUILD
**KIDS**:GMTS*2.7*94^PSO*7.0*314^
**INSTALL NAME**
GMTS*2.7*94
"BLD",9073,0)
GMTS*2.7*94^HEALTH SUMMARY^0^3180914^y
"BLD",9073,4,0)
^9.64PA^^
"BLD",9073,6.3)
41
"BLD",9073,"INID")
^n
"BLD",9073,"INIT")
CI^GMTSPI94
"BLD",9073,"KRN",0)
^9.67PA^779.2^20
"BLD",9073,"KRN",.4,0)
.4
"BLD",9073,"KRN",.401,0)
.401
"BLD",9073,"KRN",.402,0)
.402
"BLD",9073,"KRN",.403,0)
.403
"BLD",9073,"KRN",.5,0)
.5
"BLD",9073,"KRN",.84,0)
.84
"BLD",9073,"KRN",3.6,0)
3.6
"BLD",9073,"KRN",3.8,0)
3.8
"BLD",9073,"KRN",9.2,0)
9.2
"BLD",9073,"KRN",9.8,0)
9.8
"BLD",9073,"KRN",9.8,"NM",0)
^9.68A^9^8
"BLD",9073,"KRN",9.8,"NM",2,0)
GMTSPST1^^0^B167015680
"BLD",9073,"KRN",9.8,"NM",3,0)
GMTSPI94^^0^B7561147
"BLD",9073,"KRN",9.8,"NM",4,0)
GMTSPST4^^0^B17358718
"BLD",9073,"KRN",9.8,"NM",5,0)
GMTSPST5^^0^B13367450
"BLD",9073,"KRN",9.8,"NM",6,0)
GMTSPSTR^^0^B1733586
"BLD",9073,"KRN",9.8,"NM",7,0)
GMTSPSCK^^0^B5589868
"BLD",9073,"KRN",9.8,"NM",8,0)
GMTSPSTN^^0^B180171627
"BLD",9073,"KRN",9.8,"NM",9,0)
GMTSGLOS^^0^B14557009
"BLD",9073,"KRN",9.8,"NM","B","GMTSGLOS",9)
"BLD",9073,"KRN",9.8,"NM","B","GMTSPI94",3)
"BLD",9073,"KRN",9.8,"NM","B","GMTSPSCK",7)
"BLD",9073,"KRN",9.8,"NM","B","GMTSPST1",2)
"BLD",9073,"KRN",9.8,"NM","B","GMTSPST4",4)
"BLD",9073,"KRN",9.8,"NM","B","GMTSPST5",5)
"BLD",9073,"KRN",9.8,"NM","B","GMTSPSTN",8)
"BLD",9073,"KRN",9.8,"NM","B","GMTSPSTR",6)
"BLD",9073,"KRN",19,0)
19
"BLD",9073,"KRN",19,"NM",0)
^9.68A^2^2
"BLD",9073,"KRN",19,"NM",1,0)
GMTS PS MED RECON CONFIG CHECK^^0
"BLD",9073,"KRN",19,"NM",2,0)
GMTS IRM/ADPAC MAINT MENU^^2
"BLD",9073,"KRN",19,"NM","B","GMTS IRM/ADPAC MAINT MENU",2)
"BLD",9073,"KRN",19,"NM","B","GMTS PS MED RECON CONFIG CHECK",1)
"BLD",9073,"KRN",19.1,0)
19.1
"BLD",9073,"KRN",101,0)
101
"BLD",9073,"KRN",409.61,0)
409.61
"BLD",9073,"KRN",771,0)
771
"BLD",9073,"KRN",779.2,0)
779.2
"BLD",9073,"KRN",870,0)
870
"BLD",9073,"KRN",8989.51,0)
8989.51
"BLD",9073,"KRN",8989.52,0)
8989.52
"BLD",9073,"KRN",8994,0)
8994
"BLD",9073,"KRN","B",.4,.4)
"BLD",9073,"KRN","B",.401,.401)
"BLD",9073,"KRN","B",.402,.402)
"BLD",9073,"KRN","B",.403,.403)
"BLD",9073,"KRN","B",.5,.5)
"BLD",9073,"KRN","B",.84,.84)
"BLD",9073,"KRN","B",3.6,3.6)
"BLD",9073,"KRN","B",3.8,3.8)
"BLD",9073,"KRN","B",9.2,9.2)
"BLD",9073,"KRN","B",9.8,9.8)
"BLD",9073,"KRN","B",19,19)
"BLD",9073,"KRN","B",19.1,19.1)
"BLD",9073,"KRN","B",101,101)
"BLD",9073,"KRN","B",409.61,409.61)
"BLD",9073,"KRN","B",771,771)
"BLD",9073,"KRN","B",779.2,779.2)
"BLD",9073,"KRN","B",870,870)
"BLD",9073,"KRN","B",8989.51,8989.51)
"BLD",9073,"KRN","B",8989.52,8989.52)
"BLD",9073,"KRN","B",8994,8994)
"BLD",9073,"QUES",0)
^9.62^^
"BLD",9073,"REQB",0)
^9.611^1^1
"BLD",9073,"REQB",1,0)
PSO*7.0*294^1
"BLD",9073,"REQB","B","PSO*7.0*294",1)
"INIT")
CI^GMTSPI94
"KRN",19,7007,-1)
2^2
"KRN",19,7007,0)
GMTS IRM/ADPAC MAINT MENU^Health Summary Maintenance Menu^^M^.5^^^^^^y^160
"KRN",19,7007,10,0)
^19.01PI^11^11
"KRN",19,7007,10,11,0)
14505^11
"KRN",19,7007,10,11,"^")
GMTS PS MED RECON CONFIG CHECK
"KRN",19,7007,"U")
HEALTH SUMMARY MAINTENANCE MEN
"KRN",19,14505,-1)
0^1
"KRN",19,14505,0)
GMTS PS MED RECON CONFIG CHECK^Check Medication Reconciliation Configuration^^R^^^^^^^^HEALTH SUMMARY
"KRN",19,14505,1,0)
^^3^3^3160408^
"KRN",19,14505,1,1,0)
This option allows a site to confirm that the setup of Health Summary
"KRN",19,14505,1,2,0)
Types is consistent with the intent of the Medication Reconciliation
"KRN",19,14505,1,3,0)
approach for use as the 'Essential Med List for Review'.
"KRN",19,14505,25)
EN1^GMTSPSCK
"KRN",19,14505,"U")
CHECK MEDICATION RECONCILIATIO
"MBREQ")
0
"ORD",18,19)
19;18;;;OPT^XPDTA;OPTF1^XPDIA;OPTE1^XPDIA;OPTF2^XPDIA;;OPTDEL^XPDIA
"ORD",18,19,0)
OPTION
"PKG",160,-1)
1^1
"PKG",160,0)
HEALTH SUMMARY^GMTS^Integrated Health Summary Tools
"PKG",160,20,0)
^9.402P^^
"PKG",160,22,0)
^9.49I^1^1
"PKG",160,22,1,0)
2.7^2951020^2951219
"PKG",160,22,1,"PAH",1,0)
94^3180914^10000000200
"QUES","XPF1",0)
Y
"QUES","XPF1","??")
^D REP^XPDH
"QUES","XPF1","A")
Shall I write over your |FLAG| File
"QUES","XPF1","B")
YES
"QUES","XPF1","M")
D XPF1^XPDIQ
"QUES","XPF2",0)
Y
"QUES","XPF2","??")
^D DTA^XPDH
"QUES","XPF2","A")
Want my data |FLAG| yours
"QUES","XPF2","B")
YES
"QUES","XPF2","M")
D XPF2^XPDIQ
"QUES","XPI1",0)
YO
"QUES","XPI1","??")
^D INHIBIT^XPDH
"QUES","XPI1","A")
Want KIDS to INHIBIT LOGONs during the install
"QUES","XPI1","B")
NO
"QUES","XPI1","M")
D XPI1^XPDIQ
"QUES","XPM1",0)
PO^VA(200,:EM
"QUES","XPM1","??")
^D MG^XPDH
"QUES","XPM1","A")
Enter the Coordinator for Mail Group '|FLAG|'
"QUES","XPM1","B")
"QUES","XPM1","M")
D XPM1^XPDIQ
"QUES","XPO1",0)
Y
"QUES","XPO1","??")
^D MENU^XPDH
"QUES","XPO1","A")
Want KIDS to Rebuild Menu Trees Upon Completion of Install
"QUES","XPO1","B")
NO
"QUES","XPO1","M")
D XPO1^XPDIQ
"QUES","XPZ1",0)
Y
"QUES","XPZ1","??")
^D OPT^XPDH
"QUES","XPZ1","A")
Want to DISABLE Scheduled Options, Menu Options, and Protocols
"QUES","XPZ1","B")
NO
"QUES","XPZ1","M")
D XPZ1^XPDIQ
"QUES","XPZ2",0)
Y
"QUES","XPZ2","??")
^D RTN^XPDH
"QUES","XPZ2","A")
Want to MOVE routines to other CPUs
"QUES","XPZ2","B")
NO
"QUES","XPZ2","M")
D XPZ2^XPDIQ
"RTN")
8
"RTN","GMTSGLOS")
0^9^B14557009
"RTN","GMTSGLOS",1,0)
GMTSGLOS ;BIR/RMS - GLOSSARY FOR MED RECON TOOL #1 (MED REC PROFILE) ;Apr 19, 2018@20:05
"RTN","GMTSGLOS",2,0)
;;2.7;Health Summary;**94**;Oct 20, 1995;Build 41
"RTN","GMTSGLOS",3,0)
;
"RTN","GMTSGLOS",4,0)
FOOTER1 ;;
"RTN","GMTSGLOS",5,0)
;;==========PHARMACY TERMS AND POSSIBLE PATIENT ACTIONS===========
"RTN","GMTSGLOS",6,0)
;;
"RTN","GMTSGLOS",7,0)
;;INPT = VA inpatient order
"RTN","GMTSGLOS",8,0)
;;IV = VA intravenous medication
"RTN","GMTSGLOS",9,0)
;;OUTPT = VA outpatient prescription
"RTN","GMTSGLOS",10,0)
;;
"RTN","GMTSGLOS",11,0)
;;PHARMACY POSSIBLE PATIENT
"RTN","GMTSGLOS",12,0)
;;TERMS EXPLANATION ACTIONS
"RTN","GMTSGLOS",13,0)
;;-------- ------------------------------- -----------------
"RTN","GMTSGLOS",14,0)
;;
"RTN","GMTSGLOS",15,0)
;;ACTIVE A prescription that can be If you have refills,
"RTN","GMTSGLOS",16,0)
;; filled at the local VA pharmacy. you may request a
"RTN","GMTSGLOS",17,0)
;; refill of this
"RTN","GMTSGLOS",18,0)
;; prescription from
"RTN","GMTSGLOS",19,0)
;; your VA pharmacy.
"RTN","GMTSGLOS",20,0)
;;
"RTN","GMTSGLOS",21,0)
;;CLINIC A medication you received during If you have questions
"RTN","GMTSGLOS",22,0)
;; a visit to a VA clinic or about this medication
"RTN","GMTSGLOS",23,0)
;; emergency department. contact your VA
"RTN","GMTSGLOS",24,0)
;; healthcare team.
"RTN","GMTSGLOS",25,0)
;;
"RTN","GMTSGLOS",26,0)
;;DISCONTINUED A prescription your provider has Contact your VA
"RTN","GMTSGLOS",27,0)
;; stopped. It is no longer healthcare team if you
"RTN","GMTSGLOS",28,0)
;; available to be sent to you or need more of this
"RTN","GMTSGLOS",29,0)
;; picked up at the VA pharmacy medication.
"RTN","GMTSGLOS",30,0)
;; window.
"RTN","GMTSGLOS",31,0)
;;
"RTN","GMTSGLOS",32,0)
;;EXPIRED A prescription which is too old Contact your VA
"RTN","GMTSGLOS",33,0)
;; to fill. This does not refer to healthcare team if you
"RTN","GMTSGLOS",34,0)
;; the expiration date of the need more of this
"RTN","GMTSGLOS",35,0)
;; medication in the container. medication.
"RTN","GMTSGLOS",36,0)
;;
"RTN","GMTSGLOS",37,0)
;;NON-VA A medication that came from If this medication is
"RTN","GMTSGLOS",38,0)
;; someplace other than a VA medication information
"RTN","GMTSGLOS",39,0)
;; pharmacy. This may be a is incorrect or out of
"RTN","GMTSGLOS",40,0)
;; prescription from either the VA date, please tell your
"RTN","GMTSGLOS",41,0)
;; other providers that was filled VA healthcare team.
"RTN","GMTSGLOS",42,0)
;; outside the VA. Or, it may be an
"RTN","GMTSGLOS",43,0)
;; over-the-counter (OTC), herbal,
"RTN","GMTSGLOS",44,0)
;; dietary supplement or sample
"RTN","GMTSGLOS",45,0)
;; medication.
"RTN","GMTSGLOS",46,0)
;;
"RTN","GMTSGLOS",47,0)
;;ON HOLD An active prescription that will Contact your VA
"RTN","GMTSGLOS",48,0)
;; not be filled until pharmacy pharmacy when you need
"RTN","GMTSGLOS",49,0)
;; resolves the issue. more of this
"RTN","GMTSGLOS",50,0)
;; medication.
"RTN","GMTSGLOS",51,0)
;;
"RTN","GMTSGLOS",52,0)
;;PENDING This prescription order has been If you have been
"RTN","GMTSGLOS",53,0)
;; sent to the pharmacy for review instructed to start the
"RTN","GMTSGLOS",54,0)
;; and is not ready yet. this medication now,
"RTN","GMTSGLOS",55,0)
;; contact your VA
"RTN","GMTSGLOS",56,0)
;; pharmacy.
"RTN","GMTSGLOS",57,0)
;;
"RTN","GMTSGLOS",58,0)
;;SUSPENDED An active prescription that is Contact your VA
"RTN","GMTSGLOS",59,0)
;; not scheduled to be filled yet. pharmacy if you need
"RTN","GMTSGLOS",60,0)
;; You should receive it before you this medication
"RTN","GMTSGLOS",61,0)
;; run out. now.
"RTN","GMTSGLOS",62,0)
;;
"RTN","GMTSGLOS",63,0)
;;==================================================================
"RTN","GMTSGLOS",64,0)
;;$$END
"RTN","GMTSPI94")
0^3^B7561147
"RTN","GMTSPI94",1,0)
GMTSPI94 ;CIO/SLC - Post Install GMTS*2.7*94 ;May 15, 2018@07:50
"RTN","GMTSPI94",2,0)
;;2.7;Health Summary;**94**;Oct 20, 1995;Build 41
"RTN","GMTSPI94",3,0)
Q
"RTN","GMTSPI94",4,0)
CI ; Component Install
"RTN","GMTSPI94",5,0)
N GMTSIN,GMTSLIM,GMTSINST,GMTSTL,GMTSINST,GMTSTOT,GMTSBLD,GMTSCPS,GMTSCP,GMTSCI
"RTN","GMTSPI94",6,0)
S GMTSCPS="MRT1;MRT4;MRT5;MRR1"
"RTN","GMTSPI94",7,0)
F GMTSCI=1:1 Q:'$L($P(GMTSCPS,";",GMTSCI)) D
"RTN","GMTSPI94",8,0)
. S GMTSCP=$P(GMTSCPS,";",GMTSCI) K GMTSIN
"RTN","GMTSPI94",9,0)
. D ARRAY Q:'$D(GMTSIN)
"RTN","GMTSPI94",10,0)
. I $L($G(GMTSIN("TIM"))),+($G(GMTSIN(0)))>0 S GMTSLIM(+($G(GMTSIN(0))),"TIM")=$G(GMTSIN("TIM"))
"RTN","GMTSPI94",11,0)
. I $L($G(GMTSIN("OCC"))),+($G(GMTSIN(0)))>0 S GMTSLIM(+($G(GMTSIN(0))),"OCC")=$G(GMTSIN("OCC"))
"RTN","GMTSPI94",12,0)
. S GMTSINST=$$ADD^GMTSXPD1(.GMTSIN),GMTSTOT=+($G(GMTSTOT))+($G(GMTSINST))
"RTN","GMTSPI94",13,0)
; Rebuild Ad Hoc Health Summary Type
"RTN","GMTSPI94",14,0)
D:+($G(GMTSTOT))>0 BUILD^GMTSXPD3
"RTN","GMTSPI94",15,0)
D LIM
"RTN","GMTSPI94",16,0)
I +$$ROK("GMTSXPS1")>0 D
"RTN","GMTSPI94",17,0)
. N GMTSHORT S GMTSHORT=1,GMTSINST="",GMTSBLD="GMTS*2.7*94" D SEND^GMTSXPS1
"RTN","GMTSPI94",18,0)
Q
"RTN","GMTSPI94",19,0)
ARRAY ; Build Array
"RTN","GMTSPI94",20,0)
K GMTSIN N GMTSI,GMTSTXT,GMTSEX,GMTSFLD,GMTSUB,GMTSVAL,GMTSPDX S GMTSPDX=1,GMTSCP=$G(GMTSCP) Q:'$L(GMTSCP)
"RTN","GMTSPI94",21,0)
F GMTSI=1:1 D Q:'$L(GMTSTXT)
"RTN","GMTSPI94",22,0)
. S GMTSTXT="",GMTSEX="S GMTSTXT=$T("_GMTSCP_"+"_GMTSI_")" X GMTSEX S:$L(GMTSTXT,";")'>3 GMTSTXT="" Q:'$L(GMTSTXT)
"RTN","GMTSPI94",23,0)
. S GMTSFLD=$P(GMTSTXT,";",2),GMTSUB=$P(GMTSTXT,";",3),GMTSVAL=$P(GMTSTXT,";",4)
"RTN","GMTSPI94",24,0)
. S:$E(GMTSFLD,1)=1&(+GMTSFLD<2) GMTSVAL=$P(GMTSTXT,";",4,5)
"RTN","GMTSPI94",25,0)
. S:$E(GMTSFLD,1)=" "!('$L(GMTSFLD)) GMTSTXT="" Q:GMTSTXT=""
"RTN","GMTSPI94",26,0)
. S:$L(GMTSFLD)&('$L(GMTSUB)) GMTSIN(GMTSFLD)=GMTSVAL Q:$L(GMTSFLD)&('$L(GMTSUB)) S:$L(GMTSFLD)&($L(GMTSUB)) GMTSIN(GMTSFLD,GMTSUB)=GMTSVAL
"RTN","GMTSPI94",27,0)
. S:$G(GMTSFLD)=7&(+($G(GMTSUB))>0) GMTSPDX=0
"RTN","GMTSPI94",28,0)
K:+($G(GMTSPDX))=0 GMTSIN("PDX")
"RTN","GMTSPI94",29,0)
Q
"RTN","GMTSPI94",30,0)
LIM ; Limits
"RTN","GMTSPI94",31,0)
N GMTSI,GMTST,GMTSO,GMTSA S GMTSI=0 F S GMTSI=$O(GMTSLIM(GMTSI)) Q:+GMTSI=0 D
"RTN","GMTSPI94",32,0)
. S GMTSA=$P($G(^GMT(142.1,+($G(GMTSI)),0)),"^",3),GMTST=$G(GMTSLIM(+GMTSI,"TIM")) S:'$L(GMTST) GMTST=$S(GMTSA="Y ":"1Y ",1:"")
"RTN","GMTSPI94",33,0)
. S GMTSA=$P($G(^GMT(142.1,+($G(GMTSI)),0)),"^",5),GMTSO=$G(GMTSLIM(+GMTSI,"OCC")) S:'$L(GMTSO) GMTSO=$S(GMTSA="Y ":"10 ",1:"")
"RTN","GMTSPI94",34,0)
. D TO^GMTSXPD3(GMTSI,GMTST,GMTSO)
"RTN","GMTSPI94",35,0)
Q
"RTN","GMTSPI94",36,0)
ROK(X) ; Routine OK
"RTN","GMTSPI94",37,0)
S X=$G(X) Q:'$L(X) 0 N GMTSEX,GMTSTXT S GMTSEX="S GMTSTXT=$T(+1^"_X_")" X GMTSEX
"RTN","GMTSPI94",38,0)
Q:'$L(GMTSTXT) 0 Q 1
"RTN","GMTSPI94",39,0)
;
"RTN","GMTSPI94",40,0)
MRT1 ; Med Reconciliation Component Data
"RTN","GMTSPI94",41,0)
;0;;258
"RTN","GMTSPI94",42,0)
;.01;;Med. Reconciliation (Tool #1)
"RTN","GMTSPI94",43,0)
;1;;TOOL1;GMTSPST1
"RTN","GMTSPI94",44,0)
;1.1;;0
"RTN","GMTSPI94",45,0)
;2;;
"RTN","GMTSPI94",46,0)
;3;;MRT1
"RTN","GMTSPI94",47,0)
;3.5;;5
"RTN","GMTSPI94",48,0)
;3.5;1;This component generates a list of the patient's complete medication
"RTN","GMTSPI94",49,0)
;3.5;2;profile, including Outpatient Rx's, Inpatient Medication Orders, Clinic
"RTN","GMTSPI94",50,0)
;3.5;3;Orders, Non-VA Medications, and Remote Active Medications. It is sorted
"RTN","GMTSPI94",51,0)
;3.5;4;alphabetically by drug name, creating groups of outpatient/inpatient
"RTN","GMTSPI94",52,0)
;3.5;5;orders for the same item in order to facilitate medication reconciliation.
"RTN","GMTSPI94",53,0)
;4;;
"RTN","GMTSPI94",54,0)
;5;;
"RTN","GMTSPI94",55,0)
;6;;
"RTN","GMTSPI94",56,0)
;7;;0
"RTN","GMTSPI94",57,0)
;8;;
"RTN","GMTSPI94",58,0)
;9;;Med Reconciliation
"RTN","GMTSPI94",59,0)
;10;;
"RTN","GMTSPI94",60,0)
;11;;
"RTN","GMTSPI94",61,0)
;12;;
"RTN","GMTSPI94",62,0)
;13;;
"RTN","GMTSPI94",63,0)
;14;;
"RTN","GMTSPI94",64,0)
;PDX;;1
"RTN","GMTSPI94",65,0)
;
"RTN","GMTSPI94",66,0)
Q
"RTN","GMTSPI94",67,0)
;
"RTN","GMTSPI94",68,0)
MRT4 ; Remote Active Meds (Tool #4) Component Data
"RTN","GMTSPI94",69,0)
;0;;261
"RTN","GMTSPI94",70,0)
;.01;;Remote Active Meds (Tool #4)
"RTN","GMTSPI94",71,0)
;1;;ENHS;GMTSPST4
"RTN","GMTSPI94",72,0)
;1.1;;0
"RTN","GMTSPI94",73,0)
;2;;
"RTN","GMTSPI94",74,0)
;3;;MRT4
"RTN","GMTSPI94",75,0)
;3.5;;2
"RTN","GMTSPI94",76,0)
;3.5;1;This component will display the details of a patient's remote active
"RTN","GMTSPI94",77,0)
;3.5;2;outpatient medications using data from the Health Data Repository.
"RTN","GMTSPI94",78,0)
;4;;
"RTN","GMTSPI94",79,0)
;5;;
"RTN","GMTSPI94",80,0)
;6;;
"RTN","GMTSPI94",81,0)
;7;;0
"RTN","GMTSPI94",82,0)
;8;;
"RTN","GMTSPI94",83,0)
;9;;
"RTN","GMTSPI94",84,0)
;10;;
"RTN","GMTSPI94",85,0)
;11;;
"RTN","GMTSPI94",86,0)
;12;;
"RTN","GMTSPI94",87,0)
;13;;
"RTN","GMTSPI94",88,0)
;14;;
"RTN","GMTSPI94",89,0)
;PDX;;1
"RTN","GMTSPI94",90,0)
;
"RTN","GMTSPI94",91,0)
Q
"RTN","GMTSPI94",92,0)
;
"RTN","GMTSPI94",93,0)
MRT5 ; Allergies/ADRs Component Data
"RTN","GMTSPI94",94,0)
;0;;262
"RTN","GMTSPI94",95,0)
;.01;;Allergies/ADRs (Tool #5)
"RTN","GMTSPI94",96,0)
;1;;ENHS;GMTSPST5
"RTN","GMTSPI94",97,0)
;1.1;;0
"RTN","GMTSPI94",98,0)
;2;;
"RTN","GMTSPI94",99,0)
;3;;MRT5
"RTN","GMTSPI94",100,0)
;3.5;;4
"RTN","GMTSPI94",101,0)
;3.5;1;This component displays local facility and remote facility allergy and
"RTN","GMTSPI94",102,0)
;3.5;2;adverse data information using the Remote Data Interoperability features
"RTN","GMTSPI94",103,0)
;3.5;3;of the Health Data Repository. Data from the local facility is merged
"RTN","GMTSPI94",104,0)
;3.5;4;into a single table with remote facility allergy/adverse reaction data.
"RTN","GMTSPI94",105,0)
;4;;
"RTN","GMTSPI94",106,0)
;5;;
"RTN","GMTSPI94",107,0)
;6;;
"RTN","GMTSPI94",108,0)
;7;;0
"RTN","GMTSPI94",109,0)
;8;;
"RTN","GMTSPI94",110,0)
;9;;Allergies/ADRs
"RTN","GMTSPI94",111,0)
;10;;
"RTN","GMTSPI94",112,0)
;11;;
"RTN","GMTSPI94",113,0)
;12;;
"RTN","GMTSPI94",114,0)
;13;;
"RTN","GMTSPI94",115,0)
;14;;
"RTN","GMTSPI94",116,0)
;PDX;;1
"RTN","GMTSPI94",117,0)
;
"RTN","GMTSPI94",118,0)
Q
"RTN","GMTSPI94",119,0)
;
"RTN","GMTSPI94",120,0)
MRR1 ; Med Reconciliation Component Data
"RTN","GMTSPI94",121,0)
;0;;267
"RTN","GMTSPI94",122,0)
;.01;;Med Recon NoGlossary (Tool #1)
"RTN","GMTSPI94",123,0)
;1;;TOOL1;GMTSPSTN
"RTN","GMTSPI94",124,0)
;1.1;;0
"RTN","GMTSPI94",125,0)
;2;;
"RTN","GMTSPI94",126,0)
;3;;MRR1
"RTN","GMTSPI94",127,0)
;3.5;;5
"RTN","GMTSPI94",128,0)
;3.5;1;This component generates a list of the patient's complete medication
"RTN","GMTSPI94",129,0)
;3.5;2;profile, including Outpatient Rx's, Inpatient Medication Orders, Clinic
"RTN","GMTSPI94",130,0)
;3.5;3;Orders, Non-VA Medications, and Remote Active Medications. It is sorted
"RTN","GMTSPI94",131,0)
;3.5;4;alphabetically by drug name, creating groups of outpatient/inpatient
"RTN","GMTSPI94",132,0)
;3.5;5;orders for the same item in order to facilitate medication reconciliation.
"RTN","GMTSPI94",133,0)
;4;;
"RTN","GMTSPI94",134,0)
;5;;
"RTN","GMTSPI94",135,0)
;6;;
"RTN","GMTSPI94",136,0)
;7;;0
"RTN","GMTSPI94",137,0)
;8;;
"RTN","GMTSPI94",138,0)
;9;;Med Reconciliation
"RTN","GMTSPI94",139,0)
;10;;
"RTN","GMTSPI94",140,0)
;11;;
"RTN","GMTSPI94",141,0)
;12;;
"RTN","GMTSPI94",142,0)
;13;;
"RTN","GMTSPI94",143,0)
;14;;
"RTN","GMTSPI94",144,0)
;PDX;;1
"RTN","GMTSPI94",145,0)
;
"RTN","GMTSPI94",146,0)
Q
"RTN","GMTSPI94",147,0)
;
"RTN","GMTSPSCK")
0^7^B5589868
"RTN","GMTSPSCK",1,0)
GMTSPSCK ;PBM/RMS - MED RECONCILIATION CONFIGURATION CHECKER ;Jun 07, 2018@21:40
"RTN","GMTSPSCK",2,0)
;;2.7;Health Summary;**94**;Oct 20, 1995;Build 41
"RTN","GMTSPSCK",3,0)
;
"RTN","GMTSPSCK",4,0)
EN1 ; Main entry point
"RTN","GMTSPSCK",5,0)
N ASK,IDX,IDX1,IDX2,ORDER,REC,NAME,COMP,HAVET,HAVE1,HAVE2,HAVE3,FAILS
"RTN","GMTSPSCK",6,0)
S HAVE1=0,HAVE2=0,HAVE3=0,HAVET=0
"RTN","GMTSPSCK",7,0)
S FAILS=""
"RTN","GMTSPSCK",8,0)
W !,"Checking for TYPE 'Essential Med List for Review' ..."
"RTN","GMTSPSCK",9,0)
S IDX="" F S IDX=$O(^GMT(142,IDX)) Q:IDX="" D
"RTN","GMTSPSCK",10,0)
. S NAME=$P($G(^GMT(142,IDX,0)),U,1)
"RTN","GMTSPSCK",11,0)
. I NAME="Essential Med List for Review" D
"RTN","GMTSPSCK",12,0)
.. S HAVET=1
"RTN","GMTSPSCK",13,0)
.. W " OK",!
"RTN","GMTSPSCK",14,0)
.. S IDX1=0 F S IDX1=$O(^GMT(142,IDX,1,IDX1)) Q:IDX1="" D
"RTN","GMTSPSCK",15,0)
... S REC=$G(^GMT(142,IDX,1,IDX1,0))
"RTN","GMTSPSCK",16,0)
... I REC'="" D
"RTN","GMTSPSCK",17,0)
.... S ORDER=$P(REC,U,1)
"RTN","GMTSPSCK",18,0)
.... S IDX2=$P(REC,U,2)
"RTN","GMTSPSCK",19,0)
.... S COMP=$$GETCOMP(IDX2)
"RTN","GMTSPSCK",20,0)
.... I COMP'="" D
"RTN","GMTSPSCK",21,0)
..... I $P(COMP,U,1)="Allergies/ADRs (Tool #5)" S HAVE1=1
"RTN","GMTSPSCK",22,0)
..... I $P(COMP,U,1)="Med. Reconciliation (Tool #1)" S HAVE2=1
"RTN","GMTSPSCK",23,0)
..... I $P(COMP,U,1)="Med Recon NoGlossary (Tool #1)" S HAVE3=1
"RTN","GMTSPSCK",24,0)
.... E D
"RTN","GMTSPSCK",25,0)
..... W " FAIL (Component not found)",!
"RTN","GMTSPSCK",26,0)
. I HAVET Q
"RTN","GMTSPSCK",27,0)
I 'HAVET D
"RTN","GMTSPSCK",28,0)
. W " FAIL (Missing)",!
"RTN","GMTSPSCK",29,0)
E D
"RTN","GMTSPSCK",30,0)
. W "Checking for COMPONENT 'Allergies/ADRs (Tool #5)' configured in TYPE ..."
"RTN","GMTSPSCK",31,0)
. I HAVE1 W " OK",!
"RTN","GMTSPSCK",32,0)
. E W !?5," FAIL (Missing)",!
"RTN","GMTSPSCK",33,0)
. W "Checking Tool #1 COMPONENTs to Verify One (and Only One) is Present ...",!
"RTN","GMTSPSCK",34,0)
. W "Checking for COMPONENT 'Med. Reconciliation (Tool #1)' configured in TYPE ...",!
"RTN","GMTSPSCK",35,0)
. W "Checking for COMPONENT 'Med Recon NoGlossary (Tool #1)' configured in TYPE ..."
"RTN","GMTSPSCK",36,0)
. I HAVE2,'HAVE3 W " OK",!
"RTN","GMTSPSCK",37,0)
. I 'HAVE2,HAVE3 W " OK",!
"RTN","GMTSPSCK",38,0)
. I HAVE2,HAVE3 W !?5," FAIL (Can't have both MRT1 & MRR1 Tool #1 COMPONENTs)"
"RTN","GMTSPSCK",39,0)
. I 'HAVE2,'HAVE3 W !?5," FAIL (Missing One)",!
"RTN","GMTSPSCK",40,0)
W !!,"Press <Return> to Continue..." R ASK:300
"RTN","GMTSPSCK",41,0)
Q
"RTN","GMTSPSCK",42,0)
;-------------------------------------------------------------
"RTN","GMTSPSCK",43,0)
; GETCOMP - Retrieves a single Health Summary Component by IEN
"RTN","GMTSPSCK",44,0)
; Parameters: IEN - IEN of HS component
"RTN","GMTSPSCK",45,0)
; Returns: REC - parts 1,2,4 from HS component record
"RTN","GMTSPSCK",46,0)
GETCOMP(IEN) ;
"RTN","GMTSPSCK",47,0)
N REC
"RTN","GMTSPSCK",48,0)
S REC=$G(^GMT(142.1,IEN,0))
"RTN","GMTSPSCK",49,0)
I REC'="" D
"RTN","GMTSPSCK",50,0)
. S REC=$P(REC,U,1)_U_$P(REC,U,2)_U_$P(REC,U,4)
"RTN","GMTSPSCK",51,0)
Q REC
"RTN","GMTSPST1")
0^2^B167015680
"RTN","GMTSPST1",1,0)
GMTSPST1 ;BIR/RMS - MED RECON TOOL #1 (MED REC PROFILE) ;May 14, 2018@20:50
"RTN","GMTSPST1",2,0)
;;2.7;Health Summary;**94**;Oct 20, 1995;Build 41
"RTN","GMTSPST1",3,0)
;Reference to COVER^ORWPS supported by IA 4926
"RTN","GMTSPST1",4,0)
;References to ^ORRDI1 supported by IA 4659
"RTN","GMTSPST1",5,0)
;Reference to ^XTMP("ORRDI","PSOO" supported by IA 4660
"RTN","GMTSPST1",6,0)
;Reference to ^XTMP("ORRDI","OUTAGE INFO" supported by IA 5440
"RTN","GMTSPST1",7,0)
;Reference to ^PSOHCSUM supported by IA 330
"RTN","GMTSPST1",8,0)
;Reference to $$ISCLIN^ORUTL1 supported by IA 5691
"RTN","GMTSPST1",9,0)
;Reference to ^PS(51 supported by IA 1980
"RTN","GMTSPST1",10,0)
;Reference to file 53.1 supported by IA 534
"RTN","GMTSPST1",11,0)
;Reference to TEXT^ORQ12 supported by IA 4202
"RTN","GMTSPST1",12,0)
;Reference to $$PKGID^ORX8 supported by IA 3071
"RTN","GMTSPST1",13,0)
;Reference to BCMALG^PSJUTL2 supported by IA 5057
"RTN","GMTSPST1",14,0)
TOOL1 ;ENTRY POINT FOR HEALTH SUMMARY
"RTN","GMTSPST1",15,0)
N ALPHA,DRUGNM,EXPDAYS,IND1,LIST,ORDER,PSNUM,RPC,RPCT,RPCNODE,SAVE,SAVERD
"RTN","GMTSPST1",16,0)
D ADD^GMTSPSTR("GMTSPST1")
"RTN","GMTSPST1",17,0)
S IND1=7,EXPDAYS=90
"RTN","GMTSPST1",18,0)
D COVER^ORWPS(.RPC,DFN)
"RTN","GMTSPST1",19,0)
S RPCT=0 F S RPCT=$O(RPC(RPCT)) Q:'+RPCT D
"RTN","GMTSPST1",20,0)
. S RPCNODE=RPC(RPCT)
"RTN","GMTSPST1",21,0)
. S PSNUM=$P(RPCNODE,U)
"RTN","GMTSPST1",22,0)
. S DRUGNM=$$UP^XLFSTR($P(RPCNODE,U,2))
"RTN","GMTSPST1",23,0)
. S ORDER=+$P(RPCNODE,U,3)
"RTN","GMTSPST1",24,0)
. Q:DRUGNM']""!(ORDER=0)!(PSNUM']"")
"RTN","GMTSPST1",25,0)
. S SAVERD=9999999-$$LRD(+$G(^OR(100,ORDER,4)))
"RTN","GMTSPST1",26,0)
. S SAVE(DRUGNM,SAVERD,ORDER,PSNUM)=""
"RTN","GMTSPST1",27,0)
. Q:("ACTIVE^ACTIVE/SUSP^ACTIVE/PARKED^HOLD^PENDING^ON CALL"'[$P(RPCNODE,U,4))&($P(PSNUM,";")["N")
"RTN","GMTSPST1",28,0)
. S ALPHA(1,DRUGNM,ORDER,PSNUM)=$P(RPCNODE,U,4)
"RTN","GMTSPST1",29,0)
D ADDREM
"RTN","GMTSPST1",30,0)
D HEADER
"RTN","GMTSPST1",31,0)
S LIST=1 D OUTPUT
"RTN","GMTSPST1",32,0)
D CKP Q:$D(GMTSQIT) W !
"RTN","GMTSPST1",33,0)
D CKP Q:$D(GMTSQIT) W !,$$REPEAT^XLFSTR("-",IOM-8)
"RTN","GMTSPST1",34,0)
D CKP Q:$D(GMTSQIT) W !,$$CJ^XLFSTR("SUPPLIES",IOM-8)
"RTN","GMTSPST1",35,0)
D CKP Q:$D(GMTSQIT) W !,$$REPEAT^XLFSTR("-",IOM-8)
"RTN","GMTSPST1",36,0)
D CKP Q:$D(GMTSQIT) W !
"RTN","GMTSPST1",37,0)
S LIST=2 D OUTPUT
"RTN","GMTSPST1",38,0)
D FOOTER
"RTN","GMTSPST1",39,0)
Q
"RTN","GMTSPST1",40,0)
;
"RTN","GMTSPST1",41,0)
ADDREM ;USES RDI - REMOTE DATA INTEROPERABILITY TO INCORPORATE OUTSIDE MEDS
"RTN","GMTSPST1",42,0)
N DOWN,MED,RDI,RNAM,RNUM,STAT,ISSUE
"RTN","GMTSPST1",43,0)
Q:'$$HAVEHDR^ORRDI1
"RTN","GMTSPST1",44,0)
D Q:$G(DOWN) ;Check for outage of RDI
"RTN","GMTSPST1",45,0)
. I $D(^XTMP("ORRDI","OUTAGE INFO","DOWN")) H $$GET^XPAR("ALL","ORRDI PING FREQ")/2
"RTN","GMTSPST1",46,0)
. I $D(^XTMP("ORRDI","OUTAGE INFO","DOWN")) S DOWN=1 D Q:$D(GMTSQIT)
"RTN","GMTSPST1",47,0)
.. D CKP Q:$D(GMTSQIT)
"RTN","GMTSPST1",48,0)
.. W !,"WARNING: Connection to Remote Data Currently Down",!
"RTN","GMTSPST1",49,0)
.. D CKP
"RTN","GMTSPST1",50,0)
Q:$D(GMTSQIT)
"RTN","GMTSPST1",51,0)
;Get data for HFS file structure
"RTN","GMTSPST1",52,0)
D SAVDEV^%ZISUTL("GMTSHFS")
"RTN","GMTSPST1",53,0)
S RDI=$$GET^ORRDI1(DFN,"PSOO")
"RTN","GMTSPST1",54,0)
D USE^%ZISUTL("GMTSHFS")
"RTN","GMTSPST1",55,0)
D RMDEV^%ZISUTL("GMTSHFS")
"RTN","GMTSPST1",56,0)
;
"RTN","GMTSPST1",57,0)
H 1 ;One extra second to allow ^XTMP replication across nodes
"RTN","GMTSPST1",58,0)
I +RDI=-1 D Q:$D(GMTSQIT)
"RTN","GMTSPST1",59,0)
. D CKP Q:$D(GMTSQIT)
"RTN","GMTSPST1",60,0)
. W !,"WARNING: Connection to Remote Data Not Available",!
"RTN","GMTSPST1",61,0)
. D CKP
"RTN","GMTSPST1",62,0)
Q:'$D(^XTMP("ORRDI","PSOO",DFN))
"RTN","GMTSPST1",63,0)
S MED=0 F S MED=$O(^XTMP("ORRDI","PSOO",DFN,MED)) Q:'+MED D
"RTN","GMTSPST1",64,0)
. S STAT=$G(^XTMP("ORRDI","PSOO",DFN,MED,5,0))
"RTN","GMTSPST1",65,0)
. Q:STAT']""
"RTN","GMTSPST1",66,0)
. Q:"ACTIVE^SUSPENDED^HOLD"'[STAT
"RTN","GMTSPST1",67,0)
. Q:$G(^XTMP("ORRDI","PSOO",DFN,MED,7,0))']"" ;DoD:quit if there is no exp. date
"RTN","GMTSPST1",68,0)
. D Q:ISSUE<$$FMADD^XLFDT(DT,-366) ;DoD: quit if ISSUE DATE > 1Y ago
"RTN","GMTSPST1",69,0)
.. N %DT,X,Y
"RTN","GMTSPST1",70,0)
.. S X=$G(^XTMP("ORRDI","PSOO",DFN,MED,8,0))
"RTN","GMTSPST1",71,0)
.. D ^%DT
"RTN","GMTSPST1",72,0)
.. S ISSUE=+Y
"RTN","GMTSPST1",73,0)
. S RNAM=$G(^XTMP("ORRDI","PSOO",DFN,MED,2,0),"Unknown Drug")
"RTN","GMTSPST1",74,0)
. S RNUM=$G(^XTMP("ORRDI","PSOO",DFN,MED,4,0))
"RTN","GMTSPST1",75,0)
. Q:RNAM']""!(RNUM']"")
"RTN","GMTSPST1",76,0)
. S ALPHA(1,RNAM,RNUM,MED_"X;R")=""
"RTN","GMTSPST1",77,0)
Q
"RTN","GMTSPST1",78,0)
HEADER ;
"RTN","GMTSPST1",79,0)
N NVADT,REPEAT
"RTN","GMTSPST1",80,0)
S NVADT=$$NVADT
"RTN","GMTSPST1",81,0)
D TEXTPRNT("HEADTXT1")
"RTN","GMTSPST1",82,0)
D CKP Q:$D(GMTSQIT)
"RTN","GMTSPST1",83,0)
W !,"Non-VA Meds Last Documented On: "
"RTN","GMTSPST1",84,0)
W $S(+NVADT:$$FMTE^XLFDT(NVADT,"D"),1:"** Data not found **")
"RTN","GMTSPST1",85,0)
D CKP Q:$D(GMTSQIT)
"RTN","GMTSPST1",86,0)
W !,$$REPEAT^XLFSTR("*",IOM-8)
"RTN","GMTSPST1",87,0)
D CKP Q:$D(GMTSQIT) W !
"RTN","GMTSPST1",88,0)
D CKP Q:$D(GMTSQIT)
"RTN","GMTSPST1",89,0)
D TEXTPRNT("HEADTXT2")
"RTN","GMTSPST1",90,0)
F REPEAT=1,2 D CKP Q:$D(GMTSQIT) W !
"RTN","GMTSPST1",91,0)
D CKP Q:$D(GMTSQIT)
"RTN","GMTSPST1",92,0)
W !,$$REPEAT^XLFSTR("-",IOM-8)
"RTN","GMTSPST1",93,0)
D CKP Q:$D(GMTSQIT)
"RTN","GMTSPST1",94,0)
Q
"RTN","GMTSPST1",95,0)
TEXTPRNT(TEXTLOC) ;PRINT LINES OF TEXT FROM A LINE LABEL, ENDS WITH $$END
"RTN","GMTSPST1",96,0)
N LINE,TLINE,LINETEXT
"RTN","GMTSPST1",97,0)
S LINE=0 F S LINE=LINE+1,TLINE=TEXTLOC_"+"_LINE S:TEXTLOC="FOOTER1" TLINE=TLINE_"^GMTSGLOS" S LINETEXT=$T(@TLINE) S LINETEXT=$E(LINETEXT,4,$L(LINETEXT)) Q:LINETEXT="$$END" D
"RTN","GMTSPST1",98,0)
. D CKP Q:$D(GMTSQIT)
"RTN","GMTSPST1",99,0)
. W !,LINETEXT