[613] | 1 | GMRCMER ;SLC/DCM - Print Medicine Results in List Manager Format ;1/10/02 14:26
|
---|
| 2 | ;;3.0;CONSULT/REQUEST TRACKING;**1,4,15,23**;DEC 27, 1997
|
---|
| 3 | ;
|
---|
| 4 | EN ; -- main entry point for GMRC ASSOCIATE RESULTS
|
---|
| 5 | D EN^VALM("GMRC ASSOCIATE RESULTS")
|
---|
| 6 | Q
|
---|
| 7 | ;
|
---|
| 8 | HDRAR ; -- header code uses Detailed Display header to format VALMHDR
|
---|
| 9 | N GMRCVTIT
|
---|
| 10 | S GMRCVTIT="Procedure/Medicine Resulting"
|
---|
| 11 | I '$G(DFN),$G(ORVP) S DFN=+ORVP
|
---|
| 12 | D HDR^GMRCSLDT
|
---|
| 13 | S VALMHDR(2)=$$CJ^XLFSTR("Available Medicine Results",80)
|
---|
| 14 | Q
|
---|
| 15 | ;
|
---|
| 16 | HDR ;header for results display
|
---|
| 17 | D HDR^GMRCSLDT
|
---|
| 18 | Q
|
---|
| 19 | ;
|
---|
| 20 | INITAR ; -- init variables and list array for ASSOCIATE RESULTS
|
---|
| 21 | K ^TMP("GMRCR",$J,"DTLIST")
|
---|
| 22 | S VALMCNT=$O(^TMP("GMRCR",$J,"DT",999999),-1)
|
---|
| 23 | Q
|
---|
| 24 | INIT ; -- init variables and list array for RESULTS DISPLAY
|
---|
| 25 | K ^TMP("GMRCR",$J,"DTLIST")
|
---|
| 26 | N LINE
|
---|
| 27 | S DSPLINE=0,VARMAR=$NA(^TMP("GMRCR",$J,"DTLIST")),LINE=1
|
---|
| 28 | F S DSPLINE=$O(^TMP("GMRCR",$J,"DT",DSPLINE)) Q:DSPLINE=""!(DSPLINE?1A.E) S DATA=^(DSPLINE,0) D SET^VALM10(LINE,DATA) S LINE=LINE+1
|
---|
| 29 | S VALMCNT=$O(^TMP("GMRCR",$J,"DTLIST"," "),-1)
|
---|
| 30 | K DSPLINE,DATA,LINE
|
---|
| 31 | Q
|
---|
| 32 | ;
|
---|
| 33 | HELP ; -- help code for display actions
|
---|
| 34 | D HELP^GMRCSLDT
|
---|
| 35 | Q
|
---|
| 36 | ;
|
---|
| 37 | EXIT ; -- exit code
|
---|
| 38 | K ^TMP("GMRCR",$J,"DT"),^TMP("GMRCR",$J,"DTLIST")
|
---|
| 39 | S:$D(GMRCLCT) VALMCNT=GMRCLCT
|
---|
| 40 | K GLOBAL,GMRCMODE,GMRCND,GMRCSGAD,GMRCCSIG,GMRCCSDT,GMRCSIGT,GMRCSR,GMRCSIGM,GMRCCTIT,GMRCLCT,GMRCADD,GMRCADDT,GMRCSDT,GMRCSIG,GMRCTUFN,ND,ND1
|
---|
| 41 | Q
|
---|
| 42 | ;
|
---|