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
Read Only Archives
Cloverleaf
Cloverleaf
having trouble with ACK
System
Originally posted by Mason Miller
I have a vender that needs the value in MSH-10 to be valued in MSA-2 on the ACK when I send a ACK it only sends MSA-1. what am I doing wrong.
Thanks
Mason
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Don Gilchrist
How are generating the ACK?
System
Originally posted by Mason Miller
I am putting this proc in the TPS inbound Data field If thier is an easier way to do this or a better way let me know.
proc create_hl7_ack { args } {
keylget args MODE mode ;# Fetch mode
set dispList {} ;# Nothing to return
switch -exact -- $mode {
start {
}
run {
keylget args MSGID mh
set msg [msgget $mh]
if {[cequal [crange $msg 0 2] "MSH"] && [llength [split $msg "r"]] > 1} {
set acktype AA
set disptype "CONTINUE"
} else {
set acktype AR
set disptype "KILL"
}
set ack [lindex [split $msg "r"] 0]
append ack "r" "MSA" [cindex $msg 3] $acktype "r"
set ackh [msgcreate -type reply $ack]
lappend dispList "$disptype $mh"
lappend dispList "OVER $ackh"
}
time {
}
shutdown {
# new mode added by C:hciroot3.8.0Pbinhcitpsconvert.htc on 20020327082942
}
default {
error "Unknown mode '$mode' in create_hl7_ack"
}
}
return $dispList
}
Jim Kosloskey
Mason,
You need to modify your proc to build a compliant MSA. Check the HL/7 guide for a description of how an MSA should be used.
Jim Kosloskey
RobertKersemakers
Hi Mason,
I'm using a script called 'gc_genHL7OrigModeACK' to generate an ACK, where you can specify the sort of ACK that needs to be send.
I thought this script was delivered with Cloverleaf, but if you don't have it, I will ask our vendor whether I can share this code.
System
Originally posted by Mason Miller
I do not have that. It would be great if you could share.
Thanks
Mason