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

How to enumerate segments?

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

  • How to enumerate segments?

    Hi everybody. Does anyone knows how to enumerate segments? I want to parse X-12 message with structure like this:
    CLP***
    SVC**
    SVC**
    CLP***
    SVC**


    In that sample SVC[0] and SVC[1] related with CLP[0] and SVC[2] with CLP[1]. If I use msg..CLP and msg..SVC - sure I lose structure and relations between them. I see just one way - it's going segment by segment and for each SVC bind it with last CLP, but I do not see any function to enumerate msg. What type msg has?
    For example, this code doesn't work:
    Code:
    for(segment in msg){}
    Can anybody knows how to solve this problem?

    Post edited by: vovchic, at: 05/16/2008 20:01

    Post edited by: vovchic, at: 05/16/2008 20:02
Working...
X