; Build list of PTF records for discharge date range
EN
; Main entry point for report
RUN
; Run report
HDR
; Report Header
CHKMT
; Clean out all PTF records except those meeting the MT=U conditions
LAST4(DFN)
; Print last four of SSN
GETDT(DGBEG,DGEND)
; Get beginning and ending date for search
; Output DGBEG Beginning for date range, passed in by reference
; DGEND End of date range, passed in by reference
; result 1 - If function successful
; 0 - If function NOT successful (User quit)
PASTYR(DGBEG,DGEND)
; Set dates for previous fiscal year
SRTNAME
; Sort remaining PTF records by patient name and discharge date