-
Notifications
You must be signed in to change notification settings - Fork 1
/
USH_PRF_LEGAL_SOLUTION_1_0.KID
3990 lines (3862 loc) · 104 KB
/
USH_PRF_LEGAL_SOLUTION_1_0.KID
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 Aug 27, 2013@08:45:32
USH PRF LEGAL SOLUTION 1.0
**KIDS**:USH PRF LEGAL SOLUTION 1.0^TIU*1.0*275^DG*5.3*864^GMTS*2.7*103^
**INSTALL NAME**
USH PRF LEGAL SOLUTION 1.0
"BLD",8698,0)
USH PRF LEGAL SOLUTION 1.0^^1^3130827^y
"BLD",8698,1,0)
^^2^2^3130805^
"BLD",8698,1,1,0)
Under Secretary for Health Patient Record Flag Legal Solution.
"BLD",8698,1,2,0)
"BLD",8698,6.3)
4
"BLD",8698,10,0)
^9.63^3^3
"BLD",8698,10,1,0)
TIU*1.0*275^1
"BLD",8698,10,2,0)
DG*5.3*864^1
"BLD",8698,10,3,0)
GMTS*2.7*103^1
"BLD",8698,10,"B","DG*5.3*864",2)
"BLD",8698,10,"B","GMTS*2.7*103",3)
"BLD",8698,10,"B","TIU*1.0*275",1)
"BLD",8698,"KRN",0)
^9.67PA^779.2^20
"BLD",8698,"KRN",.4,0)
.4
"BLD",8698,"KRN",.401,0)
.401
"BLD",8698,"KRN",.402,0)
.402
"BLD",8698,"KRN",.403,0)
.403
"BLD",8698,"KRN",.5,0)
.5
"BLD",8698,"KRN",.84,0)
.84
"BLD",8698,"KRN",3.6,0)
3.6
"BLD",8698,"KRN",3.8,0)
3.8
"BLD",8698,"KRN",9.2,0)
9.2
"BLD",8698,"KRN",9.8,0)
9.8
"BLD",8698,"KRN",19,0)
19
"BLD",8698,"KRN",19.1,0)
19.1
"BLD",8698,"KRN",101,0)
101
"BLD",8698,"KRN",409.61,0)
409.61
"BLD",8698,"KRN",771,0)
771
"BLD",8698,"KRN",779.2,0)
779.2
"BLD",8698,"KRN",870,0)
870
"BLD",8698,"KRN",8989.51,0)
8989.51
"BLD",8698,"KRN",8989.52,0)
8989.52
"BLD",8698,"KRN",8994,0)
8994
"BLD",8698,"KRN","B",.4,.4)
"BLD",8698,"KRN","B",.401,.401)
"BLD",8698,"KRN","B",.402,.402)
"BLD",8698,"KRN","B",.403,.403)
"BLD",8698,"KRN","B",.5,.5)
"BLD",8698,"KRN","B",.84,.84)
"BLD",8698,"KRN","B",3.6,3.6)
"BLD",8698,"KRN","B",3.8,3.8)
"BLD",8698,"KRN","B",9.2,9.2)
"BLD",8698,"KRN","B",9.8,9.8)
"BLD",8698,"KRN","B",19,19)
"BLD",8698,"KRN","B",19.1,19.1)
"BLD",8698,"KRN","B",101,101)
"BLD",8698,"KRN","B",409.61,409.61)
"BLD",8698,"KRN","B",771,771)
"BLD",8698,"KRN","B",779.2,779.2)
"BLD",8698,"KRN","B",870,870)
"BLD",8698,"KRN","B",8989.51,8989.51)
"BLD",8698,"KRN","B",8989.52,8989.52)
"BLD",8698,"KRN","B",8994,8994)
"MBREQ")
0
"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
"VER")
8.0^22.0
**INSTALL NAME**
TIU*1.0*275
"BLD",8511,0)
TIU*1.0*275^TEXT INTEGRATION UTILITIES^0^3130827^y
"BLD",8511,1,0)
^^1^1^3130102^
"BLD",8511,1,1,0)
See patch description on FORUM for patch TIU*1.0*275.
"BLD",8511,4,0)
^9.64PA^^
"BLD",8511,6)
2^
"BLD",8511,6.3)
8
"BLD",8511,"INIT")
TIUPS275
"BLD",8511,"KRN",0)
^9.67PA^779.2^20
"BLD",8511,"KRN",.4,0)
.4
"BLD",8511,"KRN",.401,0)
.401
"BLD",8511,"KRN",.402,0)
.402
"BLD",8511,"KRN",.403,0)
.403
"BLD",8511,"KRN",.5,0)
.5
"BLD",8511,"KRN",.84,0)
.84
"BLD",8511,"KRN",3.6,0)
3.6
"BLD",8511,"KRN",3.8,0)
3.8
"BLD",8511,"KRN",9.2,0)
9.2
"BLD",8511,"KRN",9.8,0)
9.8
"BLD",8511,"KRN",9.8,"NM",0)
^9.68A^1^1
"BLD",8511,"KRN",9.8,"NM",1,0)
TIUPS275^^0^B9548345
"BLD",8511,"KRN",9.8,"NM","B","TIUPS275",1)
"BLD",8511,"KRN",19,0)
19
"BLD",8511,"KRN",19.1,0)
19.1
"BLD",8511,"KRN",101,0)
101
"BLD",8511,"KRN",409.61,0)
409.61
"BLD",8511,"KRN",771,0)
771
"BLD",8511,"KRN",779.2,0)
779.2
"BLD",8511,"KRN",870,0)
870
"BLD",8511,"KRN",8989.51,0)
8989.51
"BLD",8511,"KRN",8989.52,0)
8989.52
"BLD",8511,"KRN",8994,0)
8994
"BLD",8511,"KRN","B",.4,.4)
"BLD",8511,"KRN","B",.401,.401)
"BLD",8511,"KRN","B",.402,.402)
"BLD",8511,"KRN","B",.403,.403)
"BLD",8511,"KRN","B",.5,.5)
"BLD",8511,"KRN","B",.84,.84)
"BLD",8511,"KRN","B",3.6,3.6)
"BLD",8511,"KRN","B",3.8,3.8)
"BLD",8511,"KRN","B",9.2,9.2)
"BLD",8511,"KRN","B",9.8,9.8)
"BLD",8511,"KRN","B",19,19)
"BLD",8511,"KRN","B",19.1,19.1)
"BLD",8511,"KRN","B",101,101)
"BLD",8511,"KRN","B",409.61,409.61)
"BLD",8511,"KRN","B",771,771)
"BLD",8511,"KRN","B",779.2,779.2)
"BLD",8511,"KRN","B",870,870)
"BLD",8511,"KRN","B",8989.51,8989.51)
"BLD",8511,"KRN","B",8989.52,8989.52)
"BLD",8511,"KRN","B",8994,8994)
"BLD",8511,"QUES",0)
^9.62^^
"INIT")
TIUPS275
"MBREQ")
1
"PKG",193,-1)
1^1
"PKG",193,0)
TEXT INTEGRATION UTILITIES^TIU^Text Integration Utilities
"PKG",193,20,0)
^9.402P^^
"PKG",193,22,0)
^9.49I^1^1
"PKG",193,22,1,0)
1.0^3010321^3010321^11
"PKG",193,22,1,"PAH",1,0)
275^3130827^1342
"PKG",193,22,1,"PAH",1,1,0)
^^1^1^3130827
"PKG",193,22,1,"PAH",1,1,1,0)
See patch description on FORUM for patch TIU*1.0*275.
"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")
1
"RTN","TIUPS275")
0^1^B9548345
"RTN","TIUPS275",1,0)
TIUPS275 ;ISD/HGW - Post-Install for 275 ;07/16/13 13:51
"RTN","TIUPS275",2,0)
;;1.0;TEXT INTEGRATION UTILITIES;**275**;Nov 13, 2012;Build 8
"RTN","TIUPS275",3,0)
; Post Installation Routine for patch TIU*1.0*275
"RTN","TIUPS275",4,0)
; Installs Title and maps it to Enterprise Standard Title and Document Class
"RTN","TIUPS275",5,0)
;
"RTN","TIUPS275",6,0)
; EXTERNAL REFERENCES
"RTN","TIUPS275",7,0)
; BMES^XPDUTL 10141
"RTN","TIUPS275",8,0)
; $$FIND1^DIC
"RTN","TIUPS275",9,0)
; NOW^%DTC
"RTN","TIUPS275",10,0)
; UPDATE^DIE 2053
"RTN","TIUPS275",11,0)
;
"RTN","TIUPS275",12,0)
MAIN ; Control subroutine
"RTN","TIUPS275",13,0)
N TIUFPRIV,TIU275X,TIUDNM,TIUSNM,TIUNATL,TIUDC
"RTN","TIUPS275",14,0)
S TIUFPRIV=1
"RTN","TIUPS275",15,0)
S TIUDNM="PATIENT RECORD FLAG CATEGORY I - URGENT ADDRESS AS FEMALE" ; Name
"RTN","TIUPS275",16,0)
S TIUSNM="PRF Addr as Female" ; Short Name
"RTN","TIUPS275",17,0)
S TIUNATL="PATIENT RECORD FLAG" ; Enterprise Standard Title
"RTN","TIUPS275",18,0)
S TIUDC="PATIENT RECORD FLAG CAT I" ; Document Class
"RTN","TIUPS275",19,0)
S TIU275X=$$CREATE(TIUDNM,TIUNATL) ; TIU275X is "Success message" or "Error text"
"RTN","TIUPS275",20,0)
D BMES^XPDUTL(TIU275X)
"RTN","TIUPS275",21,0)
S TIU275X=$$INSTALL(TIUDNM,TIUDC,TIUSNM) ; TIU275X is "Success message" or "Error text"
"RTN","TIUPS275",22,0)
D BMES^XPDUTL(TIU275X)
"RTN","TIUPS275",23,0)
Q
"RTN","TIUPS275",24,0)
CREATE(TIUDNM,TIUNATL) ; Create new DDEF entry
"RTN","TIUPS275",25,0)
N %,TIUERR,TIUFDA,TIUIEN,TIUMSG
"RTN","TIUPS275",26,0)
S TIUERR=" Title Created: "_TIUDNM
"RTN","TIUPS275",27,0)
S TIUFDA(8925.1,"?+1,",.01)=TIUDNM ; NAME
"RTN","TIUPS275",28,0)
S TIUFDA(8925.1,"?+1,",.03)=TIUDNM ; PRINT NAME
"RTN","TIUPS275",29,0)
S TIUFDA(8925.1,"?+1,",.04)="DOC" ; TYPE: TITLE
"RTN","TIUPS275",30,0)
S TIUFDA(8925.1,"?+1,",.06)=$$FIND1^DIC(8930,"","X","CLINICAL COORDINATOR","B") ; OWNER
"RTN","TIUPS275",31,0)
S TIUFDA(8925.1,"?+1,",.07)=11 ; STATUS: ACTIVE
"RTN","TIUPS275",32,0)
S TIUFDA(8925.1,"?+1,",.13)=1 ; NATIONAL STANDARD: YES
"RTN","TIUPS275",33,0)
S TIUFDA(8925.1,"?+1,",3.02)=1 ; OK TO DISTRIBUTE: YES
"RTN","TIUPS275",34,0)
S TIUFDA(8925.1,"?+1,",99)=$H ; TIMESTAMP
"RTN","TIUPS275",35,0)
S TIUFDA(8925.1,"?+1,",1501)=$$FIND1^DIC(8926.1,"","X",TIUNATL,"B") ; VHA ENTERPRISE STANDARD TITLE
"RTN","TIUPS275",36,0)
D NOW^%DTC S TIUFDA(8925.1,"?+1,",1502)=% ; MAP ATTEMPTED
"RTN","TIUPS275",37,0)
S TIUFDA(8925.1,"?+1,",1503)=DUZ ; MAP ATTEMPTED BY
"RTN","TIUPS275",38,0)
D UPDATE^DIE("","TIUFDA","TIUIEN","TIUMSG")
"RTN","TIUPS275",39,0)
I $D(TIUMSG) D Q TIUERR
"RTN","TIUPS275",40,0)
. S TIUERR=" **ERROR** "_$G(TIUMSG("DIERR",1))_" Unable to create Title "_TIUDNM
"RTN","TIUPS275",41,0)
Q TIUERR
"RTN","TIUPS275",42,0)
INSTALL(TIUDNM,TIUDC,TIUSNM) ; Install document definition
"RTN","TIUPS275",43,0)
N TIUERR,TIUFPRIV,TIUTIEN,TIUDIEN,TIUFDA,TIUIEN,TIUMSG
"RTN","TIUPS275",44,0)
S TIUERR=" Title attached to Document Class "_TIUDC
"RTN","TIUPS275",45,0)
S TIUFPRIV=1
"RTN","TIUPS275",46,0)
; Find the IEN of the Title
"RTN","TIUPS275",47,0)
S TIUTIEN=$$FIND1^DIC(8925.1,"","X",TIUDNM,"B")
"RTN","TIUPS275",48,0)
I 'TIUTIEN D Q TIUERR
"RTN","TIUPS275",49,0)
. S TIUERR=" **ERROR** Unable to locate Title "_TIUDNM
"RTN","TIUPS275",50,0)
; Find the IEN of the Document Class
"RTN","TIUPS275",51,0)
S TIUDIEN=$$FIND1^DIC(8925.1,"","X",TIUDC,"B")
"RTN","TIUPS275",52,0)
I 'TIUDIEN D Q TIUERR
"RTN","TIUPS275",53,0)
. S TIUERR=" **ERROR** Unable to locate Document Class "_TIUDC
"RTN","TIUPS275",54,0)
; Attach the Title to Document Class
"RTN","TIUPS275",55,0)
S TIUFDA(8925.14,"?+2,"_TIUDIEN_",",.01)=TIUTIEN ; ITEM
"RTN","TIUPS275",56,0)
S TIUFDA(8925.14,"?+2,"_TIUDIEN_",",2)="" ; MNEMONIC
"RTN","TIUPS275",57,0)
S TIUFDA(8925.14,"?+2,"_TIUDIEN_",",3)="" ; SEQUENCE
"RTN","TIUPS275",58,0)
S TIUFDA(8925.14,"?+2,"_TIUDIEN_",",4)=TIUSNM ; MENU TEXT
"RTN","TIUPS275",59,0)
D UPDATE^DIE("","TIUFDA","TIUIEN","TIUMSG")
"RTN","TIUPS275",60,0)
I $D(TIUMSG) D Q TIUERR
"RTN","TIUPS275",61,0)
. S TIUERR=" **ERROR** Unable to update Document Class "_TIUDC
"RTN","TIUPS275",62,0)
Q TIUERR
"VER")
8.0^22.0
**INSTALL NAME**
DG*5.3*864
"BLD",8695,0)
DG*5.3*864^REGISTRATION^0^3130827^y
"BLD",8695,4,0)
^9.64PA^^
"BLD",8695,6)
12^
"BLD",8695,6.3)
16
"BLD",8695,"ABPKG")
n
"BLD",8695,"INID")
^n
"BLD",8695,"INIT")
DG53864P
"BLD",8695,"KRN",0)
^9.67PA^779.2^20
"BLD",8695,"KRN",.4,0)
.4
"BLD",8695,"KRN",.4,"NM",0)
^9.68A^^
"BLD",8695,"KRN",.401,0)
.401
"BLD",8695,"KRN",.401,"NM",0)
^9.68A^^
"BLD",8695,"KRN",.402,0)
.402
"BLD",8695,"KRN",.402,"NM",0)
^9.68A^^0
"BLD",8695,"KRN",.403,0)
.403
"BLD",8695,"KRN",.403,"NM",0)
^9.68A^^
"BLD",8695,"KRN",.5,0)
.5
"BLD",8695,"KRN",.5,"NM",0)
^9.68A^^
"BLD",8695,"KRN",.84,0)
.84
"BLD",8695,"KRN",3.6,0)
3.6
"BLD",8695,"KRN",3.8,0)
3.8
"BLD",8695,"KRN",9.2,0)
9.2
"BLD",8695,"KRN",9.8,0)
9.8
"BLD",8695,"KRN",9.8,"NM",0)
^9.68A^6^6
"BLD",8695,"KRN",9.8,"NM",1,0)
DGPFLMA2^^0^B58607996
"BLD",8695,"KRN",9.8,"NM",2,0)
DGPFLMA3^^0^B74777125
"BLD",8695,"KRN",9.8,"NM",3,0)
DG53864P^^0^B6717089
"BLD",8695,"KRN",9.8,"NM",4,0)
DGREG^^0^B47583853
"BLD",8695,"KRN",9.8,"NM",5,0)
DG10^^0^B19615369
"BLD",8695,"KRN",9.8,"NM",6,0)
DGPFMPI^^0^B2049737
"BLD",8695,"KRN",9.8,"NM","B","DG10",5)
"BLD",8695,"KRN",9.8,"NM","B","DG53864P",3)
"BLD",8695,"KRN",9.8,"NM","B","DGPFLMA2",1)
"BLD",8695,"KRN",9.8,"NM","B","DGPFLMA3",2)
"BLD",8695,"KRN",9.8,"NM","B","DGPFMPI",6)
"BLD",8695,"KRN",9.8,"NM","B","DGREG",4)
"BLD",8695,"KRN",19,0)
19
"BLD",8695,"KRN",19,"NM",0)
^9.68A^^
"BLD",8695,"KRN",19.1,0)
19.1
"BLD",8695,"KRN",19.1,"NM",0)
^9.68A^^
"BLD",8695,"KRN",101,0)
101
"BLD",8695,"KRN",101,"NM",0)
^9.68A^^
"BLD",8695,"KRN",409.61,0)
409.61
"BLD",8695,"KRN",771,0)
771
"BLD",8695,"KRN",779.2,0)
779.2
"BLD",8695,"KRN",870,0)
870
"BLD",8695,"KRN",8989.51,0)
8989.51
"BLD",8695,"KRN",8989.52,0)
8989.52
"BLD",8695,"KRN",8994,0)
8994
"BLD",8695,"KRN","B",.4,.4)
"BLD",8695,"KRN","B",.401,.401)
"BLD",8695,"KRN","B",.402,.402)
"BLD",8695,"KRN","B",.403,.403)
"BLD",8695,"KRN","B",.5,.5)
"BLD",8695,"KRN","B",.84,.84)
"BLD",8695,"KRN","B",3.6,3.6)
"BLD",8695,"KRN","B",3.8,3.8)
"BLD",8695,"KRN","B",9.2,9.2)
"BLD",8695,"KRN","B",9.8,9.8)
"BLD",8695,"KRN","B",19,19)
"BLD",8695,"KRN","B",19.1,19.1)
"BLD",8695,"KRN","B",101,101)
"BLD",8695,"KRN","B",409.61,409.61)
"BLD",8695,"KRN","B",771,771)
"BLD",8695,"KRN","B",779.2,779.2)
"BLD",8695,"KRN","B",870,870)
"BLD",8695,"KRN","B",8989.51,8989.51)
"BLD",8695,"KRN","B",8989.52,8989.52)
"BLD",8695,"KRN","B",8994,8994)
"BLD",8695,"QDEF")
^^^^NO^^^^NO^^NO
"BLD",8695,"QUES",0)
^9.62^^
"BLD",8695,"REQB",0)
^9.611^^
"INIT")
DG53864P
"MBREQ")
1
"PKG",6,-1)
1^1
"PKG",6,0)
REGISTRATION^DG^PATIENT REGISTRATION, ADMISSION, DISCHARGE, EMBOSSER
"PKG",6,20,0)
^9.402P^^
"PKG",6,22,0)
^9.49I^1^1
"PKG",6,22,1,0)
5.3^2930813^2931021
"PKG",6,22,1,"PAH",1,0)
864^3130827^1342
"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")
6
"RTN","DG10")
0^5^B19615369
"RTN","DG10",1,0)
DG10 ;ALB/MRL,DAK,AEG,PHH,TMK-LOAD/EDIT PATIENT DATA ; 08/26/08
"RTN","DG10",2,0)
;;5.3;Registration;**32,109,139,149,182,326,513,425,574,642,658,773,864**;Aug 13, 1993;Build 16
"RTN","DG10",3,0)
START ;
"RTN","DG10",4,0)
D LO^DGUTL
"RTN","DG10",5,0)
I $G(DGPRFLG)=1,$G(DGPLOC)=1 D G Q:$G(DGRPOUT),A1
"RTN","DG10",6,0)
.; D EN^DGRPD,REG^IVMCQ($G(DFN))
"RTN","DG10",7,0)
. D EN^DGRPD
"RTN","DG10",8,0)
. Q:$G(DGRPOUT)
"RTN","DG10",9,0)
. D REG^IVMCQ($G(DFN))
"RTN","DG10",10,0)
. D HINQ
"RTN","DG10",11,0)
;
"RTN","DG10",12,0)
A W !! K VET,DIE,DIC,CARD S DIC=2,DLAYGO=2,DIC(0)="ALEQM" K DIC("S") D ^DIC G Q:Y<0 S (DFN,DA)=+Y,DGNEW=$P(Y,"^",3) K DLAYGO
"RTN","DG10",13,0)
N Y D PAUSE I DGNEW D NEW^DGRP S DA=DFN,VET=$S($D(^DPT(DFN,"VET")):^("VET")'="Y",1:0)
"RTN","DG10",14,0)
;
"RTN","DG10",15,0)
;MPI QUERY
"RTN","DG10",16,0)
;check to see if CIRN PD/MPI is installed
"RTN","DG10",17,0)
N X S X="MPIFAPI" X ^%ZOSF("TEST") G:'$T SKIP
"RTN","DG10",18,0)
K MPIFRTN
"RTN","DG10",19,0)
D MPIQ^MPIFAPI(DFN)
"RTN","DG10",20,0)
K MPIFRTN
"RTN","DG10",21,0)
;
"RTN","DG10",22,0)
N DGNOIVMUPD
"RTN","DG10",23,0)
S DGNOIVMUPD=1 ; Set flag to prevent MT Event Driver from updating converted IVM test
"RTN","DG10",24,0)
I +$G(DGNEW) D
"RTN","DG10",25,0)
. ; query CMOR for Patient Record Flag Assignments if NEW patient and
"RTN","DG10",26,0)
. ; display results
"RTN","DG10",27,0)
. I $$PRFQRY^DGPFAPI(DFN) D DISPPRF^DGPFAPI(DFN)
"RTN","DG10",28,0)
. I $$EN^DGPFMPI(DFN)
"RTN","DG10",29,0)
;
"RTN","DG10",30,0)
SKIP ;
"RTN","DG10",31,0)
S DGELVER=0 D EN^DGRPD I $D(DGRPOUT) K DGRPOUT G A
"RTN","DG10",32,0)
D HINQ,REG^IVMCQ($G(DFN)) G A1
"RTN","DG10",33,0)
;
"RTN","DG10",34,0)
HINQ ;
"RTN","DG10",35,0)
S Y=$S($D(^DG(43,1,0)):^(0),1:0) I $P(Y,U,27) S X="DVBHQZ4" X ^%ZOSF("TEST") I $T D
"RTN","DG10",36,0)
.N DGROUT
"RTN","DG10",37,0)
.S DGROUT=X
"RTN","DG10",38,0)
.I $G(DFN) D
"RTN","DG10",39,0)
..N X,Y,DGRP
"RTN","DG10",40,0)
..F X=.3,.32 S DGRP(X)=$G(^DPT(DFN,X))
"RTN","DG10",41,0)
..W !," Money Verified: " S Y=$P(DGRP(.3),"^",6) X:Y]"" ^DD("DD") W $S(Y]"":Y,1:"NOT VERIFIED")
"RTN","DG10",42,0)
..W ?40," Service Verified: " S Y=$P(DGRP(.32),"^",2) X:Y]"" ^DD("DD") W $S(Y]"":Y,1:"NOT VERIFIED")
"RTN","DG10",43,0)
.D @("EN^"_DGROUT) K Y Q ;from dgdem0
"RTN","DG10",44,0)
Q
"RTN","DG10",45,0)
;
"RTN","DG10",46,0)
; SDIEMM is used as a flag by AMBCARE Incomplete Encounter Management
"RTN","DG10",47,0)
; to bypass the embossing routines when calling load/edit from IEMM
"RTN","DG10",48,0)
;
"RTN","DG10",49,0)
A1 D G H:'%,CK:%'=1 S DGRPV=0 D EN1^DGRP,MT(DFN),CP G Q:$G(DGPRFLG)=1 G Q:$G(SDIEMM) G Q:'$D(DA),EMBOS
"RTN","DG10",50,0)
.W !,"Do you want to ",$S(DGNEW:"enter",1:"edit")," Patient Data"
"RTN","DG10",51,0)
.S %=1 D YN^DICN
"RTN","DG10",52,0)
.I +$G(DGNEW) Q
"RTN","DG10",53,0)
.I $$ADD^DGADDUTL($G(DFN)) ;
"RTN","DG10",54,0)
;
"RTN","DG10",55,0)
H W !?5,"Enter 'YES' to enter/edit registration data or 'NO' to continue without",!?5,"editing."
"RTN","DG10",56,0)
G A1
"RTN","DG10",57,0)
;
"RTN","DG10",58,0)
CK S DGEDCN=1 D ^DGRPC,MT(DFN),CP
"RTN","DG10",59,0)
G Q:$G(DGPRFLG)=1 G Q:$G(SDIEMM)
"RTN","DG10",60,0)
I $G(DGER)[55 K DIR S DIR(0)="Y",DIR("A")="Do you wish to return to Screen #9 to enter missing Income Data? " D ^DIR K DIR
"RTN","DG10",61,0)
;G:Y ^DGRP9
"RTN","DG10",62,0)
;
"RTN","DG10",63,0)
EMBOS ;W ! D EMBOS^DGQEMA G A
"RTN","DG10",64,0)
G A
"RTN","DG10",65,0)
;
"RTN","DG10",66,0)
;
"RTN","DG10",67,0)
Q K X,Y,Z,DIC,DGELVER,DGNEW,DGRPV,VET Q
"RTN","DG10",68,0)
;
"RTN","DG10",69,0)
MT(DFN) ; Check if user requires a means test. Ask user if they want to proceedif
"RTN","DG10",70,0)
; one is required
"RTN","DG10",71,0)
I '$D(SDIEMM) DO
"RTN","DG10",72,0)
.N DGREQF,DIV
"RTN","DG10",73,0)
.D EN^DGMTR
"RTN","DG10",74,0)
.I DGREQF D EDT^DGMTU(DFN,DT):$P($$MTS^DGMTU(DFN),U,2)="R"
"RTN","DG10",75,0)
.Q
"RTN","DG10",76,0)
I $D(SDIEMM) DO
"RTN","DG10",77,0)
.N DGMTI
"RTN","DG10",78,0)
.S DGMTI=$$LST^DGMTU(DFN,SCINF("ENCOUNTER"),1)
"RTN","DG10",79,0)
.I $P(DGMTI,U,4)="R" D I 1
"RTN","DG10",80,0)
..S DGMT0=$G(^DGMT(408.31,+DGMTI,0)),DGMTDT=$P(DGMT0,"^")
"RTN","DG10",81,0)
..I '$$OKTOCONT(DGMTDT) Q
"RTN","DG10",82,0)
..S DGMTI=+DGMTI,DGMTYPT=1,DGMTACT="COM",DGMTROU="COM^DGMTEO" D EN^DGMTSC
"RTN","DG10",83,0)
.E D WARNING
"RTN","DG10",84,0)
.Q
"RTN","DG10",85,0)
Q
"RTN","DG10",86,0)
;
"RTN","DG10",87,0)
WARNING ;
"RTN","DG10",88,0)
;prints a warning to the screen about means test
"RTN","DG10",89,0)
;
"RTN","DG10",90,0)
W !!,"A means test for this encounter date was not found and may be required!"
"RTN","DG10",91,0)
W !,"Further investigation will be needed."
"RTN","DG10",92,0)
W !
"RTN","DG10",93,0)
D PAUSE
"RTN","DG10",94,0)
Q
"RTN","DG10",95,0)
;
"RTN","DG10",96,0)
PAUSE ;
"RTN","DG10",97,0)
N DIR
"RTN","DG10",98,0)
S DIR(0)="FAO",DIR("A")="Press ENTER to continue " D ^DIR
"RTN","DG10",99,0)
Q
"RTN","DG10",100,0)
;
"RTN","DG10",101,0)
OKTOCONT(Y) ;
"RTN","DG10",102,0)
;
"RTN","DG10",103,0)
N DIR
"RTN","DG10",104,0)
W !!,"Patient Requires a means Test"
"RTN","DG10",105,0)
X ^DD("DD")
"RTN","DG10",106,0)
W !,"Primary Means Test Required from '",Y,"'",!
"RTN","DG10",107,0)
;
"RTN","DG10",108,0)
I $D(SDIEMM),'$D(^XUSEC("SCENI MEANS TEST EDIT",DUZ)) DO G OKQ
"RTN","DG10",109,0)
.W !,$C(7),"You do not have the appropriate IEMM Security Key. Contact your supervisor.",!
"RTN","DG10",110,0)
.D PAUSE
"RTN","DG10",111,0)
.S Y=0
"RTN","DG10",112,0)
;
"RTN","DG10",113,0)
S DIR("A")="Do you wish to proceed with the means test at this time"
"RTN","DG10",114,0)
S DIR("B")="YES"
"RTN","DG10",115,0)
S DIR(0)="Y"
"RTN","DG10",116,0)
D ^DIR
"RTN","DG10",117,0)
OKQ Q $S(Y=1:1,1:0)
"RTN","DG10",118,0)
;
"RTN","DG10",119,0)
CP ;If not (autoexempt or MTested) & no CP test this year then
"RTN","DG10",120,0)
;prompt for add/edit cp test
"RTN","DG10",121,0)
N DIV,DGIB,DGIBDT,DGX,X,DIRUT,DTOUT
"RTN","DG10",122,0)
G:'$P($G(^DG(43,1,0)),U,41) QTCP ;USE CP FLAG
"RTN","DG10",123,0)
S DGIBDT=$S($D(DFN1):9999999-DFN1,1:DT)
"RTN","DG10",124,0)
D EN^DGMTCOR
"RTN","DG10",125,0)
I +$G(DGNOCOPF) S DGMTCOR=0
"RTN","DG10",126,0)
I DGMTCOR D THRESH^DGMTCOU1(DGIBDT) D EDT^DGMTCOU(DFN,DT)