changing message priority

Homepage Clovertech Forums Read Only Archives Cloverleaf Tcl Library changing message priority

  • Creator
    Topic
  • #54369
    Kevin Crist
    Participant

    Are we able to change the message priority in CL, guessing maybe in tcl? Our midnight maintence shoots out hundreds of discharges at night and if a patient comes in that A04 gets caught behind them. Is there a way to shoot that to the front of the line?

Viewing 1 reply thread
  • Author
    Replies
    • #81200
      Charlie Bursell
      Participant

      Of course you can change the priority of any message.  The range is 4096-8192.  Default is 5120

      For example msgmetaset $mh PRIORITY 8192

      From the docs:  PRIORITY

      Used to give special treatment to a message. Each message is placed in an engine queue according to its priority. Higher priority messages are placed nearer to the head of each queue than messages of lower priority. Among messages of the same priority, a FIFO queue ordering is maintained

      This is how the disposition of PROTO works. It puts the message back on the queue with a priority of 8192 to make sure it is sent first

      With that said if the messages come in at different times there is no guarantee one will be delivered before the other.  Note it only applies to messages in the same queue

    • #81201
      David Barr
      Participant

      We have some code like this on our Epic ADT interface:

      Code:

                  # set batch messages to lower priority
                  if { [hl7::get_field hl7 MSH.3] eq “AS_AFTER_EOD” ||
                       [hl7::get_field hl7 MSH.8] eq “REGBATCH” } {
                      msgmetaset $mh PRIORITY 4999
                  }

Viewing 1 reply thread
  • The forum ‘Tcl Library’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,448
Topic Tags
288
Empty Topic Tags
10