Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

replacing hl7 fields from database

  • Filter
  • Time
  • Show
Clear All
new posts

  • replacing hl7 fields from database

    I have a channel which reads in an HL7 file (missing key PID info).

    It then polls the database and adds the information then kicks out the modified HL7 file. This is working flawlessly.

    However, if it can't find the record, it just processes the file (making no changes) and sends it across the channel.

    Is there a way to force an error on a record which returns zero rows from the transformer (via javascript I expect) so that it will not move across?


  • #2
    Re:replacing hl7 fields from database

    Inside Filter, check if the database call returns any value. If no record found, return false else true. This should "skip" the message. But if you would like to log the error message, you could use try / catch block. Refer JS sample:

    JavaScript Error (try/catch/finally)
    Hope it helps!

    Post edited by: nshaik, at: 10/03/2007 12:41