Question Smythe Smythee · Feb 17, 2024

How can we call a data transformation from a business service

Hi Community,

Is there a way to call HL7 Data transformation directly from Business service without using Rule functionality in the production

In this scenario i need to call a data transformation in directly in business service and give the transformed message to Business operation 

Please share if you have any ideas to implement this.

Thanks,
Smythee

Product version: IRIS 2022.2
$ZV: IRIS for Windows (x86-64) 2021.1.2 (Build 336_0_21564U) Tue Apr 12 2022 12:13:45 EDT

Comments

Enrico Parisi · Feb 17, 2024

Using IRIS prebuilt HL7 Business Service components it is not possible.

What's the problem of implementing a simple HL7 Routing Business Process with a simple rule and transformation between BS and BO??
It can be done in few mouse clicks...

0
Kurro Lopez · Feb 17, 2024

Hi,

Try this

do##class(myDt).Transform(dataEntry, .dataTransform)

Then you call to your BO and your content tranformed

0
Smythe Smythee  Feb 17, 2024 to Kurro Lopez

Hi 

In my scenario i need to use only business service and Business Operation for implementation 

In the above code 

do ##class(myDt).Transform(dataEntry, .dataTransform)

In myDt i will be using data transformation class 

What i need to use in the dataEntry, .dataTransform  in these varibles 

Thanks,
Smythee

0
Enrico Parisi  Feb 18, 2024 to Smythe Smythee

dataEntry is source message
dataTransform is target/transformed message

What kind of Business Service are you using?

0
Smythe Smythee  Feb 18, 2024 to Enrico Parisi

I am using TCP business service 

0
Enrico Parisi  Feb 18, 2024 to Smythe Smythee

If you using IRIS prebuilt HL7 Business Service components, like EnsLib.HL7.Service.TCPService, it is not possible.

There is no place where you can call Transform() method.

If you have implemented your own BS, then you have full control.

Having said that, I ask again, what's the problem of implementing a simple HL7 Routing Business Process with a simple rule and transformation between BS and BO??
It can be done in few mouse clicks...

0