;
; this is called from the main query for local data and from the remote
; procedure IBO MT LTC COPAY QUERY for remote data. The return is
; in a global array.
; if DFN then that will be used to identify the patient
; if no DFN, then the ICN (ibicn) needs to be there to identify patient