Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

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. ;10/11/2007
    2  ;;2.0;CLINICAL REMINDERS;**4,6**;Feb 04, 2005;Build 123
     1PXRMEXLM ; SLC/PKR/PJH - Clinical Reminder Exchange List Manager routines. ;12/22/2004
     2 ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005
    33 ;
    44 ;=====================================================
     
    4141 ;
    4242 ;=====================================================
     43EN ;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 ;=====================================================
    4361ENTRY ;Entry code
    44  D BLDLIST^PXRMEXLC(0)
    4562 D XQORM
    4663 Q
     
    5269 K ^TMP("PXRMEXFND",$J)
    5370 K ^TMP("PXRMEXIA",$J)
    54  K ^TMP("PXRMEXIAD",$J)
    5571 K ^TMP("PXRMEXID",$J)
    5672 K ^TMP("PXRMEXIH",$J)
     
    166182 Q
    167183 ;
    168  ;=====================================================
    169 START ;Main entry point for PXRM EXCHANGE
    170  N PXRMDONE,PXRMNMCH
    171  ;PXRMDONE is set to true if the user enters an action of Quit.
    172  S PXRMDONE=0
    173  ;PXRMNMCH is used to store name change information. If a finding
    174  ;is copied to a new name or is replaced by another finding the
    175  ;information is stored here. It is used when installing definitions
    176  ;or dialogs so they use the new or replaced finding.
    177  N VALMBCK,VALMSG,X,XMZ
    178  S X="IORESET"
    179  D ENDR^%ZISS
    180  D EN^VALM("PXRM EX REMINDER EXCHANGE")
    181  W IORESET
    182  D KILL^%ZISS
    183  Q
    184  ;
    185  ;=====================================================
    186184XQORM S XQORM("#")=$O(^ORD(101,"B","PXRM EXCH SELECT ENTRY",0))_U_"1:"_VALMCNT
    187185 S XQORM("A")="Select Action: "
    188186 Q
    189187 ;
    190  ;=====================================================
    191188XSEL ;PXRM EXCH SELECT COMPONENT validation
    192189 N SEL,PXRMRIEN
     
    198195 .W $C(7),!,"Only one item number allowed." H 2
    199196 .S VALMBCK="R"
    200  I ('SEL)!(SEL>VALMCNT)!('$D(@VALMAR@("SEL",SEL))) D  Q
     197 I ('SEL)!(SEL>VALMCNT)!('$D(@VALMAR@("IDX",SEL))) D  Q
    201198 .W $C(7),!,SEL_" is not a valid item number." H 2
    202199 .S VALMBCK="R"
    203200 ;
    204201 ;Get the repository ien.
    205  S PXRMRIEN=^TMP("PXRMEXLR",$J,"SEL",SEL)
     202 S PXRMRIEN=^TMP("PXRMEXLR",$J,"IDX",SEL,SEL)
    206203 ;
    207204 ;Full screen mode
     
    233230 .;Rebuild the list for List Manager to display.
    234231 .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 .;
    237238 .S VALMHDR(1)="Deleted 1 exchange file entry",VALMHDR(2)=" ",VALMBCK="R"
    238239 ;
    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.