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?

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 ?

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