Announcement

Collapse

NextGen (Mirth) Connect 3.10.0 Released!

NextGen (Mirth) Connect 3.10.0 is now available as an appliance update and on our GitHub page. This release includes better SQL Server database support, security improvements through fixes and library updates, and improvements for the Advanced Clustering plugin with a focus on improving performance of many of the tasks that are carried out on a frequent interval. 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

Using Mapper and Javascript steps in same channel

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

  • Using Mapper and Javascript steps in same channel

    Can I successfully use both Mapper steps and Javascript steps in the same channel?

    I have been using Mirth for a while, but all mapper steps. I would now like to add fields from IN1 (repeating) segments.

    I have used NShaik's code:
    var i = 0;
    // Check if the InsuranceCarrierID existwhile (msg['ADT_A01.INSURANCE']['IN1']['IN1.3']['CX.1'][i] != null) {
    // Get the insurance carrier id
    tempInsuranceCarrierID = msg['ADT_A01.INSURANCE']['IN1']['IN1.3']['CX.1'][i].toString();
    if (tempInsuranceCarrierID.length > 0) { ... }
    // increment index to process the next patient insurance, if any
    i = i + 1;}

    and ChrisL's
    suggestion to Use connectorMap.put('tempInsuranceCarrierID', tempInsuranceCarrierID);

    but I can't seem to make this work. I'm sure it is my lack of Java knowledge.

    I am going from a file to a database and all else works until I try to add these multiple IN1 segments. Unfortunately, I am still missing the piece to have the repeating fields populate my database.

    Is there a way to use the javascript to have the fields listed in the Destination Source Mappings list or do I need to change everything to Javascript and INSERT directly into the table from there as described in the WIKI?

    Any help is greatly appreciated.

  • #2
    Re:Using Mapper and Javascript steps in same chann

    arumpke wrote:
    Can I successfully use both Mapper steps and Javascript steps in the same channel?
    Absolutely! In fact, I have a handy-dandy example channel that I'll be more than happy to e-mail to ya. I'm at [email protected]

    bob D.
    Bob Dilworth
    University of Toledo Medical Center
    Toledo, Ohio

    Comment


    • #3
      Re:Using Mapper and Javascript steps in same chann

      Hi bob D,

      would be great to share your channel example with the Mith community via File Repository since the documentation on Mirth is not overwhelming

      Cheers,
      Joe

      Comment


      • #4
        Re:Using Mapper and Javascript steps in same chann

        hl7.sentinel wrote:
        Hi bob D,

        would be great to share your channel example with the Mith community via File Repository since the documentation on Mirth is not overwhelming
        OK - I submitted the channel to the Inbound Channel repository. It's called LLP2File. I don't see it yet but perhaps it needs to be looked at by the admins first? It's all a mystery to me.

        Bob D.
        Bob Dilworth
        University of Toledo Medical Center
        Toledo, Ohio

        Comment

        Working...
        X