1 | DGENLEH ;ALB/RMO - Patient Enrollment History - List Manager Screen;12 JUN 1997 10:00 am
|
---|
2 | ;;5.3;Registration;**121**;08/13/93
|
---|
3 | ;
|
---|
4 | EN(DFN,DGENRIEN) ;Main entry point to invoke the DGEN PATIENT ENROLL HISTORY protocol
|
---|
5 | ; Input -- DFN Patient IEN
|
---|
6 | ; DGENRIEN Enrollment IEN
|
---|
7 | ; Output -- None
|
---|
8 | D WAIT^DICD
|
---|
9 | D EN^VALM("DGEN PATIENT ENROLL HISTORY")
|
---|
10 | Q
|
---|
11 | ;
|
---|
12 | HDR ;Header code
|
---|
13 | N DGPREFNM,X,VA,VAERR
|
---|
14 | D PID^VADPT
|
---|
15 | S VALMHDR(1)=$E("Patient: "_$P($G(^DPT(DFN,0)),U),1,30)_" ("_VA("BID")_")"
|
---|
16 | S X=$S('$D(^DPT(DFN,"TYPE")):"PATIENT TYPE UNKNOWN",$D(^DG(391,+^("TYPE"),0)):$P(^(0),U,1),1:"PATIENT TYPE UNKNOWN")
|
---|
17 | S VALMHDR(1)=$$SETSTR^VALM1(X,VALMHDR(1),60,80)
|
---|
18 | I $$PREF^DGENPTA(DFN,.DGPREFNM)
|
---|
19 | S VALMHDR(2)="Preferred Facility: "_$G(DGPREFNM)
|
---|
20 | S VALMHDR(2)=$$SETSTR^VALM1("Prior Enrollment",VALMHDR(2),60,80)
|
---|
21 | Q
|
---|
22 | ;
|
---|
23 | INIT ;Init variables and list array
|
---|
24 | D BLD
|
---|
25 | Q
|
---|
26 | ;
|
---|
27 | BLD ;Build patient enrollment screen
|
---|
28 | D CLEAN^VALM10
|
---|
29 | K ^TMP("DGENEHIDX",$J)
|
---|
30 | ;
|
---|
31 | ;Build header
|
---|
32 | D HDR
|
---|
33 | ;
|
---|
34 | ;Build list area for select enrollment history
|
---|
35 | D EN^DGENL1("DGENEH",DFN,DGENRIEN,.VALMCNT)
|
---|
36 | Q
|
---|
37 | ;
|
---|
38 | HELP ;Help code
|
---|
39 | S X="?" D DISP^XQORM1 W !!
|
---|
40 | Q
|
---|
41 | ;
|
---|
42 | EXIT ;Exit code
|
---|
43 | D CLEAN^VALM10
|
---|
44 | D CLEAR^VALM1
|
---|
45 | K ^TMP("DGENEHIDX",$J)
|
---|
46 | Q
|
---|
47 | ;
|
---|
48 | EXPND ;Expand code
|
---|
49 | Q
|
---|
50 | ;
|
---|