I have been tinkering with a design issue and I could use a sounding board to see if I am on the right track.
integration model: Get a value from database in transit of hl7 route
hl7 inbound -> call stored procedure to get a value -> send hl7 oubound.
Summary:
I have an HL7 MFN event that I need to call a stored procedure in order to get a value before I send the HL7 outbound. I have an inbound HL7 tcp/ip thread that uses an Xlate to map the HL7 inbound to outbound.
Right now I have a java JAR that is being used in a pre-proc (which is working) but the boss wants to use the native database threads within Cloverleaf. I am not sure if I can even do this – is it possible?
I have setup a database-outbound thread with the stored procedure ({call IMR.PROVIDER.prPhyndAddExternalProviders(inValue1, inValue2, inValue3, inValue4, outPara1 OUT)} ) my issue is I cannot get the value back. Do I need a TCL on the TPS Inbound Reply piece? How do I value the parameters in the stored procedure? Is this only done via an Xlate?
I found some good examples of inbound and outbound database threads, but all of them are very straight forward, use inbound to VRL and Xlate out or use VRL to Xlate into a database. Nothing with a stored procedure.
I am using the ms sql server database connection