source: FOIAVistA/trunk/r/TEXT_INTEGRATION_UTILITIES-GMRP-TIU/TIURHX.m@ 1783

Last change on this file since 1783 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1TIURHX ;SLC/JER - Display reassignment history ;21-MAR-2001 16:47:04
2 ;;1.0;TEXT INTEGRATION UTILITIES;**61,100**;Jun 20, 1997
3DISPLAY ; Display Reassignment History of Selected Documents
4 N TIUDA,TIUD,TIUDATA,TIUI,Y,DIROUT,TIUQUIT
5 I '$D(VALMY) D EN^VALM2(XQORNOD(0))
6 S TIUI=0
7 F S TIUI=$O(VALMY(TIUI)) Q:+TIUI'>0 D Q:$D(TIUQUIT)
8 . N TIUVIEW
9 . S TIUDATA=$G(^TMP("TIURIDX",$J,TIUI))
10 . D CLEAR^VALM1
11 . W !!,"Reviewing #",+TIUDATA
12 . S TIUDA=+$P(TIUDATA,U,2)
13 . S TIUVIEW=$$CANDO^TIULP(TIUDA,"VIEW")
14 . I +TIUVIEW'>0 D Q ; Exclude records user can't print
15 . . W !!,$C(7),$P(TIUVIEW,U,2),! ; Echo denial message
16 . . I $$READ^TIUU("EA","RETURN to continue...") ; pause
17 . . D RESTORE^TIULM(+TIUI)
18 . D EN
19 . I +$G(TIUQUIT) D FIXLSTNW^TIULM Q
20 . D RESTORE^VALM10(+TIUI)
21 K VALMY S VALMBCK="R"
22 Q
23EN ; Option entry
24 K ^TMP("TIURHX",$J) N TIU
25 D EN^VALM("TIU DISPLAY REASSIGN HISTORY")
26 Q
27MAIN ; Control branching
28 N TIUVIEW S TIUVIEW=$$CANDO^TIULP(TIUDA,"VIEW")
29 I +TIUVIEW'>0 D Q
30 . W !!,$C(7),$P(TIUVIEW,U,2),!
31 . S VALMQUIT=1
32 . I $$READ^TIUU("EA","RETURN to continue...")
33 D GET^TIUSRV(TIUDA,0,1)
34 Q
35HDR ; Build Header
36 N TIUDTYP
37 ; I '$D(TIUPRM0)!'$D(TIUPRM1) D SETPARM^TIULE
38 D:$D(TIU)'>9 GETTIU^TIULD(.TIU,+TIUDA)
39 S VALMHDR(1)=$$CENTER^TIULS($P($G(TIU("DOCTYP")),U,2))
40 S VALMHDR(2)=$$SETREC("HDR")
41 Q
42SETREC(LINE) ; Calls $$SETSTR^VALM1 for each line of ^TMP("TIUAUDIT",$J,
43 N Y
44 I LINE="HDR" D
45 . S Y=$$SETSTR^VALM1($$NAME^TIULS(TIU("PNM"),"LAST,FI MI"),$G(Y),1,15)
46 . S Y=$$SETSTR^VALM1(TIU("SSN"),$G(Y),16,12)
47 . S Y=$$SETSTR^VALM1($P($G(TIU("WARD")),U,2),$G(Y),30,20)
48 . I +TIU("DOCTYP")=1 D
49 . . S Y=$$SETSTR^VALM1("Adm: "_$$DATE^TIULS(+TIU("EDT"),"MM/DD/YY"),$G(Y),51,13)
50 . . S Y=$$SETSTR^VALM1("Dis: "_$$DATE^TIULS(+TIU("LDT"),"MM/DD/YY"),$G(Y),66,13)
51 . I +TIU("DOCTYP")'=1 D
52 . . S Y=$$SETSTR^VALM1("Visit Date: "_$$DATE^TIULS(+TIU("EDT"),"MM/DD/YY@HR:MIN"),$G(Y),53,26)
53 Q Y
Note: See TracBrowser for help on using the repository browser.