Iterate for HL7 to XML

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iterate for HL7 to XML

  • Creator
    Topic
  • #48369
    Barry Sheesley
    Participant

    I am receiving an HL7 style message from our clinical system and need to pass the data as XML to our medical charting system. My problem is that the HL7 message has one custom segment we have defined as the CTR segment.  This segment contains a patient account #, a starting date and an ending date.  When I output the XML, I need to create 2 sets of repeating tags from this one CTR segment.  For example:

       

       

    I have not been able to figure out a way to do this.  I’ve tried writing a TCL proc that creates a 2nd CTR segment in my message and then using the Iterate statement in my Xlate but I am still only getting the data from the 2nd CTR segment… it seems to be overlaying the Resident Id information.

    Any help is greatly appreciated!

Viewing 1 reply thread
  • Author
    Replies
    • #58425
      Nathan Martin
      Participant

      Your DTD/Schema should probably have “Filter” set to be a repeating element.

    • #58426
      Barry Sheesley
      Participant

      Can you be specific about what I would need to do in the schema to indicate that it is repeating?  Filter already looks like the following:

      I did play around with using Iterate and some Tcl to get the correct format coming out but it is kind of messy.  Thanks.

Viewing 1 reply thread
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10