Changeset 636 for FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMEXLM.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMEXLM.m
r628 r636 1 PXRMEXLM ; SLC/PKR/PJH - Clinical Reminder Exchange List Manager routines. ;1 0/11/20072 ;;2.0;CLINICAL REMINDERS; **4,6**;Feb 04, 2005;Build 1231 PXRMEXLM ; SLC/PKR/PJH - Clinical Reminder Exchange List Manager routines. ;12/22/2004 2 ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005 3 3 ; 4 4 ;===================================================== … … 41 41 ; 42 42 ;===================================================== 43 EN ;Main entry point for PXRM EXCHANGE 44 N PXRMDONE,PXRMNMCH 45 ;PXRMDONE is set to true if the user enters an action of Quit. 46 S PXRMDONE=0 47 ;PXRMNMCH is used to store name change information. If a finding 48 ;is copied to a new name or is replaced by another finding the 49 ;information is stored here. It is used when installing definitions 50 ;or dialogs so they use the new or replaced finding. 51 N VALMBCK,VALMSG,X,XMZ 52 S X="IORESET" 53 D ENDR^%ZISS 54 D BLDLIST^PXRMEXLC(0) 55 D EN^VALM("PXRM EX REMINDER EXCHANGE") 56 W IORESET 57 D KILL^%ZISS 58 Q 59 ; 60 ;===================================================== 43 61 ENTRY ;Entry code 44 D BLDLIST^PXRMEXLC(0)45 62 D XQORM 46 63 Q … … 52 69 K ^TMP("PXRMEXFND",$J) 53 70 K ^TMP("PXRMEXIA",$J) 54 K ^TMP("PXRMEXIAD",$J)55 71 K ^TMP("PXRMEXID",$J) 56 72 K ^TMP("PXRMEXIH",$J) … … 166 182 Q 167 183 ; 168 ;=====================================================169 START ;Main entry point for PXRM EXCHANGE170 N PXRMDONE,PXRMNMCH171 ;PXRMDONE is set to true if the user enters an action of Quit.172 S PXRMDONE=0173 ;PXRMNMCH is used to store name change information. If a finding174 ;is copied to a new name or is replaced by another finding the175 ;information is stored here. It is used when installing definitions176 ;or dialogs so they use the new or replaced finding.177 N VALMBCK,VALMSG,X,XMZ178 S X="IORESET"179 D ENDR^%ZISS180 D EN^VALM("PXRM EX REMINDER EXCHANGE")181 W IORESET182 D KILL^%ZISS183 Q184 ;185 ;=====================================================186 184 XQORM S XQORM("#")=$O(^ORD(101,"B","PXRM EXCH SELECT ENTRY",0))_U_"1:"_VALMCNT 187 185 S XQORM("A")="Select Action: " 188 186 Q 189 187 ; 190 ;=====================================================191 188 XSEL ;PXRM EXCH SELECT COMPONENT validation 192 189 N SEL,PXRMRIEN … … 198 195 .W $C(7),!,"Only one item number allowed." H 2 199 196 .S VALMBCK="R" 200 I ('SEL)!(SEL>VALMCNT)!('$D(@VALMAR@(" SEL",SEL))) D Q197 I ('SEL)!(SEL>VALMCNT)!('$D(@VALMAR@("IDX",SEL))) D Q 201 198 .W $C(7),!,SEL_" is not a valid item number." H 2 202 199 .S VALMBCK="R" 203 200 ; 204 201 ;Get the repository ien. 205 S PXRMRIEN=^TMP("PXRMEXLR",$J," SEL",SEL)202 S PXRMRIEN=^TMP("PXRMEXLR",$J,"IDX",SEL,SEL) 206 203 ; 207 204 ;Full screen mode … … 233 230 .;Rebuild the list for List Manager to display. 234 231 .K ^TMP("PXRMEXLR",$J) 235 .D REXL^PXRMLIST("PXRMEXLR") 236 .S VALMCNT=^TMP("PXRMEXLR",$J,"VALMCNT") 232 .D RE^PXRMLIST(.RELIST,.IEN) 233 .M ^TMP("PXRMEXLR",$J)=RELIST 234 .S VALMCNT=RELIST("VALMCNT") 235 .F IND=1:1:VALMCNT D 236 ..S ^TMP("PXRMEXLR",$J,"IDX",IND,IND)=IEN(IND) 237 .; 237 238 .S VALMHDR(1)="Deleted 1 exchange file entry",VALMHDR(2)=" ",VALMBCK="R" 238 239 ; 239 I OPTION="IH" D START^PXRMEXIH 240 ; 241 S VALMBCK="R" 242 Q 240 I OPTION="IH" D 241 .N HISLIST,VALMCNT 242 .S HISLIST(SEL)="" 243 .D HISTLIST^PXRMEXLC(.HISLIST,.VALMCNT) 244 .D EN^VALM("PXRM EX INSTALLATION HISTORY") 245 .K ^TMP("PXRMEXIH",$J) 246 ; 247 S VALMBCK="R" 248 Q
Note:
See TracChangeset
for help on using the changeset viewer.