Dear All,
I’m having trouble creating the following business service. It’s intention is to pick up an CSV via FTP and pass it to a Business process that transforms it to a HL7 message.
I have created a record map for the CSV file, which I am trying to call in the business service and parse it into a new message class, which can be transformed in the business process.
Please could you advise:
Business Service:
/// Collects CSV from Epic FTP, looking for ENH patient
/// antiobitic sensitivities to be passed on to ENH Infection control
/// Patch 176
Class CUH.Serv.EpicFTPFilePickup Extends (Ens.BusinessService, CUH.Recordmap.ENHSens2HL7)
{
Parameter ADAPTER = "EnsLib.FTP.InboundAdapter";
// Adds Option to state which Business process is the target of the Business service
Parameter SETTINGS As %String = "TargetConfigName";
// Declares that the TargetConfigName as a %String
Property TargetConfigName As %String(MAXLEN = 999);
// previous pInput: pInput As %RegisteredObject & Output pOutput As %RegisteredObject
Method OnProcessInput(pInput As %IO.DeviceStream, Output pOutput As %RegisteredObject) As %Status
{
//Create Request Message
//set trequest = ##class(CUH.Recordmap.ENHSens2HL7)
do ##class(CUH.Recordmap.PutObject).%New()
//Send Request to CUH.Proc.ICENETROUTER
set tgo = ..SendRequestAsync(..TargetConfigName,trequest)
Quit $$$ERROR($$$NotImplemented)
}
}

