- Timestamp:
- Nov 9, 2008, 12:34:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLRIMA.m
r269 r270 123 123 I $D(@SBASE@("RESULTS",1)) D ; IF THE PATIENT HAS LABS VARIABLES 124 124 . D APOST("SATTR","RIMTBL","RESULTS") 125 N ZR,ZI 125 . N ZR,ZI 126 . S ZR(0)=0 ; INITIALIZE TO NONE 126 127 . D RPCGV(.ZR,SDFN,"RESULTS") ;CHECK FOR LABS CODES 128 . ; D PARY^GPLXPATH("ZR") ; 127 129 . I ZR(0)>0 D ; VAR LOOKUP WAS GOOD, CHECK FOR NON=NULL RETURN 128 130 . . F ZI=1:1:ZR(0) D ; LOOP THROUGH RETURNED VAR^VALUE PAIRS … … 401 403 ; FOUND AT INARY RTN(X)="VAR^VALUE" RTN(0) IS THE COUNT 402 404 ; DFN IS THE PATIENT NUMBER. 403 ; WHICH IS "ALL" OR "MEDS" OR "VITALS" OR "PROBLEMS" OR "ALERTS" OR "LABS"405 ; WHICH IS "ALL","MEDS","VITALS","PROBLEMS","ALERTS","RESULTS" 404 406 ; OR OTHER SECTIONS AS THEY ARE ADDED 405 407 ; THIS IS MEANT TO BE AVAILABLE AS AN RPC … … 409 411 N ZZGI 410 412 I WHICH="ALL" D ; VARIABLES FROM ALL SECTIONS 411 . F ZZGI="PROBLEMS","VITALS","MEDS","ALERTS"," LABS" D ; FOREACH SECTION413 . F ZZGI="PROBLEMS","VITALS","MEDS","ALERTS","RESULTS" D ; EACH SECTION 412 414 . . D ZGVWRK(ZZGI) ; DO EACH SECTION 413 415 E D ZGVWRK(WHICH) ; ONLY ONE SECTION ASKED FOR … … 433 435 DPATV(DFN,IWHICH) ; DISPLAY VARS FOR PATIENT DFN THAT ARE MAINTAINED IN GPLRIM 434 436 ; ALONG WITH SAMPLE VALUES. 435 ; IWHICH IS "ALL" OR "MEDS" OR "VITALS" OR "PROBLEMS" OR "ALERTS" OR "LABS"437 ; IWHICH IS "ALL","MEDS","VITALS","PROBLEMS","ALERTS","RESULTS" 436 438 N GTMP 437 439 I '$D(^TMP("GPLRIM","ATTR",DFN)) D ; RIM VARS NOT PRESENT
Note:
See TracChangeset
for help on using the changeset viewer.