Originally posted by Anonymous
Hi,
I have some idea about the HRL and VRL and I read topics or solutions I was looking for and almost got it, but not yet...
I have file like this..
"H","someval","thisval","four","five"
"S","one","two","three","four","five","six"
"T","1","2","3","4","5","6","7","8","comments"
"T","11","22","33","44","55","66","77","88","comments"
"S","one1","two2","three3","four4","five5","six6"
"T","1","2","3","4","5","6","7","8","comments"
"T","11","22","33","44","55","66","77","88","comments"
"T","1","2","3","4","5","6","7","8","comments"
"T","11","22","33","44","55","66","77","88","comments"
"F","f1","f2","f3"
I need to convert this to HL7.
I don't really care about first line and last line in the file.
"S" line has all info about the patient that you can fill in for MSH and PID/PV1.
"T" has lab results.
As you can see each "S" pertains to one patient followed by "T" lab results (OBX) for that patient.
How do I go about doing this.
I created 2 VRL's one for the "S" and one for the "T". I created HRL but my HRL is treating each record as one individual record. I am not sure about the Global definition in VRL. I tried "n", 'n",n in the termination.
How do I go about fixing this.
Any help is greatly greatly appreciated.
Thanks,
Hari