Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How to create a business service for reading JSON input into the Ensemble production

Question
Joe Jones · Mar 13, 2023

How to create a business service for reading JSON input into the Ensemble production

Hi Community,

I am receiving a JSON file as input in ensemble and i need to convert the JSON message to HL7 message.

Can anyone share few points how to read a JSON file into Ensemble production by creating a Custom Business service?

I have created a custom business service as below but i am not aware which parameters i need to pass in  OnProcessInput method?

Method OnProcessInput(pInput As Ens.Request, Output pOutput As %RegisteredObject) As %Status

Do i need to Ens.Request or RegisteredObject or  Ens.StreamContainer?

 

Thanks,

Joe

#Business Service #Key Question #Ensemble
Product version: Ensemble 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.1 (Build 312_1_18937U) Fri Apr 26 2019 17:58:36 EDT

Source URL:https://community.intersystems.com/post/how-create-business-service-reading-json-input-ensemble-production