source: FOIAVistA/trunk/r/PCE_PATIENT_CARE_ENCOUNTER-AUTN-EFDP-PX-VSIT--PXRM/PXIPOST1.m@ 905

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

initial load of FOIAVistA 6/30/08 version

File size: 4.5 KB
Line 
1PXIPOST1 ;ISL/dee - POST ROUTINE FOR PX PACKAGE ;8/6/96
2 ;;1.0;PCE PATIENT CARE ENCOUNTER;;Aug 12, 1996
3 ;
4PROTOCOL ;
5 N DIC,DA,MENU,NAMEIEN,X,Y,LABEL,PROTOCOL,OFFSET
6 S DIC(0)="LSX"
7 S DIC("P")=$P(^DD(101,10,0),"^",2)
8 F LABEL="SDAMLIST","MHIDDEN","AEHIDDEN" D
9 . S MENU=$P($T(@(LABEL)),";;",2) Q:MENU=""
10 . D BMES^XPDUTL("Adding items to "_MENU_" protocol.")
11 . S DA(1)=$O(^ORD(101,"B",MENU,0))
12 . I DA(1)>0 D
13 .. S DIC="^ORD(101,"_DA(1)_",10,"
14 .. F OFFSET=1:1 S PROTOCOL=$P($T(@(LABEL)+OFFSET),";;",2) Q:PROTOCOL="" D
15 ... S X=$P(PROTOCOL,"~",1)
16 ... S DIC("DR")=$P(PROTOCOL,"~",2)
17 ... S NAMEIEN=$O(^ORD(101,"B",X,0))
18 ... I NAMEIEN>0,$O(^ORD(101,DA(1),10,"B",NAMEIEN,0))'>0 D MES^XPDUTL(" "_X) D ^DIC
19 K DIC,DA,X,Y
20 ;
21 S DIC(0)="LSX"
22 S DIC("P")=$P(^DD(101,10,0),"^",2)
23 F X="GMTS HS ADHOC","GMPL OE DATA ENTRY","GMRP REVIEW SCREEN" D
24 . D BMES^XPDUTL("Adding item to PXCE "_X_" protocol.")
25 . S DA(1)=$O(^ORD(101,"B","PXCE "_X,0))
26 . I DA(1)>0 D
27 .. S DIC="^ORD(101,"_DA(1)_",10,"
28 .. S NAMEIEN=$O(^ORD(101,"B",X,0))
29 .. I NAMEIEN>0,$O(^ORD(101,DA(1),10,"B",NAMEIEN,0))'>0 D ^DIC
30 K DIC,DA,NAMEIEN,X,Y
31 ;
32 N DIE,DR,PROTNAME
33 S DIE="^ORD(101,"
34 S DR="2///@"
35 D BMES^XPDUTL("Making sure that these protocols are not disabled.")
36 F OFFSET=1:1 SET PROTNAME=$P($T(ENABLE+OFFSET),";;",2) Q:PROTNAME="" D
37 . D MES^XPDUTL(" "_PROTNAME)
38 . S DA=$O(^ORD(101,"B",PROTNAME,0))
39 . I DA>0 D ^DIE
40 K DIC,DA,DIE,DR,PROTNAME
41 ;
42XQORM ;Recompile protocol menus
43 D BMES^XPDUTL("Recompile protocol menus used by List Manager.")
44 N XQORM
45 F PROTNAME="PXCE MAIN MENU","PXCE MAIN HIDDEN ACTIONS","PXCE SDAM MENU","PXCE SDAM LIST MENU","PXCE ADD/EDIT MENU","PXCE ADD/EDIT HIDDEN" D
46 . D MES^XPDUTL(" "_PROTNAME)
47 . S XQORM=$O(^ORD(101,"B",PROTNAME,0))_";ORD(101,"
48 . D XREF^XQORM
49 Q
50 ;
51ENABLE ;;
52 ;;PXCA DATA EVENT
53 ;;PXCE ADD/EDIT
54 ;;PXCE ADD/EDIT DISPLAY BRIEF
55 ;;PXCE ADD/EDIT DISPLAY DETAIL
56 ;;PXCE ADD/EDIT HIDDEN
57 ;;PXCE ADD/EDIT INTERVIEW
58 ;;PXCE ADD/EDIT KNOWN ENCOUNTER
59 ;;PXCE ADD/EDIT MENU
60 ;;PXCE ADD/EDIT PATIENT CHANGE
61 ;;PXCE ADD/EDIT STOP CODE
62 ;;PXCE BLANK 1
63 ;;PXCE BLANK 2
64 ;;PXCE BLANK 3
65 ;;PXCE BLANK 4
66 ;;PXCE BLANK HS
67 ;;PXCE BLANK PL
68 ;;PXCE BLANK PN
69 ;;PXCE BLANK SELECT NEW PATIENT
70 ;;PXCE CHANGE CLINIC STOP
71 ;;PXCE CHANGE HOSPITAL LOCATION
72 ;;PXCE CPT ADD
73 ;;PXCE DATE CHANGE
74 ;;PXCE DELETE V-FILE
75 ;;PXCE DISPLAY DETAIL
76 ;;PXCE EDIT V-FILE
77 ;;PXCE ENCOUNTER EDIT
78 ;;PXCE ENCOUNTER LIST
79 ;;PXCE EXAM ADD
80 ;;PXCE GMPL OE DATA ENTRY
81 ;;PXCE GMRP REVIEW SCREEN
82 ;;PXCE GMTS HS ADHOC
83 ;;PXCE HEALTH FACTORS ADD
84 ;;PXCE HISTORICAL ENCOUNTER
85 ;;PXCE HOSPITAL LOCATION VIEW
86 ;;PXCE IMMUNIZATION ADD
87 ;;PXCE INTERVIEW
88 ;;PXCE MAIN HIDDEN ACTIONS
89 ;;PXCE MAIN MENU
90 ;;PXCE NEW ENCOUNTER
91 ;;PXCE PATIENT CHANGE
92 ;;PXCE PATIENT ED ADD
93 ;;PXCE POV ADD
94 ;;PXCE PROVIDER ADD
95 ;;PXCE QUIT
96 ;;PXCE QUIT COMPLETELY
97 ;;PXCE SDAM DISPLAY DETAIL
98 ;;PXCE SDAM EXPAND
99 ;;PXCE SDAM INTERVIEW
100 ;;PXCE SDAM LIST
101 ;;PXCE SDAM LIST MENU
102 ;;PXCE SDAM MENU
103 ;;PXCE SDAM STANDALONE
104 ;;PXCE SDAM UPDATE ENCOUNTER
105 ;;PXCE SKIN TEST ADD
106 ;;PXCE TREATMENT ADD
107 ;;PXK CPT-SCH TO V-CPT
108 ;;PXK SDAM TO V-FILES
109 ;;PXK VISIT DATA EVENT
110 ;;
111SDAMLIST ;;PXCE SDAM LIST MENU
112 ;;SDAM LIST CHECKED IN~2///CI;3///1
113 ;;SDAM LIST NO SHOWS~2///NS;3///2
114 ;;SDAM LIST ALL~2///TA;3///3
115 ;;SDAM LIST NO ACTION~2///NA;3///4
116 ;;SDAM LIST CANCELLED~2///CA;3///5
117 ;;SDAM LIST FUTURE~2///FU;3///6
118 ;;SDAM LIST INPATIENT~2///IP;3///7
119 ;;SDAM LIST NON-COUNT~2///NC;3///8
120 ;;SDAM LIST CHECKED OUT~2///CO;3///9
121 ;;
122MHIDDEN ;;PXCE MAIN HIDDEN ACTIONS
123 ;;VALM NEXT SCREEN~2///+;3///11
124 ;;VALM PREVIOUS SCREEN~2///-;3///12
125 ;;VALM UP ONE LINE~2///UP;3///13
126 ;;VALM DOWN A LINE~2///DN;3///14
127 ;;VALM REFRESH~2///RD;3///24
128 ;;VALM PRINT SCREEN~2///PS;3///25
129 ;;VALM PRINT LIST~2///PL;3///26
130 ;;VALM RIGHT~2///>;3///15
131 ;;VALM LEFT~2///<;3///16
132 ;;VALM TURN ON/OFF MENUS~2///ADPL;3///32
133 ;;VALM SEARCH LIST~2///SL;3///31
134 ;;VALM LAST SCREEN~2///LS;3///22
135 ;;VALM FIRST SCREEN~2///FS;3///21
136 ;;VALM GOTO PAGE~2///GO;3///23
137 ;;VALM BLANK 2~3///34
138 ;;VALM BLANK 3~3///35
139 ;;VALM BLANK 4~3///36
140 ;;
141AEHIDDEN ;;PXCE ADD/EDIT HIDDEN
142 ;;VALM NEXT SCREEN~2///+;3///11
143 ;;VALM PREVIOUS SCREEN~2///-;3///12
144 ;;VALM UP ONE LINE~2///UP;3///13
145 ;;VALM DOWN A LINE~2///DN;3///14
146 ;;VALM REFRESH~2///RD;3///24
147 ;;VALM PRINT SCREEN~2///PS;3///25
148 ;;VALM PRINT LIST~2///PL;3///26
149 ;;VALM RIGHT~2///>;3///15
150 ;;VALM LEFT~2///<;3///16
151 ;;VALM TURN ON/OFF MENUS~2///ADPL;3///32
152 ;;VALM SEARCH LIST~2///SL;3///31
153 ;;VALM LAST SCREEN~2///LS;3///22
154 ;;VALM FIRST SCREEN~2///FS;3///21
155 ;;VALM GOTO PAGE~2///GO;3///23
156 ;;VALM BLANK 2~2///;3///34
157 ;;
Note: See TracBrowser for help on using the repository browser.