User bio
404 bio not found
Member since May 20, 2023
Replies:

Hi,

You can also create a Generic Message request and receive a Generic Message response.

Set url = Endpointurl_"/"_Param1_"/"_Param2_"/"_Param3

Set httpResponse= ##class(EnsLib.HTTP.GenericMessage).%New()

Set HTTPrequest = ##class(EnsLib.HTTP.GenericMessage).%New()
Do HTTPrequest.HTTPHeaders.SetAt("application/x-www-form-urlencoded", "content-type")
Do HTTPrequest.HTTPHeaders.SetAt("GET","HttpRequest")
Do HTTPrequest.HTTPHeaders.SetAt(url, "URL")
Set tSC = ..OnMessage(HTTPrequest, .httpResponse)
Set StatusCode = $P(httpResponse.HTTPHeaders.GetAt("StatusLine")," ",2)

Thanks,

Hi Mirza,

If set failure timeout to -1, it will not retry?

Failure Timeout is -1 = retry forever (no time limit) It will keep retrying until it gets a response.

:?E=S or E=S is same? 

:?E -- it looks at the value in MSA:1 and evaluates it by HL7 acknowledgment class. Ex: 'AE' or 'CE'
It is only for HL7 messages.

E - it is a standard Error code, E only when dealing with non-HL7 or custom reply codes.

what the ( :? ) means?

“Match by class of HL7 acknowledgment code, not exact value.”
It looks at MSA:1 in the response and groups codes by meaning.

:?A - matches AA or CA values (Accept)
:?E - matches AE or CE values (Error)
:?R - matches AR or CR values (Reject)

Thanks,

Certifications & Credly badges:
Prasanth has no Certifications & Credly badges yet.
Global Masters badges:
Followers:
Following: