Hi !
I'm using this kind of channel :
- Incoming messages : HL7
- Channel source/type : LLP Listener
- Destination 1 => File Writer
For example, I have to log messages for an other application and store it into a directory like c:\hl7_incoming\XXXXXXXXXX\ where XXXXXXXXXX is the id of the patient stored in the messages.
How can i dynamically create the folders ...
I don't know the name of the folder and i have to create it before if it does not exist ... I'm not "Madame IRMA" ...
I don't know how to do this
Maybe using :
* in the filter, by the "Call System Function" java.lang.Runtime.getRuntime().exec("system_comman d"); ??? (but what command to use and how to do this ...)
* by using a Java class ???
* if there's no other solution for this, i will use an other destination who's using an HTTP Sender that send parameters to PHP script doing this kind of work ...
Does someone got the solution(s). This could be very useful ...
Thanks for your replies and have a nice day.
Antaris
[using Mirth 1.6.1 build 2750 / Win XP | beginner]
I'm using this kind of channel :
- Incoming messages : HL7
- Channel source/type : LLP Listener
- Destination 1 => File Writer
For example, I have to log messages for an other application and store it into a directory like c:\hl7_incoming\XXXXXXXXXX\ where XXXXXXXXXX is the id of the patient stored in the messages.
How can i dynamically create the folders ...
I don't know the name of the folder and i have to create it before if it does not exist ... I'm not "Madame IRMA" ...
I don't know how to do this
Maybe using :
* in the filter, by the "Call System Function" java.lang.Runtime.getRuntime().exec("system_comman d"); ??? (but what command to use and how to do this ...)
* by using a Java class ???
* if there's no other solution for this, i will use an other destination who's using an HTTP Sender that send parameters to PHP script doing this kind of work ...
Does someone got the solution(s). This could be very useful ...

Thanks for your replies and have a nice day.
Antaris
[using Mirth 1.6.1 build 2750 / Win XP | beginner]
Comment