go to post Joe Jones · Mar 23, 2023 Hi Oliver, I have tried the same steps by using BPL i am able to convert the message but i am not supposed to use BPL logic in my tasks , so i am trying to figure other ways for this conversion
go to post Joe Jones · Mar 21, 2023 Thank you , I have tried the steps mentioned in the below post but i am not sure what values i need to use in few variables https://community.intersystems.com/post/parse-hl7-content-json-request-e... This is example mentioned in the link SET tContent = %request.Content.Read()---->in %request do we need to declare any variable WHILE '%request.Content.AtEnd { SET tContent = tContent + %request.Content.Read() } SET tReq = {}.%FromJSON(tContent) SET tInput = tReq.Message // Remove your %New() statement and set tMsg like this SET tMsg = ##class(EnsLib.HL7.Message).ImportFromString(tInput) // Then you can either set the doctype manually or use PokeDocType() Let me know if you have any ideas on this one?
go to post Joe Jones · Mar 21, 2023 Hi I agree with your point it will be very helpful to have basic examples for new developers in Cache Object scripts. Can you please give me an example how to create a JSON message structure @Phil Burkhalter for a JSON message? Thanks, Joe
go to post Joe Jones · Mar 17, 2023 Thank you Robert, It worked. Set Jsonobj="{""Doctype"":""ADT^A01"",""PatientId"":""123"",""PatientName"":""Alex""}" set dynmicobj={}.%FromJSON(Jsonobj) Set HL7Obj=##Class(EnsLib.HL7.Message).%New(dynmicobj) ---> here i am trying to open an Object trying to Convert JSON to HL7 message Can you share any ideas how can i proceed from this steps to convert into HL7 message ?
go to post Joe Jones · Mar 17, 2023 Hi Robert I have tried by giving Set Dynjsonobj={}.%FromJSON(Jsonobj) it is throwing below error <THROW>%FromJSON+37^%Library.DynamicAbstractObject.1 *%Exception.General READ error while reading input stream 10 Line 1 Offset 0 Is there any way i can read from the JSON object
go to post Joe Jones · Mar 14, 2023 Thank you , Can i give the OnProcessInput method like below Method OnProcessInput(pInput As Ens.Request, Output pOutput As Ens.StreamContainer) As %Status How to map the fields in JSON file to HL7 message Fields?
go to post Joe Jones · Jan 19, 2023 Thank you Can you please give me an example how can i save Non HL7 file data into SQL example any CSV file data into SQL Dynamically ? Joe
go to post Joe Jones · Jan 16, 2023 Hi , Thank you for sharing very important things about parameter and property I have one doubt while creating the custom business service i am using EnsLib.File.InboundAdapter like below Parameter ADAPTER = "EnsLib.File.InboundAdapter"; 1.I just want to know it means the methods exits in EnsLib.File.InboundAdapter class can i use them in my custom class by 2.By adding .. 2 dots like below we can access the methods exists in the class ? Joe