infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
JSON Acknowledgement Script
System
Originally posted by David Speare
Does anyone have a json acknowledgment script they are using that they would be kind enough to share?
Find more posts tagged with
Clovertech
Comments
Max Drown
proc tps_bounce_response_json { args } {
set module tps_bounce_response_json
set debug 0
keylget args MODE mode
set dispList {}
switch -exact -- $mode {
start {}
run {
keylget args MSGID mh
set userData [msgmetaget $mh USERDATA]
set requestInfo [keylget userData httpRequestInfo]
set requestPath [keylget requestInfo "path"]
set httpResponseHeaders {}
set response {
{
"response": "Success"
}
}
set mhReply [msgcreate -class protocol -recover -type reply $response]
set driverCtl [msgmetaget $mh DRIVERCTL]
msgmetaset $mhReply DRIVERCTL $driverCtl
set userData {}
keylset userData httpResponseHeaders $httpResponseHeaders
msgmetaset $mhReply USERDATA $userData
lappend dispList "OVER $mhReply" "CONTINUE $mh"
}
time {}
shutdown {}
}
return $dispList
}
Mahmoud Ihaddadene
Hi,
I'm looking for a tcl script to convert HL7 2.3 ADT transactions to JSON.
Thanks in advance
Mahmoud
RobertKersemakers
Better/easier to use translations for this.
david_barr
It depends on what kind of conversion you're looking for. For example, our state department of health wants to receive HL7 in the body of an HTTPS POST request. The raw HL7 message contents are wrapped in a simple JSON object. I can send you this code if that's what you need. If you need to translate the message field by field into JSON, then I agree with Robert.
Mahmoud Ihaddadene
Hi
I'm developing for a first time an interface to send ADT to Jason API.
How can i configure my thread to do the following steps:
1-New Token Path/oauth/token
Request Method POST Headers
Content-Type: application/json
2-Add Patient Path /endpoint/patients/
Request Method POST
Headers Content-Type: application/json
Authorization: Bearer oauth_access_token
Description Use this method to add eligibility data for a new patient
3-Update Patient Path /endpoint/patients/id
Request Method PATCH
Headers Content-Type: application/json
Authorization: Bearer oauth_access_token
Description Use this method to update eligibility data for an existing patient
Thank you in advance.
Best Regards,
Mahmoud
Mahmoud Ihaddadene
Hi David,
I'm looking for a curl tcl script to :
1 -initiate a POST Token API jason Authorization: Bearer token
2- Add Patient using POST to jason API when i get the Token
Thanks