Ignore:
Timestamp:
Mar 28, 2011, 10:38:15 AM (14 years ago)
Author:
Sam Habiel
Message:

BSDX01: New EP to Get and Set the new paramters that come with BSDX
BSDX2E: Initial values for the new parameters at package level
BSDX25: Minor correction. BSDXY should not be newed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/m/BSDX01.m

    r1100 r1115  
    1 BSDX01  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 9/29/10 10:20am
     1BSDX01  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 3/16/11 7:08am
    22        ;;1.5V2;BSDX;;Mar 03, 2011
    33        ;
     
    257257        I '$D(^VA(200,BSDXDUZ,51,BSDXIEN,0)) Q 0
    258258        Q 1
     259SP(BSDXY,PARAM,YESNO) ; Save Param at User Level - EP
     260        ; Called by RPC: BSDX SET PARAM
     261        ; Input:
     262        ; - Param: Name of Parameter (prog name of course)
     263        ; - Yes/No: 1 or 0
     264        ; Output: Error Code as string; 0 is good
     265        ;
     266        ; Security Protection
     267        IF $EXTRACT(PARAM,1,4)'="BSDX" S BSDXY="-1^BSDX Params only allowed" QUIT
     268        ;
     269        N ERROR
     270        D PUT^XPAR("USR",PARAM,1,YESNO,.ERROR)
     271        S BSDXY=$G(ERROR)
     272        QUIT
     273        ;
     274GP(BSDXY,PARAM) ; Get Param - EP
     275        ; Called by RPC: BSDX GET PARAM
     276        ; Input: Name of Parameter
     277        ; Output: Value of parameter: 0 or 1, for now.
     278        ;
     279        S BSDXY=$$GET^XPAR("USR^LOC^SYS^PKG",PARAM,1,"I")
     280        QUIT
     281        ;
    259282INDIV(BSDXSC)   ; PEP - Is ^SC clinic in the same DUZ(2) as user?
    260283           ; Input: BSDXSC - Hospital Location IEN
Note: See TracChangeset for help on using the changeset viewer.