Announcement

Collapse

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

Wild card character to match part of a OBR segment

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wild card character to match part of a OBR segment

    Is there a wildcard character in Mirth? I want to perform an if statement on just part of the OBR2.1 segment so that I can populate the OBR4.1 segement.

    Example:
    if (msg['OBR'][0]['OBR.2']['OBR.2.1'].toString() == "US*") {
    msg['OBR']['OBR.4']['OBR.4.1'] = 'US';

    The OBR2.1 segment can be different order numbers that always start with the catagory name. Example US20080707-0001. I want to look at the beginning letters and then populate the OBR4.1 segment.

    Thanks,
    Paul

  • #2
    Re:Wild card character to match part of a OBR segm

    Hii,

    Why dont you use javascript, like:

    if (msg['OBR'][0]['OBR.2']['OBR.2.1'].toString().substring(0,2) == "US") {
    msg['OBR']['OBR.4']['OBR.4.1'] = 'US';
    }

    Post edited by: gshenoy, at: 07/14/2008 06:19

    Comment

    Working...
    X