Announcement

Collapse
No announcement yet.

Is there an easy way to get all OBX's of an OBR?

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

  • Is there an easy way to get all OBX's of an OBR?

    I'm new to both mirth and hl7. I searched the forum already but couldn't find anything relevant to my question, but is there an easy way to get all OBX messages under a particular OBR? Does that even make sense?

  • #2
    Re:Is there an easy way to get all OBX's of an OBR?

    Here's one way to get each of the OBX segments in a message, via a Javascript transformer step:

    for each (obx in msg..OBX)
    {
    ...
    var observationValue = obx['OBX.5']['OBX.5.1'].toString();
    ...
    }

    Comment

    Working...
    X