;Loop through all patients
; Input -- SCCVEVT Conversion event
; SCSTDT Start date
; SCENDT End date
; SCLOG Scheduling conversion log IEN
; SCREQ Scheduling conversion request IEN
; SCDFN If restarting, the DFN to start with
; Output -- SCSTOPF Conversion stop flag
;Loop through a patient's appointments
; Input -- SCCVEVT Conversion event
; DFN Patient IEN
; SCSTDT Start date
; SCENDT End date
; SCLOG Scheduling conversion log IEN
; SCREQ Scheduling conversion request IEN
; Output -- SCSTOPF Conversion stop flag
;Entry point to loop through all appointments for a specified date range
; Input -- SCCVEVT Conversion event
; 0 = Estimate 1 = Convert 2 = Re-convert
; SCSTDT Start date
; SCENDT End date
; SCLOG Scheduling conversion log IEN
; SCREQ Scheduling conversion request IEN
; SCDFN If restarting, the DFN to start with
; Output -- SCSTOPF Conversion stop flag