Forum Replies Created
-
AuthorReplies
-
Here is a sample of the output
Script that takes the data from the USERDATA key and assigns it to the OBFILE key. This is what names the outbound file.
XLATE for the conversion of the HL7 to the VRL format
Script on the inbound thread that stores the value from PID-3 in the USERDATA key
Interface description
Here are the details of this solution for anyone who needs to:
1. Take an inbound HL7 message
2. Parse this message and store specific pieces of data in METADATA USERDATE
3. Format this HL7 to a readable document using a VRL
4. FTP this document to a server with the data from the USERDATA as the filename.
5. Each message gets it own named text document
Please disregard this post. I discovered the problem. I was testing the proc with and HL7 message and those instances worked. When I attempted to use this script in the route it was failing because the message was altered by the time it reached my proc. Thus there was no value in PID-3 to pull because the message was no longer formatted like an HL7.
Here is the msgdump from the failed attempt. Notice the value in the msgDriverControl is the value I am passing to it.
msg: 0x0204BCB4
msgType : DATA
msgClass :
msgState : Unknown: 0 (0)
msgPriority : 5120
msgRecoveryDbState: Log:off (1)
msgFlags : 0x2
msgMid : [0.0.0]
msgSrcMid : midNULL
msgSrcMidGroup : midNULL
msgHostId : 4028562964
msgOrigSrcThread :
msgOrigDestThread :
msgSrcThread :
msgDestThread :
msgXlateThread :
msgSkipXlate : 0
msgSepChars :
msgNumRetries : 0
msgGroupId : 0
msgDriverControl : {FILESET {{OBFILE 3100069429.txt}}}
msgRecordFormat :
msgRoutes :
msgUserData :
msgStaticIsDirty : 0
msgVariableIsDirty: 1
msgTimeStartIb : 1466801162.528
msgTimeStartOb : 1466801162.528
msgTimeCurQueStart: 0.000
msgTimeTotalQue : 0.000
msgTimeRecovery : 1466801162.528
msgEoConfig : 0x00000000
msgData (BO) : 0x0204BDB8
Thank you that worked.
I am on CloverLeaf 6.1.1
We are in the process of upgrading from Redhat Linux 5.8 to Windows Server 2012 6.1. In the product specifications it reads 2012 R2 is not validated and I was wondering if everyone followed that recommendation or if you installed it on 2012 R2>
My data is like this>
Seg
Seg
Seg
Seg
Seg
Seg
OBX
Literally it is
MSH
PID
PV1
ORC
OBR
{OBX}
I am making the file myself with C# extraction from a database. I have one record per line. I can put any filed seperator I want in the data. In the screen shot above I used a pipe for the Seg vrl and a tilda for the OBX vrl.
I had hoped to add more screen shots but I guess we can only upload 3. In particular I wanted to upload the XLATE. In it I am trying to ITERATE using the OBX segment defined in HRL. I am using the Type of segment and the variable %s1.
Max,
Thanks for the suggestion to use the time mode to execute my scripts.
The problem I have is this. I want to use Cloverleaf to transfer files from a server outside of our network to a cold feed in folder for HPF. The VPN tunnel is built between Cloverleaf and the outside system. I am not sure what the best way to proceed is. 1. Should I create a share on my PWIM box for the sending system to drop files to.
or Should I try and FTP them from the outside server using my inbound thread.
2. Then for the outbound to the cold feed in directory.
a. Should I use samba to mount a share to that directory or is there a different way to do this?
Max, At what UPOC do you put this script. Does it go
Protocol > Properties > Start-up procedures .
or
Does it go in the Outbound Tab > TPS Outbound Data
-
AuthorReplies