Handling Optional or Repeating Segments
There are a couple helpful strategies for dealing with optional and repeating segments.
For optional segments or fields: Use
node:isNULL()
to determine if the specified node is not present or not (null).For repeating segments: Use the # Operator on Userdata Objects to loop through the total number of segments.
Here’s an example HL7 message:
How would we map this message to a database containing two tables, a Patient and Kin table?