fix for Alerts in GPLRIMA
This commit is contained in:
parent
8d0ca1dfa5
commit
57bfd1705f
|
@ -78,6 +78,9 @@ EXTRACT(ALTXML,DFN,ALTOUTXML) ; EXTRACT ALERTS INTO PROVIDED XML TEMPLATE
|
|||
. S @ALTVMAP@("ALERTAGENTPRODUCTCODEVALUE")=ACVUID
|
||||
. I ACVUID'="" D ; IF VUID IS NOT NULL
|
||||
. . S @ALTVMAP@("ALERTAGENTPRODUCTCODESYSTEM")="VUID"
|
||||
. E D ; IF REACTANT CODE VALUE IS NULL
|
||||
. . S @ALTVMAP@("ALERTAGENTPRODUCTCODESYSTEM")=""
|
||||
. . S @ALTVMAP@("ALERTAGENTPRODUCTCODEVALUE")=""
|
||||
. ; REACTIONS - THIS SHOULD BE MULTIPLE, IS SINGLE NOW
|
||||
. N ARTMP,ARIEN,ARDES,ARVUID
|
||||
. S (ARTMP,ARDES,ARVUID)=""
|
||||
|
@ -100,6 +103,7 @@ EXTRACT(ALTXML,DFN,ALTOUTXML) ; EXTRACT ALERTS INTO PROVIDED XML TEMPLATE
|
|||
. I ALTCNT=1 D CP^GPLXPATH(ALTARYTMP,ALTOUTXML)
|
||||
. I ALTCNT>1 D INSINNER^GPLXPATH(ALTOUTXML,ALTARYTMP)
|
||||
. S ALTCNT=ALTCNT+1
|
||||
S @ALTTVMAP@(0)=ALTCNT-1 ; RECORD THE NUMBER OF ALERTS
|
||||
Q
|
||||
PRSGLB(INGLB) ; EXTRINSIC TO PARSE GLOBALS AND RETURN THE FILE NUMBER
|
||||
; INGLB IS OF THE FORM: PSNDF(50.6,
|
||||
|
|
|
@ -116,7 +116,7 @@ SETATTR(SDFN) ; SET ATTRIBUTES BASED ON VARS
|
|||
. D GETPA(.ZR,SDFN,"ALERTS","ALERTAGENTPRODUCTCODEVALUE") ;REACTANT CODES
|
||||
. I ZR(0)>0 D ; VAR LOOKUP WAS GOOD, CHECK FOR NON=NULL RETURN
|
||||
. . F ZI=1:1:ZR(0) D ; LOOP THROUGH RETURNED VAR^VALUE PAIRS
|
||||
. . . I $P(ZR(ZI),"^",2)'="" D APOST("SATTR","RIMTBL","ALERTSSCODE") ;CODES
|
||||
. . . I $P(ZR(ZI),"^",2)'="" D APOST("SATTR","RIMTBL","ALERTSCODE") ;CODES
|
||||
; D APOST("SATTR","RIMTBL","NOTEXTRACTED") ; OUTPUT NOT YET PRODUCED
|
||||
W "ATTRIBUTES: ",SATTR,!
|
||||
Q SATTR
|
||||
|
@ -395,7 +395,7 @@ RPCGV(RTN,DFN,WHICH) ; RPC GET VARS
|
|||
S RTN(0)=0 ; DEFAULT NOTHING IS RETURNED
|
||||
N ZZGI
|
||||
I WHICH="ALL" D ; VARIABLES FROM ALL SECTIONS
|
||||
. F ZZGI="PROBLEMS","VITALS","MEDS" D ; FOR EACH SECTION
|
||||
. F ZZGI="PROBLEMS","VITALS","MEDS","ALERTS" D ; FOR EACH SECTION
|
||||
. . D ZGVWRK(ZZGI) ; DO EACH SECTION
|
||||
E D ZGVWRK(WHICH) ; ONLY ONE SECTION ASKED FOR
|
||||
Q
|
||||
|
|
Loading…
Reference in New Issue