Originally posted by Rick Pritchett
My question is how would I translate a batch file? I know I need to FTP it to the same server as the interface engine. What I was wondering is how to get the engine to process the messages contained in the file correctly?
Does cloverleaf already know how the handle the batch file information or does that need to be handled in the xlate (FHS, BHS, BTS and FTS segments)?
Here is a samle of the DFT^P03 message:
FHS|^~&|ANESCHRGS|NW||NW|||||ANES200701311
BHS|^~&|CGI1|ANESCHRGS|||20070131121835||
MSH|^~&|CGI1||||20070131121713||DFT^P03|00000025612|P|2.3|||NE|NE||||
EVN|P03|20070117033900||||
PID|1||123456||LAST^FIRST|||||||||||||1001166649|||||||||||||
FT1|1|||20070116|20070131|CHARGE|30001407|||1|5.00|||||||||||5.0|||||
FT1|2|||20070116|20070131|CHARGE|30003455|||71|355.00|||||||||||5.0|||||
FT1|3|||20070116|20070131|CHARGE|30000611|||1|5.00|||||||||||5.0|||||
FT1|4|||20070116|20070131|CHARGE|30001708|||1|5.00|||||||||||5.0|||||
FT1|5|||20070116|20070131|CHARGE|30000523|||1|25.00|||||||||||25.0|||||
FT1|6|||20070116|20070131|CHARGE|30001370|||1|5.00|||||||||||5.0|||||
FT1|7|||20070116|20070131|CHARGE|30001783|||1|40.96|||||||||||40.96|||||
FT1|8|||20070116|20070131|CHARGE|30001801|||1|53.40|||||||||||53.4|||||
FT1|9|||20070116|20070131|CHARGE|53353|||1|||||||||||||||||
FT1|10|||20070116|20070131|CHARGE|53354|||5|||||||||||||||||
MSH|^~&|CGI1||||20070131121722||DFT^P03|00000025624|P|2.3|||NE|NE||||
EVN|P03|20070120211700||||
PID|1||123457||LAST^FIRST|||||||||||||1001168925|||||||||||||
FT1|1|||20070120|20070131|CHARGE|30003455|||110|550.00|||||||||||5.0|||||
FT1|2|||20070120|20070131|CHARGE|30000611|||2|10.00|||||||||||5.0|||||
FT1|3|||20070120|20070131|CHARGE|30000973|||1|5.00|||||||||||5.0|||||
FT1|4|||20070120|20070131|CHARGE|30001708|||1|5.00|||||||||||5.0|||||
FT1|5|||20070120|20070131|CHARGE|30000523|||1|25.00|||||||||||25.0|||||
FT1|6|||20070120|20070131|CHARGE|30001370|||1|5.00|||||||||||5.0|||||
FT1|7|||20070120|20070131|CHARGE|30001783|||1|40.96|||||||||||40.96|||||
FT1|8|||20070120|20070131|CHARGE|30001801|||1|53.40|||||||||||53.4|||||
FT1|9|||20070120|20070131|CHARGE|53353|||1|||||||||||||||||
FT1|10|||20070120|20070131|CHARGE|53354|||4|||||||||||||||||
BTS|513|ARI BATCH|3978|
FTS|1