We don't recommend trying to use an Operation's Schedule setting to make
it send something at a particular time. That setting is intended to
disable operations during time periods when you know they shouldn't be
active, for example during a nightly backup, or on weekends.
Ensemble does contain batch support for HL7 messages. Since batched
messages are most commonly used in file transfers, the File operation
has rich support for batch construction. It works like this:
- you construct a batch header object
- you send a bunch of messages to the Operation where each one has the
header object as its parent; the Operation detects this and writes the
header segment (but not the trailer segments) before writing the
contents of the first message.
- finally you send the header object to the File Operation; the
Operation recognizes that this is the parent of all the other messages
it wrote and takes this as its signal to write the trailer segment. It
also automatically inserts the batch count in the trailer segment.
Since you want to send batched messages over TCP, there are two ways you
could do this.
1) you could use a File Operation to construct the batch. If you give a
timestamp specifier as part of the filename setting it will roll over
automatically whenever the timestamp calculation causes the filename to
change. Then you could use a different Service to detect the rollover,
pull in the file, and send the resulting complete batch object out to a
TCP Operation.
2) you could use a BP that remembers all the messages it receives and
then, when the specified time interval rolls over, constructs a batch
parent object, adds all the messages to it, and forwards the parent
object to a TCP Operation.
Ted
> --
> You received this message because you are subscribed to the Google
> Groups "InterSystems: Ensemble in Healthcare Community" group.
> To post to this group, send email to
>
Ensemble-in...@googlegroups.com
> To unsubscribe from this group, send email to
>
Ensemble-in-Healt...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
> ---
> You received this message because you are subscribed to the Google
> Groups "InterSystems: Ensemble in Healthcare" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
Ensemble-in-Healt...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.