Forum Replies Created
-
AuthorReplies
-
Cloverleaf 6.1.1
My example is a single record in the file. Every record in the file will have all 7 fields valued. The file is terminated with r and I have added this to both VRL formats.
Did anyone offer you a solution for this issue? I am having the exact same problem with my HRL.
I am trying to convert a comma delimited file that looks like this:
EP0184829834,10923684,03/28/1945,”lname, fname”,6.60,412,chole with CDE
to an HL7 ORU, with the last 3 fields as the repeating OBX.5 result.
I have the first 4 fields in a VRL called “fields”.
I have the next 3 fields in a VRL called “obx”.
The HRL has the “fields” without repeating, and it works fine.
The HRL then has “obx” repeat 3 times. NO DATA will show in the testing tool for the repeating fields.
I have added the segment terminator in the Global options, which got rid of an error, but no luck on getting the data to show up in the testing tool.
The TCL is returning new_msg|{filename.hl7 filename2.hl7} which I think is a list.
If TCL ftp_dir_parse returns one file it works; if it returns 2 files it does not work – it actually passes a blank message to the Xlate.
When there is one .hl7 file in the directory
process log: ftp_dir: test_ftp_oru: new_msg|filename.hl7|
msgDriverControl: {FILENAME /home/hci/temp/filename.hl7}
msg: MESSAGE IS HERE
When there are two .hl7 files in the directory
process log: ftp_dir: test_ftp_oru: new_msg|{filename.hl7 filename2.hl7}
msgDriverControl: {FILENAME /home/hci/temp/filename.hl7 filename2.hl7}
msg: ‘ ‘
I thought this was correct. Shouldn’t it pass the first message in the list, process it, then pass the next message in the list and process it?
New problem.
The Fileset-FTP thread passes a single filename.hl7 file from the directory to the Xlate and it processes fine, as long as there is only one .hl7 file in the directory.
But if there are 2 files in the directory with .hl7 extensions I get an error: 550 filename.hl7 filename2.hl7: not a plain file. I also get 550 filename.hl7 filename2.hl7: A file or directory in the path name does not exist.
I was expecting each message to process in the order they were in the directory. The log file shows that the ftp_dir_parse tcl is passing back new_msg{filename.hl7 filename2.hl7} Then I see the errors from the ftp process.
Each file contains a single message.
Thread set as fileset-ftp
Style: single
Directory Parse: ftp_dir_parse (passing in parameters {OP FETCH} {TYPE REGEXP} {FILES .*.hl7} {DEBUG 9} )
Scheduling
Read Interval: 5
Scan Interval: 30
Max Messages: 1
I was able to get Cloverleaf to read the files. I have the style setting as single and the data type setting as Image/Binary. Thanks to everyone for all of your help.
I can see the content of the file if I use the hcihd command. I saved the file as .txt by opening it in NotePad++ and using the save as text command. The diff command shows no difference in the two files.
I can manually FTP the file from the command line. I have tried viewing the file with the vi command, it shows one @ per line, no other data. If I save the file as a .txt file Cloverleaf will read it using the nl style setting. I would like to know why Cloverleaf will not read it as a .hl7 file using the hl7 style or single style.
I was using style of hl7, and I also tried single. The error in the thread is FTP operation failed: RETR response: 550. I can see all of the files that the ftp parse tcl scanned in the directory, and I can see that it found 3 files that matched my regular expression. I think error 550 is “cannot open file” (from google search!) Not sure why Cloverleaf cannot open the files…
-
AuthorReplies