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

Mapping Multiple FT1

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

  • Mapping Multiple FT1

    Okay, I give up. How do I go about mapping multiple FT1 segments. The messages I am working with look like the following::huh:

    MSH|^~\&|APTAConnect||||200706210840||DFT^P01|2007 0621084031|P|2.3|
    PID|1||10000057||Wiggins^Kimra^M||19580701|M|||605 Rainbow Ridge^^Medical Lake^WA^99022||5092997577|||U||1083|123-45-6789|
    PV1|||||||20^Abigal^Patti|24^Bonner^James||||||||| ||49||||||||||||||||||||||||||||
    FT1|1|51||20070621|20070621|||||1|||||||||719.40~7 19.48|20^Abigal^Patti^|||||99070|4~1||||||
    FT1|2|51||20070621|20070621|||||2|||||||||719.40~7 19.48|20^Abigal^Patti^|||||95852|3~2||||||
    FT1|3|51||20070621|20070621|||||1|||||||||719.40~7 19.48|20^Abigal^Patti^|||||97110|4~3||||||
    STF|24||Bonner^James^||||A|||
    PRA|24||||||
    STF|20||Abigal^Patti^||||A|||Patti-add1^Patti-add2^Patti-city^Patti-state^Patti-zip
    PRA|20|||||~PA11111111^NPI~|
    GT1||1|Kimra^M^Wiggins||605 Rainbow Ridge^^Medical Lake^WA^99022|||||||
    IN1|1||22|BBSH|BBSH Add1^BBSH ADD2^BBSH City^BBSH State^BBSH Zip|||11111111||||||||Kimra^M^Wiggins|||605 Rainbow Ridge^Medical Lake^WA^99022^99022|||||||||||||||||999999999||||| ||M||
    IN2||123-45-6789

    Thanks for any help!

  • #2
    Re:Mapping Multiple FT1

    When you are in the transformer view. Click on properties and check everything:
    Handle repetitions,
    Use strict parser,
    Validate in strict parser.
    I don't know exactly what those are but that's the way I do it.
    Then in your code just use something like:
    Code:
    for (intCounter in msg['FT1']) //iterate through every FT1 segment
    {
        field=msg['FT1'][intCounter]['FT1....toString();
    }
    Post edited by: Bleupomme, at: 09/19/2007 02:02

    Comment

    Working...
    X