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?
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



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