Changeset 1115 for Scheduling/trunk/m


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.

Location:
Scheduling/trunk/m
Files:
3 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
  • Scheduling/trunk/m/BSDX25.m

    r1114 r1115  
    1 BSDX25  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 3/16/11 1:07am
     1BSDX25  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 3/16/11 2:21am
    22        ;;1.5V2;BSDX;;Mar 03, 2011
    33        ;
     
    134134        ;
    135135        ; Set return variable and kill contents
    136         N BSDXY S BSDXY=$NAME(^BSDXTMP($J))
     136        S BSDXY=$NAME(^BSDXTMP($J))
    137137        K @BSDXY
    138138        ;
  • Scheduling/trunk/m/BSDX2E.m

    r1100 r1115  
    1 BSDX2E  ;IHS/OIT/MJL - ENVIRONMENT CHECK FOR WINDOWS SCHEDULING [7/18/10 4:30pm]
     1BSDX2E  ;IHS/OIT/MJL - ENVIRONMENT CHECK FOR WINDOWS SCHEDULING [3/16/11 9:54am]
    22        ;;1.5V2;BSDX;;Mar 03, 2011
    33        ;
     
    5858        Q X
    5959        ;
    60 V0200   ;EP Version 1.3 PostInit
     60V0200   ;EP Version 1.5 PostInit
    6161        ;Add Protocol items to SDAM APPOINTMENT EVENTS protocol
    62            ;Remove protocols known to cause problems from SDAM APPOINTMENT EVENTS
     62        ;Remove protocols known to cause problems from SDAM APPOINTMENT EVENTS
     63        ;Set Default Values for Parameters
     64        N BSDXDA,BSDXFDA,BSDXDA1,BSDXSEQ,BSDXDAT,BSDXNOD,BSDXIEN,BSDXMSG
    6365        ;
    64         N BSDXDA,BSDXFDA,BSDXDA1,BSDXSEQ,BSDXDAT,BSDXNOD,BSDXIEN,BSDXMSG
    65            ;
    66            ; 1st, add the BSDX event protocols
    67            ; Get SDAM APPOINTMENT EVENTS IEN in 101
     66        ; 1st, add the BSDX event protocols
     67        ; Get SDAM APPOINTMENT EVENTS IEN in 101
    6868        S BSDXDA=$O(^ORD(101,"B","SDAM APPOINTMENT EVENTS",0))
    6969        Q:'+BSDXDA
    70            ; Add each of those protocols unless they already exist.
     70        ; Add each of those protocols unless they already exist.
    7171        S BSDXDAT="BSDX ADD APPOINTMENT;10.2^BSDX CANCEL APPOINTMENT;10.4^BSDX CHECKIN APPOINTMENT;10.6^BSDX NOSHOW APPOINTMENT;10.8"
    72            ; For each
    73            F J=1:1:$L(BSDXDAT,U) D
     72        ; For each
     73        F J=1:1:$L(BSDXDAT,U) D
    7474        . K BSDXIEN,BSDXMSG,BSDXFDA
    75            . ; Get Item
     75        . ; Get Item
    7676        . S BSDXNOD=$P(BSDXDAT,U,J)
    7777        . ; Get Item Name (BSDX ADD APPOINTMENT)
    78            . S BSDXDA1=$P(BSDXNOD,";")
    79            . ; Get Item Sequence (10.2)
     78        . S BSDXDA1=$P(BSDXNOD,";")
     79        . ; Get Item Sequence (10.2)
    8080        . S BSDXSEQ=$P(BSDXNOD,";",2)
    81            . ; Get Item Reference (Item is already in the protocol file)
     81        . ; Get Item Reference (Item is already in the protocol file)
    8282        . S BSDXDA1=$O(^ORD(101,"B",BSDXDA1,0))
    83            . ; Quit if not found
     83        . ; Quit if not found
    8484        . Q:'+BSDXDA1
    85            . ; Quit if already exists in the SDAM protocol
     85        . ; Quit if already exists in the SDAM protocol
    8686        . Q:$D(^ORD(101,BSDXDA,10,"B",BSDXDA1))
    87            . ; Go ahead and save it.
     87        . ; Go ahead and save it.
    8888        . S BSDXFDA(101.01,"+1,"_BSDXDA_",",".01")=BSDXDA1
    8989        . S BSDXFDA(101.01,"+1,"_BSDXDA_",","3")=BSDXSEQ
    9090        . D UPDATE^DIE("","BSDXFDA","BSDXIEN","BSDXMSG")
    91            . ; Error message
    92            . I $D(BSDXMSG) W $C(7),"Error: ",BSDXMSG("DIERR",1,"TEXT",1)
    93            ;
    94            ; Remove nassssty protocols ORU PATIENT MOVMT and DVBA C&P SCHD EVENT
    95            ; SDAM APPOINTMENT EVENTS IENS for use in FIND1^DIC
    96            N SDEVTIENS S SDEVTIENS=","_BSDXDA_","
    97            ; Subfile entry for ORU...
    98            N ORUIEN S ORUIEN=$$FIND1^DIC(101.01,SDEVTIENS,"","ORU PATIENT MOVMT")
    99            ; Subfile entry for DVBA...
    100            N DVBAIEN S DVBAIEN=$$FIND1^DIC(101.01,SDEVTIENS,"","DVBA C&P SCHD EVENT")
    101            ; Deletion code
    102            N BSDXFDA,BSDXMSG
    103            S:ORUIEN>0 BSDXFDA(101.01,ORUIEN_SDEVTIENS,.01)="@"
    104            S:DVBAIEN>0 BSDXFDA(101.01,DVBAIEN_SDEVTIENS,.01)="@"
    105            D:$D(BSDXFDA) FILE^DIE("","BSDXFDA","BSDXMSG")
    106            ; If error
    107            I $D(BSDXMSG) W $C(7),"Error: ",BSDXMSG("DIERR",1,"TEXT",1)
     91        . ; Error message
     92        . I $D(BSDXMSG) W $C(7),"Error: ",BSDXMSG("DIERR",1,"TEXT",1)
     93        ;
     94        ; Remove nassssty protocols ORU PATIENT MOVMT and DVBA C&P SCHD EVENT
     95        ; SDAM APPOINTMENT EVENTS IENS for use in FIND1^DIC
     96        N SDEVTIENS S SDEVTIENS=","_BSDXDA_","
     97        ; Subfile entry for ORU...
     98        N ORUIEN S ORUIEN=$$FIND1^DIC(101.01,SDEVTIENS,"","ORU PATIENT MOVMT")
     99        ; Subfile entry for DVBA...
     100        N DVBAIEN S DVBAIEN=$$FIND1^DIC(101.01,SDEVTIENS,"","DVBA C&P SCHD EVENT")
     101        ; Deletion code
     102        N BSDXFDA,BSDXMSG
     103        S:ORUIEN>0 BSDXFDA(101.01,ORUIEN_SDEVTIENS,.01)="@"
     104        S:DVBAIEN>0 BSDXFDA(101.01,DVBAIEN_SDEVTIENS,.01)="@"
     105        D:$D(BSDXFDA) FILE^DIE("","BSDXFDA","BSDXMSG")
     106        ; If error
     107        I $D(BSDXMSG) W $C(7),"Error: ",BSDXMSG("DIERR",1,"TEXT",1)
     108        ;
     109        ;
     110        ; Now put in the default values for parameters
     111        ; BSDX AUTO PRINT RS as false
     112        ; BSDX AUTO PRINT AS as false
     113        ;
     114        N BSDXERR
     115        D PUT^XPAR("PKG","BSDX AUTO PRINT RS",1,0,.BSDXERR)
     116        I $G(BSDXERR) W $C(7),"Error: ",BSDXERR
     117        D PUT^XPAR("PKG","BSDX AUTO PRINT AS",1,0,.BSDXERR)
     118        I $G(BSDXERR) W $C(7),"Error: ",BSDXERR
    108119        QUIT
    109120        ;
Note: See TracChangeset for help on using the changeset viewer.