;Check if patient should be asked to enroll
; Input -- DFN Patient IEN
; Output -- 1=Yes and 0=No
EN
;Entry point for stand-alone enrollment option
; Input -- None
; Output -- None
CANCEL(DFN,DGENR,EFFDATE)
;Cancel current enrollment
; Input
; DFN Patient IEN
; DGENR Array containing current enrollment (pass by reference)
; EFFDATE Enrollment Effective Date Of Change (optional)
; Output
; Function Return Value is 1 if Successful and 0 on Failure
ASK(ACTION,DGENOUT)
;Ask patient if s/he would like to enroll or cease enrollment
; Input -- ACTION Action description
; Output -- 1=Yes and 0=No
; DGENOUT 1=Timeout or up-arrow
ENRPAT(DFN,DGENOUT)
;Enroll patient
; Input -- DFN Patient IEN
; Output -- 1=Successful and 0=Failure
; DGENOUT 1=Timeout or up-arrow
DECLINEQ
;
CANCELQ
MTBULLQ
EN1(DFN)
;Entry point for enrollment from registration and disposition
; Input -- DFN Patient IEN
; Output -- None
DECLINE(DFN,APPDATE)
;Create Declined enrollment
; Input -- DFN Patient IEN
; APPDATE Application date (optional)
; Output -- 1=Successful and 0=Failure
ENQ
ENRPATQ
EN1Q
ASKDATE
MTREQ(DFN)
; --
LINE(DGTEXT,DGLINE)
;Add lines of text to mail message
ENROLLQ
MTBULL(DFN,DGENR)
;Create/Send means test 'REQUIRED' bulletin for PATIENT ENROLLMENT
ENROLL(DFN)
;Create new local unverified enrollment
; Input -- DFN Patient IEN
; Output -- 1=Successful and 0=Failure