User bio
404 bio not found
Member since Jan 12

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 

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

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?


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?



Joe has no followers yet.
Global Masters badges:
Joe has no Global Masters badges yet.