Question
Clint Childs · Dec 2, 2022

Sending Multiple HL7 Messages to a single file (daily)

What I can do:
Get a subset of HL7 messages.
Send the messages to a RecordMap (with key fields from the HL7 message).
Save each message to a file.

How can I send all messages until a set time (e.g. 9am each day) to single file?

Scenario:
In the period 09:00 1 Jan 2022 to 09:00 2 Jan 2022 there are say 50 messages to save to file: File001.txt
In the period 09:00 2 Jan 2022 to 09:00 3 Jan 2022 there are say 40 messages to save to file: File002.txt
etc

I would prefer to append the message data to the relevant file as they go through the system (real time), so the data builds up in the respective file throughout the day.

Product version: IRIS 2022.1
0
0 230
Discussion (2)1
Log in or sign up to continue

depending on your rule to open the file... if you create a new one each time, will not work as expected, you may change to chek if file exists and create only if not and later open it and append new lines at the end...

You could route it within the Business Rule to only send at certain times of the day but then you would need a custom business file operation for the second piece you are looking for.